//
// sub_1005BB4E8 from 0x1005bb4e8 to 0x1005bb54c (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009da160
//
// 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:09:16 +0000
//
__int64 __fastcall sub_1005BB4E8(__int64 *a1, int a2, float a3)
{
__int64 v3; // x8
v3 = *a1;
if ( a2 == 2 )
{
*(float *)(v3 + 1096) = a3;
return 0;
}
if ( a2 == 1 )
{
*(float *)(v3 + 1092) = a3;
return 0;
}
if ( a2 )
return 0;
if ( (float)((float)((float)*(int *)(*(_QWORD *)(v3 + 168) + 1744LL) * 0.5) + -100.0) <= a3 )
a3 = (float)((float)*(int *)(*(_QWORD *)(v3 + 168) + 1744LL) * 0.5) + -100.0;
*(float *)(v3 + 1088) = a3;
return 0;
}