{"type": "func", "start": 6442823360, "end": 6442823522, "name": "cocos2d::CCMenuItemLabel::initWithLabel", "pseudocode": "// \n// cocos2d::CCMenuItemLabel::initWithLabel from 0x18005aec0 to 0x18005af62 (162 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCMenuItemLabel::create @ 0x18005a95c\n// > cocos2d::CCMenuItemLabel::create @ 0x18005a9cc\n// > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005b149\n// > cocos2d::CCMenuItemFont::initWithString @ 0x18005b1fd\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2d6c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 + 944))(a1, v10);\n  (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 960))(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 0x18005aec0 to 0x18005af62 (162 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCMenuItemLabel::create @ 0x18005a95c\n; > cocos2d::CCMenuItemLabel::create @ 0x18005a9cc\n; > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005b149\n; > cocos2d::CCMenuItemFont::initWithString @ 0x18005b1fd\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2d6c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18005aec0\npush    rdi                                                            ; +0x5, 0x18005aec5\nsub     rsp, 20h                                                       ; +0x6, 0x18005aec6\nmov     rax, r8                                                        ; +0xa, 0x18005aeca\nmov     rbx, rdx                                                       ; +0xd, 0x18005aecd\nmov     rdx, rax                                                       ; +0x10, 0x18005aed0\nmov     r8, r9                                                         ; +0x13, 0x18005aed3\nmov     rdi, rcx                                                       ; +0x16, 0x18005aed6\ncall    ?initWithTarget@CCMenuItem@cocos2d@@QEAA_NPEAVCCObject@2@P832@EAAX0@Z@Z; cocos2d::CCMenuItem::initWithTarget(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x19, 0x18005aed9\nmovzx   eax, cs:word_1800F7240                                         ; +0x1e, 0x18005aede\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x25, 0x18005aee5\nmov     [rdi+188h], ax                                                 ; +0x2a, 0x18005aeea\nmov     rcx, rdi                                                       ; +0x31, 0x18005aef1\nmovzx   eax, cs:byte_1800F7242                                         ; +0x34, 0x18005aef4\nmov     [rdi+18Ah], al                                                 ; +0x3b, 0x18005aefb\nmov     rax, [rdi]                                                     ; +0x41, 0x18005af01\nmov     dword ptr [rdi+18Ch], 3F800000h                                ; +0x44, 0x18005af04\nmov     [rsp+28h+arg_0], 7E7Eh                                         ; +0x4e, 0x18005af0e\nmov     [rsp+28h+arg_2], 7Eh ; '~'                                     ; +0x55, 0x18005af15\ncall    qword ptr [rax+3B0h]                                           ; +0x5a, 0x18005af1a\nmov     rax, [rdi]                                                     ; +0x60, 0x18005af20\nmov     rdx, rbx                                                       ; +0x63, 0x18005af23\nmov     rcx, rdi                                                       ; +0x66, 0x18005af26\ncall    qword ptr [rax+3C0h]                                           ; +0x69, 0x18005af29\nmov     rax, [rdi+140h]                                                ; +0x6f, 0x18005af2f\nlea     rcx, [rdi+140h]                                                ; +0x76, 0x18005af36\nmov     dl, 1                                                          ; +0x7d, 0x18005af3d\ncall    qword ptr [rax+48h]                                            ; +0x7f, 0x18005af3f\nmov     rax, [rdi+140h]                                                ; +0x82, 0x18005af42\nlea     rcx, [rdi+140h]                                                ; +0x89, 0x18005af49\nmov     dl, 1                                                          ; +0x90, 0x18005af50\ncall    qword ptr [rax+60h]                                            ; +0x92, 0x18005af52\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x95, 0x18005af55\nmov     al, 1                                                          ; +0x9a, 0x18005af5a\nadd     rsp, 20h                                                       ; +0x9c, 0x18005af5c\npop     rdi                                                            ; +0xa0, 0x18005af60\nretn                                                                   ; +0xa1, 0x18005af61", "xrefs": ["cocos2d::CCMenuItemLabel::create @ 0x18005a95c", "cocos2d::CCMenuItemLabel::create @ 0x18005a9cc", "cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005b149", "cocos2d::CCMenuItemFont::initWithString @ 0x18005b1fd", "<???> @ 0x1801438a8", "<???> @ 0x1801b2d6c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}