//
// sub_10070DF48 from 0x10070df48 to 0x10070dfcc (132 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009c0870
// > ??> @ 0x1009c08c8
// > ??> @ 0x1009c0920
//
// 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:55 +0000
//
__int64 __fastcall sub_10070DF48(__int64 a1, __int64 a2, unsigned __int64 a3)
{
__int64 v5; // x21
if ( a2 | a3 )
{
v5 = *(_QWORD *)(a1 + 120);
if ( a2 )
{
if ( *(_DWORD *)(a1 + 16) )
sub_1006C0F18();
else
sub_1006C0F1C();
if ( !a3 )
{
*(_QWORD *)(v5 + 248) = 0;
return 1;
}
}
else if ( !a3 )
{
return 1;
}
*(_QWORD *)(a1 + 40) = *(_QWORD *)a3;
*(_QWORD *)(v5 + 248) = a1 + 40;
}
return 1;
}