{"type": "func", "start": 5370409728, "end": 5370409947, "name": "CreateMenuItem::create", "pseudocode": "// \n// CreateMenuItem::create from 0x14019f300 to 0x14019f3db (219 bytes)\n// \n// 7 xrefs:\n// > EditorUI::menuItemFromObjectString @ 0x1401f1311\n// > EditorUI::getCreateBtn @ 0x1401f17d9\n// > EditorUI::createCustomItems @ 0x1401f6486\n// > EditorUI::createCustomItems @ 0x1401f6542\n// > EditorUI::createCustomItems @ 0x1401f65fd\n// > EditorUI::createCustomItems @ 0x1401f66b9\n// > <???> @ 0x14091988c\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:27:48 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall CreateMenuItem::create(__int64 *a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  char *v7; // r14\n\n  v7 = (char *)operator new(0x238u);\n  CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v7);\n  *(_QWORD *)v7 = &CreateMenuItem::`vftable';\n  *((_QWORD *)v7 + 40) = &CreateMenuItem::`vftable';\n  *(_OWORD *)(v7 + 520) = 0;\n  *((_QWORD *)v7 + 67) = 0;\n  *((_QWORD *)v7 + 68) = 15;\n  v7[520] = 0;\n  *(_QWORD *)(v7 + 556) = 0;\n  if ( CCMenuItemSpriteExtra::init((__int64 *)v7, a1, 0, a3, a4) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);\n    return v7;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; CreateMenuItem::create from 0x14019f300 to 0x14019f3db (219 bytes)\n; \n; 7 xrefs:\n; > EditorUI::menuItemFromObjectString @ 0x1401f1311\n; > EditorUI::getCreateBtn @ 0x1401f17d9\n; > EditorUI::createCustomItems @ 0x1401f6486\n; > EditorUI::createCustomItems @ 0x1401f6542\n; > EditorUI::createCustomItems @ 0x1401f65fd\n; > EditorUI::createCustomItems @ 0x1401f66b9\n; > <???> @ 0x14091988c\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:27:48 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14019f300\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14019f305\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x14019f30a\nmov     [rsp+arg_8], rdx                                               ; +0xf, 0x14019f30f\npush    r14                                                            ; +0x14, 0x14019f314\nsub     rsp, 30h                                                       ; +0x16, 0x14019f316\nmov     rbx, r9                                                        ; +0x1a, 0x14019f31a\nmov     rdi, r8                                                        ; +0x1d, 0x14019f31d\nmov     rsi, rcx                                                       ; +0x20, 0x14019f320\nmov     ecx, 238h; Size                                                ; +0x23, 0x14019f323\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x14019f328\nmov     r14, rax                                                       ; +0x2d, 0x14019f32d\nmov     [rsp+38h+arg_8], rax                                           ; +0x30, 0x14019f330\nmov     rcx, rax                                                       ; +0x35, 0x14019f335\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x38, 0x14019f338\nlea     rax, ??_7CreateMenuItem@@6B@; const CreateMenuItem::`vftable'  ; +0x3d, 0x14019f33d\nmov     [r14], rax                                                     ; +0x44, 0x14019f344\nlea     rax, ??_7CreateMenuItem@@6B@_0; const CreateMenuItem::`vftable' ; +0x47, 0x14019f347\nmov     [r14+140h], rax                                                ; +0x4e, 0x14019f34e\nxorps   xmm0, xmm0                                                     ; +0x55, 0x14019f355\nmovups  xmmword ptr [r14+208h], xmm0                                   ; +0x58, 0x14019f358\nmov     qword ptr [r14+218h], 0                                        ; +0x60, 0x14019f360\nmov     qword ptr [r14+220h], 0Fh                                      ; +0x6b, 0x14019f36b\nmov     byte ptr [r14+208h], 0                                         ; +0x76, 0x14019f376\nmov     qword ptr [r14+22Ch], 0                                        ; +0x7e, 0x14019f37e\nmov     [rsp+38h+var_18], rbx                                          ; +0x89, 0x14019f389\nmov     r9, rdi                                                        ; +0x8e, 0x14019f38e\nxor     r8d, r8d                                                       ; +0x91, 0x14019f391\nmov     rdx, rsi                                                       ; +0x94, 0x14019f394\nmov     rcx, r14                                                       ; +0x97, 0x14019f397\ncall    CCMenuItemSpriteExtra__init                                    ; +0x9a, 0x14019f39a\ntest    al, al                                                         ; +0x9f, 0x14019f39f\njz      short loc_14019F3B1                                            ; +0xa1, 0x14019f3a1\nmov     rcx, r14                                                       ; +0xa3, 0x14019f3a3\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa6, 0x14019f3a6\nmov     rax, r14                                                       ; +0xac, 0x14019f3ac\njmp     short loc_14019F3C5                                            ; +0xaf, 0x14019f3af\nmov     rcx, [r14]                                                     ; +0xb1, 0x14019f3b1\nmov     r8, [rcx+8]                                                    ; +0xb4, 0x14019f3b4\nmov     edx, 1                                                         ; +0xb8, 0x14019f3b8\nmov     rcx, r14                                                       ; +0xbd, 0x14019f3bd\ncall    r8                                                             ; +0xc0, 0x14019f3c0\nxor     eax, eax                                                       ; +0xc3, 0x14019f3c3\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc5, 0x14019f3c5\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xca, 0x14019f3ca\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xcf, 0x14019f3cf\nadd     rsp, 30h                                                       ; +0xd4, 0x14019f3d4\npop     r14                                                            ; +0xd8, 0x14019f3d8\nretn                                                                   ; +0xda, 0x14019f3da", "xrefs": ["EditorUI::menuItemFromObjectString @ 0x1401f1311", "EditorUI::getCreateBtn @ 0x1401f17d9", "EditorUI::createCustomItems @ 0x1401f6486", "EditorUI::createCustomItems @ 0x1401f6542", "EditorUI::createCustomItems @ 0x1401f65fd", "EditorUI::createCustomItems @ 0x1401f66b9", "<???> @ 0x14091988c"], "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"}