//
// sub_100612444 from 0x100612444 to 0x10061253c (248 bytes)
//
// 0 xrefs:
//
// 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:10:10 +0000
//
__int64 __fastcall sub_100612444(__int64 a1, __int64 a2, int a3)
{
char v6; // w24
__int64 *v7; // x22
__int64 v8; // x23
__int64 v9; // x26
__int64 v10; // x27
__int64 result; // x0
if ( !*(_QWORD *)(a2 + 104) )
return 4294967165LL;
v6 = 0;
v7 = (__int64 *)(a2 + 528);
v8 = a2 + 648;
while ( *(_DWORD *)(a2 + 8) )
{
if ( *(int *)(a2 + 128) >= 3 )
{
sub_100552D14(a1, v7);
sub_100552CB4(a1, v8);
*(_DWORD *)(a2 + 128) = 2;
}
if ( *(int *)(a2 + 64) < 1 )
{
LABEL_13:
result = 0;
if ( (v6 & 1) == 0 )
return result;
return 4294967165LL;
}
v9 = 0;
v10 = 0;
while ( !(unsigned int)sub_100611F24(*(_QWORD *)(a2 + 104) + v9, a3) )
{
++v10;
v9 += 40;
if ( v10 >= *(int *)(a2 + 64) )
goto LABEL_13;
}
a3 = 0;
v6 = 1;
if ( !*(_QWORD *)(a2 + 104) )
return 4294967165LL;
}
result = 4294967165LL;
if ( (v6 & 1) != 0 )
return 4294967165LL;
return result;
}