{"type": "func", "start": 4297035408, "end": 4297035510, "name": "CustomSongLayer::onClose", "pseudocode": "// \n// CustomSongLayer::onClose from 0x1001f8e90 to 0x1001f8ef6 (102 bytes)\n// \n// 1 xrefs:\n// > CustomSongLayer::init @ 0x1001f842a\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::onClose(__int64 a1)\n{\n  void (__fastcall ***v2)(_QWORD); // rdi\n  double v3; // xmm0_8\n  __int64 v4; // rax\n\n  v2 = *(void (__fastcall ****)(_QWORD))(a1 + 704);\n  if ( v2 )\n    (**v2)(v2);\n  v3 = (*(double (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 688) + 1160LL))(*(_QWORD *)(a1 + 688), 0);\n  v4 = FMODAudioEngine::sharedEngine(v3);\n  FMODAudioEngine::stopAllMusic(v4, 1);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n}", "assembly": "; \n; CustomSongLayer::onClose from 0x1001f8e90 to 0x1001f8ef6 (102 bytes)\n; \n; 1 xrefs:\n; > CustomSongLayer::init @ 0x1001f842a\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, 0x1001f8e90\nmov     rbp, rsp                                                       ; +0x1, 0x1001f8e91\npush    rbx                                                            ; +0x4, 0x1001f8e94\npush    rax                                                            ; +0x5, 0x1001f8e95\nmov     rbx, rdi                                                       ; +0x6, 0x1001f8e96\nmov     rdi, [rdi+2C0h]                                                ; +0x9, 0x1001f8e99\ntest    rdi, rdi                                                       ; +0x10, 0x1001f8ea0\njz      short loc_1001F8EAA                                            ; +0x13, 0x1001f8ea3\nmov     rax, [rdi]                                                     ; +0x15, 0x1001f8ea5\ncall    qword ptr [rax]                                                ; +0x18, 0x1001f8ea8\nmov     rdi, [rbx+2B0h]                                                ; +0x1a, 0x1001f8eaa\nmov     rax, [rdi]                                                     ; +0x21, 0x1001f8eb1\nxor     esi, esi                                                       ; +0x24, 0x1001f8eb4\ncall    qword ptr [rax+488h]                                           ; +0x26, 0x1001f8eb6\ncall    FMODAudioEngine__sharedEngine                                  ; +0x2c, 0x1001f8ebc\nmov     rdi, rax                                                       ; +0x31, 0x1001f8ec1\nmov     esi, 1                                                         ; +0x34, 0x1001f8ec4\ncall    FMODAudioEngine__stopAllMusic                                  ; +0x39, 0x1001f8ec9\nmov     rax, [rbx]                                                     ; +0x3e, 0x1001f8ece\nmov     rdi, rbx                                                       ; +0x41, 0x1001f8ed1\nxor     esi, esi                                                       ; +0x44, 0x1001f8ed4\ncall    qword ptr [rax+430h]                                           ; +0x46, 0x1001f8ed6\nmov     rax, [rbx]                                                     ; +0x4c, 0x1001f8edc\nmov     rax, [rax+210h]                                                ; +0x4f, 0x1001f8edf\nmov     rdi, rbx                                                       ; +0x56, 0x1001f8ee6\nmov     esi, 1                                                         ; +0x59, 0x1001f8ee9\nadd     rsp, 8                                                         ; +0x5e, 0x1001f8eee\npop     rbx                                                            ; +0x62, 0x1001f8ef2\npop     rbp                                                            ; +0x63, 0x1001f8ef3\njmp     rax                                                            ; +0x64, 0x1001f8ef4", "xrefs": ["CustomSongLayer::init @ 0x1001f842a"], "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"}