{"type": "func", "start": 6442831552, "end": 6442831714, "name": "cocos2d::CCMenuItemLabel::initWithLabel", "pseudocode": "// \n// cocos2d::CCMenuItemLabel::initWithLabel from 0x18005cec0 to 0x18005cf62 (162 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCMenuItemLabel::create @ 0x18005c95c\n// > cocos2d::CCMenuItemLabel::create @ 0x18005c9cc\n// > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d149\n// > cocos2d::CCMenuItemFont::initWithString @ 0x18005d1fd\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd024\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:49 +0000\n// \n\nchar __fastcall cocos2d::CCMenuItemLabel::initWithLabel(__int64 *a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  __int64 v6; // rax\n  __int64 v7; // rdx\n  __int64 v8; // rdx\n  _BYTE v10[3]; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCMenuItem::initWithTarget(a1, a3, a4);\n  *((_WORD *)a1 + 196) = -1;\n  *((_BYTE *)a1 + 394) = -1;\n  v6 = *a1;\n  *((_DWORD *)a1 + 99) = 1065353216;\n  memset(v10, 126, sizeof(v10));\n  (*(void (__fastcall **)(__int64 *, _BYTE *))(v6 + 960))(a1, v10);\n  (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 976))(a1, a2);\n  LOBYTE(v7) = 1;\n  (*(void (__fastcall **)(__int64 *, __int64))(a1[40] + 72))(a1 + 40, v7);\n  LOBYTE(v8) = 1;\n  (*(void (__fastcall **)(__int64 *, __int64))(a1[40] + 96))(a1 + 40, v8);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCMenuItemLabel::initWithLabel from 0x18005cec0 to 0x18005cf62 (162 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCMenuItemLabel::create @ 0x18005c95c\n; > cocos2d::CCMenuItemLabel::create @ 0x18005c9cc\n; > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d149\n; > cocos2d::CCMenuItemFont::initWithString @ 0x18005d1fd\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd024\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:49 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18005cec0\npush    rdi                                                            ; +0x5, 0x18005cec5\nsub     rsp, 20h                                                       ; +0x6, 0x18005cec6\nmov     rax, r8                                                        ; +0xa, 0x18005ceca\nmov     rbx, rdx                                                       ; +0xd, 0x18005cecd\nmov     rdx, rax                                                       ; +0x10, 0x18005ced0\nmov     r8, r9                                                         ; +0x13, 0x18005ced3\nmov     rdi, rcx                                                       ; +0x16, 0x18005ced6\ncall    ?initWithTarget@CCMenuItem@cocos2d@@QEAA_NPEAVCCObject@2@P832@EAAX0@Z@Z; cocos2d::CCMenuItem::initWithTarget(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x19, 0x18005ced9\nmovzx   eax, cs:word_1800FD6BC                                         ; +0x1e, 0x18005cede\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x25, 0x18005cee5\nmov     [rdi+188h], ax                                                 ; +0x2a, 0x18005ceea\nmov     rcx, rdi                                                       ; +0x31, 0x18005cef1\nmovzx   eax, cs:byte_1800FD6BE                                         ; +0x34, 0x18005cef4\nmov     [rdi+18Ah], al                                                 ; +0x3b, 0x18005cefb\nmov     rax, [rdi]                                                     ; +0x41, 0x18005cf01\nmov     dword ptr [rdi+18Ch], 3F800000h                                ; +0x44, 0x18005cf04\nmov     [rsp+28h+arg_0], 7E7Eh                                         ; +0x4e, 0x18005cf0e\nmov     [rsp+28h+arg_2], 7Eh ; '~'                                     ; +0x55, 0x18005cf15\ncall    qword ptr [rax+3C0h]                                           ; +0x5a, 0x18005cf1a\nmov     rax, [rdi]                                                     ; +0x60, 0x18005cf20\nmov     rdx, rbx                                                       ; +0x63, 0x18005cf23\nmov     rcx, rdi                                                       ; +0x66, 0x18005cf26\ncall    qword ptr [rax+3D0h]                                           ; +0x69, 0x18005cf29\nmov     rax, [rdi+140h]                                                ; +0x6f, 0x18005cf2f\nlea     rcx, [rdi+140h]                                                ; +0x76, 0x18005cf36\nmov     dl, 1                                                          ; +0x7d, 0x18005cf3d\ncall    qword ptr [rax+48h]                                            ; +0x7f, 0x18005cf3f\nmov     rax, [rdi+140h]                                                ; +0x82, 0x18005cf42\nlea     rcx, [rdi+140h]                                                ; +0x89, 0x18005cf49\nmov     dl, 1                                                          ; +0x90, 0x18005cf50\ncall    qword ptr [rax+60h]                                            ; +0x92, 0x18005cf52\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x95, 0x18005cf55\nmov     al, 1                                                          ; +0x9a, 0x18005cf5a\nadd     rsp, 20h                                                       ; +0x9c, 0x18005cf5c\npop     rdi                                                            ; +0xa0, 0x18005cf60\nretn                                                                   ; +0xa1, 0x18005cf61", "xrefs": ["cocos2d::CCMenuItemLabel::create @ 0x18005c95c", "cocos2d::CCMenuItemLabel::create @ 0x18005c9cc", "cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d149", "cocos2d::CCMenuItemFont::initWithString @ 0x18005d1fd", "<???> @ 0x18014cf68", "<???> @ 0x1801bd024"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}