//
// sub_100588634 from 0x100588634 to 0x1005886fc (200 bytes)
//
// 1 xrefs:
// > sub_10058C338 @ 0x10058eb40
//
// 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:08:33 +0000
//
__int64 __fastcall sub_100588634(__int64 a1)
{
int v2; // w8
__int64 v3; // x9
int v4; // w10
__int64 v5; // x11
*(_DWORD *)(*(_QWORD *)(a1 + 8) + 24LL) = 0;
sub_1005D8DAC();
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_100589F68(a1);
for ( ; !*(_BYTE *)(a1 + 3049); *(_DWORD *)(*(_QWORD *)(a1 + 8) + 24LL) += *(_DWORD *)(a1 + 2132) )
sub_100588780(a1, 0);
LABEL_6:
sub_1005D8FD8(a1);
return 0;
}