//
// sub_1004624CC from 0x1004624cc to 0x100462594 (200 bytes)
//
// 1 xrefs:
// > sub_1004661D0 @ 0x1004689d8
//
// 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_1004624CC(__int64 a1)
{
int v2; // w8
__int64 v3; // x9
int v4; // w10
__int64 v5; // x11
*(_DWORD *)(*(_QWORD *)(a1 + 8) + 24LL) = 0;
sub_1004B2C44();
v2 = *(_DWORD *)(a1 + 2292);
v3 = *(int *)(a1 + 3068);
v4 = v3 + 1;
while ( 1 )
{
v5 = *(unsigned __int8 *)(a1 + v3 + 656);
if ( v2 > (int)v5 )
break;
*(_DWORD *)(a1 + 3068) = v4;
if ( v3 <= 253 )
{
++v3;
++v4;
if ( v3 < *(int *)(a1 + 2284) )
continue;
}
*(_WORD *)(a1 + 3048) = 256;
goto LABEL_6;
}
*(_QWORD *)(a1 + 17440) = *(_QWORD *)(*(_QWORD *)(a1 + 632) + 16 * v5 + 8);
sub_100463E00(a1);
for ( ; !*(_BYTE *)(a1 + 3049); *(_DWORD *)(*(_QWORD *)(a1 + 8) + 24LL) += *(_DWORD *)(a1 + 2132) )
sub_100462618(a1, 0);
LABEL_6:
sub_1004B2E70(a1);
return 0;
}