//
// sub_10074682C from 0x10074682c to 0x100746950 (292 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009f0b30
// > ??> @ 0x1009f0b48
//
// 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:23 +0000
//
__int64 __fastcall sub_10074682C(__int64 a1, int a2)
{
int v2; // w8
int v4; // w0
int v5; // w0
__int16 v6; // w2
int v7; // w4
__int64 v8; // x1
__int64 v9; // x2
__int64 v10; // x3
__int64 v11; // x4
__int64 v12; // x5
__int64 v13; // x6
__int64 v14; // x7
_QWORD v15[2]; // [xsp+8h] [xbp-438h] BYREF
char v16; // [xsp+18h] [xbp-428h] BYREF
v15[0] = &v16;
v15[1] = 1024;
if ( qword_100A0F600 )
{
v2 = off_100A0F628(qword_100A0F600, a1, a2, v15);
if ( (v2 & 0x80000000) == 0 )
return 1;
v5 = dword_100A0F5F4;
if ( v2 == -2 )
{
if ( !dword_100A0F5F4 )
{
v5 = sub_100707AE4();
dword_100A0F5F4 = v5;
}
v6 = 112;
v7 = 1129;
}
else
{
if ( !dword_100A0F5F4 )
{
v5 = sub_100707AE4();
dword_100A0F5F4 = v5;
}
v6 = 111;
v7 = 1131;
}
sub_100706FB0(v5, 108, v6, (__int64)"e_chil.c", v7);
sub_100707B58(1, v8, v9, v10, v11, v12, v13, v14, v15[0]);
}
else
{
v4 = dword_100A0F5F4;
if ( !dword_100A0F5F4 )
{
v4 = sub_100707AE4();
dword_100A0F5F4 = v4;
}
sub_100706FB0(v4, 108, 106, (__int64)"e_chil.c", 1118);
}
return 0;
}