//
// sub_1006B0580 from 0x1006b0580 to 0x1006b05e4 (100 bytes)
//
// 2 xrefs:
// > sub_1006B0678 @ 0x1006b06b0
// > sub_1006B0764 @ 0x1006b0798
//
// 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
//
unsigned __int64 __fastcall sub_1006B0580(unsigned int *a1)
{
int v2; // w0
__int64 v3; // x1
__int64 (__fastcall **v4)(_QWORD); // x0
__int64 v5; // x0
if ( qword_100A0C800 && (v2 = sub_100704BB4(qword_100A0C800), v3 = *a1, v2 > (int)v3) )
{
v4 = (__int64 (__fastcall **)(_QWORD))sub_100704BC8(qword_100A0C800, v3);
v5 = (*v4)(*((_QWORD *)a1 + 1));
}
else
{
v5 = sub_100704DCC(*((_QWORD *)a1 + 1));
}
return (int)*a1 ^ (unsigned __int64)v5;
}