//
// sub_A8048 from 0xa8048 to 0xa80e4 (156 bytes)
//
// 1 xrefs:
// > sub_A87A0 @ 0xa87ac
//
// 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 12:14:33 +0000
//
__int64 __fastcall sub_A8048(__int64 a1)
{
__int64 i; // x20
__int64 v3; // x8
__int64 v4; // x8
for ( i = 0; ; ++i )
{
v3 = *(_QWORD *)(a1 + 232);
if ( i >= *(int *)(v3 + 96) )
break;
v4 = *(_QWORD *)(*(_QWORD *)(v3 + 104) + 8 * i);
if ( *(_DWORD *)v4 == 2 )
{
sub_CBE2C(a1, (unsigned int)i, *(_DWORD *)(v4 + 48) != 0);
}
else if ( !*(_DWORD *)v4 )
{
sub_CBD5C(a1, (unsigned int)i, *(float *)(v4 + 56));
}
}
*(_QWORD *)(a1 + 856) = 0;
memset((void *)(a1 + 564), 0, 0x100u);
*(_BYTE *)(a1 + 844) = 1;
return 0;
}