// // SetupTriggerPopup::createCustomButton from 0xb20b10 to 0xb20e20 (784 bytes) // // 5 xrefs: // > SetupKeyframePopup::init @ 0xb6a8cc // > SetupKeyframePopup::init @ 0xb6a964 // > SetupKeyframePopup::init @ 0xb6a9fc // > SetupKeyframePopup::init @ 0xb6aa94 // > @ 0xd32e8 // // 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:01:36 +0000 // __int64 __fastcall SetupTriggerPopup::createCustomButton( __int64 a1, unsigned int a2, __int64 a3, __int64 *a4, const cocos2d::CCPoint *a5, unsigned __int8 a6, unsigned int a7, signed int a8, float a9, float a10) { int v17; // w26 cocos2d::CCArray *PageContainer; // x25 const char *v19; // x1 int v20; // w0 cocos2d::CCSprite *v21; // x0 __int64 v22; // x22 cocos2d::CCObject *v23; // x20 void (__fastcall *v24)(cocos2d::CCObject *, __int64 *); // x28 const char *v25; // x2 cocos2d::CCLabelBMFont *v26; // x0 cocos2d::CCObject *v27; // x20 void (__fastcall *v28)(cocos2d::CCObject *, __int64 *); // x23 __int64 v29; // x0 __int64 (__fastcall *v30)(__int64); // x1 void (__fastcall *v31)(cocos2d::CCObject *, __int64 *); // x22 float v32; // s1 float v33; // s0 float v34; // s1 __int64 v36; // x0 __int64 (__fastcall *v37)(__int64); // x1 float v38; // s0 cocos2d::CCArray *GroupContainer; // [xsp+80h] [xbp+80h] float v40; // [xsp+80h] [xbp+80h] float v42; // [xsp+A0h] [xbp+A0h] BYREF float v43; // [xsp+A4h] [xbp+A4h] _BYTE v44[8]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v45; // [xsp+B0h] [xbp+B0h] BYREF v17 = a6; PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer((cocos2d::CCArray **)a1, a7); GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer((cocos2d::CCArray **)a1, a8); v20 = *(unsigned __int8 *)a4; if ( (v20 & 1) != 0 ) { if ( a4[1] ) { LABEL_3: v21 = (cocos2d::CCSprite *)a4[2]; goto LABEL_4; } } else if ( v20 >> 1 ) { goto LABEL_17; } std::string::assign(a4, "GJ_plus2Btn_001.png"); if ( (*(_BYTE *)a4 & 1) != 0 ) goto LABEL_3; LABEL_17: v21 = (cocos2d::CCSprite *)((char *)a4 + 1); LABEL_4: v22 = cocos2d::CCSprite::createWithSpriteFrameName(v21, v19); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, a9); v23 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v22, 0, a1, 1424, 1); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v23 + 72LL))(v23, a2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v23); v24 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v45, *(cocos2d::CCNode **)(a1 + 552), a5); v24(v23, &v45); cocos2d::CCArray::addObject(PageContainer, v23); if ( a8 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v23); if ( v17 ) cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v42, 0.0, 4.0); else cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v42, 8.0, 0.0); v26 = (cocos2d::CCLabelBMFont *)(a3 + 1); if ( (*(_BYTE *)a3 & 1) != 0 ) v26 = *(cocos2d::CCLabelBMFont **)(a3 + 16); v27 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v26, "goldFont.fnt", v25); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v27); cocos2d::CCArray::addObject(PageContainer, v27); if ( a8 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v27); v28 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v27 + 296LL); if ( v17 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 0.5, 0.0); v28(v27, &v45); v29 = v22; v30 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 328LL); v31 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v27 + 184LL); v40 = v42; v32 = *(float *)(v30(v29) + 4); v33 = v40; v34 = v43 + (float)((float)(v32 * 0.5) * a9); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 0.0, 0.5); v28(v27, &v45); v36 = v22; v37 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 328LL); v31 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v27 + 184LL); v38 = *(float *)v37(v36); v34 = v43; v33 = v42 + (float)((float)(v38 * 0.5) * a9); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v33, v34); cocos2d::CCPoint::operator+(&v45, a5); v31(v27, &v45); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v27 + 160LL))(v27, a10); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source