If that is a direct quote, then the book contains a typo. The correct phrase is "come out ahead" - because "ahead" is one word. As written it sounds as if the team will exit the situation transformed into a literal head.
This word is formed from the prefix "a-" meaning "in or at" and "head". Thus "ahead" literally means "at the head" or in this case "in the lead".
As you correctly surmised, the phrase is asking which team will win. When you "come out ahead" you come away from some event in a better situation than you started, or than some other person. You may be coming out ahead of another person or team, or of your past self.
As for how the author came up with it - he didn't. This is an extremely common phrase, though in this case it would appear that the author mistyped it.
It's certainly true that "if yes" is a lot less common than "if so". But it's not so much that it's wrong, as that it implies things a bit differently and is therefore rarer.
From that ngram graph we can also see that, while putting "if so" in the middle of a sentence is almost as common as putting it at the beginning, "if yes" is very nearly always at the beginning. This points, again, to the difference in usage.
Basically, "if yes" only works if there's a question that is obviously answerable only with yes or no, and even there it's not necessarily preferred. In contrast, "if so" works even if there's no explicit question, or if it's a bit fuzzier. Examples where "if yes" is dubious or wrong:
OK Did you get the email I sent? If so, make sure to send the form along before the deadline.
? Did you get the email I sent? If yes, make sure to send the form along before the deadline.
OK I wanted to check if you got the email I sent; if so, make sure to send the form along before the deadline.
* I wanted to check if you got the email I sent; if yes, make sure to send the form along before the deadline.
Example where "if yes" is fine:
OK Are you legally blind? If so, fill out form XYZ-B and attach it.
OK Are you legally blind? If yes, fill out form XYZ-B and attach it.
Unfortunately, the particular example you give is ungrammatical or unnatural in several ways:
Since the announcement of STM32L4 MCUs on last September, more than 45 specific training modules are available online. Did you got get the opportunity to watch some of them? If yes, we will would be thankful grateful to know receive your feedback on this offer.
"If yes" isn't actually wrong here, but it's not really ideal, since someone might have watched part of one, might be about to watch one, might have watched several, might have watched all of them…. So "yes"/"no" aren't exactly the only answers, and in this case, going with the fuzzier logic of "if so" works better.
Best Answer
Awake has two meanings:
As an adjective it describes a person or animal's state. It may only be used as a predicate adjective, in the predicate of a clause, not as an attributive adjective before a noun:
As a verb it is intransitive—it takes no object—and means “to become awake (adj)”. It is an irregular verb, with the past form awoke; two different past/past participles are in use, awoken and awaked:
Awaken is a transitive verb requiring a direct object. It means “cause [someone or something] to become awake”. It is a regular verb: both the past and past participle forms are awakened:
The verb wake, woke, woken/wakened is also used in both transitive and intransitive senses.
In pre-20th-century texts wake may also have another meaning: to “stay awake”.
These verb uses are fairly complicated; but it is simplified by the fact that none of them are used much in colloquial English today (which is one reason why the past and participle forms are so variable). Instead, the phrasal verb wake up (past woke, past participle woken) is used in both transitive and intransitive senses:
You will need to recognize the different forms and meanings in your reading; but for your own work you can use wake up in any context or register.
∗ marks an utterance as ungrammatical