// // cocos2d::CCMenuItemFont::initWithString from 0x18005d170 to 0x18005d21f (175 bytes) // // 4 xrefs: // > cocos2d::CCMenuItemFont::create @ 0x18005c48c // > cocos2d::CCMenuItemFont::create @ 0x18005c4fc // > @ 0x18014cf68 // > @ 0x1801bd054 // // 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::CCMenuItemFont::initWithString(__int64 a1, const char *a2, __int64 a3, __int64 a4) { const char *v5; // rbx void **v6; // rdx void **v10; // rcx int v11; // eax struct cocos2d::CCLabelTTF *v12; // rax v5 = (const char *)(a1 + 408); v6 = &qword_1801B2400; if ( (void **)(a1 + 408) != &qword_1801B2400 ) { v10 = (void **)(a1 + 408); if ( *(&Size + 1) > 0xF ) v6 = (void **)qword_1801B2400; sub_1800101E0(v10, v6, Size); } v11 = dword_1801ACB74; *(_DWORD *)(a1 + 400) = dword_1801ACB74; if ( *((_QWORD *)v5 + 3) > 0xFu ) v5 = *(const char **)v5; v12 = cocos2d::CCLabelTTF::create(a2, v5, (float)v11); cocos2d::CCMenuItemLabel::initWithLabel((__int64 *)a1, (__int64)v12, a3, a4); return 1; }