// // GJMGLayer::updateGroundWidth from 0x918110 to 0x918220 (272 bytes) // // 2 xrefs: // > GJMGLayer::scaleGround @ 0x91827c // > @ 0x919f0 // // 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:57:20 +0000 // __int64 __fastcall GJMGLayer::updateGroundWidth(GJMGLayer *this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCDirector *v3; // x0 __int64 v4; // x0 __int64 v5; // x1 float v6; // s0 bool v7; // zf float v8; // s1 unsigned int v9; // w20 __int64 v11; // x0 __int64 v12; // [xsp+30h] [xbp+30h] BYREF v2 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(GJMGLayer *))(*(_QWORD *)this + 512LL))(this); if ( v2 ) { v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v12, v3); v4 = (*(__int64 (__fastcall **)(GJMGLayer *))(*(_QWORD *)this + 512LL))(this); v5 = *(_QWORD *)this; if ( v4 ) { (*(void (__fastcall **)(GJMGLayer *))(v5 + 136))(this); } else { v11 = (*(__int64 (__fastcall **)(GJMGLayer *))(v5 + 512))(this); (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 168LL))(v11); } v6 = (*(float (__fastcall **)(GJMGLayer *))(*(_QWORD *)this + 136LL))(this); v7 = *((_BYTE *)this + 456) == 0; v8 = (float)((float)(*(float *)&v12 / v6) + 10.0) / *((float *)this + 106); *((float *)this + 111) = (float)(*(float *)&v12 / v6) + 10.0; v9 = (int)(float)(ceilf(v8) + 1.0); if ( !v7 ) ++v9; GJMGLayer::loadGroundSprites(this, v9, 1); GJMGLayer::loadGroundSprites(this, v9, 0); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source