//
// sub_1006070C4 from 0x1006070c4 to 0x100607174 (176 bytes)
//
// 3 xrefs:
// > sub_100605DF4 @ 0x100605e30
// > sub_10060E3D4 @ 0x10060e3fc
// > sub_10060E3D4 @ 0x10060e410
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1006070C4(char *a1, __int64 a2, void ***a3)
{
__int64 v5; // x0
_BYTE *v6; // x20
char *v7; // x22
__int64 v8; // x19
if ( !a2 )
return 1;
v5 = sub_1005F01D8(a2, 0);
v6 = (_BYTE *)v5;
if ( v5 && (v7 = sub_1005AD588(v5)) != nullptr )
{
sub_1005AACD0(v6);
v8 = sub_100606CE4(a1, v7, a3);
sub_100588C44(v7);
return v8;
}
else
{
sub_1005E0E48(34, 120, 65, (__int64)"v3_utl.c", 170);
sub_1005AACD0(v6);
return 0;
}
}