I have the following flow in C:
// some stuff1
//................
if (something1) {
func1();
func2();
} else if (something2) {
func3();
func4()
As i see it you have two options:
call func.
the advantage is readability and more slick code as well as automatic jump back to where you called the function, but it will cost you the overhead of using a function (setting up the registers and pushing and popping the stack pointer).Anyway your conditional piece of code :
cmp [some_struc], SOME_CONST2
seems OK.