//
// sub_100675ACC from 0x100675acc to 0x100675b50 (132 bytes)
//
// 4 xrefs:
// > sub_100693C98 @ 0x100693f14
// > sub_1006A172C @ 0x1006a1740
// > ??> @ 0x1009b0fb8
// > ??> @ 0x1009b1038
//
// 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:11:11 +0000
//
__int64 __fastcall sub_100675ACC(__int64 a1, _BYTE *a2)
{
__int64 result; // x0
__int64 v5; // x8
*(_BYTE *)(a1 + 737) = 0;
result = sub_1006A2218();
if ( !(_DWORD)result )
{
if ( *(_DWORD *)(a1 + 1592) == 1 )
{
return 0;
}
else if ( (*(_BYTE *)(*(_QWORD *)(a1 + 808) + 124LL) & 1) != 0 )
{
v5 = sub_1006AD28C(a1, 0, a2);
result = 0;
if ( (_DWORD)v5 )
{
*(_BYTE *)(a1 + 737) = 1;
return v5;
}
}
else
{
*a2 = 1;
return 0;
}
}
return result;
}