{"type": "func", "start": 4302012720, "end": 4302012944, "name": "CustomSFXWidget::deleteSFX", "pseudocode": "// \n// CustomSFXWidget::deleteSFX from 0x1006b8130 to 0x1006b8210 (224 bytes)\n// \n// 2 xrefs:\n// > CustomSFXWidget::FLAlert_Clicked @ 0x1006b8a66\n// > sub_1006B8A70 @ 0x1006b8acd\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:35:28 +0000\n// \n\nvoid __fastcall CustomSFXWidget::deleteSFX(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  std::error_code *v4; // rax\n  __int64 v5; // rdi\n  std::string v6; // [rsp+8h] [rbp-28h] BYREF\n  __int16 v7; // [rsp+24h] [rbp-Ch] BYREF\n  char v8; // [rsp+26h] [rbp-Ah]\n\n  if ( *(_QWORD *)(a1 + 336) )\n  {\n    v2 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::pathForSFX(&v6, v2, *(_DWORD *)(*(_QWORD *)(a1 + 336) + 56LL));\n    v3 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllEffects(v3);\n    v4 = (std::error_code *)MusicDownloadManager::sharedState();\n    MusicDownloadManager::deleteSFX(v4, *(_DWORD *)(*(_QWORD *)(a1 + 336) + 56LL));\n    CustomSFXWidget::updateSFXInfo(a1);\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 1);\n    v5 = *(_QWORD *)(a1 + 368);\n    v8 = 0;\n    v7 = 25855;\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 1072LL))(v5, &v7);\n    (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(\n      *(_QWORD *)(a1 + 368),\n      \"SFX Deleted\");\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 368), 230.0, (__m128)0x3ECCCCCDu, (__m128)0LL);\n    if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v6.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; CustomSFXWidget::deleteSFX from 0x1006b8130 to 0x1006b8210 (224 bytes)\n; \n; 2 xrefs:\n; > CustomSFXWidget::FLAlert_Clicked @ 0x1006b8a66\n; > sub_1006B8A70 @ 0x1006b8acd\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:35:28 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006b8130\nmov     rbp, rsp                                                       ; +0x1, 0x1006b8131\npush    rbx                                                            ; +0x4, 0x1006b8134\nsub     rsp, 28h                                                       ; +0x5, 0x1006b8135\ncmp     qword ptr [rdi+150h], 0                                        ; +0x9, 0x1006b8139\njz      loc_1006B8209                                                  ; +0x11, 0x1006b8141\nmov     rbx, rdi                                                       ; +0x17, 0x1006b8147\ncall    MusicDownloadManager__sharedState                              ; +0x1a, 0x1006b814a\nmov     rcx, [rbx+150h]                                                ; +0x1f, 0x1006b814f\nmov     edx, [rcx+38h]                                                 ; +0x26, 0x1006b8156\nlea     rdi, [rbp+var_28]; this                                        ; +0x29, 0x1006b8159\nmov     rsi, rax                                                       ; +0x2d, 0x1006b815d\ncall    MusicDownloadManager__pathForSFX                               ; +0x30, 0x1006b8160\ncall    FMODAudioEngine__sharedEngine                                  ; +0x35, 0x1006b8165\nmov     rdi, rax                                                       ; +0x3a, 0x1006b816a\ncall    FMODAudioEngine__stopAllEffects                                ; +0x3d, 0x1006b816d\ncall    MusicDownloadManager__sharedState                              ; +0x42, 0x1006b8172\nmov     rcx, [rbx+150h]                                                ; +0x47, 0x1006b8177\nmov     esi, [rcx+38h]                                                 ; +0x4e, 0x1006b817e\nmov     rdi, rax; __ec                                                 ; +0x51, 0x1006b8181\ncall    MusicDownloadManager__deleteSFX                                ; +0x54, 0x1006b8184\nmov     rdi, rbx                                                       ; +0x59, 0x1006b8189\ncall    CustomSFXWidget__updateSFXInfo                                 ; +0x5c, 0x1006b818c\nmov     rdi, [rbx+170h]                                                ; +0x61, 0x1006b8191\nmov     rax, [rdi]                                                     ; +0x68, 0x1006b8198\nmov     esi, 1                                                         ; +0x6b, 0x1006b819b\ncall    qword ptr [rax+158h]                                           ; +0x70, 0x1006b81a0\nmov     rdi, [rbx+170h]                                                ; +0x76, 0x1006b81a6\nmov     [rbp+var_A], 0                                                 ; +0x7d, 0x1006b81ad\nmov     [rbp+var_C], 64FFh                                             ; +0x81, 0x1006b81b1\nmov     rax, [rdi]                                                     ; +0x87, 0x1006b81b7\nlea     rsi, [rbp+var_C]                                               ; +0x8a, 0x1006b81ba\ncall    qword ptr [rax+430h]                                           ; +0x8e, 0x1006b81be\nmov     rdi, [rbx+170h]                                                ; +0x94, 0x1006b81c4\nmov     rax, [rdi]                                                     ; +0x9b, 0x1006b81cb\nlea     rsi, aSfxDeleted; \"SFX Deleted\"                                ; +0x9e, 0x1006b81ce\ncall    qword ptr [rax+3A0h]                                           ; +0xa5, 0x1006b81d5\nmov     rdi, [rbx+170h]                                                ; +0xab, 0x1006b81db\nmovss   xmm0, cs:dword_100A06340                                       ; +0xb2, 0x1006b81e2\nmovss   xmm1, cs:dword_100A040AC                                       ; +0xba, 0x1006b81ea\nxorps   xmm2, xmm2                                                     ; +0xc2, 0x1006b81f2\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0xc5, 0x1006b81f5\ntest    byte ptr [rbp+var_28.__r_.__value_], 1                         ; +0xca, 0x1006b81fa\njz      short loc_1006B8209                                            ; +0xce, 0x1006b81fe\nmov     rdi, qword ptr [rbp+var_28.__r_.__value_+10h]; __p             ; +0xd0, 0x1006b8200\ncall    __ZdlPv; operator delete(void *)                               ; +0xd4, 0x1006b8204\nadd     rsp, 28h                                                       ; +0xd9, 0x1006b8209\npop     rbx                                                            ; +0xdd, 0x1006b820d\npop     rbp                                                            ; +0xde, 0x1006b820e\nretn                                                                   ; +0xdf, 0x1006b820f", "xrefs": ["CustomSFXWidget::FLAlert_Clicked @ 0x1006b8a66", "sub_1006B8A70 @ 0x1006b8acd"], "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"}