//
// sub_100403054 from 0x100403054 to 0x1004030cc (120 bytes)
//
// 2 xrefs:
// > sub_10040248C @ 0x1004025ec
// > sub_100402770 @ 0x100402b88
//
// 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:39 +0000
//
__int64 __fastcall sub_100403054(__int64 result, __int64 a2, float a3)
{
__int64 v5; // x19
__int64 v6; // x21
v5 = result;
v6 = result + 12288;
if ( *(_BYTE *)(result + 13169) != 1 || (*(_BYTE *)(a2 + 1259) & 1) == 0 )
{
result = sub_10040322C(result);
*(_QWORD *)result = a2;
*(float *)(result + 8) = a3;
if ( *(_QWORD *)(v5 + 14856) - *(_QWORD *)(v5 + 14848) >= 9u )
*(_BYTE *)(v6 + 1897) = 1;
}
return result;
}