// // sub_9035C from 0x9035c to 0x903b0 (84 bytes) // // 1 xrefs: // > sub_90A8E @ 0x90a94 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_9035C(int a1, int a2, unsigned int a3) { float v3; // s0 int v4; // r1 unsigned int v5; // r1 unsigned int v6; // s2 bool v7; // cf unsigned int v8; // r2 v3 = *(float *)(a1 + 456); if ( v3 < 0.0 ) return 0; if ( a2 ) { v5 = *(_DWORD *)(a1 + 452); if ( !v5 ) return 11; } else { v6 = (unsigned int)(float)(v3 * (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184)); *(_DWORD *)(a1 + 452) = v6; v5 = v6; } v7 = v5 >= a3; v8 = v5 - a3; v4 = 0; if ( !v7 ) v8 = 0; *(_DWORD *)(a1 + 452) = v8; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source