{"type": "func", "start": 5371556208, "end": 5371556585, "name": "GJSongBrowser::create", "pseudocode": "// \n// GJSongBrowser::create from 0x1402b7170 to 0x1402b72e9 (377 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::onSongBrowser @ 0x1400c3e52\n// > MoreOptionsLayer::onSongBrowser @ 0x1403763ad\n// > <???> @ 0x1406d2534\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nGJSongBrowser *GJSongBrowser::create()\n{\n  GJSongBrowser *v0; // rbx\n  bool (*init)(GJSongBrowser *); // rdx\n\n  v0 = (GJSongBrowser *)operator new(0x2B0u);\n  GJDropDownLayer::GJDropDownLayer(v0);\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJSongBrowser_vtbl *)&GJSongBrowser::`vftable';\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJSongBrowser::`vftable';\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJSongBrowser::`vftable';\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJSongBrowser::`vftable';\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJSongBrowser::`vftable';\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJSongBrowser::`vftable';\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJSongBrowser::`vftable';\n  v0->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJSongBrowser::`vftable';\n  v0->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&GJSongBrowser::`vftable';\n  v0->TableViewCellDelegate::__vftable = (TableViewCellDelegate_vtbl *)&GJSongBrowser::`vftable';\n  *(_QWORD *)&v0->m_page = 0;\n  v0->m_selected = 0;\n  v0->m_rightArrow = nullptr;\n  v0->m_leftArrow = nullptr;\n  v0->m_countText = nullptr;\n  cocos2d::CCPoint::CCPoint(&v0->m_unk298);\n  v0->m_downloadedSongs = nullptr;\n  v0->m_listView = nullptr;\n  init = (bool (*)(GJSongBrowser *))v0->init;\n  if ( init == GJSongBrowser::init )\n  {\n    if ( GJDropDownLayer::init(v0, \"Downloaded Songs\", 220.0, 0) )\n    {\n      GJSongBrowser::loadPage(v0, 0);\n      cocos2d::CCObject::autorelease(v0);\n      return v0;\n    }\n  }\n  else if ( init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n    return v0;\n  }\n  ((void (__fastcall *)(GJSongBrowser *, __int64))v0->~GJSongBrowser)(v0, 1);\n  return nullptr;\n}", "assembly": "; \n; GJSongBrowser::create from 0x1402b7170 to 0x1402b72e9 (377 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::onSongBrowser @ 0x1400c3e52\n; > MoreOptionsLayer::onSongBrowser @ 0x1403763ad\n; > <???> @ 0x1406d2534\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402b7170\npush    rdi                                                            ; +0x5, 0x1402b7175\nsub     rsp, 20h                                                       ; +0x6, 0x1402b7176\nmov     ecx, 2B0h; Size                                                ; +0xa, 0x1402b717a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x1402b717f\nmov     rbx, rax                                                       ; +0x14, 0x1402b7184\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x1402b7187\nmov     rcx, rax                                                       ; +0x1c, 0x1402b718c\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x1f, 0x1402b718f\nnop                                                                    ; +0x24, 0x1402b7194\nlea     rax, ??_7GJSongBrowser@@6B@; const GJSongBrowser::`vftable'    ; +0x25, 0x1402b7195\nmov     [rbx], rax                                                     ; +0x2c, 0x1402b719c\nlea     rax, ??_7GJSongBrowser@@6B@_0; const GJSongBrowser::`vftable'  ; +0x2f, 0x1402b719f\nmov     [rbx+140h], rax                                                ; +0x36, 0x1402b71a6\nlea     rax, ??_7GJSongBrowser@@6B@_1; const GJSongBrowser::`vftable'  ; +0x3d, 0x1402b71ad\nmov     [rbx+148h], rax                                                ; +0x44, 0x1402b71b4\nlea     rax, ??_7GJSongBrowser@@6B@_2; const GJSongBrowser::`vftable'  ; +0x4b, 0x1402b71bb\nmov     [rbx+150h], rax                                                ; +0x52, 0x1402b71c2\nlea     rax, ??_7GJSongBrowser@@6B@_3; const GJSongBrowser::`vftable'  ; +0x59, 0x1402b71c9\nmov     [rbx+158h], rax                                                ; +0x60, 0x1402b71d0\nlea     rax, ??_7GJSongBrowser@@6B@_4; const GJSongBrowser::`vftable'  ; +0x67, 0x1402b71d7\nmov     [rbx+160h], rax                                                ; +0x6e, 0x1402b71de\nlea     rax, ??_7GJSongBrowser@@6B@_5; const GJSongBrowser::`vftable'  ; +0x75, 0x1402b71e5\nmov     [rbx+198h], rax                                                ; +0x7c, 0x1402b71ec\nlea     rax, ??_7GJSongBrowser@@6B@_6; const GJSongBrowser::`vftable'  ; +0x83, 0x1402b71f3\nmov     [rbx+1B0h], rax                                                ; +0x8a, 0x1402b71fa\nlea     rax, ??_7GJSongBrowser@@6B@_7; const GJSongBrowser::`vftable'  ; +0x91, 0x1402b7201\nmov     [rbx+260h], rax                                                ; +0x98, 0x1402b7208\nlea     rax, ??_7GJSongBrowser@@6B@_8; const GJSongBrowser::`vftable'  ; +0x9f, 0x1402b720f\nmov     [rbx+268h], rax                                                ; +0xa6, 0x1402b7216\nxor     edi, edi                                                       ; +0xad, 0x1402b721d\nmov     [rbx+270h], rdi                                                ; +0xaf, 0x1402b721f\nmov     [rbx+278h], dil                                                ; +0xb6, 0x1402b7226\nmov     [rbx+280h], rdi                                                ; +0xbd, 0x1402b722d\nmov     [rbx+288h], rdi                                                ; +0xc4, 0x1402b7234\nmov     [rbx+290h], rdi                                                ; +0xcb, 0x1402b723b\nlea     rcx, [rbx+298h]                                                ; +0xd2, 0x1402b7242\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xd9, 0x1402b7249\nmov     [rbx+2A0h], rdi                                                ; +0xdf, 0x1402b724f\nmov     [rbx+2A8h], rdi                                                ; +0xe6, 0x1402b7256\nmov     rax, [rbx]                                                     ; +0xed, 0x1402b725d\nmov     rdx, [rax+48h]                                                 ; +0xf0, 0x1402b7260\nlea     rax, GJSongBrowser__init                                       ; +0xf4, 0x1402b7264\nmov     rcx, rbx                                                       ; +0xfb, 0x1402b726b\ncmp     rdx, rax                                                       ; +0xfe, 0x1402b726e\njnz     short loc_1402B72AF                                            ; +0x101, 0x1402b7271\nxor     r9d, r9d                                                       ; +0x103, 0x1402b7273\nmovss   xmm2, cs:dword_1406233F4                                       ; +0x106, 0x1402b7276\nlea     rdx, aDownloadedSong; \"Downloaded Songs\"                       ; +0x10e, 0x1402b727e\ncall    GJDropDownLayer__init                                          ; +0x115, 0x1402b7285\ntest    al, al                                                         ; +0x11a, 0x1402b728a\njz      short loc_1402B72CC                                            ; +0x11c, 0x1402b728c\nxor     edx, edx                                                       ; +0x11e, 0x1402b728e\nmov     rcx, rbx                                                       ; +0x120, 0x1402b7290\ncall    GJSongBrowser__loadPage                                        ; +0x123, 0x1402b7293\nmov     rcx, rbx                                                       ; +0x128, 0x1402b7298\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x12b, 0x1402b729b\nmov     rax, rbx                                                       ; +0x131, 0x1402b72a1\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x134, 0x1402b72a4\nadd     rsp, 20h                                                       ; +0x139, 0x1402b72a9\npop     rdi                                                            ; +0x13d, 0x1402b72ad\nretn                                                                   ; +0x13e, 0x1402b72ae\ncall    rdx                                                            ; +0x13f, 0x1402b72af\ntest    al, al                                                         ; +0x141, 0x1402b72b1\njz      short loc_1402B72CC                                            ; +0x143, 0x1402b72b3\nmov     rcx, rbx                                                       ; +0x145, 0x1402b72b5\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x148, 0x1402b72b8\nmov     rax, rbx                                                       ; +0x14e, 0x1402b72be\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x151, 0x1402b72c1\nadd     rsp, 20h                                                       ; +0x156, 0x1402b72c6\npop     rdi                                                            ; +0x15a, 0x1402b72ca\nretn                                                                   ; +0x15b, 0x1402b72cb\nmov     r8, [rbx]                                                      ; +0x15c, 0x1402b72cc\nmov     edx, 1                                                         ; +0x15f, 0x1402b72cf\nmov     rcx, rbx                                                       ; +0x164, 0x1402b72d4\ncall    qword ptr [r8+8]                                               ; +0x167, 0x1402b72d7\nmov     rax, rdi                                                       ; +0x16b, 0x1402b72db\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x16e, 0x1402b72de\nadd     rsp, 20h                                                       ; +0x173, 0x1402b72e3\npop     rdi                                                            ; +0x177, 0x1402b72e7\nretn                                                                   ; +0x178, 0x1402b72e8", "xrefs": ["CustomSongLayer::onSongBrowser @ 0x1400c3e52", "MoreOptionsLayer::onSongBrowser @ 0x1403763ad", "<???> @ 0x1406d2534"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}