// // GJBaseGameLayer::claimMoveAction from 0x100125510 to 0x100125751 (577 bytes) // // 2 xrefs: // > GJBaseGameLayer::processTransformActions @ 0x1001237ac // > GJBaseGameLayer::processRotationActions @ 0x1001243fd // // 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 12:24:40 +0000 // __int64 __fastcall GJBaseGameLayer::claimMoveAction(__int64 a1, __int64 a2, int a3, char a4) { __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 float v16; // xmm0_4 double *v17; // rdx double *v18; // r8 __int64 *v19; // rcx __int64 *i; // rax __int64 v21; // rdx v5 = *(_QWORD *)(a2 + 2152); v6 = *(_QWORD *)(v5 + 1392); 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 + 1384) + 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 + 1384) + 8 * v9); if ( !v10 ) goto LABEL_38; goto LABEL_9; } v9 = a3 % v6; } v10 = *(__int64 ***)(*(_QWORD *)(v5 + 1384) + 8 * v9); if ( !v10 ) { LABEL_38: v16 = 0.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; v16 = 0.0; if ( !*(_BYTE *)(v15 + 209) ) { v17 = (double *)(v15 + 64); v18 = (double *)(v15 + 144); if ( a4 ) v17 = (double *)(v15 + 152); else v18 = (double *)(v15 + 56); *(_BYTE *)(v15 + 208) = 1; v16 = *v18; v7 = *v17; if ( !a4 ) { v19 = *(__int64 **)(v15 + 216); for ( i = *(__int64 **)(v15 + 224); v19 != i; *(_OWORD *)(v21 + 352) = 0 ) v21 = *v19++; } } LABEL_39: sub_100278250(a1, v16, v7); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source