{"type": "func", "start": 4304274912, "end": 4304274988, "name": "EditorSFXActionConfigLayer::onDeleteSound", "pseudocode": "// \n// EditorSFXActionConfigLayer::onDeleteSound from 0x1008e05e0 to 0x1008e062c (76 bytes)\n// \n// 1 xrefs:\n// > EditorSFXActionConfigLayer::refreshRows @ 0x1008e0229\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:37:45 +0000\n// \n\n__int64 __fastcall EditorSFXActionConfigLayer::onDeleteSound(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  int v3; // r14d\n  __int64 v4; // rax\n\n  v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  v3 = v2 - 993;\n  if ( v2 - 1000 >= 0 )\n    v3 = v2 - 1000;\n  v4 = EditorSFXManager::sharedState(a2);\n  EditorSFXManager::removeSoundAt(v4, *(unsigned int *)(a1 + 1024), (unsigned int)(v3 >> 3));\n  return sub_100495650(a1);\n}", "assembly": "; \n; EditorSFXActionConfigLayer::onDeleteSound from 0x1008e05e0 to 0x1008e062c (76 bytes)\n; \n; 1 xrefs:\n; > EditorSFXActionConfigLayer::refreshRows @ 0x1008e0229\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:37:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008e05e0\nmov     rbp, rsp                                                       ; +0x1, 0x1008e05e1\npush    r14                                                            ; +0x4, 0x1008e05e4\npush    rbx                                                            ; +0x6, 0x1008e05e6\nmov     rbx, rdi                                                       ; +0x7, 0x1008e05e7\nmov     rax, [rsi]                                                     ; +0xa, 0x1008e05ea\nmov     rdi, rsi                                                       ; +0xd, 0x1008e05ed\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1008e05f0\nlea     ecx, [rax-3E8h]                                                ; +0x13, 0x1008e05f3\nlea     r14d, [rax-3E1h]                                               ; +0x19, 0x1008e05f9\ntest    ecx, ecx                                                       ; +0x20, 0x1008e0600\ncmovns  r14d, ecx                                                      ; +0x22, 0x1008e0602\nsar     r14d, 3                                                        ; +0x26, 0x1008e0606\ncall    EditorSFXManager__sharedState                                  ; +0x2a, 0x1008e060a\nmov     esi, [rbx+400h]                                                ; +0x2f, 0x1008e060f\nmov     rdi, rax                                                       ; +0x35, 0x1008e0615\nmov     edx, r14d                                                      ; +0x38, 0x1008e0618\ncall    EditorSFXManager__removeSoundAt                                ; +0x3b, 0x1008e061b\nmov     rdi, rbx                                                       ; +0x40, 0x1008e0620\npop     rbx                                                            ; +0x43, 0x1008e0623\npop     r14                                                            ; +0x44, 0x1008e0624\npop     rbp                                                            ; +0x46, 0x1008e0626\njmp     sub_100495650                                                  ; +0x47, 0x1008e0627", "xrefs": ["EditorSFXActionConfigLayer::refreshRows @ 0x1008e0229"], "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"}