{"type": "func", "start": 5369511488, "end": 5369511608, "name": "CustomSongLayer::onSongBrowser", "pseudocode": "// \n// CustomSongLayer::onSongBrowser from 0x1400c3e40 to 0x1400c3eb8 (120 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x1400c2f1d\n// > <???> @ 0x1406c8058\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\nvoid CustomSongLayer::onSongBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  GJSongBrowser *v4; // rsi\n  GJDropDownLayerDelegate *v5; // rdx\n  cocos2d::CCScene *v6; // rbx\n  cocos2d::CCScene_vtbl *v7; // rdi\n  int HighestChildZ; // eax\n\n  v4 = GJSongBrowser::create();\n  v5 = &a1->GJDropDownLayerDelegate;\n  if ( !a1 )\n    v5 = nullptr;\n  v4->m_delegate = v5;\n  v6 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v3) + 264);\n  v7 = v6->__vftable;\n  HighestChildZ = cocos2d::CCScene::getHighestChildZ(v6);\n  v7->addChild_0(v6, v4, HighestChildZ + 1);\n  v4->showLayer(v4, 0);\n}", "assembly": "; \n; CustomSongLayer::onSongBrowser from 0x1400c3e40 to 0x1400c3eb8 (120 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x1400c2f1d\n; > <???> @ 0x1406c8058\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_0], rbx                                               ; +0x0, 0x1400c3e40\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400c3e45\npush    rdi                                                            ; +0xa, 0x1400c3e4a\nsub     rsp, 20h                                                       ; +0xb, 0x1400c3e4b\nmov     rbx, rcx                                                       ; +0xf, 0x1400c3e4f\ncall    GJSongBrowser__create                                          ; +0x12, 0x1400c3e52\nmov     rsi, rax                                                       ; +0x17, 0x1400c3e57\nlea     rdx, [rbx+280h]                                                ; +0x1a, 0x1400c3e5a\nxor     eax, eax                                                       ; +0x21, 0x1400c3e61\ntest    rbx, rbx                                                       ; +0x23, 0x1400c3e63\ncmovz   rdx, rax                                                       ; +0x26, 0x1400c3e66\nmov     [rsi+250h], rdx                                                ; +0x2a, 0x1400c3e6a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x31, 0x1400c3e71\nmov     rbx, [rax+108h]                                                ; +0x37, 0x1400c3e77\nmov     rcx, rbx                                                       ; +0x3e, 0x1400c3e7e\nmov     rdi, [rbx]                                                     ; +0x41, 0x1400c3e81\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x44, 0x1400c3e84\nmov     rdx, rsi                                                       ; +0x4a, 0x1400c3e8a\nmov     rcx, rbx                                                       ; +0x4d, 0x1400c3e8d\nlea     r8d, [rax+1]                                                   ; +0x50, 0x1400c3e90\ncall    qword ptr [rdi+1B8h]                                           ; +0x54, 0x1400c3e94\nmov     rax, [rsi]                                                     ; +0x5a, 0x1400c3e9a\nxor     edx, edx                                                       ; +0x5d, 0x1400c3e9d\nmov     rcx, rsi                                                       ; +0x5f, 0x1400c3e9f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x62, 0x1400c3ea2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x67, 0x1400c3ea7\nadd     rsp, 20h                                                       ; +0x6c, 0x1400c3eac\npop     rdi                                                            ; +0x70, 0x1400c3eb0\njmp     qword ptr [rax+428h]                                           ; +0x71, 0x1400c3eb1", "xrefs": ["CustomSongLayer::init @ 0x1400c2f1d", "<???> @ 0x1406c8058"], "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"}