{"type": "func", "start": 5371556656, "end": 5371556843, "name": "GJSongBrowser::exitLayer", "pseudocode": "// \n// GJSongBrowser::exitLayer from 0x1402b7330 to 0x1402b73eb (187 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14057f9e8\n// > <???> @ 0x1406d254c\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 GJSongBrowser::exitLayer(GJSongBrowser *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rbx\n  FMODAudioEngine *v4; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v4 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  if ( *(_QWORD *)(v3 + 552) )\n    FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552));\n  sub_14005E0D0((_QWORD *)(v3 + 1064));\n  sub_14005E0D0((_QWORD *)(v3 + 1128));\n  sub_14005E0D0((_QWORD *)(v3 + 1192));\n  a1->setKeypadEnabled(a1, 0);\n  a1->disableUI(a1);\n  a1->hideLayer(a1, a1->m_fastMenu);\n}", "assembly": "; \n; GJSongBrowser::exitLayer from 0x1402b7330 to 0x1402b73eb (187 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14057f9e8\n; > <???> @ 0x1406d254c\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, 0x1402b7330\npush    rdi                                                            ; +0x5, 0x1402b7335\nsub     rsp, 20h                                                       ; +0x6, 0x1402b7336\nmov     rdi, rcx                                                       ; +0xa, 0x1402b733a\nmov     rbx, cs:qword_1406C2E88                                        ; +0xd, 0x1402b733d\ntest    rbx, rbx                                                       ; +0x14, 0x1402b7344\njnz     short loc_1402B7378                                            ; +0x17, 0x1402b7347\nmov     ecx, 888h; Size                                                ; +0x19, 0x1402b7349\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1402b734e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x1402b7353\nmov     rcx, rax                                                       ; +0x28, 0x1402b7358\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2b, 0x1402b735b\nnop                                                                    ; +0x30, 0x1402b7360\nmov     cs:qword_1406C2E88, rax                                        ; +0x31, 0x1402b7361\nmov     rdx, [rax]                                                     ; +0x38, 0x1402b7368\nmov     rcx, rax                                                       ; +0x3b, 0x1402b736b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x1402b736e\nmov     rbx, cs:qword_1406C2E88                                        ; +0x41, 0x1402b7371\ncmp     qword ptr [rbx+228h], 0                                        ; +0x48, 0x1402b7378\njz      short loc_1402B738F                                            ; +0x50, 0x1402b7380\nmov     rcx, [rbx+228h]                                                ; +0x52, 0x1402b7382\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x59, 0x1402b7389\nlea     rcx, [rbx+428h]                                                ; +0x5f, 0x1402b738f\ncall    sub_14005E0D0                                                  ; +0x66, 0x1402b7396\nlea     rcx, [rbx+468h]                                                ; +0x6b, 0x1402b739b\ncall    sub_14005E0D0                                                  ; +0x72, 0x1402b73a2\nlea     rcx, [rbx+4A8h]                                                ; +0x77, 0x1402b73a7\ncall    sub_14005E0D0                                                  ; +0x7e, 0x1402b73ae\nmov     rax, [rdi]                                                     ; +0x83, 0x1402b73b3\nxor     edx, edx                                                       ; +0x86, 0x1402b73b6\nmov     rcx, rdi                                                       ; +0x88, 0x1402b73b8\ncall    qword ptr [rax+3D0h]                                           ; +0x8b, 0x1402b73bb\nmov     rax, [rdi]                                                     ; +0x91, 0x1402b73c1\nmov     rcx, rdi                                                       ; +0x94, 0x1402b73c4\ncall    qword ptr [rax+450h]                                           ; +0x97, 0x1402b73c7\nmov     rax, [rdi]                                                     ; +0x9d, 0x1402b73cd\nmovzx   edx, byte ptr [rdi+258h]                                       ; +0xa0, 0x1402b73d0\nmov     rcx, rdi                                                       ; +0xa7, 0x1402b73d7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xaa, 0x1402b73da\nadd     rsp, 20h                                                       ; +0xaf, 0x1402b73df\npop     rdi                                                            ; +0xb3, 0x1402b73e3\njmp     qword ptr [rax+430h]                                           ; +0xb4, 0x1402b73e4", "xrefs": ["<???> @ 0x14057f9e8", "<???> @ 0x1406d254c"], "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"}