//
// sub_100612828 from 0x100612828 to 0x100612898 (112 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:10:10 +0000
//
__int64 __fastcall sub_100612828(__int64 a1)
{
__int64 v1; // x8
float v3; // s0
float v4; // s0
if ( *(_DWORD *)(a1 + 8) )
v1 = *(int *)(a1 + 136);
else
v1 = 0;
if ( *(int *)(a1 + 128) < 2 )
return 4294967165LL;
v3 = *(float *)(a1 + 144);
if ( v3 == 0.0 )
return 0xFFFFFFFFLL;
v4 = (float)((float)(*(float *)(a1 + 140) / v3) * (float)*(int *)(*(_QWORD *)(a1 + 104) + 40 * v1 + 8)) + 0.5;
*(_DWORD *)(a1 + 140) = 0;
*(_DWORD *)(a1 + 144) = 0;
return (unsigned int)(int)v4;
}