//
// sub_1005AE764 from 0x1005ae764 to 0x1005ae7ec (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d93e8
//
// 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:09 +0000
//
__int64 __fastcall sub_1005AE764(_QWORD *a1, int a2, _DWORD *a3, __int64 a4, int a5, int a6, int a7, int a8)
{
_DWORD *v8; // x8
double v10; // [xsp+0h] [xbp-10h]
v8 = (_DWORD *)(*a1 + 33400LL);
switch ( a2 )
{
case 2:
*a3 = *v8;
if ( !a4 )
return 0;
goto LABEL_9;
case 1:
v8 = (_DWORD *)(*a1 + 33408LL);
*a3 = *v8;
if ( !a4 )
return 0;
LABEL_9:
v10 = *(float *)v8;
sub_1005ED57C(a4, 0x20u, (int)"%.02f", a4, a5, a6, a7, a8, SLOBYTE(v10));
return 0;
case 0:
v8 = (_DWORD *)(*a1 + 33404LL);
*a3 = *v8;
if ( a4 )
goto LABEL_9;
break;
}
return 0;
}