//
// sub_10020B424 from 0x10020b424 to 0x10020b4d4 (176 bytes)
//
// 1 xrefs:
// > sub_10020AA24 @ 0x10020b0bc
//
// 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_10020B424(__int64 result, _QWORD *a2, __int64 (__fastcall **a3)(_QWORD *, _QWORD))
{
__int64 v3; // x29
__int64 v4; // x30
_QWORD *v6; // x21
_QWORD *v7; // x8
__int64 v9; // x23
_QWORD *v10; // x1
__int64 v11; // x22
_QWORD v12[9]; // [xsp+8h] [xbp-48h] BYREF
if ( (_QWORD *)result != a2 )
{
v12[7] = v3;
v12[8] = v4;
v6 = (_QWORD *)result;
v7 = (_QWORD *)(result + 8);
if ( (_QWORD *)(result + 8) != a2 )
{
v9 = result - 8;
do
{
v10 = v6;
v6 = v7;
result = (*a3)(v7, v10);
if ( (_DWORD)result )
{
v12[0] = *v6;
v11 = v9;
do
{
*(_QWORD *)(v11 + 16) = *(_QWORD *)(v11 + 8);
result = (*a3)(v12, v11);
v11 -= 8;
}
while ( (result & 1) != 0 );
*(_QWORD *)(v11 + 16) = v12[0];
}
v7 = v6 + 1;
v9 += 8;
}
while ( v6 + 1 != a2 );
}
}
return result;
}