//
// sub_1004899A0 from 0x1004899a0 to 0x100489a64 (196 bytes)
//
// 0 xrefs:
//
// 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_1004899A0(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x20
__int64 v4; // x8
v2 = *(_QWORD *)(a1 + 232);
if ( *(int *)(v2 + 96) >= 1 )
{
v3 = 0;
do
{
v4 = *(_QWORD *)(*(_QWORD *)(v2 + 104) + 8 * v3);
if ( *(_DWORD *)v4 == 2 )
{
sub_1004A7AC8(a1, v3, *(_DWORD *)(v4 + 48) != 0);
}
else if ( !*(_DWORD *)v4 )
{
sub_1004A79E0(a1, v3, *(float *)(v4 + 56));
}
++v3;
v2 = *(_QWORD *)(a1 + 232);
}
while ( v3 < *(int *)(v2 + 96) );
}
*(_QWORD *)(a1 + 848) = 0;
*(_OWORD *)(a1 + 556) = 0u;
*(_OWORD *)(a1 + 572) = 0u;
*(_OWORD *)(a1 + 588) = 0u;
*(_OWORD *)(a1 + 604) = 0u;
*(_OWORD *)(a1 + 620) = 0u;
*(_OWORD *)(a1 + 636) = 0u;
*(_OWORD *)(a1 + 652) = 0u;
*(_OWORD *)(a1 + 668) = 0u;
*(_OWORD *)(a1 + 684) = 0u;
*(_OWORD *)(a1 + 700) = 0u;
*(_OWORD *)(a1 + 716) = 0u;
*(_OWORD *)(a1 + 732) = 0u;
*(_OWORD *)(a1 + 748) = 0u;
*(_OWORD *)(a1 + 764) = 0u;
*(_OWORD *)(a1 + 780) = 0u;
*(_OWORD *)(a1 + 796) = 0u;
*(_BYTE *)(a1 + 836) = 1;
return 0;
}