{"type": "func", "start": 5369975648, "end": 5369975758, "name": "FindBPMLayer::onClose", "pseudocode": "// \n// FindBPMLayer::onClose from 0x140135360 to 0x1401353ce (110 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140736580\n// > <???> @ 0x1409170e4\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:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall FindBPMLayer::onClose(__int64 a1)\n{\n  __int64 v2; // rdx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_14090C070 )\n  {\n    v4 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n  }\n  MusicDownloadManager::songStateChanged();\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v2) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v2);\n}", "assembly": "; \n; FindBPMLayer::onClose from 0x140135360 to 0x1401353ce (110 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140736580\n; > <???> @ 0x1409170e4\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:04 +0000\n; \npush    rbx                                                            ; +0x0, 0x140135360\nsub     rsp, 20h                                                       ; +0x2, 0x140135362\nmov     rbx, rcx                                                       ; +0x6, 0x140135366\nmov     rcx, cs:qword_14090C070                                        ; +0x9, 0x140135369\ntest    rcx, rcx                                                       ; +0x10, 0x140135370\njnz     short loc_1401353A7                                            ; +0x13, 0x140135373\nmov     ecx, 3D0h; Size                                                ; +0x15, 0x140135375\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14013537a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14013537f\nmov     rcx, rax                                                       ; +0x24, 0x140135384\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x27, 0x140135387\nnop                                                                    ; +0x2c, 0x14013538c\nmov     cs:qword_14090C070, rax                                        ; +0x2d, 0x14013538d\nmov     rcx, [rax]                                                     ; +0x34, 0x140135394\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x140135397\nmov     rcx, rax                                                       ; +0x3b, 0x14013539b\ncall    rdx                                                            ; +0x3e, 0x14013539e\nmov     rcx, cs:qword_14090C070                                        ; +0x40, 0x1401353a0\ncall    MusicDownloadManager__songStateChanged                         ; +0x47, 0x1401353a7\nmov     rax, [rbx]                                                     ; +0x4c, 0x1401353ac\nxor     edx, edx                                                       ; +0x4f, 0x1401353af\nmov     rcx, rbx                                                       ; +0x51, 0x1401353b1\ncall    qword ptr [rax+3E0h]                                           ; +0x54, 0x1401353b4\nmov     rax, [rbx]                                                     ; +0x5a, 0x1401353ba\nmov     dl, 1                                                          ; +0x5d, 0x1401353bd\nmov     rcx, rbx                                                       ; +0x5f, 0x1401353bf\nadd     rsp, 20h                                                       ; +0x62, 0x1401353c2\npop     rbx                                                            ; +0x66, 0x1401353c6\njmp     qword ptr [rax+208h]                                           ; +0x67, 0x1401353c7", "xrefs": ["<???> @ 0x140736580", "<???> @ 0x1409170e4"], "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"}