//
// sub_1006B0868 from 0x1006b0868 to 0x1006b08dc (116 bytes)
//
// 3 xrefs:
// > sub_10070E1D0 @ 0x10070e1dc
// > sub_10070E1D0 @ 0x10070e1e4
// > sub_10070E1D0 @ 0x10070e1ec
//
// 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:49 +0000
//
__int64 __fastcall sub_1006B0868(int a1)
{
__int64 result; // x0
__int64 v3; // x21
result = qword_100A0C7F8;
if ( qword_100A0C7F8 )
{
dword_100A0C7F0 = a1;
v3 = *(_QWORD *)(qword_100A0C7F8 + 48);
*(_QWORD *)(qword_100A0C7F8 + 48) = 0;
sub_100705418(result, sub_1006B08DC);
result = qword_100A0C7F8;
if ( a1 < 0 )
{
sub_100704E34(qword_100A0C7F8);
result = sub_100704B38((void *)qword_100A0C800);
qword_100A0C7F8 = 0;
qword_100A0C800 = 0;
}
else
{
*(_QWORD *)(qword_100A0C7F8 + 48) = v3;
}
}
return result;
}