//
// sub_100716340 from 0x100716340 to 0x1007163b4 (116 bytes)
//
// 11 xrefs:
// > sub_1006E3A3C @ 0x1006e3b08
// > sub_1006E3A3C @ 0x1006e3fc4
// > sub_1006E3A3C @ 0x1006e4190
// > sub_1006F5A88 @ 0x1006f5b5c
// > sub_1006F5DB4 @ 0x1006f5f5c
// > sub_1006F979C @ 0x1006f9878
// > sub_1006F9B40 @ 0x1006f9c04
// > sub_1006F9FD8 @ 0x1006fa2a8
// > sub_10072D068 @ 0x10072d084
// > sub_10072D22C @ 0x10072d254
// > sub_10074E364 @ 0x10074e45c
//
// 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:12:59 +0000
//
__int64 __fastcall sub_100716340(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x19
v3 = sub_1006D1318(*(unsigned __int8 **)(a1 + 8), *(_DWORD *)a1, a2);
v4 = v3;
if ( v3 )
{
if ( *(_DWORD *)(a1 + 4) == 258 )
sub_1006D184C(v3, 1);
}
else
{
sub_100706FB0(13, 119, 105, (__int64)"a_int.c", 456);
}
return v4;
}