// // cocos2d::CCMenuItemLabel::initWithLabel from 0x18005cec0 to 0x18005cf62 (162 bytes) // // 6 xrefs: // > cocos2d::CCMenuItemLabel::create @ 0x18005c95c // > cocos2d::CCMenuItemLabel::create @ 0x18005c9cc // > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d149 // > cocos2d::CCMenuItemFont::initWithString @ 0x18005d1fd // > @ 0x18014cf68 // > @ 0x1801bd024 // // 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:21:49 +0000 // char __fastcall cocos2d::CCMenuItemLabel::initWithLabel(__int64 *a1, __int64 a2, __int64 a3, __int64 a4) { __int64 v6; // rax __int64 v7; // rdx __int64 v8; // rdx _BYTE v10[3]; // [rsp+30h] [rbp+8h] BYREF cocos2d::CCMenuItem::initWithTarget(a1, a3, a4); *((_WORD *)a1 + 196) = -1; *((_BYTE *)a1 + 394) = -1; v6 = *a1; *((_DWORD *)a1 + 99) = 1065353216; memset(v10, 126, sizeof(v10)); (*(void (__fastcall **)(__int64 *, _BYTE *))(v6 + 960))(a1, v10); (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 976))(a1, a2); LOBYTE(v7) = 1; (*(void (__fastcall **)(__int64 *, __int64))(a1[40] + 72))(a1 + 40, v7); LOBYTE(v8) = 1; (*(void (__fastcall **)(__int64 *, __int64))(a1[40] + 96))(a1 + 40, v8); return 1; }