// // GJGameState::getGameObjectPhysics from 0x9ea3f0 to 0x9ea780 (912 bytes) // // 3 xrefs: // > GJBaseGameLayer::processAdvancedFollowAction @ 0x9ea8a4 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x9ead44 // > @ 0x480a0 // // This function is hookable on this platform (idp: arm, 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:59:02 +0000 // __int64 *__fastcall GJGameState::getGameObjectPhysics(GJGameState *this, GameObject *a2) { unsigned __int64 v2; // x25 char *v4; // x24 __int64 *v6; // x0 __int64 *v7; // x1 unsigned __int64 v9; // x26 unsigned __int64 v10; // x27 __int64 v11; // x3 __int64 *v12; // x0 __int64 v13; // x21 unsigned __int64 v14; // x0 __int64 i; // x0 __int64 v16; // x19 float v17; // s2 float v18; // s0 _BOOL8 v19; // x1 __int64 v20; // x28 unsigned __int64 prime; // x28 unsigned __int64 v22; // x0 unsigned __int64 v23; // x25 unsigned __int64 v24; // x1 __int64 *v25; // x0 unsigned __int64 v26; // x0 unsigned __int64 v27; // x1 unsigned __int64 v28; // x0 int v29; // [xsp+64h] [xbp+64h] BYREF __int64 v30; // [xsp+68h] [xbp+68h] __int64 v31; // [xsp+70h] [xbp+70h] BYREF __int64 v32; // [xsp+78h] [xbp+78h] BYREF int v33; // [xsp+80h] [xbp+80h] int v34; // [xsp+84h] [xbp+84h] int v35; // [xsp+88h] [xbp+88h] int v36; // [xsp+8Ch] [xbp+8Ch] int v37; // [xsp+90h] [xbp+90h] v4 = (char *)this + 648; v29 = *((_DWORD *)a2 + 229); v6 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_QWORD *)this + 81, &v29); if ( v6 ) { v7 = v6 + 3; goto LABEL_3; } v30 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32); v9 = *((_QWORD *)this + 82); v35 = 0; v36 = 0; v37 = 0; v10 = v29; v33 = 0; v34 = 0; if ( v9 ) { v11 = (v9 - 1) & v9; v2 = (v9 - 1) & v29; if ( v11 ) v2 = v29 % v9; v12 = *(__int64 **)(*((_QWORD *)this + 81) + 8 * v2); if ( v12 ) { v13 = *v12; if ( *v12 ) { v14 = *(_QWORD *)(v13 + 8); if ( v11 ) goto LABEL_35; LABEL_10: for ( i = (v9 - 1) & v14; v2 == i; i = v14 % v9 ) { if ( v29 == *(_DWORD *)(v13 + 16) ) { v16 = v13 + 24; goto LABEL_31; } v13 = *(_QWORD *)v13; if ( !v13 ) break; v14 = *(_QWORD *)(v13 + 8); if ( !v11 ) goto LABEL_10; LABEL_35: ; } } } } v13 = operator new(0x48u); *(_DWORD *)(v13 + 16) = v29; *(_QWORD *)(v13 + 24) = v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v13 + 32), (const cocos2d::CCPoint *)&v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v13 + 40), (const cocos2d::CCPoint *)&v32); v16 = v13 + 24; *(_DWORD *)(v13 + 48) = v33; *(_DWORD *)(v13 + 56) = v35; *(_DWORD *)(v13 + 52) = v34; *(_DWORD *)(v13 + 60) = v36; *(_DWORD *)(v13 + 64) = v37; *(_QWORD *)(v13 + 8) = v10; *(_QWORD *)v13 = 0; v17 = *((float *)this + 170); v18 = (float)(unsigned __int64)(*((_QWORD *)this + 84) + 1LL); if ( v18 > (float)((float)v9 * v17) ) { v19 = 1; v20 = 2 * v9; if ( v9 > 2 ) v19 = ((v9 - 1) & v9) != 0; } else { if ( v9 ) goto LABEL_28; v19 = 1; v20 = 0; } prime = v19 + v20; v22 = vcvtps_u32_f32(v18 / v17); if ( v22 >= prime ) prime = v22; if ( prime == 1 ) { prime = 2; } else if ( ((prime - 1) & prime) != 0 ) { prime = std::__next_prime(prime); } v9 = *((_QWORD *)this + 82); if ( prime > v9 ) { std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__rehash( (__int64)v4, prime); } else { if ( prime >= v9 ) goto LABEL_44; if ( v9 <= 2 || (v23 = v9 - 1, ((v9 - 1) & v9) != 0) ) { v26 = std::__next_prime(vcvtps_u32_f32((float)*((unsigned __int64 *)this + 84) / *((float *)this + 170))); if ( v26 < prime ) v24 = prime; else v24 = v26; if ( v9 <= v24 ) goto LABEL_43; } else { v24 = 1LL << (64 - (unsigned __int8)__clz( vcvtps_u32_f32((float)*((unsigned __int64 *)this + 84) / *((float *)this + 170)) - 1)); if ( v24 < prime ) v24 = prime; if ( v24 >= v9 ) goto LABEL_27; } std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__rehash( (__int64)v4, v24); } LABEL_43: v9 = *((_QWORD *)this + 82); LABEL_44: v23 = v9 - 1; if ( ((v9 - 1) & v9) == 0 ) { LABEL_27: v2 = v23 & v10; goto LABEL_28; } v2 = v10 % v9; LABEL_28: v25 = *(__int64 **)(*((_QWORD *)this + 81) + 8 * v2); if ( v25 ) { *(_QWORD *)v13 = *v25; *v25 = v13; } else { *(_QWORD *)v13 = *((_QWORD *)this + 83); *((_QWORD *)this + 83) = v13; *(_QWORD *)(*((_QWORD *)this + 81) + 8 * v2) = (char *)this + 664; if ( *(_QWORD *)v13 ) { v27 = *(_QWORD *)(*(_QWORD *)v13 + 8LL); if ( ((v9 - 1) & v9) != 0 ) v28 = v27 % v9; else v28 = (v9 - 1) & v27; *(_QWORD *)(*((_QWORD *)this + 81) + 8 * v28) = v13; } } ++*((_QWORD *)this + 84); LABEL_31: v7 = (__int64 *)v16; *(_QWORD *)(v13 + 24) = a2; LABEL_3: *((_DWORD *)v7 + 8) = *((_DWORD *)this + 130); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source