// // GJBaseGameLayer::claimMoveAction from 0x100147100 to 0x100147341 (577 bytes) // // 2 xrefs: // > GJBaseGameLayer::processTransformActions @ 0x10014527f // > GJBaseGameLayer::processRotationActions @ 0x100145f53 // // 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 // // local variable allocation has failed, the output may be wrong! cocos2d::CCPoint __fastcall GJBaseGameLayer::claimMoveAction(GJBaseGameLayer *a1, int a2, bool a3) { char v3; // cl __int64 v5; // r10 unsigned __int64 v6; // r9 float v7; // xmm1_4 unsigned __int64 v8; // r11 unsigned __int64 v9; // rdi __int64 **v10; // rax __int64 *v11; // r10 unsigned __int64 v12; // r9 __int64 v13; // rax unsigned __int64 v14; // rax __int64 v15; // rax double *v17; // rdx cocos2d::CCPoint *v18; // r8 __int64 *v19; // rcx __int64 *i; // rax __int64 v21; // rdx cocos2d::CCPoint result; // 0:xmm0_8.8 v5 = *(_QWORD *)(*(_QWORD *)&a2 + 2128LL); v6 = *(_QWORD *)(v5 + 1384); v7 = 0.0; if ( !v6 ) goto LABEL_38; v8 = (0x101010101010101LL * ((((v6 - ((v6 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v6 - ((v6 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((v6 - ((v6 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v6 - ((v6 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v8 <= 1 ) { v9 = a3 & (v6 - 1); v10 = *(__int64 ***)(*(_QWORD *)(v5 + 1376) + 8 * v9); if ( !v10 ) goto LABEL_38; goto LABEL_9; } v9 = a3; if ( v6 <= a3 ) { if ( !((v6 | a3) >> 32) ) { v9 = a3 % (unsigned int)v6; v10 = *(__int64 ***)(*(_QWORD *)(v5 + 1376) + 8 * v9); if ( !v10 ) goto LABEL_38; goto LABEL_9; } v9 = a3 % v6; } v10 = *(__int64 ***)(*(_QWORD *)(v5 + 1376) + 8 * v9); if ( !v10 ) { LABEL_38: result = 0; goto LABEL_39; } LABEL_9: v11 = *v10; if ( !*v10 ) goto LABEL_38; if ( (unsigned int)v8 < 2 ) { v12 = v6 - 1; while ( 1 ) { v13 = v11[1]; if ( v13 == a3 ) { if ( *((_DWORD *)v11 + 4) == a3 ) goto LABEL_27; } else if ( (v12 & v13) != v9 ) { goto LABEL_38; } v11 = (__int64 *)*v11; if ( !v11 ) goto LABEL_38; } } while ( 1 ) { v14 = v11[1]; if ( v14 == a3 ) break; if ( v14 < v6 ) goto LABEL_23; if ( (v6 | v14) >> 32 ) { v14 %= v6; LABEL_23: if ( v14 != v9 ) goto LABEL_38; goto LABEL_18; } if ( (unsigned int)v14 % (unsigned int)v6 != v9 ) goto LABEL_38; LABEL_18: v11 = (__int64 *)*v11; if ( !v11 ) goto LABEL_38; } if ( *((_DWORD *)v11 + 4) != a3 ) goto LABEL_18; LABEL_27: v15 = v11[3]; if ( !v15 || *(_BYTE *)(v15 + 208) ) goto LABEL_38; result = 0; if ( !*(_BYTE *)(v15 + 209) ) { v17 = (double *)(v15 + 64); v18 = (cocos2d::CCPoint *)(v15 + 144); if ( v3 ) v17 = (double *)(v15 + 152); else v18 = (cocos2d::CCPoint *)(v15 + 56); *(_BYTE *)(v15 + 208) = 1; result = *v18; result.x = *(double *)v18; v7 = *v17; if ( !v3 ) { v19 = *(__int64 **)(v15 + 216); for ( i = *(__int64 **)(v15 + 224); v19 != i; *(_OWORD *)(v21 + 352) = 0 ) v21 = *v19++; } } LABEL_39: sub_10028CBE0(a1, result.x, v7); return result; }