{"type": "func", "start": 5370399344, "end": 5370399730, "name": "EditorSoundsLayer::create", "pseudocode": "// \n// EditorSoundsLayer::create from 0x14019ca70 to 0x14019cbf2 (386 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::onEditorSounds @ 0x1401831e2\n// > EditorUI::handleEditorAction @ 0x1401c41bf\n// > <???> @ 0x140919748\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:47 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid *__fastcall EditorSoundsLayer::create(__int64 a1)\n{\n  void *v2; // rdi\n\n  v2 = operator new(0x490u);\n  memset(v2, 0, 0x490u);\n  sub_14019CC00(v2);\n  *(_QWORD *)v2 = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 40) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 41) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 42) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 43) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 44) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 51) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 54) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 68) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 83) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 84) = &EditorSoundsLayer::`vftable';\n  *((_QWORD *)v2 + 134) = 0;\n  *((_QWORD *)v2 + 135) = 0;\n  *((_QWORD *)v2 + 136) = 0;\n  *((_QWORD *)v2 + 137) = 0;\n  *((_OWORD *)v2 + 69) = 0;\n  *((_QWORD *)v2 + 140) = 0;\n  *((_QWORD *)v2 + 141) = 15;\n  *((_BYTE *)v2 + 1104) = 0;\n  *((_DWORD *)v2 + 284) = -1;\n  *((_QWORD *)v2 + 143) = 0;\n  *((_QWORD *)v2 + 144) = 0;\n  *((_BYTE *)v2 + 1160) = 0;\n  if ( (unsigned __int8)EditorSoundsLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    return v2;\n  }\n  else\n  {\n    (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; EditorSoundsLayer::create from 0x14019ca70 to 0x14019cbf2 (386 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::onEditorSounds @ 0x1401831e2\n; > EditorUI::handleEditorAction @ 0x1401c41bf\n; > <???> @ 0x140919748\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:47 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14019ca70\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14019ca75\npush    rdi                                                            ; +0xa, 0x14019ca7a\nsub     rsp, 20h                                                       ; +0xb, 0x14019ca7b\nmov     rbx, rcx                                                       ; +0xf, 0x14019ca7f\nmov     ecx, 490h; Size                                                ; +0x12, 0x14019ca82\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x14019ca87\nmov     rdi, rax                                                       ; +0x1c, 0x14019ca8c\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x14019ca8f\nxor     edx, edx; Val                                                  ; +0x24, 0x14019ca94\nmov     r8d, 490h; Size                                                ; +0x26, 0x14019ca96\nmov     rcx, rax; void *                                               ; +0x2c, 0x14019ca9c\ncall    memset                                                         ; +0x2f, 0x14019ca9f\nmov     rcx, rdi                                                       ; +0x34, 0x14019caa4\ncall    sub_14019CC00                                                  ; +0x37, 0x14019caa7\nlea     rax, ??_7EditorSoundsLayer@@6B@; const EditorSoundsLayer::`vftable' ; +0x3c, 0x14019caac\nmov     [rdi], rax                                                     ; +0x43, 0x14019cab3\nlea     rax, ??_7EditorSoundsLayer@@6B@_0; const EditorSoundsLayer::`vftable' ; +0x46, 0x14019cab6\nmov     [rdi+140h], rax                                                ; +0x4d, 0x14019cabd\nlea     rax, ??_7EditorSoundsLayer@@6B@_1; const EditorSoundsLayer::`vftable' ; +0x54, 0x14019cac4\nmov     [rdi+148h], rax                                                ; +0x5b, 0x14019cacb\nlea     rax, ??_7EditorSoundsLayer@@6B@_2; const EditorSoundsLayer::`vftable' ; +0x62, 0x14019cad2\nmov     [rdi+150h], rax                                                ; +0x69, 0x14019cad9\nlea     rax, ??_7EditorSoundsLayer@@6B@_3; const EditorSoundsLayer::`vftable' ; +0x70, 0x14019cae0\nmov     [rdi+158h], rax                                                ; +0x77, 0x14019cae7\nlea     rax, ??_7EditorSoundsLayer@@6B@_4; const EditorSoundsLayer::`vftable' ; +0x7e, 0x14019caee\nmov     [rdi+160h], rax                                                ; +0x85, 0x14019caf5\nlea     rax, ??_7EditorSoundsLayer@@6B@_5; const EditorSoundsLayer::`vftable' ; +0x8c, 0x14019cafc\nmov     [rdi+198h], rax                                                ; +0x93, 0x14019cb03\nlea     rax, ??_7EditorSoundsLayer@@6B@_6; const EditorSoundsLayer::`vftable' ; +0x9a, 0x14019cb0a\nmov     [rdi+1B0h], rax                                                ; +0xa1, 0x14019cb11\nlea     rax, ??_7EditorSoundsLayer@@6B@_7; const EditorSoundsLayer::`vftable' ; +0xa8, 0x14019cb18\nmov     [rdi+220h], rax                                                ; +0xaf, 0x14019cb1f\nlea     rax, ??_7EditorSoundsLayer@@6B@_8; const EditorSoundsLayer::`vftable' ; +0xb6, 0x14019cb26\nmov     [rdi+298h], rax                                                ; +0xbd, 0x14019cb2d\nlea     rax, ??_7EditorSoundsLayer@@6B@_9; const EditorSoundsLayer::`vftable' ; +0xc4, 0x14019cb34\nmov     [rdi+2A0h], rax                                                ; +0xcb, 0x14019cb3b\nxor     esi, esi                                                       ; +0xd2, 0x14019cb42\nmov     [rdi+430h], rsi                                                ; +0xd4, 0x14019cb44\nmov     [rdi+438h], rsi                                                ; +0xdb, 0x14019cb4b\nmov     [rdi+440h], rsi                                                ; +0xe2, 0x14019cb52\nmov     [rdi+448h], rsi                                                ; +0xe9, 0x14019cb59\nxorps   xmm0, xmm0                                                     ; +0xf0, 0x14019cb60\nmovups  xmmword ptr [rdi+450h], xmm0                                   ; +0xf3, 0x14019cb63\nmov     [rdi+460h], rsi                                                ; +0xfa, 0x14019cb6a\nmov     qword ptr [rdi+468h], 0Fh                                      ; +0x101, 0x14019cb71\nmov     [rdi+450h], sil                                                ; +0x10c, 0x14019cb7c\nmov     dword ptr [rdi+470h], 0FFFFFFFFh                               ; +0x113, 0x14019cb83\nmov     [rdi+478h], rsi                                                ; +0x11d, 0x14019cb8d\nmov     [rdi+480h], rsi                                                ; +0x124, 0x14019cb94\nmov     [rdi+488h], sil                                                ; +0x12b, 0x14019cb9b\nmov     rdx, rbx                                                       ; +0x132, 0x14019cba2\nmov     rcx, rdi                                                       ; +0x135, 0x14019cba5\ncall    EditorSoundsLayer__init                                        ; +0x138, 0x14019cba8\ntest    al, al                                                         ; +0x13d, 0x14019cbad\njz      short loc_14019CBCD                                            ; +0x13f, 0x14019cbaf\nmov     rcx, rdi                                                       ; +0x141, 0x14019cbb1\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x144, 0x14019cbb4\nmov     rax, rdi                                                       ; +0x14a, 0x14019cbba\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x14d, 0x14019cbbd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x152, 0x14019cbc2\nadd     rsp, 20h                                                       ; +0x157, 0x14019cbc7\npop     rdi                                                            ; +0x15b, 0x14019cbcb\nretn                                                                   ; +0x15c, 0x14019cbcc\nmov     rcx, [rdi]                                                     ; +0x15d, 0x14019cbcd\nmov     r8, [rcx+8]                                                    ; +0x160, 0x14019cbd0\nmov     edx, 1                                                         ; +0x164, 0x14019cbd4\nmov     rcx, rdi                                                       ; +0x169, 0x14019cbd9\ncall    r8                                                             ; +0x16c, 0x14019cbdc\nmov     rax, rsi                                                       ; +0x16f, 0x14019cbdf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x172, 0x14019cbe2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x177, 0x14019cbe7\nadd     rsp, 20h                                                       ; +0x17c, 0x14019cbec\npop     rdi                                                            ; +0x180, 0x14019cbf0\nretn                                                                   ; +0x181, 0x14019cbf1", "xrefs": ["EditorPauseLayer::onEditorSounds @ 0x1401831e2", "EditorUI::handleEditorAction @ 0x1401c41bf", "<???> @ 0x140919748"], "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"}