//
// sub_1006E1994 from 0x1006e1994 to 0x1006e1a64 (208 bytes)
//
// 3 xrefs:
// > sub_1006E3150 @ 0x1006e3248
// > sub_1006E3A3C @ 0x1006e3edc
// > sub_10074B224 @ 0x10074b348
//
// 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:34 +0000
//
char *sub_1006E1994()
{
void *v0; // x0
char *v1; // x0
char *v2; // x19
__int64 v3; // x0
void *v4; // x0
char *v5; // x0
v0 = sub_1006E1660();
v1 = (char *)sub_1006DD188((__int64)v0);
v2 = v1;
if ( !v1 )
return nullptr;
if ( !(unsigned int)sub_1006DDEA0((__int64)v1) )
{
v3 = sub_1007075D4();
if ( (v3 & 0xFF000000) != 0x10000000 || (unsigned int)(v3 & 0xFFF) - 135 >= 2 )
goto LABEL_7;
sub_1007072C0(v3);
sub_1006DD3E0(v2);
v4 = sub_1006E11DC();
v5 = (char *)sub_1006DD188((__int64)v4);
v2 = v5;
if ( !v5 )
return nullptr;
if ( !(unsigned int)sub_1006DDEA0((__int64)v5) )
{
LABEL_7:
sub_1006DD3E0(v2);
return nullptr;
}
}
return v2;
}