{"type": "func", "start": 4304275376, "end": 4304275481, "name": "EditorSFXActionConfigLayer::sfxBrowserClosed", "pseudocode": "// \n// EditorSFXActionConfigLayer::sfxBrowserClosed from 0x1008e07b0 to 0x1008e0819 (105 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bb40d0\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\nvoid __fastcall EditorSFXActionConfigLayer::sfxBrowserClosed(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rdi\n  __int64 NewSound; // rax\n  __int64 v5; // r14\n  __int64 v6; // rax\n\n  if ( a2 )\n  {\n    v3 = *(unsigned int *)(a2 + 1096);\n    if ( (int)v3 > 0 )\n    {\n      NewSound = EditorSFXManager::createNewSound();\n      if ( NewSound )\n      {\n        *(_DWORD *)(NewSound + 1868) = *(_DWORD *)(a2 + 1024);\n        v5 = NewSound;\n        v6 = EditorSFXManager::sharedState(v3);\n        EditorSFXManager::addSound(v6, *(unsigned int *)(a1 + 1024), v5);\n        cocos2d::CCNode::scheduleOnce(a1, (__int64)EditorSFXActionConfigLayer::refreshRowsAddedDeferred, 0, 0.0);\n      }\n    }\n  }\n}", "assembly": "; \n; EditorSFXActionConfigLayer::sfxBrowserClosed from 0x1008e07b0 to 0x1008e0819 (105 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bb40d0\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, 0x1008e07b0\nmov     rbp, rsp                                                       ; +0x1, 0x1008e07b1\npush    r14                                                            ; +0x4, 0x1008e07b4\npush    rbx                                                            ; +0x6, 0x1008e07b6\ntest    rsi, rsi                                                       ; +0x7, 0x1008e07b7\njz      short loc_1008E0814                                            ; +0xa, 0x1008e07ba\nmov     r14, rsi                                                       ; +0xc, 0x1008e07bc\nmov     rbx, rdi                                                       ; +0xf, 0x1008e07bf\nmov     edi, [rsi+448h]                                                ; +0x12, 0x1008e07c2\ntest    edi, edi                                                       ; +0x18, 0x1008e07c8\njle     short loc_1008E0814                                            ; +0x1a, 0x1008e07ca\ncall    EditorSFXManager__createNewSound                               ; +0x1c, 0x1008e07cc\ntest    rax, rax                                                       ; +0x21, 0x1008e07d1\njz      short loc_1008E0814                                            ; +0x24, 0x1008e07d4\nmov     ecx, [r14+400h]                                                ; +0x26, 0x1008e07d6\nmov     [rax+74Ch], ecx                                                ; +0x2d, 0x1008e07dd\nmov     r14, rax                                                       ; +0x33, 0x1008e07e3\ncall    EditorSFXManager__sharedState                                  ; +0x36, 0x1008e07e6\nmov     esi, [rbx+400h]                                                ; +0x3b, 0x1008e07eb\nmov     rdi, rax                                                       ; +0x41, 0x1008e07f1\nmov     rdx, r14                                                       ; +0x44, 0x1008e07f4\ncall    EditorSFXManager__addSound                                     ; +0x47, 0x1008e07f7\nlea     rsi, EditorSFXActionConfigLayer__refreshRowsAddedDeferred      ; +0x4c, 0x1008e07fc\nxorps   xmm0, xmm0                                                     ; +0x53, 0x1008e0803\nmov     rdi, rbx                                                       ; +0x56, 0x1008e0806\nxor     edx, edx                                                       ; +0x59, 0x1008e0809\npop     rbx                                                            ; +0x5b, 0x1008e080b\npop     r14                                                            ; +0x5c, 0x1008e080c\npop     rbp                                                            ; +0x5e, 0x1008e080e\njmp     cocos2d__CCNode__scheduleOnce                                  ; +0x5f, 0x1008e080f\npop     rbx                                                            ; +0x64, 0x1008e0814\npop     r14                                                            ; +0x65, 0x1008e0815\npop     rbp                                                            ; +0x67, 0x1008e0817\nretn                                                                   ; +0x68, 0x1008e0818", "xrefs": ["<???> @ 0x100bb40d0"], "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"}