{"type": "func", "start": 5370171152, "end": 5370171272, "name": "CustomSongLayer::onSongBrowser", "pseudocode": "// \n// CustomSongLayer::onSongBrowser from 0x140164f10 to 0x140164f88 (120 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x140163f7f\n// > <???> @ 0x140917e64\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:26 +0000\n// \n\n__int64 __fastcall CustomSongLayer::onSongBrowser(__int64 a1)\n{\n  __int64 v2; // rcx\n  _QWORD *v3; // rsi\n  __int64 v4; // rdx\n  cocos2d::CCScene *v5; // rdi\n  __int64 v6; // rbx\n  int HighestChildZ; // eax\n\n  v3 = (_QWORD *)GJSongBrowser::create();\n  v4 = a1 + 664;\n  if ( !a1 )\n    v4 = 0;\n  v3[74] = v4;\n  v5 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v2) + 272);\n  v6 = *(_QWORD *)v5;\n  HighestChildZ = cocos2d::CCScene::getHighestChildZ(v5);\n  (*(void (__fastcall **)(cocos2d::CCScene *, _QWORD *, _QWORD))(v6 + 456))(v5, v3, (unsigned int)(HighestChildZ + 1));\n  return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*v3 + 1080LL))(v3, 0);\n}", "assembly": "; \n; CustomSongLayer::onSongBrowser from 0x140164f10 to 0x140164f88 (120 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x140163f7f\n; > <???> @ 0x140917e64\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:26 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140164f10\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140164f15\npush    rdi                                                            ; +0xa, 0x140164f1a\nsub     rsp, 20h                                                       ; +0xb, 0x140164f1b\nmov     rbx, rcx                                                       ; +0xf, 0x140164f1f\ncall    GJSongBrowser__create                                          ; +0x12, 0x140164f22\nmov     rsi, rax                                                       ; +0x17, 0x140164f27\nlea     rdx, [rbx+298h]                                                ; +0x1a, 0x140164f2a\nxor     eax, eax                                                       ; +0x21, 0x140164f31\ntest    rbx, rbx                                                       ; +0x23, 0x140164f33\ncmovz   rdx, rax                                                       ; +0x26, 0x140164f36\nmov     [rsi+250h], rdx                                                ; +0x2a, 0x140164f3a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x31, 0x140164f41\nmov     rdi, [rax+110h]                                                ; +0x37, 0x140164f47\nmov     rcx, rdi                                                       ; +0x3e, 0x140164f4e\nmov     rbx, [rdi]                                                     ; +0x41, 0x140164f51\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x44, 0x140164f54\nmov     rdx, rsi                                                       ; +0x4a, 0x140164f5a\nmov     rcx, rdi                                                       ; +0x4d, 0x140164f5d\nlea     r8d, [rax+1]                                                   ; +0x50, 0x140164f60\ncall    qword ptr [rbx+1C8h]                                           ; +0x54, 0x140164f64\nmov     rax, [rsi]                                                     ; +0x5a, 0x140164f6a\nxor     edx, edx                                                       ; +0x5d, 0x140164f6d\nmov     rcx, rsi                                                       ; +0x5f, 0x140164f6f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x62, 0x140164f72\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x67, 0x140164f77\nadd     rsp, 20h                                                       ; +0x6c, 0x140164f7c\npop     rdi                                                            ; +0x70, 0x140164f80\njmp     qword ptr [rax+438h]                                           ; +0x71, 0x140164f81", "xrefs": ["CustomSongLayer::init @ 0x140163f7f", "<???> @ 0x140917e64"], "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"}