{"type": "func", "start": 5370300816, "end": 5370300946, "name": "EditorSFXActionConfigLayer::sfxBrowserClosed", "pseudocode": "// \n// EditorSFXActionConfigLayer::sfxBrowserClosed from 0x140184990 to 0x140184a12 (130 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14074b348\n// > <???> @ 0x14089e670\n// > <???> @ 0x14089e680\n// > <???> @ 0x140918d28\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:38 +0000\n// \n\nvoid __fastcall EditorSFXActionConfigLayer::sfxBrowserClosed(__int64 a1, __int64 a2)\n{\n  __int64 NewSound; // rax\n  struct cocos2d::CCObject *v5; // rsi\n  unsigned int v6; // ebx\n  __int64 v7; // rax\n  cocos2d::CCArray **Binding; // rax\n\n  if ( a2 && *(int *)(a2 + 1088) > 0 )\n  {\n    NewSound = EditorSFXManager::createNewSound();\n    v5 = (struct cocos2d::CCObject *)NewSound;\n    if ( NewSound )\n    {\n      *(_DWORD *)(NewSound + 1892) = *(_DWORD *)(a2 + 1024);\n      v6 = *(_DWORD *)(a1 + 8);\n      v7 = EditorSFXManager::sharedState();\n      Binding = (cocos2d::CCArray **)EditorSFXManager::getOrCreateBinding(v7, v6);\n      cocos2d::CCArray::addObject(*Binding, v5);\n      cocos2d::CCNode::scheduleOnce(a1 - 1000, EditorSFXActionConfigLayer::refreshRowsAddedDeferred);\n    }\n  }\n}", "assembly": "; \n; EditorSFXActionConfigLayer::sfxBrowserClosed from 0x140184990 to 0x140184a12 (130 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14074b348\n; > <???> @ 0x14089e670\n; > <???> @ 0x14089e680\n; > <???> @ 0x140918d28\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:38 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x140184990\njz      short locret_140184A11                                         ; +0x3, 0x140184993\nmov     [rsp+arg_8], rbx                                               ; +0x5, 0x140184995\npush    rdi                                                            ; +0xa, 0x14018499a\nsub     rsp, 20h                                                       ; +0xb, 0x14018499b\nmov     rdi, rcx                                                       ; +0xf, 0x14018499f\nmov     rbx, rdx                                                       ; +0x12, 0x1401849a2\nmov     ecx, [rdx+440h]                                                ; +0x15, 0x1401849a5\ntest    ecx, ecx                                                       ; +0x1b, 0x1401849ab\njle     short loc_140184A07                                            ; +0x1d, 0x1401849ad\nmov     [rsp+28h+arg_0], rsi                                           ; +0x1f, 0x1401849af\ncall    EditorSFXManager__createNewSound                               ; +0x24, 0x1401849b4\nmov     rsi, rax                                                       ; +0x29, 0x1401849b9\ntest    rax, rax                                                       ; +0x2c, 0x1401849bc\njz      short loc_140184A02                                            ; +0x2f, 0x1401849bf\nmov     ecx, [rbx+400h]                                                ; +0x31, 0x1401849c1\nmov     [rax+764h], ecx                                                ; +0x37, 0x1401849c7\nmov     ebx, [rdi+8]                                                   ; +0x3d, 0x1401849cd\ncall    EditorSFXManager__sharedState                                  ; +0x40, 0x1401849d0\nmov     edx, ebx                                                       ; +0x45, 0x1401849d5\nmov     rcx, rax                                                       ; +0x47, 0x1401849d7\ncall    EditorSFXManager__getOrCreateBinding                           ; +0x4a, 0x1401849da\nmov     rdx, rsi                                                       ; +0x4f, 0x1401849df\nmov     rcx, [rax]                                                     ; +0x52, 0x1401849e2\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x55, 0x1401849e5\nxorps   xmm2, xmm2                                                     ; +0x5b, 0x1401849eb\nlea     rdx, EditorSFXActionConfigLayer__refreshRowsAddedDeferred      ; +0x5e, 0x1401849ee\nlea     rcx, [rdi-3E8h]                                                ; +0x65, 0x1401849f5\ncall    cs:?scheduleOnce@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZM@Z; cocos2d::CCNode::scheduleOnce(void (cocos2d::CCObject::*)(float),float) ; +0x6c, 0x1401849fc\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x72, 0x140184a02\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x77, 0x140184a07\nadd     rsp, 20h                                                       ; +0x7c, 0x140184a0c\npop     rdi                                                            ; +0x80, 0x140184a10\nretn                                                                   ; +0x81, 0x140184a11", "xrefs": ["<???> @ 0x14074b348", "<???> @ 0x14089e670", "<???> @ 0x14089e680", "<???> @ 0x140918d28"], "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"}