// // PlayerObject::checkSnapJumpToObject from 0x74fd84 to 0x7500c0 (828 bytes) // // 3 xrefs: // > PlayerObject::collidedWithObjectInternal @ 0x75c0e0 // > PlayerObject::collidedWithObjectInternal @ 0x75c34c // > @ 0xb1160 // // 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:52:54 +0000 // __int64 __fastcall PlayerObject::checkSnapJumpToObject(PlayerObject *this, GameObject *a2) { _DWORD *v4; // x0 __int64 v5; // x1 float v6; // s8 float v8; // s0 float v9; // s8 float v10; // s10 float v11; // s9 float v12; // s0 float v13; // s2 float v14; // s1 double v15; // d9 double v16; // d8 double v17; // d0 void (__fastcall *v18)(PlayerObject *, _BYTE *); // x23 __int64 v19; // x0 float v20; // s0 __int64 v21; // [xsp+70h] [xbp+70h] BYREF float v22; // [xsp+78h] [xbp+78h] float v23; // [xsp+7Ch] [xbp+7Ch] _BYTE v24[8]; // [xsp+80h] [xbp+80h] BYREF if ( a2 ) { v4 = *((_DWORD **)this + 264); if ( !v4 || v4[229] == *((_DWORD *)a2 + 229) || (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1800LL))(v4) ) { goto LABEL_5; } (*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(**((_QWORD **)this + 264) + 1360LL))( &v21, *((_QWORD *)this + 264)); (*(void (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1360LL))(a2); v8 = *((float *)this + 619); if ( v8 == 0.9 ) { v9 = 1.0; v10 = 90.0; v11 = 150.0; if ( *((float *)this + 618) != 1.0 ) { v12 = 90.0; goto LABEL_10; } goto LABEL_24; } if ( v8 == 0.7 ) { v10 = 60.0; v11 = 120.0; v9 = 1.0; } else { if ( v8 != 1.1 ) { if ( v8 != 1.3 ) { v10 = 90.0; v11 = 150.0; v9 = 1.0; LABEL_24: v12 = 120.0; goto LABEL_10; } if ( *((float *)this + 618) == 1.0 ) { v10 = 135.0; v11 = 225.0; v12 = 180.0; v9 = 2.0; } else { v9 = 2.0; v10 = 135.0; v11 = 225.0; v12 = 90.0; } LABEL_10: v13 = *(float *)&v21; v14 = v22; if ( v9 >= vabds_f32(v22, *(float *)&v21 + v12) ) { if ( v9 >= vabds_f32(v23, *((float *)&v21 + 1) + (float)((float)(int)PlayerObject::flipMod(this) * 30.0)) ) goto LABEL_14; v14 = v22; v13 = *(float *)&v21; } if ( v9 >= vabds_f32(v14, v11 + v13) ) { if ( v9 >= vabds_f32(v23, *((float *)&v21 + 1) + (float)((float)(int)PlayerObject::flipMod(this) * -30.0)) ) goto LABEL_14; v14 = v22; v13 = *(float *)&v21; } if ( v9 < vabds_f32(v14, v10 + v13) || v9 < vabds_f32(v23, *((float *)&v21 + 1) + (float)((float)(int)PlayerObject::flipMod(this) * 60.0)) ) { LABEL_5: v5 = *(_QWORD *)this; *((_QWORD *)this + 264) = a2; v6 = *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(v5 + 192))(this); *((double *)this + 257) = (float)(v6 - *(float *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2)); return _stack_chk_guard; } LABEL_14: v15 = *(float *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2) + *((double *)this + 257); v16 = v9; v17 = *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); if ( vabdd_f64(v15, v17) > v16 ) { if ( v15 <= v17 ) v15 = v17 - v16; else v15 = v17 + v16; } v18 = *(void (__fastcall **)(PlayerObject *, _BYTE *))(*(_QWORD *)this + 184LL); v19 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); v20 = v15; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v20, *(float *)(v19 + 4)); v18(this, v24); goto LABEL_5; } v9 = 2.0; v10 = 120.0; v11 = 195.0; if ( *((float *)this + 618) == 1.0 ) { v12 = 150.0; goto LABEL_10; } } v12 = 90.0; goto LABEL_10; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source