//
// sub_10074E758 from 0x10074e758 to 0x10074e7f8 (160 bytes)
//
// 1 xrefs:
// > sub_10074E1AC @ 0x10074e2d0
//
// 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:29 +0000
//
__int64 __fastcall sub_10074E758(__int64 a1, void **a2)
{
__int64 v3; // x20
_BYTE *v4; // x0
char *v5; // x1
char *v6; // x21
unsigned int v7; // w0
char **v8; // x0
void *v10; // [xsp+8h] [xbp-28h] BYREF
v3 = sub_10070F9B0(a1);
v4 = sub_1006D0E9C();
v10 = v4;
v5 = off_1009F20E8;
if ( off_1009F20E8 )
{
v6 = (char *)&unk_1009F20D0;
while ( 1 )
{
sub_1006D3B20((__int64 *)&v10, v5);
if ( !(unsigned int)sub_1006D15C8((__int64)v10, *(_QWORD *)(v3 + 32)) )
break;
v5 = *((char **)v6 + 7);
v6 += 32;
if ( !v5 )
{
v4 = v10;
goto LABEL_6;
}
}
sub_1006D0E38(v10);
v7 = *(_DWORD *)v6;
}
else
{
LABEL_6:
sub_1006D0E38(v4);
v7 = 0;
}
v8 = sub_1006B0D04(v7);
return sub_100713D78((__int64)v8, a2);
}