//
// sub_100722480 from 0x100722480 to 0x10072255c (220 bytes)
//
// 3 xrefs:
// > sub_1006F0C1C @ 0x1006f1018
// > sub_1006F1964 @ 0x1006f1ac8
// > sub_1006F1B08 @ 0x1006f1b84
//
// 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:13:05 +0000
//
_QWORD *__fastcall sub_100722480(__int64 a1, __int64 a2, _QWORD *a3)
{
_QWORD *v6; // x19
_QWORD *v7; // x0
void *v8; // x0
_QWORD *v9; // x22
int v10; // w0
__int16 v11; // w2
int v12; // w4
if ( !a3 || (v6 = (_QWORD *)*a3) == nullptr )
{
v7 = sub_100721B84();
v6 = v7;
if ( !v7 )
{
v11 = 65;
v12 = 172;
goto LABEL_13;
}
if ( a3 )
*a3 = v7;
}
v9 = v6 + 1;
v8 = (void *)v6[1];
if ( v8 )
{
sub_1006AEDAC(v8);
*v9 = 0;
}
v10 = sub_10071C2D8(a1, v6 + 1, a2);
*(_DWORD *)v6 = v10;
if ( !v10 )
{
v11 = 112;
v12 = 186;
goto LABEL_13;
}
if ( !*v9 )
{
v11 = 65;
v12 = 190;
LABEL_13:
sub_100706FB0(13, 198, v11, (__int64)"asn_pack.c", v12);
return nullptr;
}
return v6;
}