//
// sub_10036E8CC from 0x10036e8cc to 0x10036e958 (140 bytes)
//
// 2 xrefs:
// > sub_10036E754 @ 0x10036e808
// > sub_10036E754 @ 0x10036e838
//
// 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_10036E8CC(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 result; // x0
__int64 v7; // x21
__int64 v8; // x22
__int128 v9; // q0
result = a2;
if ( a2 != a3 )
{
v7 = a2 + 16;
do
{
v8 = v7 - 16;
*(_QWORD *)a4 = *(_QWORD *)(v7 - 16);
if ( a4 != v7 - 16 )
sub_100126830(
(__int64 *)(a4 + 8),
*(char **)(v7 - 8),
*(char **)v7,
(__int64)(*(_QWORD *)v7 - *(_QWORD *)(v7 - 8)) >> 4);
v9 = *(_OWORD *)(v7 + 16);
*(_OWORD *)(a4 + 42) = *(_OWORD *)(v7 + 26);
*(_OWORD *)(a4 + 32) = v9;
a4 += 64;
v7 += 64;
}
while ( v8 + 64 != a3 );
return a3;
}
return result;
}