//
// sub_9035C from 0x9035c to 0x903b0 (84 bytes)
//
// 1 xrefs:
// > sub_90A8E @ 0x90a94
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:41:25 +0000
//
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;
}