//
// sub_1006FBF2C from 0x1006fbf2c to 0x1006fc01c (240 bytes)
//
// 2 xrefs:
// > sub_1006FBF24 @ 0x1006fbf28
// > sub_1006FC118 @ 0x1006fc144
//
// 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
//
void *__fastcall sub_1006FBF2C(__int64 a1)
{
_BYTE *v2; // x0
void *v3; // x19
void *v4; // x0
__int64 v5; // x0
unsigned int (__fastcall *v6)(void *); // x8
if ( !qword_100A0C850 )
qword_100A0C850 = sub_1006FC528();
v2 = sub_1006AE878(72, (__int64)"dso_lib.c", 106);
v3 = v2;
if ( !v2 )
{
sub_100706FB0(37, 113, 65, "dso_lib.c", 108);
return nullptr;
}
v4 = memset(v2, 0, 0x48u);
v5 = sub_10070460C(v4);
*((_QWORD *)v3 + 1) = v5;
if ( !v5 )
{
sub_100706FB0(37, 113, 65, "dso_lib.c", 115);
goto LABEL_12;
}
if ( !a1 )
a1 = qword_100A0C850;
*(_QWORD *)v3 = a1;
*((_DWORD *)v3 + 4) = 1;
v6 = *(unsigned int (__fastcall **)(void *))(a1 + 64);
if ( v6 && !v6(v3) )
{
sub_10070447C(*((void **)v3 + 1));
LABEL_12:
sub_1006AEDAC(v3);
return nullptr;
}
return v3;
}