//
// sub_10052F20C from 0x10052f20c to 0x10052f2a0 (148 bytes)
//
// 2 xrefs:
// > sub_10052F078 @ 0x10052f138
// > sub_10052F078 @ 0x10052f17c
//
// 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:07:19 +0000
//
__int64 __fastcall sub_10052F20C(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v6; // x21
__int128 v7; // q0
__int16 v8; // w8
__int64 v9; // x8
__int64 v10; // x8
if ( a2 != a3 )
{
v6 = a2 + 28;
do
{
v7 = *(_OWORD *)(v6 - 28);
*(_OWORD *)(a4 + 10) = *(_OWORD *)(v6 - 18);
*(_OWORD *)a4 = v7;
sub_1000262F4((_QWORD *)(a4 + 28), (double *)v6);
v8 = *(_WORD *)(v6 + 8);
*(_BYTE *)(a4 + 38) = *(_BYTE *)(v6 + 10);
*(_WORD *)(a4 + 36) = v8;
sub_1000262F4((_QWORD *)(a4 + 40), (double *)(v6 + 12));
v9 = *(_QWORD *)(v6 + 20);
*(_WORD *)(a4 + 56) = *(_WORD *)(v6 + 28);
*(_QWORD *)(a4 + 48) = v9;
a4 += 60;
v10 = v6 + 32;
v6 += 60;
}
while ( v10 != a3 );
}
return a4;
}