//
// sub_100644BF4 from 0x100644bf4 to 0x100644cc4 (208 bytes)
//
// 2 xrefs:
// > sub_1006430D0 @ 0x1006439c4
// > sub_10065DE8C @ 0x10065e6f0
//
// 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:43 +0000
//
__int64 __fastcall sub_100644BF4(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x9
__int64 v5; // x4
if ( *(_DWORD *)(a1 + 72) != 8512 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL) + 128LL))(a1);
v2 = sub_1006663D4(a1);
if ( v2
|| (v3 = *(_QWORD *)(*(_QWORD *)(a1 + 128) + 936LL), *(_QWORD *)(v3 + 32) == 32)
&& (*(_BYTE *)(v3 + 24) & 0x10) == 0 )
{
if ( sub_100652928(a1, v2) )
{
*(_DWORD *)(a1 + 72) = 8513;
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL) + 128LL))(a1);
}
v5 = 3334;
}
else
{
v5 = 3327;
}
sub_100706FB0(20, 154, 68, "s3_srvr.c", v5);
*(_DWORD *)(a1 + 72) = 5;
return 0;
}