{"type": "func", "start": 4299976656, "end": 4299976784, "name": "EditorSFXActionConfigLayer::sfxBrowserClosed", "pseudocode": "// \n// EditorSFXActionConfigLayer::sfxBrowserClosed from 0x1004c6fd0 to 0x1004c7050 (128 bytes)\n// \n// 2 xrefs:\n// > sub_1004C708C @ 0x1004c7090\n// > <???> @ 0x100986b40\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 11:06:23 +0000\n// \n\n__int64 __fastcall EditorSFXActionConfigLayer::sfxBrowserClosed(__int64 result, __int64 a2)\n{\n  __int64 v3; // x19\n  __n128 v4; // q0\n  __int64 v5; // x21\n  __int64 v6; // x0\n\n  if ( a2 )\n  {\n    v3 = result;\n    result = *(unsigned int *)(a2 + 1096);\n    if ( (int)result >= 1 )\n    {\n      result = EditorSFXManager::createNewSound();\n      if ( result )\n      {\n        v5 = result;\n        *(_DWORD *)(result + 1868) = *(_DWORD *)(a2 + 1024);\n        v6 = EditorSFXManager::sharedState(v4);\n        sub_1004C83D4(v6, *(unsigned int *)(v3 + 1024), v5);\n        return (__int64)sub_1002D9610(\n                          v3,\n                          (unsigned __int64)EditorSFXActionConfigLayer::refreshRowsAddedDeferred,\n                          0,\n                          0.0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorSFXActionConfigLayer::sfxBrowserClosed from 0x1004c6fd0 to 0x1004c7050 (128 bytes)\n; \n; 2 xrefs:\n; > sub_1004C708C @ 0x1004c7090\n; > <???> @ 0x100986b40\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 11:06:23 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1004c6fd0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004c6fd4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004c6fd8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004c6fdc\nCBZ             X1, loc_1004C7040                                      ; +0x10, 0x1004c6fe0\nMOV             X20, X1                                                ; +0x14, 0x1004c6fe4\nMOV             X19, X0                                                ; +0x18, 0x1004c6fe8\nLDR             W0, [X1,#0x448]                                        ; +0x1c, 0x1004c6fec\nCMP             W0, #1                                                 ; +0x20, 0x1004c6ff0\nB.LT            loc_1004C7040                                          ; +0x24, 0x1004c6ff4\nBL              EditorSFXManager__createNewSound                       ; +0x28, 0x1004c6ff8\nCBZ             X0, loc_1004C7040                                      ; +0x2c, 0x1004c6ffc\nMOV             X21, X0                                                ; +0x30, 0x1004c7000\nLDR             W8, [X20,#0x400]                                       ; +0x34, 0x1004c7004\nSTR             W8, [X0,#0x74C]                                        ; +0x38, 0x1004c7008\nBL              EditorSFXManager__sharedState                          ; +0x3c, 0x1004c700c\nLDR             W1, [X19,#0x400]                                       ; +0x40, 0x1004c7010\nMOV             X2, X21                                                ; +0x44, 0x1004c7014\nBL              sub_1004C83D4                                          ; +0x48, 0x1004c7018\nADRL            X1, EditorSFXActionConfigLayer__refreshRowsAddedDeferred ; +0x4c, 0x1004c701c\nFMOV            S0, WZR                                                ; +0x54, 0x1004c7024\nMOV             X0, X19                                                ; +0x58, 0x1004c7028\nMOV             X2, #0                                                 ; +0x5c, 0x1004c702c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x1004c7030\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x1004c7034\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x68, 0x1004c7038\nB               sub_1002D9610                                          ; +0x6c, 0x1004c703c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x1004c7040\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x1004c7044\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x78, 0x1004c7048\nRET                                                                    ; +0x7c, 0x1004c704c", "xrefs": ["sub_1004C708C @ 0x1004c7090", "<???> @ 0x100986b40"], "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"}