{"type": "func", "start": 4299978232, "end": 4299978340, "name": "EditorSFXManager::ensureLoaded", "pseudocode": "// \n// EditorSFXManager::ensureLoaded from 0x1004c75f8 to 0x1004c7664 (108 bytes)\n// \n// 3 xrefs:\n// > LoadingLayer::loadAssets @ 0x10026efe8\n// > LevelEditorLayer::init @ 0x1003f6720\n// > EditorSFXManager::encodeDataTo @ 0x1004ca468\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\nvoid __fastcall EditorSFXManager::ensureLoaded(__int64 a1)\n{\n  std::string __p; // [xsp+0h] [xbp-30h] BYREF\n\n  if ( (*(char *)(a1 + 191) & 0x8000000000000000LL) != 0 )\n  {\n    if ( !*(_QWORD *)(a1 + 176) )\n      return;\n  }\n  else if ( !*(_BYTE *)(a1 + 191) )\n  {\n    return;\n  }\n  __p = *(std::string *)(a1 + 168);\n  *(_QWORD *)(a1 + 176) = 0;\n  *(_QWORD *)(a1 + 184) = 0;\n  *(_QWORD *)(a1 + 168) = 0;\n  EditorSFXManager::deserializeAll(a1, &__p);\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__p.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; EditorSFXManager::ensureLoaded from 0x1004c75f8 to 0x1004c7664 (108 bytes)\n; \n; 3 xrefs:\n; > LoadingLayer::loadAssets @ 0x10026efe8\n; > LevelEditorLayer::init @ 0x1003f6720\n; > EditorSFXManager::encodeDataTo @ 0x1004ca468\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; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1004c75f8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1004c75fc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1004c7600\nADD             X29, SP, #0x30                                         ; +0xc, 0x1004c7604\nLDRSB           X8, [X0,#0xBF]                                         ; +0x10, 0x1004c7608\nTBNZ            X8, #0x3F, loc_1004C7618 ; '?'                         ; +0x14, 0x1004c760c\nCBNZ            X8, loc_1004C7620                                      ; +0x18, 0x1004c7610\nB               loc_1004C7654                                          ; +0x1c, 0x1004c7614\nLDR             X8, [X0,#0xB0]                                         ; +0x20, 0x1004c7618\nCBZ             X8, loc_1004C7654                                      ; +0x24, 0x1004c761c\nLDUR            Q0, [X0,#0xA8]                                         ; +0x28, 0x1004c7620\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x2c, 0x1004c7624\nLDUR            X8, [X0,#0xB8]                                         ; +0x30, 0x1004c7628\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x34, 0x1004c762c\nSTP             XZR, XZR, [X0,#0xB0]                                   ; +0x38, 0x1004c7630\nSTUR            XZR, [X0,#0xA8]                                        ; +0x3c, 0x1004c7634\nMOV             X1, SP; this                                           ; +0x40, 0x1004c7638\nMOV             W2, #1                                                 ; +0x44, 0x1004c763c\nBL              EditorSFXManager__deserializeAll                       ; +0x48, 0x1004c7640\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x4c, 0x1004c7644\nTBZ             W8, #0x1F, loc_1004C7654                               ; +0x50, 0x1004c7648\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x54, 0x1004c764c\nBL              __ZdlPv; operator delete(void *)                       ; +0x58, 0x1004c7650\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x1004c7654\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x1004c7658\nADD             SP, SP, #0x40 ; '@'                                    ; +0x64, 0x1004c765c\nRET                                                                    ; +0x68, 0x1004c7660", "xrefs": ["LoadingLayer::loadAssets @ 0x10026efe8", "LevelEditorLayer::init @ 0x1003f6720", "EditorSFXManager::encodeDataTo @ 0x1004ca468"], "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"}