{"type": "func", "start": 4300002604, "end": 4300002752, "name": "EditorSoundBrowserLayer::onClose", "pseudocode": "// \n// EditorSoundBrowserLayer::onClose from 0x1004cd52c to 0x1004cd5c0 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009880e0\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:26 +0000\n// \n\n__int64 __fastcall EditorSoundBrowserLayer::onClose(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n\n  if ( GameLevelManager::sharedState() && *(_QWORD *)(GameLevelManager::sharedState() + 1328) == a1 + 1016 )\n    *(_QWORD *)(GameLevelManager::sharedState() + 1328) = 0;\n  v2 = *(_QWORD *)(a1 + 1192);\n  if ( v2 )\n    FLAlertLayer::requestRebuild(v2);\n  if ( (*(_BYTE *)(a1 + 1188) & 1) == 0 )\n  {\n    dword_1009D4708 = *(_DWORD *)(a1 + 1048);\n    std::string::operator=((std::string *)&qword_1009F8000, (const std::string *)(a1 + 1120));\n  }\n  v3 = *(_QWORD *)(a1 + 1056);\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 536LL))(v3);\n    *(_QWORD *)(a1 + 1056) = 0;\n  }\n  return SetupTriggerPopup::onClose(a1);\n}", "assembly": "; \n; EditorSoundBrowserLayer::onClose from 0x1004cd52c to 0x1004cd5c0 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009880e0\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:26 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004cd52c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004cd530\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004cd534\nMOV             X19, X1                                                ; +0xc, 0x1004cd538\nMOV             X20, X0                                                ; +0x10, 0x1004cd53c\nBL              GameLevelManager__sharedState                          ; +0x14, 0x1004cd540\nCBZ             X0, loc_1004CD564                                      ; +0x18, 0x1004cd544\nBL              GameLevelManager__sharedState                          ; +0x1c, 0x1004cd548\nLDR             X8, [X0,#0x530]                                        ; +0x20, 0x1004cd54c\nADD             X9, X20, #0x3F8                                        ; +0x24, 0x1004cd550\nCMP             X8, X9                                                 ; +0x28, 0x1004cd554\nB.NE            loc_1004CD564                                          ; +0x2c, 0x1004cd558\nBL              GameLevelManager__sharedState                          ; +0x30, 0x1004cd55c\nSTR             XZR, [X0,#0x530]                                       ; +0x34, 0x1004cd560\nLDR             X0, [X20,#0x4A8]                                       ; +0x38, 0x1004cd564\nCBZ             X0, loc_1004CD570                                      ; +0x3c, 0x1004cd568\nBL              FLAlertLayer__requestRebuild                           ; +0x40, 0x1004cd56c\nLDRB            W8, [X20,#0x4A4]                                       ; +0x44, 0x1004cd570\nTBNZ            W8, #0, loc_1004CD594                                  ; +0x48, 0x1004cd574\nLDR             W8, [X20,#0x418]                                       ; +0x4c, 0x1004cd578\nADRP            X9, #dword_1009D4708@PAGE                              ; +0x50, 0x1004cd57c\nSTR             W8, [X9,#dword_1009D4708@PAGEOFF]                      ; +0x54, 0x1004cd580\nADRL            X0, qword_1009F8000; this                              ; +0x58, 0x1004cd584\nADD             X1, X20, #0x460; __str                                 ; +0x60, 0x1004cd58c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x64, 0x1004cd590\nLDR             X0, [X20,#0x420]                                       ; +0x68, 0x1004cd594\nCBZ             X0, loc_1004CD5AC                                      ; +0x6c, 0x1004cd598\nLDR             X8, [X0]                                               ; +0x70, 0x1004cd59c\nLDR             X8, [X8,#0x218]                                        ; +0x74, 0x1004cd5a0\nBLR             X8                                                     ; +0x78, 0x1004cd5a4\nSTR             XZR, [X20,#0x420]                                      ; +0x7c, 0x1004cd5a8\nMOV             X0, X20                                                ; +0x80, 0x1004cd5ac\nMOV             X1, X19                                                ; +0x84, 0x1004cd5b0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x1004cd5b4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x1004cd5b8\nB               SetupTriggerPopup__onClose                             ; +0x90, 0x1004cd5bc", "xrefs": ["<???> @ 0x1009880e0"], "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"}