//
// sub_10040E10C from 0x10040e10c to 0x10040e168 (92 bytes)
//
// 1 xrefs:
// > sub_1004E6A64 @ 0x1004e6ac0
//
// 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:04:47 +0000
//
__int64 *__fastcall sub_10040E10C(__int64 a1, int a2)
{
unsigned __int8 v2; // w8
__int64 *v3; // x0
__int64 v5; // [xsp+0h] [xbp-10h]
int v6; // [xsp+Ch] [xbp-4h] BYREF
v6 = a2;
v2 = atomic_load((unsigned __int8 *)&byte_1009F7280);
if ( (v2 & 1) == 0 )
{
v5 = a1;
sub_100755628();
a1 = v5;
}
v3 = sub_100019268((_QWORD *)(a1 + 544), &v6);
if ( v3 )
return v3 + 3;
else
return &qword_1009F7288;
}