//
// sub_100709B78 from 0x100709b78 to 0x100709c04 (140 bytes)
//
// 18 xrefs:
// > sub_100647718 @ 0x100647894
// > sub_100647718 @ 0x100647a70
// > sub_10064EDE8 @ 0x10064eff0
// > sub_10065A2B4 @ 0x10065a584
// > sub_10065A2B4 @ 0x10065a594
// > sub_10065A2B4 @ 0x10065a6ac
// > sub_10065A2B4 @ 0x10065a708
// > sub_10065A2B4 @ 0x10065a714
// > sub_10065BA8C @ 0x10065bcb0
// > sub_1006641B8 @ 0x1006641d0
// > sub_1006641B8 @ 0x1006641e8
// > sub_1007106EC @ 0x100710708
// > sub_100723FA0 @ 0x1007240b8
// > sub_100723FA0 @ 0x100724110
// > sub_10072417C @ 0x1007244e4
// > sub_10072417C @ 0x100724504
// > sub_10073B17C @ 0x10073b2f8
// > sub_10073FB60 @ 0x10073fb78
//
// 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
//
__int64 __fastcall sub_100709B78(void **__b)
{
unsigned int (__fastcall *v2)(void **); // x8
char *v3; // x0
void **v4; // x20
__int64 v5; // x0
if ( *__b )
{
v2 = *((unsigned int (__fastcall **)(void **))*__b + 5);
if ( v2 && !v2(__b) )
return 0;
v4 = __b + 15;
v3 = (char *)__b[15];
if ( v3 )
sub_1006B0510(v3, *((int *)*__b + 12));
}
else
{
v4 = __b + 15;
}
if ( *v4 )
sub_1006AEDAC(*v4);
v5 = (__int64)__b[1];
if ( v5 )
sub_1006FD22C(v5);
memset(__b, 0, 0xA8u);
return 1;
}