{"type": "func", "start": 4297035520, "end": 4297035611, "name": "CustomSongLayer::onSongBrowser", "pseudocode": "// \n// CustomSongLayer::onSongBrowser from 0x1001f8f00 to 0x1001f8f5b (91 bytes)\n// \n// 1 xrefs:\n// > CustomSongLayer::init @ 0x1001f84e3\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 12:26:49 +0000\n// \n\n__int64 __fastcall CustomSongLayer::onSongBrowser(__int64 a1, __int64 a2)\n{\n  _QWORD *v2; // r14\n  __int64 v3; // rbx\n  int HighestChildZ; // eax\n\n  v2 = (_QWORD *)GJSongBrowser::create();\n  v2[74] = a1 + 664;\n  v3 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 272);\n  HighestChildZ = cocos2d::CCScene::getHighestChildZ(v3);\n  (*(void (__fastcall **)(__int64, _QWORD *, _QWORD))(*(_QWORD *)v3 + 464LL))(v3, v2, (unsigned int)(HighestChildZ + 1));\n  return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1328LL))(v2, 0);\n}", "assembly": "; \n; CustomSongLayer::onSongBrowser from 0x1001f8f00 to 0x1001f8f5b (91 bytes)\n; \n; 1 xrefs:\n; > CustomSongLayer::init @ 0x1001f84e3\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 12:26:49 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001f8f00\nmov     rbp, rsp                                                       ; +0x1, 0x1001f8f01\npush    r14                                                            ; +0x4, 0x1001f8f04\npush    rbx                                                            ; +0x6, 0x1001f8f06\nmov     rbx, rdi                                                       ; +0x7, 0x1001f8f07\ncall    GJSongBrowser__create                                          ; +0xa, 0x1001f8f0a\nmov     r14, rax                                                       ; +0xf, 0x1001f8f0f\nadd     rbx, 298h                                                      ; +0x12, 0x1001f8f12\nmov     [rax+250h], rbx                                                ; +0x19, 0x1001f8f19\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x20, 0x1001f8f20\nmov     rbx, [rax+110h]                                                ; +0x25, 0x1001f8f25\nmov     rdi, rbx                                                       ; +0x2c, 0x1001f8f2c\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x2f, 0x1001f8f2f\nlea     edx, [rax+1]                                                   ; +0x34, 0x1001f8f34\nmov     rax, [rbx]                                                     ; +0x37, 0x1001f8f37\nmov     rdi, rbx                                                       ; +0x3a, 0x1001f8f3a\nmov     rsi, r14                                                       ; +0x3d, 0x1001f8f3d\ncall    qword ptr [rax+1D0h]                                           ; +0x40, 0x1001f8f40\nmov     rax, [r14]                                                     ; +0x46, 0x1001f8f46\nmov     rax, [rax+530h]                                                ; +0x49, 0x1001f8f49\nmov     rdi, r14                                                       ; +0x50, 0x1001f8f50\nxor     esi, esi                                                       ; +0x53, 0x1001f8f53\npop     rbx                                                            ; +0x55, 0x1001f8f55\npop     r14                                                            ; +0x56, 0x1001f8f56\npop     rbp                                                            ; +0x58, 0x1001f8f58\njmp     rax                                                            ; +0x59, 0x1001f8f59", "xrefs": ["CustomSongLayer::init @ 0x1001f84e3"], "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"}