//
// GJBaseGameLayer::claimMoveAction from 0x140336780 to 0x1403368cc (332 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::processRotationActions @ 0x1403347aa
// > GJBaseGameLayer::processTransformActions @ 0x1403357ba
// > ??> @ 0x14091f940
//
// This function is hookable on this platform (idp: pc, 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:30:35 +0000
//
cocos2d::CCPoint *__fastcall GJBaseGameLayer::claimMoveAction(__int64 a1, cocos2d::CCPoint *a2, int a3, char a4)
{
_QWORD *v4; // r10
float v6; // xmm1_4
float v7; // xmm2_4
__int64 v8; // rcx
__int64 v9; // rdx
__int64 v10; // rax
__int64 v11; // rcx
__int64 v12; // rcx
__int64 v13; // rax
double v14; // xmm2_8
__int64 v15; // rax
__int64 *v16; // rdx
__int64 *i; // rcx
__int64 v18; // rax
v4 = *(_QWORD **)(a1 + 2408);
v6 = 0.0;
v7 = 0.0;
v8 = v4[222];
v9 = v4[220];
v10 = *(_QWORD *)(v8
+ 16
* (v4[225]
& (0x100000001B3LL
* (HIBYTE(a3)
^ (0x100000001B3LL
* (BYTE2(a3)
^ (0x100000001B3LL
* (BYTE1(a3) ^ (0x100000001B3LL * ((unsigned __int8)a3 ^ 0xCBF29CE484222325uLL)))))))))
+ 8);
if ( v10 != v9 )
{
v11 = *(_QWORD *)(v8
+ 16
* (v4[225]
& (0x100000001B3LL
* (HIBYTE(a3)
^ (0x100000001B3LL
* (BYTE2(a3)
^ (0x100000001B3LL
* (BYTE1(a3) ^ (0x100000001B3LL * ((unsigned __int8)a3 ^ 0xCBF29CE484222325uLL))))))))));
if ( a3 == *(_DWORD *)(v10 + 16) )
goto LABEL_7;
while ( v10 != v11 )
{
v10 = *(_QWORD *)(v10 + 8);
if ( a3 == *(_DWORD *)(v10 + 16) )
goto LABEL_7;
}
}
v10 = 0;
LABEL_7:
if ( !v10 )
v10 = v4[220];
if ( v10 != v9 )
{
v12 = *(_QWORD *)(v10 + 24);
if ( v12 )
{
if ( !*(_BYTE *)(v12 + 208) && !*(_BYTE *)(v12 + 209) )
{
*(_BYTE *)(v12 + 208) = 1;
v13 = 64;
if ( a4 )
v13 = 152;
v14 = *(double *)(v13 + v12);
v15 = 56;
if ( a4 )
v15 = 144;
v7 = v14;
v6 = *(double *)(v15 + v12);
if ( !a4 )
{
v16 = *(__int64 **)(v12 + 224);
for ( i = *(__int64 **)(v12 + 216); i != v16; *(_QWORD *)(v18 + 360) = 0 )
{
v18 = *i++;
*(_QWORD *)(v18 + 352) = 0;
}
}
}
}
}
cocos2d::CCPoint::CCPoint(a2, v6, v7);
return a2;
}