//
// sub_10070A398 from 0x10070a398 to 0x10070a42c (148 bytes)
//
// 7 xrefs:
// > sub_100661BF4 @ 0x100661c10
// > sub_100662258 @ 0x100662604
// > sub_100662258 @ 0x100662730
// > sub_100662258 @ 0x1006628a4
// > sub_100662B4C @ 0x100662d0c
// > sub_100663158 @ 0x1006631a4
// > sub_100663634 @ 0x100663984
//
// 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:53 +0000
//
void __fastcall sub_10070A398(char *__b)
{
unsigned int (__fastcall *v2)(char *); // x8
char *v3; // x0
void **v4; // x20
__int64 v5; // x0
if ( __b )
{
if ( *(_QWORD *)__b )
{
v2 = *(unsigned int (__fastcall **)(char *))(*(_QWORD *)__b + 40LL);
if ( v2 && !v2(__b) )
{
LABEL_14:
sub_1006AEDAC(__b);
return;
}
v4 = (void **)(__b + 120);
v3 = *((char **)__b + 15);
if ( v3 )
sub_1006B0510(v3, *(int *)(*(_QWORD *)__b + 48LL));
}
else
{
v4 = (void **)(__b + 120);
}
if ( *v4 )
sub_1006AEDAC(*v4);
v5 = *((_QWORD *)__b + 1);
if ( v5 )
sub_1006FD22C(v5);
memset(__b, 0, 0xA8u);
goto LABEL_14;
}
}