{"type": "func", "start": 4299978112, "end": 4299978232, "name": "EditorSFXManager::firstSetup", "pseudocode": "// \n// EditorSFXManager::firstSetup from 0x1004c7580 to 0x1004c75f8 (120 bytes)\n// \n// 1 xrefs:\n// > GameManager::firstLoad @ 0x1003ba11c\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_QWORD *__fastcall EditorSFXManager::firstSetup(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n  _QWORD *result; // x0\n\n  EditorSFXManager::clearAll((_QWORD *)a1);\n  if ( *(char *)(a1 + 191) < 0 )\n  {\n    **(_BYTE **)(a1 + 168) = 0;\n    *(_QWORD *)(a1 + 176) = 0;\n  }\n  else\n  {\n    *(_BYTE *)(a1 + 168) = 0;\n    *(_BYTE *)(a1 + 191) = 0;\n  }\n  v2 = *(_QWORD *)(a1 + 144);\n  if ( v2 )\n    sub_1002E7674(v2);\n  v3 = *(_QWORD *)(a1 + 152);\n  if ( v3 )\n    sub_1002E7674(v3);\n  *(_DWORD *)(a1 + 160) = 1;\n  sub_100018AA8((_QWORD *)(a1 + 40));\n  result = sub_100018AA8((_QWORD *)(a1 + 80));\n  *(_DWORD *)(a1 + 192) = 1065353216;\n  return result;\n}", "assembly": "; \n; EditorSFXManager::firstSetup from 0x1004c7580 to 0x1004c75f8 (120 bytes)\n; \n; 1 xrefs:\n; > GameManager::firstLoad @ 0x1003ba11c\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004c7580\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004c7584\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004c7588\nMOV             X19, X0                                                ; +0xc, 0x1004c758c\nBL              EditorSFXManager__clearAll                             ; +0x10, 0x1004c7590\nLDRSB           W8, [X19,#0xBF]                                        ; +0x14, 0x1004c7594\nTBNZ            W8, #0x1F, loc_1004C75A8                               ; +0x18, 0x1004c7598\nSTRB            WZR, [X19,#0xA8]                                       ; +0x1c, 0x1004c759c\nSTRB            WZR, [X19,#0xBF]                                       ; +0x20, 0x1004c75a0\nB               loc_1004C75B4                                          ; +0x24, 0x1004c75a4\nLDR             X8, [X19,#0xA8]                                        ; +0x28, 0x1004c75a8\nSTRB            WZR, [X8]                                              ; +0x2c, 0x1004c75ac\nSTR             XZR, [X19,#0xB0]                                       ; +0x30, 0x1004c75b0\nLDR             X0, [X19,#0x90]                                        ; +0x34, 0x1004c75b4\nCBZ             X0, loc_1004C75C0                                      ; +0x38, 0x1004c75b8\nBL              sub_1002E7674                                          ; +0x3c, 0x1004c75bc\nLDR             X0, [X19,#0x98]                                        ; +0x40, 0x1004c75c0\nCBZ             X0, loc_1004C75CC                                      ; +0x44, 0x1004c75c4\nBL              sub_1002E7674                                          ; +0x48, 0x1004c75c8\nMOV             W8, #1                                                 ; +0x4c, 0x1004c75cc\nSTR             W8, [X19,#0xA0]                                        ; +0x50, 0x1004c75d0\nADD             X0, X19, #0x28 ; '('                                   ; +0x54, 0x1004c75d4\nBL              sub_100018AA8                                          ; +0x58, 0x1004c75d8\nADD             X0, X19, #0x50 ; 'P'                                   ; +0x5c, 0x1004c75dc\nBL              sub_100018AA8                                          ; +0x60, 0x1004c75e0\nMOV             W8, #0x3F800000                                        ; +0x64, 0x1004c75e4\nSTR             W8, [X19,#0xC0]                                        ; +0x68, 0x1004c75e8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x1004c75ec\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x70, 0x1004c75f0\nRET                                                                    ; +0x74, 0x1004c75f4", "xrefs": ["GameManager::firstLoad @ 0x1003ba11c"], "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"}