//
// sub_1007083A4 from 0x1007083a4 to 0x10070849c (248 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009beed0
//
// 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:52 +0000
//
__int64 __fastcall sub_1007083A4(__int64 a1)
{
__int64 v2; // x8
char **v3; // x20
__int64 v4; // x19
char **v6; // [xsp+8h] [xbp-28h] BYREF
v2 = qword_100A0CD78;
if ( !qword_100A0CD78 )
{
sub_1006AE2F8(9, 1, (__int64)"err.c", 295);
if ( !qword_100A0CD78 )
qword_100A0CD78 = (__int64)off_1009BEE90;
sub_1006AE2F8(10, 1, (__int64)"err.c", 298);
v2 = qword_100A0CD78;
}
v3 = (char **)(*(__int64 (__fastcall **)(__int64))(v2 + 40))(1);
v6 = v3;
if ( !v3 )
return 0;
sub_1006AE2F8(9, 1, (__int64)"err.c", 517);
v4 = sub_100704EB0(v3, a1);
sub_1006AE2F8(10, 1, (__int64)"err.c", 519);
(*(void (__fastcall **)(char ***))(qword_100A0CD78 + 48))(&v6);
return v4;
}