// // StartPosLayer::addSpeedButtons from 0x10025d660 to 0x10025d793 (307 bytes) // // 1 xrefs: // > StartPosLayer::init @ 0x10025c7ef // // This function is hookable on this platform (idp: pc, 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:27:29 +0000 // __int64 __fastcall StartPosLayer::addSpeedButtons(__int64 a1, __int64 a2) { __int64 v3; // rax __int64 v4; // r14 __int64 v5; // rax __int64 v6; // rdi int v7; // r13d unsigned int *v8; // r14 unsigned __int64 v9; // rax int v10; // r13d __int64 v11; // rbx __int64 result; // rax unsigned int v13; // r14d __int64 v14; // rcx _QWORD *v15; // rdi _BYTE *v16; // rsi _QWORD *v17; // rax __int128 v18; // xmm0 __int64 v19; // rsi __int64 v20; // r12 _BYTE v21[8]; // [rsp+8h] [rbp-58h] BYREF float v22[2]; // [rsp+10h] [rbp-50h] BYREF __int64 v23; // [rsp+18h] [rbp-48h] _BYTE v24[48]; // [rsp+20h] [rbp-40h] BYREF *(_DWORD *)(a1 + 1028) = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1016) + 1840LL) + 332LL); v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(v22, v3); v4 = *(_QWORD *)(a1 + 552); sub_100278250(v24, v22[0] * 0.5, (float)((float)(0.5 * *(float *)(a1 + 736)) + (float)(v22[1] * 0.5)) + -85.0); cocos2d::CCNode::convertToNodeSpace(v21, v4, v24); v5 = sub_1007FE900(v21); *(_QWORD *)(a1 + 1040) = v5; v6 = v5; cocos2d::CCObject::retain(v5); v23 = sub_1007FE900(v6); v7 = 0; v8 = dword_100A06AF0; v24[0] = 32; LABEL_11: v18 = *(_OWORD *)"boost_01_001.png"; while ( 1 ) { *(_OWORD *)&v24[1] = v18; v24[17] = 0; v19 = cocos2d::CCSprite::createWithSpriteFrameName(&v24[1]); sub_1007FEBF0(*(_QWORD *)(a1 + 1040), v19); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.80000001); v20 = CCMenuItemSpriteExtra::create(v19, 0, a1, StartPosLayer::onSelectSpeed, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 72LL))(v20, *v8); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v20); sub_1007FEBF0(v23, v20); if ( (v24[0] & 1) != 0 ) operator delete(*(void **)&v24[16]); if ( ++v7 == 5 ) break; ++v8; v24[0] = 32; switch ( v7 ) { case 0: goto LABEL_11; case 1: v18 = *(_OWORD *)"boost_02_001.png"; break; case 2: v18 = *(_OWORD *)"boost_03_001.png"; break; case 3: v18 = *(_OWORD *)"boost_04_001.png"; break; case 4: v18 = *(_OWORD *)"boost_05_001.png"; break; } } sub_1002782D0(v24, v21); GameToolbox::alignItemsHorisontally(v23, v24, 0, 10.0); v9 = *(unsigned int *)(a1 + 1028); v10 = 1; if ( v9 <= 4 ) v10 = dword_100A06AF0[v9]; v11 = *(_QWORD *)(a1 + 1040); result = sub_1007FEF90(v11); if ( (_DWORD)result ) { v13 = 0; do { v17 = (_QWORD *)sub_1007FEFE0(v11, v13); if ( v10 == v13 ) { v14 = *v17; v15 = v17; v16 = &unk_100A06A06; } else { memset(v24, 125, 3); v14 = *v17; v15 = v17; v16 = v24; } (*(void (__fastcall **)(_QWORD *, _BYTE *))(v14 + 960))(v15, v16); ++v13; result = sub_1007FEF90(v11); } while ( v13 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source