//
// sub_100716598 from 0x100716598 to 0x100716630 (152 bytes)
//
// 3 xrefs:
// > sub_1006F0468 @ 0x1006f0478
// > sub_10071949C @ 0x1007194ac
// > sub_1007199B0 @ 0x1007199c0
//
// 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:00 +0000
//
__int64 __fastcall sub_100716598(__int64 a1, __int64 a2)
{
__int64 v3; // x20
int v4; // w0
void *v6; // [xsp+0h] [xbp-20h] BYREF
void *v7; // [xsp+8h] [xbp-18h] BYREF
v3 = 0;
v7 = nullptr;
if ( a2 )
{
v4 = sub_10071C2D8(a2, &v7, a1);
if ( v7 )
{
v6 = v7;
v3 = sub_10071CF9C(0, &v6, v4, a1);
sub_1006AEDAC(v7);
}
else
{
sub_100706FB0(13, 191, 65, (__int64)"a_dup.c", 110);
return 0;
}
}
return v3;
}