//
// sub_10071A004 from 0x10071a004 to 0x10071a0b0 (172 bytes)
//
// 1 xrefs:
// > sub_10073BD80 @ 0x10073bef4
//
// 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:01 +0000
//
__int64 __fastcall sub_10071A004(__int64 a1, char *__s)
{
__int64 v4; // x22
__int64 v5; // x0
__int64 v7; // x8
if ( __s )
{
if ( a1
&& ((v4 = *(_QWORD *)(a1 + 176)) != 0 || (v4 = sub_10071B748(&unk_1009C20F8), (*(_QWORD *)(a1 + 176) = v4) != 0))
&& ((v5 = *(_QWORD *)(v4 + 16)) != 0 || (v5 = sub_10071F0A0(), (*(_QWORD *)(v4 + 16) = v5) != 0)) )
{
return sub_1007219B8(v5, __s);
}
else
{
return 0;
}
}
else
{
if ( a1 )
{
v7 = *(_QWORD *)(a1 + 176);
if ( v7 )
{
if ( *(_QWORD *)(v7 + 16) )
{
sub_10071F0AC();
*(_QWORD *)(*(_QWORD *)(a1 + 176) + 16LL) = 0;
}
}
}
return 1;
}
}