//
// GJBaseGameLayer::claimMoveAction from 0x9a62b0 to 0x9a63f0 (320 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::processRotationActions @ 0x9bfe9c
// > GJBaseGameLayer::processTransformActions @ 0x9c078c
// > ??> @ 0xe0a58
//
// 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 12:58:10 +0000
//
cocos2d::CCPoint *__usercall GJBaseGameLayer::claimMoveAction@(
GJBaseGameLayer *this@,
int a2@,
char a3@,
cocos2d::CCPoint *a4@)
{
__int64 v4; // x0
unsigned __int64 v5; // x5
unsigned __int64 v6; // x9
unsigned __int64 v7; // x6
__int64 *v8; // x0
unsigned __int64 v9; // x3
unsigned __int64 v10; // x3
float i; // s1
float v12; // s0
__int64 v14; // x1
__int64 *v15; // x2
__int64 *v16; // x0
__int64 *v17; // x0
__int64 v18; // t1
__int64 v19; // t1
float v20; // s0
float v21; // s1
v4 = *((_QWORD *)this + 269);
v5 = *(_QWORD *)(v4 + 1392);
if ( v5 )
{
v6 = v5 - 1;
v7 = ((v5 - 1) & v5) != 0 ? a2 % v5 : a2 & v6;
v8 = *(__int64 **)(*(_QWORD *)(v4 + 1384) + 8 * v7);
if ( v8 )
{
while ( 1 )
{
v8 = (__int64 *)*v8;
if ( !v8 )
break;
v9 = v8[1];
v10 = ((v5 - 1) & v5) != 0 ? v9 % v5 : v6 & v9;
if ( v7 != v10 )
break;
if ( *((_DWORD *)v8 + 4) == a2 )
{
v14 = v8[3];
if ( !v14 || *(_BYTE *)(v14 + 208) || *(_BYTE *)(v14 + 209) )
break;
*(_BYTE *)(v14 + 208) = 1;
if ( a3 )
{
v20 = *(double *)(v14 + 144);
v21 = *(double *)(v14 + 152);
cocos2d::CCPoint::CCPoint(a4, v20, v21);
return a4;
}
v15 = *(__int64 **)(v14 + 224);
v16 = *(__int64 **)(v14 + 216);
v12 = *(double *)(v14 + 56);
for ( i = *(double *)(v14 + 64); v15 != v16; *(_QWORD *)(v19 + 360) = 0 )
{
v18 = *v16;
v17 = v16 + 1;
*(_QWORD *)(v18 + 352) = 0;
*(_QWORD *)(v18 + 360) = 0;
if ( v15 == v17 )
break;
v19 = *v17;
v16 = v17 + 1;
*(_QWORD *)(v19 + 352) = 0;
}
goto LABEL_12;
}
}
}
}
i = 0.0;
v12 = 0.0;
LABEL_12:
cocos2d::CCPoint::CCPoint(a4, v12, i);
return a4;
}