//
// GJBaseGameLayer::claimMoveAction from 0x59456c to 0x594648 (220 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processRotationActions @ 0x5a3338
// > GJBaseGameLayer::processTransformActions @ 0x5a3960
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:08 +0000
//
GJBaseGameLayer *__fastcall GJBaseGameLayer::claimMoveAction(GJBaseGameLayer *this, int a2, unsigned int a3, int a4)
{
int v5; // r4
unsigned int v7; // r5
unsigned int v8; // r6
int v9; // r11
_DWORD *v10; // r3
_DWORD *i; // r4
unsigned int v12; // r0
int v13; // r1
int v14; // r3
double v15; // d6
int *v16; // r4
double v17; // d7
int *v18; // r3
float v19; // s12
float v20; // s14
int v21; // t1
v5 = *(_DWORD *)(a2 + 1524);
v7 = *(_DWORD *)(v5 + 800);
if ( v7 )
{
v8 = v7 - 1;
v9 = ((v7 - 1) & v7) != 0 ? a3 % v7 : a3 & v8;
v10 = *(_DWORD **)(*(_DWORD *)(v5 + 796) + 4 * v9);
if ( v10 )
{
for ( i = (_DWORD *)*v10; i; i = (_DWORD *)*i )
{
v12 = i[1];
v13 = ((v7 - 1) & v7) != 0 ? v12 % v7 : v8 & v12;
if ( v13 != v9 )
break;
if ( i[2] == a3 )
{
v14 = i[3];
if ( v14 && !*(_BYTE *)(v14 + 204) && !*(_BYTE *)(v14 + 205) )
{
*(_BYTE *)(v14 + 204) = 1;
if ( a4 )
{
v19 = *(double *)(v14 + 144);
v20 = *(double *)(v14 + 152);
}
else
{
v15 = *(double *)(v14 + 56);
v16 = *(int **)(v14 + 212);
v17 = *(double *)(v14 + 64);
v18 = *(int **)(v14 + 208);
v19 = v15;
v20 = v17;
while ( v18 != v16 )
{
v21 = *v18++;
*(_QWORD *)(v21 + 352) = 0;
*(_QWORD *)(v21 + 360) = 0;
}
}
goto LABEL_23;
}
break;
}
}
}
}
v20 = 0.0;
v19 = 0.0;
LABEL_23:
cocos2d::CCPoint::CCPoint(this, v19, v20);
return this;
}