//
// sub_10058F230 from 0x10058f230 to 0x10058f2a0 (112 bytes)
//
// 1 xrefs:
// > sub_10058F170 @ 0x10058f1c0
//
// 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:43 +0000
//
__int64 __fastcall sub_10058F230(__int64 a1, __int64 a2, unsigned int a3)
{
unsigned int v3; // w8
int v6; // s8
v3 = *(_DWORD *)(a1 + 15296);
if ( v3 != a3 )
{
if ( v3 <= a3 )
goto LABEL_6;
v6 = *(_DWORD *)(a1 + 15352);
sub_100591C08(a1, 0);
*(_DWORD *)(a1 + 15352) = v6;
while ( 1 )
{
v3 = *(_DWORD *)(a1 + 15296);
LABEL_6:
if ( v3 >= a3 )
break;
sub_100591AD0(a1, 0, 0);
}
}
return 0;
}