{"type": "func", "start": 5372630832, "end": 5372631159, "name": "GJSongBrowser::create", "pseudocode": "// \n// GJSongBrowser::create from 0x1403bd730 to 0x1403bd877 (327 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::onSongBrowser @ 0x140164f22\n// > GameSettingsLayer::onCustomButton @ 0x1402c7b0b\n// > <???> @ 0x140923ee8\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:31:27 +0000\n// \n\n// Hidden C++ exception states: #wind=2\ncocos2d::CCObject *GJSongBrowser::create()\n{\n  cocos2d::CCObject *v0; // rbx\n  __int64 (__fastcall *v1)(cocos2d::CCObject *); // rdx\n  char v2; // al\n\n  v0 = (cocos2d::CCObject *)operator new(0x2B0u);\n  GJDropDownLayer::GJDropDownLayer((__int64)v0);\n  *(_QWORD *)v0 = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 40) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 41) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 42) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 43) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 44) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 51) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 54) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 76) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 77) = &GJSongBrowser::`vftable';\n  *((_QWORD *)v0 + 78) = 0;\n  *((_BYTE *)v0 + 632) = 0;\n  *((_QWORD *)v0 + 80) = 0;\n  *((_QWORD *)v0 + 81) = 0;\n  *((_QWORD *)v0 + 82) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCObject *)((char *)v0 + 664));\n  *((_QWORD *)v0 + 84) = 0;\n  *((_QWORD *)v0 + 85) = 0;\n  v1 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v0 + 72LL);\n  if ( (char *)v1 == (char *)GJSongBrowser::init )\n    v2 = GJSongBrowser::init(v0);\n  else\n    v2 = v1(v0);\n  if ( v2 )\n  {\n    cocos2d::CCObject::autorelease(v0);\n    return v0;\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJSongBrowser::create from 0x1403bd730 to 0x1403bd877 (327 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::onSongBrowser @ 0x140164f22\n; > GameSettingsLayer::onCustomButton @ 0x1402c7b0b\n; > <???> @ 0x140923ee8\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:31:27 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403bd730\npush    rdi                                                            ; +0x5, 0x1403bd735\nsub     rsp, 20h                                                       ; +0x6, 0x1403bd736\nmov     ecx, 2B0h; Size                                                ; +0xa, 0x1403bd73a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x1403bd73f\nmov     rbx, rax                                                       ; +0x14, 0x1403bd744\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x1403bd747\nmov     rcx, rax                                                       ; +0x1c, 0x1403bd74c\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x1f, 0x1403bd74f\nnop                                                                    ; +0x24, 0x1403bd754\nlea     rax, ??_7GJSongBrowser@@6B@; const GJSongBrowser::`vftable'    ; +0x25, 0x1403bd755\nmov     [rbx], rax                                                     ; +0x2c, 0x1403bd75c\nlea     rax, ??_7GJSongBrowser@@6B@_0; const GJSongBrowser::`vftable'  ; +0x2f, 0x1403bd75f\nmov     [rbx+140h], rax                                                ; +0x36, 0x1403bd766\nlea     rax, ??_7GJSongBrowser@@6B@_1; const GJSongBrowser::`vftable'  ; +0x3d, 0x1403bd76d\nmov     [rbx+148h], rax                                                ; +0x44, 0x1403bd774\nlea     rax, ??_7GJSongBrowser@@6B@_2; const GJSongBrowser::`vftable'  ; +0x4b, 0x1403bd77b\nmov     [rbx+150h], rax                                                ; +0x52, 0x1403bd782\nlea     rax, ??_7GJSongBrowser@@6B@_3; const GJSongBrowser::`vftable'  ; +0x59, 0x1403bd789\nmov     [rbx+158h], rax                                                ; +0x60, 0x1403bd790\nlea     rax, ??_7GJSongBrowser@@6B@_4; const GJSongBrowser::`vftable'  ; +0x67, 0x1403bd797\nmov     [rbx+160h], rax                                                ; +0x6e, 0x1403bd79e\nlea     rax, ??_7GJSongBrowser@@6B@_5; const GJSongBrowser::`vftable'  ; +0x75, 0x1403bd7a5\nmov     [rbx+198h], rax                                                ; +0x7c, 0x1403bd7ac\nlea     rax, ??_7GJSongBrowser@@6B@_6; const GJSongBrowser::`vftable'  ; +0x83, 0x1403bd7b3\nmov     [rbx+1B0h], rax                                                ; +0x8a, 0x1403bd7ba\nlea     rax, ??_7GJSongBrowser@@6B@_7; const GJSongBrowser::`vftable'  ; +0x91, 0x1403bd7c1\nmov     [rbx+260h], rax                                                ; +0x98, 0x1403bd7c8\nlea     rax, ??_7GJSongBrowser@@6B@_8; const GJSongBrowser::`vftable'  ; +0x9f, 0x1403bd7cf\nmov     [rbx+268h], rax                                                ; +0xa6, 0x1403bd7d6\nxor     edi, edi                                                       ; +0xad, 0x1403bd7dd\nmov     [rbx+270h], rdi                                                ; +0xaf, 0x1403bd7df\nmov     [rbx+278h], dil                                                ; +0xb6, 0x1403bd7e6\nmov     [rbx+280h], rdi                                                ; +0xbd, 0x1403bd7ed\nmov     [rbx+288h], rdi                                                ; +0xc4, 0x1403bd7f4\nmov     [rbx+290h], rdi                                                ; +0xcb, 0x1403bd7fb\nlea     rcx, [rbx+298h]                                                ; +0xd2, 0x1403bd802\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xd9, 0x1403bd809\nmov     [rbx+2A0h], rdi                                                ; +0xdf, 0x1403bd80f\nmov     [rbx+2A8h], rdi                                                ; +0xe6, 0x1403bd816\nmov     rax, [rbx]                                                     ; +0xed, 0x1403bd81d\nmov     rdx, [rax+48h]                                                 ; +0xf0, 0x1403bd820\nlea     rax, GJSongBrowser__init                                       ; +0xf4, 0x1403bd824\nmov     rcx, rbx                                                       ; +0xfb, 0x1403bd82b\ncmp     rdx, rax                                                       ; +0xfe, 0x1403bd82e\njnz     short loc_1403BD83A                                            ; +0x101, 0x1403bd831\ncall    GJSongBrowser__init                                            ; +0x103, 0x1403bd833\njmp     short loc_1403BD83C                                            ; +0x108, 0x1403bd838\ncall    rdx                                                            ; +0x10a, 0x1403bd83a\ntest    al, al                                                         ; +0x10c, 0x1403bd83c\njz      short loc_1403BD857                                            ; +0x10e, 0x1403bd83e\nmov     rcx, rbx                                                       ; +0x110, 0x1403bd840\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x113, 0x1403bd843\nmov     rax, rbx                                                       ; +0x119, 0x1403bd849\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x11c, 0x1403bd84c\nadd     rsp, 20h                                                       ; +0x121, 0x1403bd851\npop     rdi                                                            ; +0x125, 0x1403bd855\nretn                                                                   ; +0x126, 0x1403bd856\nmov     rcx, [rbx]                                                     ; +0x127, 0x1403bd857\nmov     r8, [rcx+8]                                                    ; +0x12a, 0x1403bd85a\nmov     edx, 1                                                         ; +0x12e, 0x1403bd85e\nmov     rcx, rbx                                                       ; +0x133, 0x1403bd863\ncall    r8                                                             ; +0x136, 0x1403bd866\nmov     rax, rdi                                                       ; +0x139, 0x1403bd869\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x13c, 0x1403bd86c\nadd     rsp, 20h                                                       ; +0x141, 0x1403bd871\npop     rdi                                                            ; +0x145, 0x1403bd875\nretn                                                                   ; +0x146, 0x1403bd876", "xrefs": ["CustomSongLayer::onSongBrowser @ 0x140164f22", "GameSettingsLayer::onCustomButton @ 0x1402c7b0b", "<???> @ 0x140923ee8"], "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"}