{"type": "func", "start": 5370337840, "end": 5370338381, "name": "EditorSoundBrowserLayer::create", "pseudocode": "// \n// EditorSoundBrowserLayer::create from 0x14018da30 to 0x14018dc4d (541 bytes)\n// \n// 5 xrefs:\n// > AccountReviewPopup::jumpTo @ 0x1400bc187\n// > CommentCell::onGoToLevel @ 0x1401551b6\n// > EditorSoundsLayer::onBrowse @ 0x14019ed54\n// > <???> @ 0x14091919c\n// > <???> @ 0x1409191a8\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:41 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall EditorSoundBrowserLayer::create(__int64 a1, __int64 a2)\n{\n  _QWORD *v4; // rdi\n  __int64 v5; // rax\n  _BYTE v7[32]; // [rsp+28h] [rbp-50h] BYREF\n  __int64 v8; // [rsp+48h] [rbp-30h]\n\n  v8 = a1;\n  v4 = operator new(0x4B8u);\n  SetupTriggerPopup::SetupTriggerPopup((__int64)v4);\n  *v4 = &EditorSoundBrowserLayer::`vftable';\n  v4[40] = &EditorSoundBrowserLayer::`vftable';\n  v4[41] = &EditorSoundBrowserLayer::`vftable';\n  v4[42] = &EditorSoundBrowserLayer::`vftable';\n  v4[43] = &EditorSoundBrowserLayer::`vftable';\n  v4[44] = &EditorSoundBrowserLayer::`vftable';\n  v4[51] = &EditorSoundBrowserLayer::`vftable';\n  v4[54] = &EditorSoundBrowserLayer::`vftable';\n  v4[68] = &EditorSoundBrowserLayer::`vftable';\n  v4[83] = &EditorSoundBrowserLayer::`vftable';\n  v4[84] = &EditorSoundBrowserLayer::`vftable';\n  v4[125] = &EditorSoundBrowserLayer::`vftable';\n  v4[126] = &EditorSoundBrowserLayer::`vftable';\n  v4[127] = &EditorSoundBrowserLayer::`vftable';\n  v4[128] = &EditorSoundBrowserLayer::`vftable';\n  v4[129] = 1;\n  v4[130] = 0;\n  v4[131] = 0;\n  v4[132] = 0;\n  v4[133] = 0;\n  v4[134] = 0;\n  v4[135] = 0;\n  v4[136] = 0;\n  *((_DWORD *)v4 + 274) = 0;\n  *((_OWORD *)v4 + 69) = 0;\n  v4[140] = 0;\n  v4[141] = 15;\n  *((_BYTE *)v4 + 1104) = 0;\n  *((_OWORD *)v4 + 71) = 0;\n  v4[144] = 0;\n  v4[145] = 15;\n  *((_BYTE *)v4 + 1136) = 0;\n  v4[146] = 0;\n  v4[147] = 0;\n  *((_DWORD *)v4 + 296) = 0;\n  *((_BYTE *)v4 + 1188) = 0;\n  v4[149] = 0;\n  *((_DWORD *)v4 + 300) = 0;\n  v5 = sub_14003F4F0((__int64)v7, a1);\n  if ( (unsigned __int8)EditorSoundBrowserLayer::init(v4, v5, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);\n    v4 = nullptr;\n  }\n  sub_14003D310(a1);\n  return v4;\n}", "assembly": "; \n; EditorSoundBrowserLayer::create from 0x14018da30 to 0x14018dc4d (541 bytes)\n; \n; 5 xrefs:\n; > AccountReviewPopup::jumpTo @ 0x1400bc187\n; > CommentCell::onGoToLevel @ 0x1401551b6\n; > EditorSoundsLayer::onBrowse @ 0x14019ed54\n; > <???> @ 0x14091919c\n; > <???> @ 0x1409191a8\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:41 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14018da30\npush    rbp                                                            ; +0x5, 0x14018da35\npush    rsi                                                            ; +0x6, 0x14018da36\npush    rdi                                                            ; +0x7, 0x14018da37\nsub     rsp, 60h                                                       ; +0x8, 0x14018da38\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14018da3c\nxor     rax, rsp                                                       ; +0x13, 0x14018da43\nmov     [rsp+78h+var_28], rax                                          ; +0x16, 0x14018da46\nmov     rbx, rdx                                                       ; +0x1b, 0x14018da4b\nmov     rsi, rcx                                                       ; +0x1e, 0x14018da4e\nmov     [rsp+78h+var_30], rcx                                          ; +0x21, 0x14018da51\nmov     ecx, 4B8h; Size                                                ; +0x26, 0x14018da56\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x14018da5b\nmov     rdi, rax                                                       ; +0x30, 0x14018da60\nmov     [rsp+78h+var_58], rax                                          ; +0x33, 0x14018da63\nmov     rcx, rax                                                       ; +0x38, 0x14018da68\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x3b, 0x14018da6b\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@; const EditorSoundBrowserLayer::`vftable' ; +0x40, 0x14018da70\nmov     [rdi], rax                                                     ; +0x47, 0x14018da77\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_0; const EditorSoundBrowserLayer::`vftable' ; +0x4a, 0x14018da7a\nmov     [rdi+140h], rax                                                ; +0x51, 0x14018da81\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_1; const EditorSoundBrowserLayer::`vftable' ; +0x58, 0x14018da88\nmov     [rdi+148h], rax                                                ; +0x5f, 0x14018da8f\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_2; const EditorSoundBrowserLayer::`vftable' ; +0x66, 0x14018da96\nmov     [rdi+150h], rax                                                ; +0x6d, 0x14018da9d\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_3; const EditorSoundBrowserLayer::`vftable' ; +0x74, 0x14018daa4\nmov     [rdi+158h], rax                                                ; +0x7b, 0x14018daab\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_4; const EditorSoundBrowserLayer::`vftable' ; +0x82, 0x14018dab2\nmov     [rdi+160h], rax                                                ; +0x89, 0x14018dab9\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_5; const EditorSoundBrowserLayer::`vftable' ; +0x90, 0x14018dac0\nmov     [rdi+198h], rax                                                ; +0x97, 0x14018dac7\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_6; const EditorSoundBrowserLayer::`vftable' ; +0x9e, 0x14018dace\nmov     [rdi+1B0h], rax                                                ; +0xa5, 0x14018dad5\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_7; const EditorSoundBrowserLayer::`vftable' ; +0xac, 0x14018dadc\nmov     [rdi+220h], rax                                                ; +0xb3, 0x14018dae3\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_8; const EditorSoundBrowserLayer::`vftable' ; +0xba, 0x14018daea\nmov     [rdi+298h], rax                                                ; +0xc1, 0x14018daf1\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_9; const EditorSoundBrowserLayer::`vftable' ; +0xc8, 0x14018daf8\nmov     [rdi+2A0h], rax                                                ; +0xcf, 0x14018daff\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_10; const EditorSoundBrowserLayer::`vftable' ; +0xd6, 0x14018db06\nmov     [rdi+3E8h], rax                                                ; +0xdd, 0x14018db0d\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_11; const EditorSoundBrowserLayer::`vftable' ; +0xe4, 0x14018db14\nmov     [rdi+3F0h], rax                                                ; +0xeb, 0x14018db1b\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_12; const EditorSoundBrowserLayer::`vftable' ; +0xf2, 0x14018db22\nmov     [rdi+3F8h], rax                                                ; +0xf9, 0x14018db29\nlea     rax, ??_7EditorSoundBrowserLayer@@6B@_13; const EditorSoundBrowserLayer::`vftable' ; +0x100, 0x14018db30\nmov     [rdi+400h], rax                                                ; +0x107, 0x14018db37\nmov     qword ptr [rdi+408h], 1                                        ; +0x10e, 0x14018db3e\nxor     ebp, ebp                                                       ; +0x119, 0x14018db49\nmov     [rdi+410h], rbp                                                ; +0x11b, 0x14018db4b\nmov     [rdi+418h], rbp                                                ; +0x122, 0x14018db52\nmov     [rdi+420h], rbp                                                ; +0x129, 0x14018db59\nmov     [rdi+428h], rbp                                                ; +0x130, 0x14018db60\nmov     [rdi+430h], rbp                                                ; +0x137, 0x14018db67\nmov     [rdi+438h], rbp                                                ; +0x13e, 0x14018db6e\nmov     [rdi+440h], rbp                                                ; +0x145, 0x14018db75\nmov     [rdi+448h], ebp                                                ; +0x14c, 0x14018db7c\nxorps   xmm0, xmm0                                                     ; +0x152, 0x14018db82\nmovups  xmmword ptr [rdi+450h], xmm0                                   ; +0x155, 0x14018db85\nmov     [rdi+460h], rbp                                                ; +0x15c, 0x14018db8c\nmov     qword ptr [rdi+468h], 0Fh                                      ; +0x163, 0x14018db93\nmov     [rdi+450h], bpl                                                ; +0x16e, 0x14018db9e\nmovups  xmmword ptr [rdi+470h], xmm0                                   ; +0x175, 0x14018dba5\nmov     [rdi+480h], rbp                                                ; +0x17c, 0x14018dbac\nmov     qword ptr [rdi+488h], 0Fh                                      ; +0x183, 0x14018dbb3\nmov     [rdi+470h], bpl                                                ; +0x18e, 0x14018dbbe\nmov     [rdi+490h], rbp                                                ; +0x195, 0x14018dbc5\nmov     [rdi+498h], rbp                                                ; +0x19c, 0x14018dbcc\nmov     [rdi+4A0h], ebp                                                ; +0x1a3, 0x14018dbd3\nmov     [rdi+4A4h], bpl                                                ; +0x1a9, 0x14018dbd9\nmov     [rdi+4A8h], rbp                                                ; +0x1b0, 0x14018dbe0\nmov     [rdi+4B0h], ebp                                                ; +0x1b7, 0x14018dbe7\nmov     rdx, rsi                                                       ; +0x1bd, 0x14018dbed\nlea     rcx, [rsp+78h+var_50]                                          ; +0x1c0, 0x14018dbf0\ncall    sub_14003F4F0                                                  ; +0x1c5, 0x14018dbf5\nmov     r8, rbx                                                        ; +0x1ca, 0x14018dbfa\nmov     rdx, rax                                                       ; +0x1cd, 0x14018dbfd\nmov     rcx, rdi                                                       ; +0x1d0, 0x14018dc00\ncall    EditorSoundBrowserLayer__init                                  ; +0x1d3, 0x14018dc03\nmov     rcx, rdi                                                       ; +0x1d8, 0x14018dc08\ntest    al, al                                                         ; +0x1db, 0x14018dc0b\njz      short loc_14018DC17                                            ; +0x1dd, 0x14018dc0d\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1df, 0x14018dc0f\njmp     short loc_14018DC25                                            ; +0x1e5, 0x14018dc15\nmov     rax, [rdi]                                                     ; +0x1e7, 0x14018dc17\nmov     edx, 1                                                         ; +0x1ea, 0x14018dc1a\ncall    qword ptr [rax+8]                                              ; +0x1ef, 0x14018dc1f\nmov     rdi, rbp                                                       ; +0x1f2, 0x14018dc22\nmov     rcx, rsi                                                       ; +0x1f5, 0x14018dc25\ncall    sub_14003D310                                                  ; +0x1f8, 0x14018dc28\nmov     rax, rdi                                                       ; +0x1fd, 0x14018dc2d\nmov     rcx, [rsp+78h+var_28]                                          ; +0x200, 0x14018dc30\nxor     rcx, rsp; StackCookie                                          ; +0x205, 0x14018dc35\ncall    __security_check_cookie                                        ; +0x208, 0x14018dc38\nmov     rbx, [rsp+78h+arg_10]                                          ; +0x20d, 0x14018dc3d\nadd     rsp, 60h                                                       ; +0x215, 0x14018dc45\npop     rdi                                                            ; +0x219, 0x14018dc49\npop     rsi                                                            ; +0x21a, 0x14018dc4a\npop     rbp                                                            ; +0x21b, 0x14018dc4b\nretn                                                                   ; +0x21c, 0x14018dc4c", "xrefs": ["AccountReviewPopup::jumpTo @ 0x1400bc187", "CommentCell::onGoToLevel @ 0x1401551b6", "EditorSoundsLayer::onBrowse @ 0x14019ed54", "<???> @ 0x14091919c", "<???> @ 0x1409191a8"], "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"}