// // PlayerObject::pushButton from 0x76ab00 to 0x76adf0 (752 bytes) // // 5 xrefs: // > PlayerObject::enablePlayerControls @ 0x76aeb0 // > MenuGameLayer::tryJump @ 0x7d9c8c // > GJBaseGameLayer::handleButton @ 0x9c27b4 // > GJBaseGameLayer::handleButton @ 0x9c281c // > @ 0x68620 // // 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:10 +0000 // __int64 __fastcall PlayerObject::pushButton( PlayerObject *this, int a2, int a3, int a4, int a5, int a6, int a7, int a8, char a9) { __int64 result; // x0 __int64 v12; // x1 _QWORD *v13; // x0 _QWORD *v14; // x21 __int64 v15; // x2 __int64 v16; // x0 cocos2d::CCArray *v17; // x0 unsigned int v18; // w1 unsigned int v19; // w21 cocos2d::CCArray *v20; // x24 unsigned int v21; // w1 cocos2d::CCArray *v22; // x23 __int64 v23; // x0 unsigned int *v24; // x1 cocos2d::CCObject **v25; // x21 cocos2d::CCObject **i; // x22 RingObject *v27; // x1 unsigned int *v28; // x1 RingObject **v29; // x21 __int64 v30; // x0 char *v31; // x22 RingObject *v32; // x1 unsigned int *v33; // x1 RingObject **v34; // x21 __int64 v35; // x0 char *v36; // x22 RingObject *v37; // x1 cocos2d::CCObject *v38; // [xsp+48h] [xbp+48h] int v39; // [xsp+5Ch] [xbp+5Ch] BYREF int *v40; // [xsp+60h] [xbp+60h] BYREF if ( !*((_BYTE *)this + 2936) ) { v39 = a2; v40 = &v39; *(_BYTE *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (__int64 **)this + 364, &v39, (__int64)&unk_113CFA8, &v40) + 32) = 1; } result = *((unsigned __int8 *)this + 2530); if ( *((_BYTE *)this + 2530) ) return 0; if ( !*((_BYTE *)this + 2531) ) { if ( a2 != 1 ) { if ( (unsigned int)(a2 - 2) <= 1 ) { PlayerObject::switchedDirTo((__int64)this, a2); return 1; } return 1; } if ( !*((_BYTE *)this + 2365) ) PlayerObject::placeStreakPoint(this); v12 = *((_QWORD *)this + 262); *((_BYTE *)this + 1968) = 0; *((_BYTE *)this + 2365) = 1; *((_BYTE *)this + 2366) = 1; if ( v12 ) { v13 = *((_QWORD **)this + 261); if ( v13 ) { do { v14 = (_QWORD *)*v13; operator delete(v13); v13 = v14; } while ( v14 ); } v15 = *((_QWORD *)this + 260); v16 = 0; *((_QWORD *)this + 261) = 0; if ( v15 ) { do *(_QWORD *)(*((_QWORD *)this + 259) + 8 * v16++) = 0; while ( v16 != v15 ); } *((_QWORD *)this + 262) = 0; } PlayerObject::updateJumpVariables((__int64)this); if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 318)) ) { v17 = (cocos2d::CCArray *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 318)); v19 = (unsigned int)v17; if ( (int)v17 > 0 ) { v20 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v17, v18); v22 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)v19, v21); v23 = *((_QWORD *)this + 318); if ( v23 ) { v24 = *(unsigned int **)(v23 + 56); if ( *v24 ) { v25 = *((cocos2d::CCObject ***)v24 + 2); for ( i = &v25[*v24 - 1]; i >= v25; ++v25 ) { v27 = *v25; if ( !*v25 ) break; if ( *((_BYTE *)v27 + 1840) ) { PlayerObject::ringJump(this, v27, 0); *((_BYTE *)this + 2365) = 0; return 1; } v38 = *v25; if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v27 + 1800LL))(*v25) == 36 ) cocos2d::CCArray::addObject(v20, v38); else cocos2d::CCArray::addObject(v22, v38); } } } if ( v20 ) { v28 = *((unsigned int **)v20 + 7); if ( *v28 ) { v29 = *((RingObject ***)v28 + 2); v30 = 8LL * *v28 - 8; v31 = (char *)v29 + v30; if ( v29 <= (RingObject **)((char *)v29 + v30) ) { do { v32 = *v29; if ( !*v29 ) break; ++v29; PlayerObject::ringJump(this, v32, 0); } while ( v31 >= (char *)v29 ); } } } if ( v22 ) { v33 = *((unsigned int **)v22 + 7); if ( *v33 ) { v34 = *((RingObject ***)v33 + 2); v35 = 8LL * *v33 - 8; v36 = (char *)v34 + v35; if ( v34 <= (RingObject **)((char *)v34 + v35) ) { while ( 1 ) { v37 = *v34; if ( !*v34 ) break; ++v34; PlayerObject::ringJump(this, v37, 0); if ( v36 < (char *)v34 ) return 1; } } } } } } else { if ( *((_BYTE *)this + 2419) ) { LABEL_21: if ( *((_BYTE *)this + 2425) ) { PlayerObject::updateJump(this, 0.0); return 1; } return 1; } if ( !(unsigned __int8)PlayerObject::isFlying(this) ) { if ( !*((_BYTE *)this + 2365) ) return 1; goto LABEL_21; } } return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source