// // MoreSearchLayer::createToggleButton from 0x1404404e0 to 0x140440746 (614 bytes) // // 13 xrefs: // > MoreSearchLayer::init @ 0x14043becd // > MoreSearchLayer::init @ 0x14043c02b // > MoreSearchLayer::init @ 0x14043c181 // > MoreSearchLayer::init @ 0x14043c2e1 // > MoreSearchLayer::init @ 0x14043c432 // > MoreSearchLayer::init @ 0x14043c58f // > MoreSearchLayer::init @ 0x14043c6ef // > MoreSearchLayer::init @ 0x14043c84b // > MoreSearchLayer::init @ 0x14043c99a // > MoreSearchLayer::init @ 0x14043caf9 // > MoreSearchLayer::init @ 0x14043cc50 // > @ 0x14092705c // > @ 0x140927068 // // 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 11:32:21 +0000 // // Hidden C++ exception states: #wind=1 cocos2d::CCMenuItem *__fastcall MoreSearchLayer::createToggleButton( __int64 a1, const char *a2, __int64 a3, unsigned __int8 a4, __int64 a5, __int64 a6) { struct cocos2d::CCSprite *v10; // r12 struct cocos2d::CCSprite *v11; // rbx cocos2d::CCMenuItem *v12; // r15 __int64 v13; // rbx __int64 v14; // rax const char *v15; // rcx struct cocos2d::CCLabelBMFont *v16; // rdi __int64 v17; // rbx __int64 v18; // rax float *v19; // rax __int64 v20; // rax __int64 v22; // [rsp+20h] [rbp-78h] BYREF _BYTE v23[8]; // [rsp+28h] [rbp-70h] BYREF const char *v24; // [rsp+30h] [rbp-68h] v24 = a2; v22 = a6; v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v10 + 160LL))(v10); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 160LL))(v11); v12 = CCMenuItemToggler::create((int)v10, (int)v11, a1, a3); CCMenuItemToggler::toggle((__int64)v12, a4); (*(void (__fastcall **)(__int64, cocos2d::CCMenuItem *))(*(_QWORD *)a5 + 464LL))(a5, v12); v13 = *(_QWORD *)v12; cocos2d::CCNode::convertToNodeSpace(a5, &v22, a6); (*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(v13 + 184))(v12, v14); *(_DWORD *)(*((_QWORD *)v12 + 47) + 372LL) = 1069547520; *(_DWORD *)(*((_QWORD *)v12 + 48) + 372LL) = 1069547520; CCMenuItemToggler::toggle((__int64)v12, *((unsigned __int8 *)v12 + 392)); v15 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v15 = *(const char **)a2; v16 = cocos2d::CCLabelBMFont::create(v15, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v16); v17 = *(_QWORD *)v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v17 + 288))(v16, v18); v19 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v10 + 320LL))(v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (float)((float)(*v19 * 0.5) * 0.80000001) + 8.0, 0.0); cocos2d::CCPoint::operator+(a6, &v22, v20); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v16 + 184LL))(v16, &v22); if ( *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 320LL))(v16) > 80.0 ) { (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 320LL))(v16); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 160LL))(v16); } (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 168LL))(v16); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 160LL))(v16); sub_14003D310((__int64)a2); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source