//
// sub_10020A5DC from 0x10020a5dc to 0x10020a714 (312 bytes)
//
// 9 xrefs:
// > sub_100208DB4 @ 0x100208f98
// > sub_100208DB4 @ 0x10020904c
// > sub_100208DB4 @ 0x1002090b0
// > sub_100208DB4 @ 0x1002090c4
// > sub_100208DB4 @ 0x100209114
// > sub_100208DB4 @ 0x100209128
// > sub_10020952C @ 0x100209908
// > sub_10020952C @ 0x10020992c
// > sub_10020952C @ 0x100209950
//
// 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:00:59 +0000
//
__int64 __fastcall sub_10020A5DC(__int64 a1, __int64 a2, unsigned __int64 *a3)
{
__int64 v6; // x22
__int64 v7; // x23
__int64 v8; // x24
__int64 v9; // x25
__int64 v10; // x26
__int64 v11; // x27
unsigned __int64 v12; // x8
__int64 result; // x0
unsigned __int64 v14; // x22
unsigned int v15; // [xsp+Ch] [xbp-54h] BYREF
v15 = 0;
if ( (unsigned int)sub_10020A78C(a1, a2, &v15)
|| (v6 = (int)v15, (unsigned int)sub_10020A78C(a1, a2, &v15))
|| (v7 = (int)v15, (unsigned int)sub_10020A78C(a1, a2, &v15))
|| (v8 = (int)v15, (unsigned int)sub_10020A78C(a1, a2, &v15))
|| (v9 = (int)v15, (unsigned int)sub_10020A78C(a1, a2, &v15))
|| (v10 = (int)v15, (unsigned int)sub_10020A78C(a1, a2, &v15))
|| (v11 = v15, (unsigned int)sub_10020A78C(a1, a2, &v15)) )
{
v12 = 0;
result = 0xFFFFFFFFLL;
}
else
{
v14 = v6 | (v7 << 8) | (v8 << 16) | (v9 << 24) | (v10 << 32) | (v11 << 40) | ((unsigned __int64)v15 << 48);
result = sub_10020A78C(a1, a2, &v15);
v12 = v14 | ((unsigned __int64)v15 << 56);
if ( (_DWORD)result )
v12 = 0;
}
*a3 = v12;
return result;
}