// // PlayerObject::bumpPlayer from 0x765df8 to 0x765f3c (324 bytes) // // 2 xrefs: // > GJBaseGameLayer::bumpPlayer @ 0x9c2448 // > @ 0xcc1d8 // // 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:07 +0000 // __n128 __fastcall PlayerObject::bumpPlayer(PlayerObject *this, float a2, int a3, unsigned __int8 a4, GameObject *a5) { __n128 result; // q0 float v8; // s0 unsigned __int8 isFacingDown; // w0 int v10; // w1 unsigned __int8 isFacingLeft; // w0 GameObject *v12; // [xsp+28h] [xbp+28h] GameObject *v13; // [xsp+28h] [xbp+28h] GameObject *v14; // [xsp+28h] [xbp+28h] GameObject *v15; // [xsp+28h] [xbp+28h] if ( !*((_BYTE *)this + 2832) && *((_BYTE *)this + 2904) ) { if ( a3 != 44 ) goto LABEL_4; LABEL_12: if ( a5 ) { if ( *((_BYTE *)this + 2427) ) { v15 = a5; isFacingLeft = GameObject::isFacingLeft(a5); v10 = *((unsigned __int8 *)this + 2423); a5 = v15; if ( v10 != isFacingLeft ) goto LABEL_15; if ( *((_BYTE *)this + 2427) ) goto LABEL_16; } v12 = a5; isFacingDown = GameObject::isFacingDown(a5); v10 = *((unsigned __int8 *)this + 2423); a5 = v12; if ( v10 != isFacingDown ) { LABEL_15: v13 = a5; PlayerObject::flipGravity((__int64)this, v10 ^ 1, 1u); a5 = v13; } } LABEL_16: v14 = a5; PlayerObject::spiderTestJump(this, 0); PlayerObject::playBumpEffect((cocos2d::CCNode **)this, 44, v14); return result; } *((_BYTE *)this + 2388) = 1; if ( a3 == 44 ) goto LABEL_12; LABEL_4: PlayerObject::propellPlayer(this, a2, a4, a3); if ( *((_BYTE *)this + 2832) && !*((_BYTE *)this + 1784) ) { if ( a3 == 34 ) v8 = 1.2; else v8 = 1.0; PlayerObject::animatePlatformerJump((__int64)this, v8); } if ( a3 == 34 ) { *((_BYTE *)this + 2314) = 1; return cocos2d::CCPoint::operator=((char *)this + 2532, &unk_155C638); } else { *((_BYTE *)this + 2314) = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source