// // PlayerObject::unrotateGameplayObject from 0x760790 to 0x760a60 (720 bytes) // // 4 xrefs: // > PlayerObject::unrotatePreSlopeObjects @ 0x760a84 // > PlayerObject::handleRotatedCollisionInternal @ 0x761050 // > PlayerObject::spiderTestJumpInternal @ 0x76320c // > @ 0xfeec0 // // 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:53:03 +0000 // __int64 __fastcall PlayerObject::unrotateGameplayObject(PlayerObject *this, GameObject *a2) { char *v3; // x24 double *v5; // x24 __int64 LastPosition; // x25 float v7; // s0 float v8; // s1 __int64 v9; // x1 float v10; // s1 unsigned __int64 v11; // x3 int v12; // w5 unsigned __int64 v14; // x7 __int64 v15; // x4 unsigned __int64 v16; // x6 __int64 v17; // x9 void **v18; // x0 _QWORD *v19; // x1 unsigned __int64 v20; // x2 unsigned __int64 v21; // x0 unsigned __int64 v22; // x5 _QWORD *i; // x2 unsigned __int64 v24; // x0 unsigned __int64 v25; // x0 __int64 v26; // x0 unsigned __int64 v27; // x6 __int64 v28; // x6 __int64 v29; // x6 unsigned __int64 v30; // x8 _BYTE v31[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v32; // [xsp+70h] [xbp+70h] BYREF v3 = (char *)this + 1696; LODWORD(v32) = *((_DWORD *)a2 + 229); if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_QWORD *)this + 212, (int *)&v32) ) { (*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)a2 + 1776LL))(a2, 1); LODWORD(v32) = *((_DWORD *)a2 + 229); v5 = (double *)std::unordered_map::operator[]((unsigned __int64)v3, (int *)&v32); GameObject::addToTempOffset(a2, -*v5, -v5[1]); LastPosition = GameObject::getLastPosition(a2); v7 = *v5; v8 = v5[1]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, -v7, -v8); cocos2d::CCPoint::operator+(&v32, LastPosition); GameObject::setLastPosition(a2, (const cocos2d::CCPoint *)&v32); v9 = *(_QWORD *)a2; v10 = *((float *)a2 + 244) + 90.0; *((float *)a2 + 243) = *((float *)a2 + 243) + 90.0; *((float *)a2 + 244) = v10; (*(void (__fastcall **)(GameObject *, float))(v9 + 1480))(a2, 0.0); if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 25 ) GameObject::determineSlopeDirection(a2); v11 = *((_QWORD *)this + 213); v12 = *((_DWORD *)a2 + 229); if ( v11 ) { v14 = v11 - 1; v15 = (v11 - 1) & v11; v16 = v15 ? v12 % v11 : v14 & v12; v17 = *((_QWORD *)this + 212); v18 = *(void ***)(v17 + 8 * v16); if ( v18 ) { v19 = *v18; if ( *v18 ) { while ( 1 ) { v20 = v19[1]; v21 = v14 & v20; if ( v15 ) v21 = v20 % v11; if ( v16 != v21 ) return _stack_chk_guard; if ( v12 == *((_DWORD *)v19 + 4) ) break; v19 = (_QWORD *)*v19; if ( !v19 ) return _stack_chk_guard; } v22 = v20 & v14; if ( v15 ) v22 = v20 % v11; for ( i = *(_QWORD **)(v17 + 8 * v22); (_QWORD *)*i != v19; i = (_QWORD *)*i ) ; if ( i == (_QWORD *)((char *)this + 1712) || ((v24 = i[1], v15) ? (v25 = v24 % v11) : (v25 = v14 & v24), v22 != v25) ) { v26 = *v19; if ( *v19 ) { v27 = *(_QWORD *)(v26 + 8); if ( v15 ) { v30 = v27 / v11; if ( v22 == v27 % v11 ) { LABEL_34: v28 = v27 - v30 * v11; LABEL_35: if ( v22 != v28 ) { LABEL_36: *(_QWORD *)(*((_QWORD *)this + 212) + 8 * v28) = i; v29 = *v19; goto LABEL_37; } LABEL_39: v29 = v26; goto LABEL_37; } } else { v28 = v14 & v27; if ( v22 == v28 ) goto LABEL_35; } } *(_QWORD *)(v17 + 8 * v22) = 0; } v26 = *v19; v29 = *v19; if ( !*v19 ) { LABEL_37: *i = v29; *v19 = 0; --*((_QWORD *)this + 215); operator delete(v19); return _stack_chk_guard; } v27 = *(_QWORD *)(v26 + 8); if ( !v15 ) { v28 = v14 & v27; if ( v22 != v28 ) goto LABEL_36; goto LABEL_39; } v30 = v27 / v11; goto LABEL_34; } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source