// // TabbedPopupLayer::createTabButtons from 0xc3824c to 0xc386c4 (1144 bytes) // // 2 xrefs: // > TabbedPopupLayer::createTabButtons @ 0xc38730 // > @ 0x102538 // // 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:04:52 +0000 // __int64 __fastcall TabbedPopupLayer::createTabButtons( TabbedPopupLayer *this, float a2, float a3, float a4, float a5, float a6, float a7) { cocos2d::CCDirector *v12; // x0 cocos2d::CCArray *WinSize; // x0 __int64 v14; // x0 const char *v15; // x6 __int64 v16; // x1 cocos2d::CCArray *v17; // x26 __int64 v18; // x19 unsigned __int64 v19; // x20 char v20; // w2 __int64 v21; // x1 ButtonSprite *v22; // x0 __int64 v23; // x22 __int64 v24; // x1 __int64 v25; // x0 __int64 v26; // x1 cocos2d::CCObject *v27; // x22 __int64 v28; // x2 cocos2d::CCNode *v29; // x20 float v30; // s9 float v31; // s10 const char *v32; // x1 __int64 v33; // x0 __int64 v34; // x0 __int64 v35; // x22 cocos2d::CCNode *v36; // x25 void (__fastcall *v37)(__int64, __int64 *); // x24 const char *v38; // x1 cocos2d::CCSprite *v39; // x20 __int64 v40; // x0 __int64 v41; // x19 cocos2d::CCNode *v42; // x22 void (__fastcall *v43)(__int64, __int64 *); // x20 const cocos2d::CCSize *v45; // x0 __int64 v46; // x1 __int64 v47; // x2 cocos2d::CCSprite *v48; // x0 const char *v49; // x1 __int64 v50; // x24 void (__fastcall *v52)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h] unsigned int v54; // [xsp+C0h] [xbp+C0h] __int64 v55; // [xsp+D0h] [xbp+D0h] BYREF float v56[2]; // [xsp+D8h] [xbp+D8h] BYREF __int64 v57; // [xsp+E0h] [xbp+E0h] BYREF v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)&_stack_chk_guard); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize(&v55, v12); v14 = cocos2d::CCArray::create(WinSize); v16 = *((_QWORD *)this + 127); v17 = (cocos2d::CCArray *)v14; if ( 0x8E38E38E38E38E39LL * ((*((_QWORD *)this + 128) - v16) >> 3) ) { v18 = 0; v19 = 0; v54 = (int)a3; do { v20 = *(_BYTE *)(v16 + v18); v21 = v16 + v18; v22 = (ButtonSprite *)(v21 + 1); if ( (v20 & 1) != 0 ) v22 = *(ButtonSprite **)(v21 + 16); v23 = ButtonSprite::create(v22, (const char *)v54, 0, 0, a5, "bigFont.fnt", "GJ_button_05.png", v15, 25.0); *(_DWORD *)(v23 + 616) = 1066611507; *(_DWORD *)(v23 + 656) = 1050253722; v24 = *(_BYTE *)(*((_QWORD *)this + 127) + v18 + 24) >> 1; if ( (*(_BYTE *)(*((_QWORD *)this + 127) + v18 + 24) & 1) != 0 ) v24 = *(_QWORD *)(*((_QWORD *)this + 127) + v18 + 32); if ( v24 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v23 + 624) + 344LL))(*(_QWORD *)(v23 + 624), 0); v45 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 328LL))(v23); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v56, v45); v46 = *((_QWORD *)this + 127) + v18; v47 = v46 + 24; v48 = (cocos2d::CCSprite *)(v46 + 25); v49 = (const char *)*(unsigned __int8 *)(v46 + 24); if ( ((unsigned __int8)v49 & 1) != 0 ) v48 = *(cocos2d::CCSprite **)(v47 + 16); v50 = cocos2d::CCSprite::createWithSpriteFrameName(v48, v49); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 0.7); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v57, v56[0] * 0.5, (float)(*(float *)(v23 + 660) + (float)(v56[1] * 0.5)) - 1.0); v52(v50, &v57); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v23 + 464LL))(v23, v50, 1); } v25 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)TabbedPopupLayer::onTab, 0); v26 = (unsigned int)v19; v27 = (cocos2d::CCObject *)v25; ++v19; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 72LL))(v25, v26); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v27); v28 = *((_QWORD *)this + 127) + v18; v18 += 72; *(_QWORD *)(v28 + 64) = v27; cocos2d::CCArray::addObject(v17, v27); v16 = *((_QWORD *)this + 127); } while ( v19 < 0x8E38E38E38E38E39LL * ((*((_QWORD *)this + 128) - v16) >> 3) ); } v29 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, *(float *)&v55 * 0.5, a2); cocos2d::CCNode::convertToNodeSpace(&v57, v29, (const cocos2d::CCPoint *)v56); GameToolbox::alignItemsHorisontally((__int64)v17, (__int64)&v57, 0, a4); v30 = a6 + (float)(*((float *)this + 183) * 0.5); v31 = *((float *)&v55 + 1) * 0.5; v33 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v32); v34 = CCMenuItemSpriteExtra::create(v33, 0, (__int64)this, (__int64)TabbedPopupLayer::onTabPage, 0); *((_QWORD *)this + 134) = v34; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v34 + 72LL))(v34, 0xFFFFFFFFLL); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 134), a7); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 134)); v35 = *((_QWORD *)this + 134); v36 = *((cocos2d::CCNode **)this + 69); v37 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, -(float)(v30 - (float)(*(float *)&v55 * 0.5)), v31); cocos2d::CCNode::convertToNodeSpace(&v57, v36, (const cocos2d::CCPoint *)v56); v37(v35, &v57); v39 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v38); cocos2d::CCSprite::setFlipX(v39, 1); v40 = CCMenuItemSpriteExtra::create((__int64)v39, 0, (__int64)this, (__int64)TabbedPopupLayer::onTabPage, 0); *((_QWORD *)this + 135) = v40; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 72LL))(v40, 1); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 135), a7); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 135)); v41 = *((_QWORD *)this + 135); v42 = *((cocos2d::CCNode **)this + 69); v43 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, v30 + (float)(*(float *)&v55 * 0.5), v31); cocos2d::CCNode::convertToNodeSpace(&v57, v42, (const cocos2d::CCPoint *)v56); v43(v41, &v57); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source