// // GJBaseGameLayer::modifyGroupPhysics from 0x1001268a0 to 0x100126adc (572 bytes) // // 1 xrefs: // > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001267cc // // 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:41 +0000 // unsigned __int64 __fastcall GJBaseGameLayer::modifyGroupPhysics(__int64 a1, __int64 a2, __int64 a3) { unsigned __int64 result; // rax unsigned __int64 *v5; // r15 unsigned __int64 v6; // r12 __int64 v7; // r11 __int64 v8; // rbx unsigned __int64 v9; // rdi unsigned __int64 v10; // rcx unsigned __int64 v11; // r9 __int64 v12; // r10 __int64 *v13; // r8 unsigned __int64 v14; // rdi if ( a3 ) { result = *(_QWORD *)(a3 + 56); if ( *(_DWORD *)result ) { v5 = *(unsigned __int64 **)(result + 16); v6 = (unsigned __int64)&v5[*(unsigned int *)result - 1]; v7 = 0x5555555555555555LL; while ( 1 ) { result = *v5; if ( !*v5 ) return result; v9 = *(_QWORD *)(a1 + 1080); if ( !v9 ) goto LABEL_5; v10 = *(int *)(result + 916); v11 = (0x101010101010101LL * ((((v9 - (v7 & (v9 >> 1))) & 0x3333333333333333LL) + (((v9 - (v7 & (v9 >> 1))) >> 2) & 0x3333333333333333LL) + ((((v9 - (v7 & (v9 >> 1))) & 0x3333333333333333LL) + (((v9 - (v7 & (v9 >> 1))) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v11 <= 1 ) { v12 = v10 & (v9 - 1); result = *(_QWORD *)(*(_QWORD *)(a1 + 1072) + 8 * v12); if ( result ) goto LABEL_15; goto LABEL_5; } v12 = *(int *)(result + 916); if ( v9 > v10 ) goto LABEL_14; if ( (v9 | v10) >> 32 ) break; v12 = (unsigned int)v10 % (unsigned int)v9; result = *(_QWORD *)(*(_QWORD *)(a1 + 1072) + 8 * v12); if ( result ) { LABEL_15: v13 = *(__int64 **)result; if ( *(_QWORD *)result ) { if ( (unsigned int)v11 < 2 ) { v14 = v9 - 1; while ( 1 ) { result = v13[1]; if ( result == v10 ) { if ( *((_DWORD *)v13 + 4) == (_DWORD)v10 ) goto LABEL_4; } else { result &= v14; if ( result != v12 ) goto LABEL_5; } v13 = (__int64 *)*v13; if ( !v13 ) goto LABEL_5; } } do { result = v13[1]; if ( result == v10 ) { if ( *((_DWORD *)v13 + 4) == (_DWORD)v10 ) { LABEL_4: v8 = v7; result = GJBaseGameLayer::modifyObjectPhysics(a1, a2, v13 + 3); v7 = v8; break; } } else { if ( result >= v9 ) { if ( (v9 | result) >> 32 ) result %= v9; else result = (unsigned int)result % (unsigned int)v9; } if ( result != v12 ) break; } v13 = (__int64 *)*v13; } while ( v13 ); } } LABEL_5: if ( (unsigned __int64)++v5 > v6 ) return result; } v12 = v10 % v9; LABEL_14: result = *(_QWORD *)(*(_QWORD *)(a1 + 1072) + 8 * v12); if ( result ) goto LABEL_15; goto LABEL_5; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source