{"type": "func", "start": 5373420416, "end": 5373420830, "name": "OptionsScrollLayer::create", "pseudocode": "// \n// OptionsScrollLayer::create from 0x14047e380 to 0x14047e51e (414 bytes)\n// \n// 3 xrefs:\n// > MusicBrowser::onTagFilters @ 0x14047d9b1\n// > MusicBrowser::onArtistFilters @ 0x14047dc03\n// > <???> @ 0x140928790\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:32:43 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall OptionsScrollLayer::create(int a1, unsigned __int8 a2, __int64 a3, __int64 a4)\n{\n  _QWORD *v8; // r14\n  int v9; // eax\n  _BYTE v11[32]; // [rsp+38h] [rbp-60h] BYREF\n  __int64 v12; // [rsp+58h] [rbp-40h]\n\n  v12 = a3;\n  v8 = operator new(0x300u);\n  FLAlertLayer::FLAlertLayer((__int64)v8);\n  *v8 = &OptionsScrollLayer::`vftable';\n  v8[40] = &OptionsScrollLayer::`vftable';\n  v8[41] = &OptionsScrollLayer::`vftable';\n  v8[42] = &OptionsScrollLayer::`vftable';\n  v8[43] = &OptionsScrollLayer::`vftable';\n  v8[44] = &OptionsScrollLayer::`vftable';\n  v8[51] = &OptionsScrollLayer::`vftable';\n  v8[54] = &OptionsScrollLayer::`vftable';\n  v8[68] = &OptionsScrollLayer::`vftable';\n  v8[83] = &OptionsScrollLayer::`vftable';\n  v8[84] = 0;\n  v8[85] = 0;\n  *((_BYTE *)v8 + 688) = 0;\n  v8[87] = 0;\n  v8[88] = 0;\n  v8[89] = 0;\n  *((_OWORD *)v8 + 45) = 0;\n  v8[92] = 0;\n  v8[93] = 15;\n  *((_BYTE *)v8 + 720) = 0;\n  v8[94] = 0;\n  v8[95] = 0;\n  v9 = sub_14003F4F0((__int64)v11, a3);\n  if ( (unsigned __int8)OptionsScrollLayer::init((_DWORD)v8, a1, a2, v9, a4) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v8 + 8LL))(v8, 1);\n    v8 = nullptr;\n  }\n  sub_14003D310(a3);\n  return v8;\n}", "assembly": "; \n; OptionsScrollLayer::create from 0x14047e380 to 0x14047e51e (414 bytes)\n; \n; 3 xrefs:\n; > MusicBrowser::onTagFilters @ 0x14047d9b1\n; > MusicBrowser::onArtistFilters @ 0x14047dc03\n; > <???> @ 0x140928790\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:32:43 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14047e380\npush    rbp                                                            ; +0x5, 0x14047e385\npush    rsi                                                            ; +0x6, 0x14047e386\npush    rdi                                                            ; +0x7, 0x14047e387\npush    r14                                                            ; +0x8, 0x14047e388\npush    r15                                                            ; +0xa, 0x14047e38a\nsub     rsp, 70h                                                       ; +0xc, 0x14047e38c\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x14047e390\nxor     rax, rsp                                                       ; +0x17, 0x14047e397\nmov     [rsp+98h+var_38], rax                                          ; +0x1a, 0x14047e39a\nmov     rsi, r9                                                        ; +0x1f, 0x14047e39f\nmov     rbp, r8                                                        ; +0x22, 0x14047e3a2\nmovzx   edi, dl                                                        ; +0x25, 0x14047e3a5\nmov     rbx, rcx                                                       ; +0x28, 0x14047e3a8\nmov     [rsp+98h+var_40], r8                                           ; +0x2b, 0x14047e3ab\nmov     ecx, 300h; Size                                                ; +0x30, 0x14047e3b0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x14047e3b5\nmov     r14, rax                                                       ; +0x3a, 0x14047e3ba\nmov     [rsp+98h+var_68], rax                                          ; +0x3d, 0x14047e3bd\nmov     rcx, rax                                                       ; +0x42, 0x14047e3c2\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x45, 0x14047e3c5\nlea     rax, ??_7OptionsScrollLayer@@6B@; const OptionsScrollLayer::`vftable' ; +0x4a, 0x14047e3ca\nmov     [r14], rax                                                     ; +0x51, 0x14047e3d1\nlea     rax, ??_7OptionsScrollLayer@@6B@_0; const OptionsScrollLayer::`vftable' ; +0x54, 0x14047e3d4\nmov     [r14+140h], rax                                                ; +0x5b, 0x14047e3db\nlea     rax, ??_7OptionsScrollLayer@@6B@_1; const OptionsScrollLayer::`vftable' ; +0x62, 0x14047e3e2\nmov     [r14+148h], rax                                                ; +0x69, 0x14047e3e9\nlea     rax, ??_7OptionsScrollLayer@@6B@_2; const OptionsScrollLayer::`vftable' ; +0x70, 0x14047e3f0\nmov     [r14+150h], rax                                                ; +0x77, 0x14047e3f7\nlea     rax, ??_7OptionsScrollLayer@@6B@_3; const OptionsScrollLayer::`vftable' ; +0x7e, 0x14047e3fe\nmov     [r14+158h], rax                                                ; +0x85, 0x14047e405\nlea     rax, ??_7OptionsScrollLayer@@6B@_4; const OptionsScrollLayer::`vftable' ; +0x8c, 0x14047e40c\nmov     [r14+160h], rax                                                ; +0x93, 0x14047e413\nlea     rax, ??_7OptionsScrollLayer@@6B@_5; const OptionsScrollLayer::`vftable' ; +0x9a, 0x14047e41a\nmov     [r14+198h], rax                                                ; +0xa1, 0x14047e421\nlea     rax, ??_7OptionsScrollLayer@@6B@_6; const OptionsScrollLayer::`vftable' ; +0xa8, 0x14047e428\nmov     [r14+1B0h], rax                                                ; +0xaf, 0x14047e42f\nlea     rax, ??_7OptionsScrollLayer@@6B@_7; const OptionsScrollLayer::`vftable' ; +0xb6, 0x14047e436\nmov     [r14+220h], rax                                                ; +0xbd, 0x14047e43d\nlea     rax, ??_7OptionsScrollLayer@@6B@_8; const OptionsScrollLayer::`vftable' ; +0xc4, 0x14047e444\nmov     [r14+298h], rax                                                ; +0xcb, 0x14047e44b\nxor     r15d, r15d                                                     ; +0xd2, 0x14047e452\nmov     [r14+2A0h], r15                                                ; +0xd5, 0x14047e455\nmov     [r14+2A8h], r15                                                ; +0xdc, 0x14047e45c\nmov     [r14+2B0h], r15b                                               ; +0xe3, 0x14047e463\nmov     [r14+2B8h], r15                                                ; +0xea, 0x14047e46a\nmov     [r14+2C0h], r15                                                ; +0xf1, 0x14047e471\nmov     [r14+2C8h], r15                                                ; +0xf8, 0x14047e478\nxorps   xmm0, xmm0                                                     ; +0xff, 0x14047e47f\nmovups  xmmword ptr [r14+2D0h], xmm0                                   ; +0x102, 0x14047e482\nmov     [r14+2E0h], r15                                                ; +0x10a, 0x14047e48a\nmov     qword ptr [r14+2E8h], 0Fh                                      ; +0x111, 0x14047e491\nmov     [r14+2D0h], r15b                                               ; +0x11c, 0x14047e49c\nmov     [r14+2F0h], r15                                                ; +0x123, 0x14047e4a3\nmov     [r14+2F8h], r15                                                ; +0x12a, 0x14047e4aa\nmov     rdx, rbp                                                       ; +0x131, 0x14047e4b1\nlea     rcx, [rsp+98h+var_60]                                          ; +0x134, 0x14047e4b4\ncall    sub_14003F4F0                                                  ; +0x139, 0x14047e4b9\nmov     [rsp+98h+var_78], rsi                                          ; +0x13e, 0x14047e4be\nmov     r9, rax                                                        ; +0x143, 0x14047e4c3\nmovzx   r8d, dil                                                       ; +0x146, 0x14047e4c6\nmov     rdx, rbx                                                       ; +0x14a, 0x14047e4ca\nmov     rcx, r14                                                       ; +0x14d, 0x14047e4cd\ncall    OptionsScrollLayer__init                                       ; +0x150, 0x14047e4d0\nmov     rcx, r14                                                       ; +0x155, 0x14047e4d5\ntest    al, al                                                         ; +0x158, 0x14047e4d8\njz      short loc_14047E4E4                                            ; +0x15a, 0x14047e4da\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x15c, 0x14047e4dc\njmp     short loc_14047E4F2                                            ; +0x162, 0x14047e4e2\nmov     rax, [r14]                                                     ; +0x164, 0x14047e4e4\nmov     edx, 1                                                         ; +0x167, 0x14047e4e7\ncall    qword ptr [rax+8]                                              ; +0x16c, 0x14047e4ec\nmov     r14, r15                                                       ; +0x16f, 0x14047e4ef\nmov     rcx, rbp                                                       ; +0x172, 0x14047e4f2\ncall    sub_14003D310                                                  ; +0x175, 0x14047e4f5\nmov     rax, r14                                                       ; +0x17a, 0x14047e4fa\nmov     rcx, [rsp+98h+var_38]                                          ; +0x17d, 0x14047e4fd\nxor     rcx, rsp; StackCookie                                          ; +0x182, 0x14047e502\ncall    __security_check_cookie                                        ; +0x185, 0x14047e505\nmov     rbx, [rsp+98h+arg_0]                                           ; +0x18a, 0x14047e50a\nadd     rsp, 70h                                                       ; +0x192, 0x14047e512\npop     r15                                                            ; +0x196, 0x14047e516\npop     r14                                                            ; +0x198, 0x14047e518\npop     rdi                                                            ; +0x19a, 0x14047e51a\npop     rsi                                                            ; +0x19b, 0x14047e51b\npop     rbp                                                            ; +0x19c, 0x14047e51c\nretn                                                                   ; +0x19d, 0x14047e51d", "xrefs": ["MusicBrowser::onTagFilters @ 0x14047d9b1", "MusicBrowser::onArtistFilters @ 0x14047dc03", "<???> @ 0x140928790"], "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"}