//
// GJBaseGameLayer::claimMoveAction from 0x1001f8cc8 to 0x1001f8d84 (188 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processTransformActions @ 0x1001f7814
// > GJBaseGameLayer::processRotationActions @ 0x1001f80c0
//
// 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
//
cocos2d::CCPoint __fastcall GJBaseGameLayer::claimMoveAction(GJBaseGameLayer *a1, int a2, bool a3)
{
_DWORD *v3; // x8
_BOOL4 v4; // w20
_DWORD *v5; // x19
__int64 *v6; // x0
__n128 v7; // q0
__n128 v8; // q1
__int64 v9; // x8
__int64 v12; // x9
__int64 v13; // x10
__int64 *v14; // x8
__int64 *v15; // x9
__int64 v16; // t1
int v17; // [xsp+Ch] [xbp-14h] BYREF
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v4 = a3;
v5 = v3;
v17 = a2;
v6 = sub_100018814(&a1->m_effectManager->m_unkMap618.__table_.__bucket_list_.__ptr_.__value_, &v17);
v8.n128_u32[0] = 0;
if ( v6 && (v9 = v6[3]) != 0 && (*(_BYTE *)(v9 + 208) & 1) == 0 )
{
v7.n128_u32[0] = 0;
if ( (*(_BYTE *)(v9 + 209) & 1) == 0 )
{
*(_BYTE *)(v9 + 208) = 1;
v12 = 64;
if ( v4 )
v12 = 152;
v13 = 56;
if ( v4 )
v13 = 144;
v7.n128_u64[0] = *(_QWORD *)(v9 + v13);
v7.n128_f32[0] = v7.n128_f64[0];
v8.n128_u64[0] = *(_QWORD *)(v9 + v12);
v8.n128_f32[0] = v8.n128_f64[0];
if ( !v4 )
{
v15 = *(__int64 **)(v9 + 216);
v14 = *(__int64 **)(v9 + 224);
while ( v15 != v14 )
{
v16 = *v15++;
*(_QWORD *)(v16 + 352) = 0;
*(_QWORD *)(v16 + 360) = 0;
}
}
}
}
else
{
v7.n128_u32[0] = 0;
}
sub_100022980(v7, v8, v5);
return result;
}