// // StartPosLayer::addSpeedButtons from 0x6aad18 to 0x6aae5c (324 bytes) // // 1 xrefs: // > StartPosLayer::init @ 0x6acf06 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:56:34 +0000 // unsigned int __fastcall StartPosLayer::addSpeedButtons(StartPosLayer *this) { const cocos2d::CCPoint *v2; // r7 cocos2d::CCArray *v3; // r0 unsigned int v4; // r6 cocos2d::CCObject *v5; // r0 cocos2d::CCArray *v6; // r0 cocos2d::CCArray *v7; // r9 const char *v8; // r1 cocos2d::CCSprite *v9; // r0 cocos2d::CCObject *v10; // r7 cocos2d::CCObject *v11; // r7 unsigned int v12; // r0 float v14[2]; // [sp+8h] [bp-30h] BYREF _BYTE v15[8]; // [sp+10h] [bp-28h] BYREF _BYTE v16[8]; // [sp+18h] [bp-20h] BYREF _DWORD v17[2]; // [sp+20h] [bp-18h] BYREF int v18[3]; // [sp+28h] [bp-10h] BYREF *((_DWORD *)this + 180) = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 178) + 1648) + 272); cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14); v2 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v17, v14[0] * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v14[1] * 0.5)) - 85.0); v3 = (cocos2d::CCArray *)cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v15, v2); v4 = 0; v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v3); *((_DWORD *)this + 182) = v5; v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v5); v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); do { SelectSettingLayer::frameForItem(v18, 2u, v4); if ( (v18[0] & 1) != 0 ) v9 = (cocos2d::CCSprite *)v18[2]; else v9 = (cocos2d::CCSprite *)((char *)v18 + 1); v10 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v9, v8); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), v10); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v10 + 80))(v10, 1061997773); v17[0] = StartPosLayer::onSelectSpeed; v17[1] = 0; v11 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v10, 0, (int)this, (int)StartPosLayer::onSelectSpeed, 0); v12 = SelectSettingLayer::idxToValue(2, v4); (*(void (__fastcall **)(cocos2d::CCObject *, unsigned int))(*(_DWORD *)v11 + 36))(v11, v12); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v11); cocos2d::CCArray::addObject(v7, v11); ++v4; std::string::~string((int)v18); } while ( v4 != 5 ); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, (const cocos2d::CCPoint *)v15); GameToolbox::alignItemsHorisontally(*(float *)&v7, 10.0, (int)v16, 0); return StartPosLayer::onSelectSpeed(this, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source