Set Function Return

        ...
        loc100();
        ...
        
void loc100() {
        eax = 0;
        return;
}

        ...
        eax = loc100();
        ...
        
int loc100() {
        eax = 0;
        return eax;
}

Motivation

Most processors have no built-in support for returning values in function calls, i.e., native function calls have no return type. It is a common function calling convention to use a particular processor register to pass the function return value to the caller for simple types and the processor stack for complex types. For example, in the Intel IA-32 architecture the register is used to pass integers. This is a platform-specific low-level detail, and not one of the source code, which should therefore be eliminated for proper code understanding.

Mechanics