//
// sub_10048D170 from 0x10048d170 to 0x10048d230 (192 bytes)
//
// 1 xrefs:
// > sub_10048C2DC @ 0x10048ccd0
//
// 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:05:51 +0000
//
__int64 __fastcall sub_10048D170(_QWORD *a1, __int64 a2)
{
__int64 v4; // x21
int v5; // w8
int v6; // w11
int v7; // w9
int v8; // w8
unsigned int v9; // w9
__int64 v11; // x22
__int64 v12; // x0
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v5 = (int)(*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, v4);
if ( (v4 & 0xFFFFFFFE) == 0x242 )
v6 = 1;
else
v6 = 3;
if ( (unsigned int)(v4 - 485) >= 2 )
v7 = v6;
else
v7 = 2;
if ( v7 >= v5 )
v8 = v5 + 1;
else
v8 = 0;
if ( v8 <= 3 )
v9 = 3;
else
v9 = v8;
if ( (_DWORD)v4 != 482 )
v9 = v8;
if ( v8 < 1 && (_DWORD)v4 == 481 )
v11 = 1;
else
v11 = v9;
v12 = sub_1001AFA70(a1, v4, (float)(int)v11);
sub_10048D230(v12, a2, v11, v4);
return sub_10048D364(a1);
}