//
// sub_A8048 from 0xa8048 to 0xa80e4 (156 bytes)
//
// 1 xrefs:
// > sub_A87A0 @ 0xa87ac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}