// // BonusDropdown::init from 0x68763c to 0x68792c (752 bytes) // // 2 xrefs: // > BonusDropdown::create @ 0x6879d0 // > @ 0x84be0 // // 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 12:50:31 +0000 // __int64 __fastcall BonusDropdown::init(float *a1, __int64 a2, unsigned int a3) { cocos2d::CCDirector *v5; // x0 const char *v6; // x1 __int64 v7; // x20 void (__fastcall *v8)(__int64, __int64 *); // x22 __int64 v9; // x0 float v10; // s1 float v11; // s0 float v12; // s1 __int64 v13; // x0 __int64 v14; // x3 __int64 v15; // x22 void (__fastcall *v16)(__int64, __int64 *); // x26 int v17; // w1 __int64 v18; // x22 void (__fastcall *v19)(__int64, __int64 *); // x26 __int64 v20; // x27 void (__fastcall *v21)(__int64, __int64 *); // x26 const char *v22; // x2 cocos2d::CCLabelBMFont *v23; // x0 __int64 v24; // x22 __int64 v25; // x0 __int64 (__fastcall *v26)(__int64); // x1 void (__fastcall *v27)(__int64, __int64 *); // x20 __int64 v28; // x25 void (__fastcall *v29)(__int64, __int64 *); // x20 float v32; // [xsp+70h] [xbp+70h] __int64 v33; // [xsp+80h] [xbp+80h] BYREF _BYTE v34[8]; // [xsp+88h] [xbp+88h] BYREF __int64 v35; // [xsp+90h] [xbp+90h] BYREF v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v33, v5); v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"shopTabBG_001.png", v6); v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 184LL); v32 = *(float *)&v33 * 0.5; v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, v32, *(float *)(v9 + 4) * 0.5); v8(v7, &v35); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 128LL))(v7, 1.8); v10 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7) + 4); v11 = *(float *)&v33; LODWORD(v35) = 0; v12 = v10 - 2.0; a1[82] = v12; v13 = cocos2d::CCLayerColor::create(&v35, v11, v12); v14 = *(_QWORD *)a1; *((_QWORD *)a1 + 40) = v13; (*(void (__fastcall **)(float *))(v14 + 456))(a1); v15 = *((_QWORD *)a1 + 40); v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 0.0, *((float *)&v33 + 1)); v16(v15, &v35); (*(void (__fastcall **)(__int64, __int64))(**((_QWORD **)a1 + 40) + 456LL))(*((_QWORD *)a1 + 40), v7); v18 = PriceLabel::create((PriceLabel *)a3, v17); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 100.0, -4.0); cocos2d::CCPoint::operator+(&v35, v20, v34); v19(v18, &v35); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 1.0, 0.5); v21(v18, &v35); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.9); (*(void (__fastcall **)(__int64, __int64))(**((_QWORD **)a1 + 40) + 456LL))(*((_QWORD *)a1 + 40), v18); v23 = (cocos2d::CCLabelBMFont *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v23 = *(cocos2d::CCLabelBMFont **)(a2 + 16); v24 = cocos2d::CCLabelBMFont::create(v23, "bigFont.fnt", v22); v25 = v7; v26 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); v28 = v26(v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, -134.0, -1.0); cocos2d::CCPoint::operator+(&v35, v28, v34); v27(v24, &v35); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 0.0, 0.5); v29(v24, &v35); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.9); (*(void (__fastcall **)(__int64, __int64, __int64))(**((_QWORD **)a1 + 40) + 464LL))(*((_QWORD *)a1 + 40), v24, 2); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source