//
// sub_1006B8A38 from 0x1006b8a38 to 0x1006b8ac4 (140 bytes)
//
// 1 xrefs:
// > sub_10070F1B8 @ 0x10070f1c4
//
// 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:11:59 +0000
//
__int64 __fastcall sub_1006B8A38(_QWORD *a1, unsigned int *a2)
{
__int64 v4; // x8
unsigned int v5; // w9
bool v6; // zf
char *v7; // x9
v4 = *a2;
v5 = a2[7];
if ( (_DWORD)v4 )
v6 = 1;
else
v6 = v5 == 2;
if ( v6 )
{
if ( v5 == 2 )
{
v7 = (char *)a2 + v4;
LODWORD(v4) = v4 + 1;
v7[4] = 0x80;
}
bzero((char *)a2 + (unsigned int)v4 + 4, (unsigned int)(8 - v4));
sub_1006B8870((__int64)a2, (__int64)(a2 + 1), 8u);
}
*a1 = *(_QWORD *)(a2 + 3);
a1[1] = *(_QWORD *)(a2 + 5);
return 1;
}