// // TimeSpeedControl::init from 0xd03a90 to 0xd03e8c (1020 bytes) // // 2 xrefs: // > TimeSpeedControl::create @ 0xd03f0c // > @ 0x1030a8 // // 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:06:55 +0000 // __int64 __fastcall TimeSpeedControl::init(Slider **this, GJBaseGameLayer *a2) { unsigned __int8 v3; // w0 unsigned int v4; // w22 __int64 v6; // x23 void (__fastcall *v7)(__int64, _BYTE *); // x24 void (__fastcall *v8)(__int64, _BYTE *); // x24 const char *v9; // x2 __int64 v10; // x23 void (__fastcall *v11)(__int64, _BYTE *); // x24 SliderTouchLogic **v12; // x0 __int64 v13; // x23 void (__fastcall *v14)(__int64, float); // x24 float v15; // s0 float v16; // s0 const char *v17; // x2 __int64 v18; // x0 __int64 v19; // x23 void (__fastcall *v20)(__int64, _BYTE *); // x24 const char **v21; // x23 __int64 (__fastcall *v22)(const char **, __int64); // x24 cocos2d::CCString *v23; // x0 __int64 CString; // x0 cocos2d::CCMenu *v25; // x0 __int64 v26; // x23 GameManager *v27; // x0 GameManager *v28; // x0 char GameVariable; // w26 const char *v30; // x1 __int64 v31; // x25 const char *v32; // x1 __int64 v33; // x24 CCMenuItemToggler *v34; // x0 __int64 v35; // x1 __int64 v36; // x19 void (__fastcall *v37)(__int64, _BYTE *); // x23 __int64 v38; // x0 _BYTE v40[16]; // [xsp+78h] [xbp+78h] BYREF v3 = cocos2d::CCNode::init((cocos2d::CCNode *)this); v4 = v3; if ( v3 ) { *(this + 40) = a2; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v40, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v40); v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v40, 36.0, 148.0); v7(v6, v40); (*((void (__fastcall **)(Slider **, __int64))*this + 57))(this, v6); v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, -14.0); v8(v6, v40); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Time", "goldFont.fnt", v9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.35); (*((void (__fastcall **)(Slider **, __int64, __int64))*this + 58))(this, v10, 1); v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, 47.0); v11(v10, v40); v12 = (SliderTouchLogic **)Slider::create((int)this, (int)TimeSpeedControl::timeSliderChanged, 0, 0.5); *(this + 41) = (Slider *)v12; Slider::setRotated(v12, 1u); Slider::setBarVisibility(*(this + 41)); Slider::setSnap(*(this + 41), 0.47368, 0.03); Slider::setMaxOffset((SliderTouchLogic **)*(this + 41), 140.0); v13 = *((_QWORD *)*(this + 41) + 53); v14 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 128LL); v15 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 136LL))(v13); v14(v13, v15 * 0.7); (*((void (__fastcall **)(Slider **, _QWORD, __int64))*this + 58))(this, *(this + 41), 1); v16 = (float)(*((float *)*(this + 40) + 3278) - 0.1) / 1.9; if ( v16 < 1.0 ) { if ( v16 <= 0.0 ) v16 = 0.0; } else { v16 = 1.0; } Slider::setValue(*(this + 41), v16); v18 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"1.0x", "bigFont.fnt", v17); *(this + 42) = (Slider *)v18; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.3); (*((void (__fastcall **)(Slider **, _QWORD, __int64))*this + 58))(this, *(this + 42), 1); v19 = (__int64)*(this + 42); v20 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, -48.0); v20(v19, v40); v21 = (const char **)*(this + 42); v22 = *((__int64 (__fastcall **)(const char **, __int64))*v21 + 116); v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.01fx", *v21, *((float *)*(this + 40) + 3278)); CString = cocos2d::CCString::getCString(v23); v25 = (cocos2d::CCMenu *)v22(v21, CString); v26 = cocos2d::CCMenu::create(v25); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v26 + 184LL))(v26, &unk_155F658); v27 = (GameManager *)(*((__int64 (__fastcall **)(Slider **, __int64, __int64))*this + 58))(this, v26, 1); v28 = (GameManager *)GameManager::sharedState(v27); GameVariable = GameManager::getGameVariable(v28, "0183"); v31 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_musicOnBtn_001.png", v30); v33 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_musicOffBtn_001.png", v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.45); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 160LL))(v33, 0.45); v34 = (CCMenuItemToggler *)CCMenuItemToggler::create( v33, v31, (__int64)this, (__int64)TimeSpeedControl::onAudioTimeSpeedToggle, 0); *(this + 43) = v34; CCMenuItemToggler::toggle(v34, GameVariable ^ 1); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v26 + 456LL))(v26, *(this + 43)); v35 = (__int64)*(this + 42); v36 = (__int64)*(this + 43); v37 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v36 + 184LL); v38 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 192LL))(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, *(float *)(v38 + 4) - 20.0); v37(v36, v40); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source