//
// sub_10020950C from 0x10020950c to 0x100209574 (104 bytes)
//
// 1 xrefs:
// > sub_1001DB07C @ 0x1001db370
//
// 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
//
void __fastcall sub_10020950C(__int64 a1, _QWORD *a2)
{
_QWORD *v4; // x21
_QWORD *v5; // x8
__int64 v6; // x9
__int64 v7; // x10
v4 = (_QWORD *)(a1 + 8);
sub_100124AE4(a1, *(_QWORD **)(a1 + 8));
*(_QWORD *)a1 = *a2;
v5 = a2 + 1;
v6 = a2[1];
*v4 = v6;
v7 = a2[2];
*(_QWORD *)(a1 + 16) = v7;
if ( v7 )
{
*(_QWORD *)(v6 + 16) = v4;
*a2 = v5;
*v5 = 0;
a2[2] = 0;
}
else
{
*(_QWORD *)a1 = v4;
}
}