{"type": "func", "start": 12924032, "end": 12924184, "name": "AutoBackupPopup::backupDirectory", "pseudocode": "// \n// AutoBackupPopup::backupDirectory from 0xc53480 to 0xc53518 (152 bytes)\n// \n// 8 xrefs:\n// > LevelEditorLayer::doAutoBackup @ 0x7a83f4\n// > AutoBackupOptionsPopup::refreshStats @ 0xc5667c\n// > AutoBackupOptionsPopup::onDeleteAll @ 0xc5728c\n// > AutoBackupOptionsPopup::onPrune @ 0xc58b9c\n// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58e7c\n// > AutoBackupPopup::reloadFiles @ 0xc5d070\n// > AutoBackupPopup::init @ 0xc5d184\n// > <???> @ 0xc13c0\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 13:05:10 +0000\n// \n\n__int64 *__usercall AutoBackupPopup::backupDirectory@<X0>(__int64 *__return_ptr a1@<X8>)\n{\n  int v3; // w0\n  __int64 v4; // x0\n  int v5; // w0\n  int v7; // w0\n\n  AutoSaveSettingsLayer::getBackupDirectory(a1);\n  v3 = *(unsigned __int8 *)a1;\n  if ( (v3 & 1) != 0 )\n  {\n    v4 = a1[1];\n    if ( !v4 )\n      return a1;\n    v5 = *(unsigned __int8 *)(a1[2] + v4 - 1);\n    if ( v5 == 47 )\n      return a1;\n  }\n  else\n  {\n    v7 = v3 >> 1;\n    if ( !v7 )\n      return a1;\n    v5 = *((unsigned __int8 *)a1 + v7);\n    if ( v5 == 47 )\n      return a1;\n  }\n  if ( v5 != 92 )\n    std::string::append((__int64)a1, &word_11BA098, 1u);\n  return a1;\n}", "assembly": "; \n; AutoBackupPopup::backupDirectory from 0xc53480 to 0xc53518 (152 bytes)\n; \n; 8 xrefs:\n; > LevelEditorLayer::doAutoBackup @ 0x7a83f4\n; > AutoBackupOptionsPopup::refreshStats @ 0xc5667c\n; > AutoBackupOptionsPopup::onDeleteAll @ 0xc5728c\n; > AutoBackupOptionsPopup::onPrune @ 0xc58b9c\n; > AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58e7c\n; > AutoBackupPopup::reloadFiles @ 0xc5d070\n; > AutoBackupPopup::init @ 0xc5d184\n; > <???> @ 0xc13c0\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 13:05:10 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xc53480\nMOV             X29, SP                                                ; +0x4, 0xc53484\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xc53488\nMOV             X19, X8                                                ; +0xc, 0xc5348c\nBL              _ZN21AutoSaveSettingsLayer18getBackupDirectoryEv; AutoSaveSettingsLayer::getBackupDirectory(void) ; +0x10, 0xc53490\nLDRB            W0, [X19]                                              ; +0x14, 0xc53494\nTBZ             W0, #0, loc_C534E4                                     ; +0x18, 0xc53498\nLDR             X0, [X19,#8]                                           ; +0x1c, 0xc5349c\nCBZ             X0, loc_C534D4                                         ; +0x20, 0xc534a0\nLDR             X1, [X19,#0x10]                                        ; +0x24, 0xc534a4\nADD             X0, X1, X0                                             ; +0x28, 0xc534a8\nLDURB           W0, [X0,#-1]                                           ; +0x2c, 0xc534ac\nCMP             W0, #0x2F ; '/'                                        ; +0x30, 0xc534b0\nB.EQ            loc_C534D4                                             ; +0x34, 0xc534b4\nCMP             W0, #0x5C ; '\\'                                        ; +0x38, 0xc534b8\nB.EQ            loc_C534D4                                             ; +0x3c, 0xc534bc\nADRP            X1, #word_11BA098@PAGE                                 ; +0x40, 0xc534c0\nMOV             X0, X19; int                                           ; +0x44, 0xc534c4\nADD             X1, X1, #word_11BA098@PAGEOFF; void *                  ; +0x48, 0xc534c8\nMOV             X2, #1; size_t                                         ; +0x4c, 0xc534cc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm; std::string::append(char const*,ulong) ; +0x50, 0xc534d0\nMOV             X0, X19                                                ; +0x54, 0xc534d4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0xc534d8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x5c, 0xc534dc\nRET                                                                    ; +0x60, 0xc534e0\nASR             W0, W0, #1                                             ; +0x64, 0xc534e4\nCBZ             W0, loc_C534D4                                         ; +0x68, 0xc534e8\nLDRB            W0, [X19,W0,SXTW]                                      ; +0x6c, 0xc534ec\nCMP             W0, #0x2F ; '/'                                        ; +0x70, 0xc534f0\nB.NE            loc_C534B8                                             ; +0x74, 0xc534f4\nB               loc_C534D4                                             ; +0x78, 0xc534f8\nLDRB            W1, [X19]                                              ; +0x7c, 0xc534fc\nMOV             X20, X0                                                ; +0x80, 0xc53500\nTBZ             W1, #0, loc_C53510                                     ; +0x84, 0xc53504\nLDR             X0, [X19,#0x10]; void *                                ; +0x88, 0xc53508\nBL              _ZdlPv; operator delete(void *)                        ; +0x8c, 0xc5350c\nMOV             X0, X20                                                ; +0x90, 0xc53510\nBL              _Unwind_Resume                                         ; +0x94, 0xc53514", "xrefs": ["LevelEditorLayer::doAutoBackup @ 0x7a83f4", "AutoBackupOptionsPopup::refreshStats @ 0xc5667c", "AutoBackupOptionsPopup::onDeleteAll @ 0xc5728c", "AutoBackupOptionsPopup::onPrune @ 0xc58b9c", "AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58e7c", "AutoBackupPopup::reloadFiles @ 0xc5d070", "AutoBackupPopup::init @ 0xc5d184", "<???> @ 0xc13c0"], "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"}