//
// sub_10020A2BC from 0x10020a2bc to 0x10020a390 (212 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::addCustomEnterEffect @ 0x1001e27b8
// > GJBaseGameLayer::stopCustomEnterEffect @ 0x1001e2a6c
// > GJBaseGameLayer::controlAreaEffect @ 0x1001ee080
// > GJBaseGameLayer::controlAreaEffectWithID @ 0x1001ee6e4
// > GJBaseGameLayer::addAreaEffect @ 0x1001f3e70
//
// 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_10020A2BC(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // x21
__int64 v6; // x20
__int128 v7; // q0
__int128 v8; // q1
__int128 v9; // q2
__int128 v10; // q0
__int128 v11; // q1
__int128 v12; // q2
__int128 v13; // q0
__int128 v14; // q1
__int128 v15; // q2
v5 = a2;
if ( a2 == a3 )
return a2;
v6 = a3;
do
{
sub_100127128(a4, (_QWORD *)v5);
v7 = *(_OWORD *)(v5 + 24);
v8 = *(_OWORD *)(v5 + 40);
v9 = *(_OWORD *)(v5 + 56);
*(_OWORD *)(a4 + 72) = *(_OWORD *)(v5 + 72);
*(_OWORD *)(a4 + 56) = v9;
*(_OWORD *)(a4 + 40) = v8;
*(_OWORD *)(a4 + 24) = v7;
v10 = *(_OWORD *)(v5 + 88);
v11 = *(_OWORD *)(v5 + 104);
v12 = *(_OWORD *)(v5 + 120);
*(_OWORD *)(a4 + 136) = *(_OWORD *)(v5 + 136);
*(_OWORD *)(a4 + 120) = v12;
*(_OWORD *)(a4 + 104) = v11;
*(_OWORD *)(a4 + 88) = v10;
v13 = *(_OWORD *)(v5 + 152);
v14 = *(_OWORD *)(v5 + 168);
v15 = *(_OWORD *)(v5 + 184);
*(_DWORD *)(a4 + 200) = *(_DWORD *)(v5 + 200);
*(_OWORD *)(a4 + 184) = v15;
*(_OWORD *)(a4 + 168) = v14;
*(_OWORD *)(a4 + 152) = v13;
sub_100017728(a4 + 208, (__n128 *)(v5 + 208));
*(_DWORD *)(a4 + 232) = *(_DWORD *)(v5 + 232);
a4 += 240;
v5 += 240;
}
while ( v5 != v6 );
return v6;
}