//
// sub_1006FC428 from 0x1006fc428 to 0x1006fc51c (244 bytes)
//
// 1 xrefs:
// > sub_1006FF7D8 @ 0x1006ffb48
//
// 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:45 +0000
//
_BYTE *__fastcall sub_1006FC428(__int64 a1, char *__s)
{
char *v2; // x19
__int64 (*v3)(void); // x8
_BYTE *v4; // x20
int v5; // w0
__int64 v6; // x2
__int64 v7; // x4
v2 = __s;
if ( !a1 )
{
v6 = 67;
v7 = 391;
goto LABEL_13;
}
if ( !__s )
{
v2 = *(char **)(a1 + 56);
if ( !v2 )
{
v6 = 111;
v7 = 397;
goto LABEL_13;
}
}
if ( (*(_BYTE *)(a1 + 20) & 1) != 0
|| (v3 = *(__int64 (**)(void))(a1 + 40)) == nullptr && (v3 = *(__int64 (**)(void))(*(_QWORD *)a1 + 48LL)) == nullptr
|| (v4 = (_BYTE *)v3()) == nullptr )
{
v5 = strlen(v2);
v4 = sub_1006AE878((unsigned int)(v5 + 1), (__int64)"dso_lib.c", 407);
if ( v4 )
{
strlen(v2);
sub_1007004A8((int)v4, v2);
return v4;
}
v6 = 65;
v7 = 409;
LABEL_13:
sub_100706FB0(37, 126, v6, "dso_lib.c", v7);
return nullptr;
}
return v4;
}