//
// sub_100206F70 from 0x100206f70 to 0x100207036 (198 bytes)
//
// 1 xrefs:
// > sub_100207080 @ 0x100207085
//
// 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_100206F70(_QWORD *a1, __int64 a2, __int64 a3)
{
_OWORD *v5; // rax
_OWORD *v6; // rax
__int64 v7; // r12
__int64 v8; // rdi
__int64 result; // rax
*a1 = &off_1008DBEF0;
v5 = operator new(0x20u);
v5[1] = 0;
*((_QWORD *)v5 + 1) = v5 + 1;
a1[1] = v5;
v6 = operator new(0x20u);
v6[1] = 0;
*((_QWORD *)v6 + 1) = v6 + 1;
a1[2] = v6;
v7 = a2 + 1;
v8 = a2 + 1;
if ( (*(_BYTE *)a2 & 1) != 0 )
v8 = *(_QWORD *)(a2 + 16);
*(_QWORD *)a1[1] = sub_1007C3D20(v8);
if ( (*(_BYTE *)a2 & 1) != 0 )
v7 = *(_QWORD *)(a2 + 16);
result = sub_1007C3D20(v7);
*(_QWORD *)a1[2] = result;
if ( *(_QWORD *)a1[1] && result )
{
result = sub_100207160(v7, a3);
if ( (_BYTE)result )
return sub_100207160(v7, a3);
}
return result;
}