{"type": "func", "start": 13366476, "end": 13366616, "name": "EditorSFXManager::releaseBinding", "pseudocode": "// \n// EditorSFXManager::releaseBinding from 0xcbf4cc to 0xcbf558 (140 bytes)\n// \n// 4 xrefs:\n// > EditorSFXManager::clearAll @ 0xcc00b8\n// > EditorSFXManager::clearAction @ 0xcc3f78\n// > EditorSFXManager::removeSoundAt @ 0xcc518c\n// > <???> @ 0xa9978\n// \n// This function is hookable on this platform (idp: arm, 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 13:06:16 +0000\n// \n\nvoid __fastcall EditorSFXManager::releaseBinding(int a1, void *a2)\n{\n  char *v3; // x0\n  char *v4; // x2\n\n  if ( a2 )\n  {\n    if ( *(_QWORD *)a2 )\n    {\n      cocos2d::CCObject::release(*(cocos2d::CCObject **)a2);\n      *(_QWORD *)a2 = 0;\n    }\n    v3 = *((char **)a2 + 5);\n    if ( v3 )\n    {\n      v4 = *((char **)a2 + 6);\n      if ( v3 != v4 )\n        *((_QWORD *)a2 + 6) = &v4[4 * ~((unsigned __int64)(v4 - 4 - v3) >> 2)];\n      operator delete(v3);\n    }\n    if ( (*((_BYTE *)a2 + 16) & 1) != 0 )\n      operator delete(*((void **)a2 + 4));\n    operator delete(a2);\n  }\n}", "assembly": "; \n; EditorSFXManager::releaseBinding from 0xcbf4cc to 0xcbf558 (140 bytes)\n; \n; 4 xrefs:\n; > EditorSFXManager::clearAll @ 0xcc00b8\n; > EditorSFXManager::clearAction @ 0xcc3f78\n; > EditorSFXManager::removeSoundAt @ 0xcc518c\n; > <???> @ 0xa9978\n; \n; This function is hookable on this platform (idp: arm, 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 13:06:16 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xcbf4cc\nMOV             X29, SP                                                ; +0x4, 0xcbf4d0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xcbf4d4\nCBZ             X1, loc_CBF54C                                         ; +0xc, 0xcbf4d8\nLDR             X0, [X1]; this                                         ; +0x10, 0xcbf4dc\nMOV             X19, X1                                                ; +0x14, 0xcbf4e0\nCBZ             X0, loc_CBF4F0                                         ; +0x18, 0xcbf4e4\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x1c, 0xcbf4e8\nSTR             XZR, [X19]                                             ; +0x20, 0xcbf4ec\nLDR             X0, [X19,#0x28]; void *                                ; +0x24, 0xcbf4f0\nCBZ             X0, loc_CBF51C                                         ; +0x28, 0xcbf4f4\nLDR             X2, [X19,#0x30]                                        ; +0x2c, 0xcbf4f8\nCMP             X0, X2                                                 ; +0x30, 0xcbf4fc\nB.EQ            loc_CBF518                                             ; +0x34, 0xcbf500\nSUB             X1, X2, #4                                             ; +0x38, 0xcbf504\nSUB             X1, X1, X0                                             ; +0x3c, 0xcbf508\nMVN             X1, X1,LSR#2                                           ; +0x40, 0xcbf50c\nADD             X1, X2, X1,LSL#2                                       ; +0x44, 0xcbf510\nSTR             X1, [X19,#0x30]                                        ; +0x48, 0xcbf514\nBL              _ZdlPv; operator delete(void *)                        ; +0x4c, 0xcbf518\nLDRB            W0, [X19,#0x10]                                        ; +0x50, 0xcbf51c\nTBNZ            W0, #0, loc_CBF534                                     ; +0x54, 0xcbf520\nMOV             X0, X19; void *                                        ; +0x58, 0xcbf524\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0xcbf528\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0xcbf52c\nB               _ZdlPv; operator delete(void *)                        ; +0x64, 0xcbf530\nLDR             X0, [X19,#0x20]; void *                                ; +0x68, 0xcbf534\nBL              _ZdlPv; operator delete(void *)                        ; +0x6c, 0xcbf538\nMOV             X0, X19; void *                                        ; +0x70, 0xcbf53c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x74, 0xcbf540\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x78, 0xcbf544\nB               _ZdlPv; operator delete(void *)                        ; +0x7c, 0xcbf548\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x80, 0xcbf54c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x84, 0xcbf550\nRET                                                                    ; +0x88, 0xcbf554", "xrefs": ["EditorSFXManager::clearAll @ 0xcc00b8", "EditorSFXManager::clearAction @ 0xcc3f78", "EditorSFXManager::removeSoundAt @ 0xcc518c", "<???> @ 0xa9978"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}