// // StartPosLayer::addSpeedButtons from 0xb64fdc to 0xb651e0 (516 bytes) // // 2 xrefs: // > StartPosLayer::init @ 0xb680a8 // > @ 0x629e0 // // 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:02:14 +0000 // __int64 __fastcall StartPosLayer::addSpeedButtons(StartPosLayer *this) { unsigned int v2; // w19 __int64 v3; // x1 cocos2d::CCDirector *v4; // x0 cocos2d::CCDirector *v5; // x0 cocos2d::CCNode *v6; // x20 cocos2d::CCArray *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCArray *v9; // x0 cocos2d::CCArray *v10; // x23 cocos2d::CCSprite *v11; // x0 cocos2d::CCObject *v12; // x20 cocos2d::CCObject *v13; // x20 unsigned int v14; // w0 __int64 v16; // [xsp+68h] [xbp+68h] BYREF __int64 v17; // [xsp+70h] [xbp+70h] BYREF _BYTE v18[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v19[2]; // [xsp+80h] [xbp+80h] BYREF void *v20; // [xsp+90h] [xbp+90h] __int64 v21; // [xsp+98h] [xbp+98h] v2 = 0; v3 = _stack_chk_guard; v4 = (cocos2d::CCDirector *)*(unsigned int *)(*(_QWORD *)(*((_QWORD *)this + 127) + 1840LL) + 332LL); *((_DWORD *)this + 257) = (_DWORD)v4; v21 = v3; v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(&v16, v5); v6 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v18, *(float *)&v16 * 0.5, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v16 + 1) * 0.5)) - 85.0); v7 = (cocos2d::CCArray *)cocos2d::CCNode::convertToNodeSpace(&v17, v6, (const cocos2d::CCPoint *)v18); v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *((_QWORD *)this + 130) = v8; v9 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9); do { SelectSettingLayer::frameForItem(2u, v2, v19); v11 = (cocos2d::CCSprite *)((char *)v19 + 1); if ( (v19[0] & 1) != 0 ) v11 = (cocos2d::CCSprite *)v20; v12 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v11, (const char *)LOBYTE(v19[0])); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 130), v12); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v12 + 160LL))(v12, 0.8); v13 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v12, 0, (__int64)this, (__int64)StartPosLayer::onSelectSpeed, 0); v14 = SelectSettingLayer::idxToValue(2, v2); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v13 + 72LL))(v13, v14); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v13); cocos2d::CCArray::addObject(v10, v13); if ( (v19[0] & 1) != 0 ) operator delete(v20); ++v2; } while ( v2 != 5 ); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (const cocos2d::CCPoint *)&v17); GameToolbox::alignItemsHorisontally((__int64)v10, (__int64)v18, 0, 10.0); StartPosLayer::onSelectSpeed(this, nullptr); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source