// // GJScaleControl::init from 0xbd41c4 to 0xbd4854 (1680 bytes) // // 3 xrefs: // > GJScaleControl::create @ 0xbcf4e4 // > @ 0x4d6b0 // > @ 0x14e1f40 // // 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 13:03:39 +0000 // __int64 __fastcall GJScaleControl::init(GJScaleControl *this) { unsigned __int8 v2; // w0 unsigned int v3; // w23 const char *v4; // x1 __int64 v5; // x0 cocos2d::CCMenu *v6; // x0 cocos2d::CCMenuItem *v7; // x1 cocos2d::CCMenu *v8; // x22 Slider *v9; // x0 __int64 v10; // x22 Slider *v11; // x0 Slider *v12; // x0 __int64 v13; // x25 void (__fastcall *v14)(__int64, __int64); // x26 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x24 __int64 v18; // x24 __int64 v19; // x24 const char *v20; // x2 __int64 v21; // x0 __int64 v22; // x28 __int64 v23; // x28 const char *v24; // x2 __int64 v25; // x0 __int64 v26; // x27 void (__fastcall *v27)(__int64, __int64 *); // x28 __int64 v28; // x27 void (__fastcall *v29)(__int64, __int64 *); // x28 const char *v30; // x2 __int64 v31; // x0 __int64 v32; // x24 void (__fastcall *v33)(__int64, __int64 *); // x26 __int64 v34; // x24 void (__fastcall *v35)(__int64, __int64 *); // x26 __int64 v37; // [xsp+A0h] [xbp+A0h] void (__fastcall *v38)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] void (__fastcall *v39)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h] __int64 v40; // [xsp+B0h] [xbp+B0h] ControlMenuTouch *v41; // [xsp+B8h] [xbp+B8h] ControlMenuTouch *v42; // [xsp+B8h] [xbp+B8h] __int64 v43; // [xsp+C0h] [xbp+C0h] BYREF __int64 v44; // [xsp+C8h] [xbp+C8h] BYREF __int64 v45; // [xsp+D0h] [xbp+D0h] BYREF _BYTE v46[8]; // [xsp+D8h] [xbp+D8h] BYREF __int64 v47; // [xsp+E0h] [xbp+E0h] BYREF v2 = cocos2d::CCLayer::init(this); v3 = v2; if ( v2 ) { (*(void (__fastcall **)(GJScaleControl *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); (*(void (__fastcall **)(GJScaleControl *, void *))(*(_QWORD *)this + 296LL))(this, &unk_155E9F0); v5 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"warpLockOffBtn_001.png", v4); v6 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create( v5, 0, (__int64)this, (__int64)GJScaleControl::onToggleLockScale, 0); *((_QWORD *)this + 75) = v6; v8 = (cocos2d::CCMenu *)cocos2d::CCMenu::createWithItem(v6, v7); (*(void (__fastcall **)(GJScaleControl *, cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 464LL))(this, v8, 3); ControlMenuTouch::addMenu((GJScaleControl *)((char *)this + 544), v8); v9 = (Slider *)Slider::create( (int)this, (int)GJScaleControl::sliderChanged, 0, (cocos2d::CCSprite *)"sliderBar.png", (cocos2d::CCSprite *)"slidergroove_02.png", (cocos2d::CCSprite *)"GJ_moveBtn.png", 0.8); *((_QWORD *)this + 51) = v9; Slider::setBarVisibility(v9); (*(void (__fastcall **)(GJScaleControl *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 51), 2); Slider::disableTouch(*((Slider **)this + 51)); v10 = *((_QWORD *)this + 51); v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 0.0, 0.0); v39(v10, &v47); v11 = (Slider *)Slider::create( (int)this, (int)GJScaleControl::sliderChanged, 0, (cocos2d::CCSprite *)"sliderBar.png", (cocos2d::CCSprite *)"slidergroove_02.png", (cocos2d::CCSprite *)"GJ_moveBtn.png", 0.8); *((_QWORD *)this + 52) = v11; Slider::setBarVisibility(v11); (*(void (__fastcall **)(GJScaleControl *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 52), 2); Slider::disableTouch(*((Slider **)this + 52)); v37 = *((_QWORD *)this + 52); v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 184LL); v40 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 192LL))(*((_QWORD *)this + 51)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, 0.0, 60.0); cocos2d::CCPoint::operator+(&v47, v40); v38(v37, &v47); v12 = (Slider *)Slider::create( (int)this, (int)GJScaleControl::sliderChanged, 0, (cocos2d::CCSprite *)"sliderBar.png", (cocos2d::CCSprite *)"slidergroove_02.png", (cocos2d::CCSprite *)"GJ_moveBtn.png", 0.8); *((_QWORD *)this + 53) = v12; Slider::setBarVisibility(v12); (*(void (__fastcall **)(GJScaleControl *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 53), 2); Slider::disableTouch(*((Slider **)this + 53)); v13 = *((_QWORD *)this + 53); v14 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL); v15 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 192LL))(*((_QWORD *)this + 51)); v14(v13, v15); *((_DWORD *)this + 108) = -1; v16 = cocos2d::CCMenu::create((cocos2d::CCMenu *)0xFFFFFFFFLL); *((_QWORD *)this + 67) = v16; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v16 + 184LL))(v16, &unk_155E9F0); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 67) + 320LL))(*((_QWORD *)this + 67), &unk_155E9F8); (*(void (__fastcall **)(GJScaleControl *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 67), 4); ControlMenuTouch::addMenu((GJScaleControl *)((char *)this + 544), *((cocos2d::CCMenu **)this + 67)); v17 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 192LL))(*((_QWORD *)this + 51)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 14.0, 30.0); cocos2d::CCPoint::operator+(&v43, v17); v18 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 52) + 192LL))(*((_QWORD *)this + 52)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 14.0, 30.0); cocos2d::CCPoint::operator+(&v44, v18); v19 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 53) + 192LL))(*((_QWORD *)this + 53)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 14.0, 30.0); cocos2d::CCPoint::operator+(&v45, v19); v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"ScaleX:", "goldFont.fnt", v20); *((_QWORD *)this + 58) = v21; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.6); v22 = *((_QWORD *)this + 58); v41 = *(ControlMenuTouch **)(*(_QWORD *)v22 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 1.0, 0.5); ((void (__fastcall *)(__int64, __int64 *))v41)(v22, &v47); (*(void (__fastcall **)(GJScaleControl *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 58)); v23 = *((_QWORD *)this + 58); v42 = *(ControlMenuTouch **)(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, -30.0, 0.0); cocos2d::CCPoint::operator+(&v47, &v43); ((void (__fastcall *)(__int64, __int64 *))v42)(v23, &v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, (const cocos2d::CCPoint *)&v43); *((_QWORD *)this + 61) = GJScaleControl::createScaleInput((_QWORD **)this, (__int64)&v47, 0, (__int64 *)this + 64); v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"ScaleY:", "goldFont.fnt", v24); *((_QWORD *)this + 59) = v25; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.6); v26 = *((_QWORD *)this + 59); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 1.0, 0.5); v27(v26, &v47); (*(void (__fastcall **)(GJScaleControl *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 59)); v28 = *((_QWORD *)this + 59); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, -30.0, 0.0); cocos2d::CCPoint::operator+(&v47, &v44); v29(v28, &v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, (const cocos2d::CCPoint *)&v44); *((_QWORD *)this + 62) = GJScaleControl::createScaleInput((_QWORD **)this, (__int64)&v47, 1u, (__int64 *)this + 65); v31 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Scale:", "goldFont.fnt", v30); *((_QWORD *)this + 60) = v31; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.6); v32 = *((_QWORD *)this + 60); v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 1.0, 0.5); v33(v32, &v47); (*(void (__fastcall **)(GJScaleControl *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 60)); v34 = *((_QWORD *)this + 60); v35 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, -30.0, 0.0); cocos2d::CCPoint::operator+(&v47, &v45); v35(v34, &v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, (const cocos2d::CCPoint *)&v45); *((_QWORD *)this + 63) = GJScaleControl::createScaleInput((_QWORD **)this, (__int64)&v47, 2u, (__int64 *)this + 66); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source