{"type": "func", "start": 7588592, "end": 7588680, "name": "AutoBackupPopup::backupDirectory", "pseudocode": "// \n// AutoBackupPopup::backupDirectory from 0x73caf0 to 0x73cb48 (88 bytes)\n// \n// 7 xrefs:\n// > LevelEditorLayer::doAutoBackup @ 0x472c66\n// > AutoBackupOptionsPopup::refreshStats @ 0x73dd68\n// > AutoBackupOptionsPopup::onDeleteAll @ 0x73e4ac\n// > AutoBackupOptionsPopup::onPrune @ 0x73e982\n// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb06\n// > AutoBackupPopup::reloadFiles @ 0x742010\n// > AutoBackupPopup::init @ 0x7420d0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:58:31 +0000\n// \n\nAutoBackupPopup *__fastcall AutoBackupPopup::backupDirectory(AutoBackupPopup *this)\n{\n  int v2; // r3\n  int v3; // r2\n  char *v4; // r1\n  char *v5; // r2\n  int v6; // r3\n\n  AutoSaveSettingsLayer::getBackupDirectory(this);\n  v2 = *(unsigned __int8 *)this;\n  if ( (v2 & 1) != 0 )\n  {\n    v3 = *((_DWORD *)this + 1);\n    if ( !v3 )\n      return this;\n    v4 = *((char **)this + 2);\n  }\n  else\n  {\n    v3 = v2 >> 1;\n    if ( !(v2 >> 1) )\n      return this;\n    v4 = (char *)this + 1;\n  }\n  if ( v4[v3 - 1] != 47 )\n  {\n    if ( (v2 & 1) != 0 )\n    {\n      v5 = *((char **)this + 2);\n      v6 = *((_DWORD *)this + 1);\n    }\n    else\n    {\n      v5 = (char *)this + 1;\n      v6 = v2 >> 1;\n    }\n    if ( v5[v6 - 1] != 92 )\n      std::string::append(this, \"/\");\n  }\n  return this;\n}", "assembly": "; \n; AutoBackupPopup::backupDirectory from 0x73caf0 to 0x73cb48 (88 bytes)\n; \n; 7 xrefs:\n; > LevelEditorLayer::doAutoBackup @ 0x472c66\n; > AutoBackupOptionsPopup::refreshStats @ 0x73dd68\n; > AutoBackupOptionsPopup::onDeleteAll @ 0x73e4ac\n; > AutoBackupOptionsPopup::onPrune @ 0x73e982\n; > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb06\n; > AutoBackupPopup::reloadFiles @ 0x742010\n; > AutoBackupPopup::init @ 0x7420d0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:58:31 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x73caf0\nMOV             R4, R0                                                 ; +0x2, 0x73caf2\nBL              _ZN21AutoSaveSettingsLayer18getBackupDirectoryEv; AutoSaveSettingsLayer::getBackupDirectory(void) ; +0x4, 0x73caf4\nLDRB            R3, [R4]                                               ; +0x8, 0x73caf8\nANDS.W          R0, R3, #1                                             ; +0xa, 0x73cafa\nBEQ             loc_73CB08                                             ; +0xe, 0x73cafe\nLDR             R2, [R4,#4]                                            ; +0x10, 0x73cb00\nCBZ             R2, loc_73CB44                                         ; +0x12, 0x73cb02\nLDR             R1, [R4,#8]                                            ; +0x14, 0x73cb04\nB               loc_73CB0E                                             ; +0x16, 0x73cb06\nASRS            R2, R3, #1                                             ; +0x18, 0x73cb08\nBEQ             loc_73CB44                                             ; +0x1a, 0x73cb0a\nADDS            R1, R4, #1                                             ; +0x1c, 0x73cb0c\nADD             R2, R1                                                 ; +0x1e, 0x73cb0e\nLDRB.W          R2, [R2,#-1]                                           ; +0x20, 0x73cb10\nCMP             R2, #0x2F ; '/'                                        ; +0x24, 0x73cb14\nBEQ             loc_73CB44                                             ; +0x26, 0x73cb16\nCBZ             R0, loc_73CB20                                         ; +0x28, 0x73cb18\nLDR             R2, [R4,#8]                                            ; +0x2a, 0x73cb1a\nLDR             R3, [R4,#4]                                            ; +0x2c, 0x73cb1c\nB               loc_73CB24                                             ; +0x2e, 0x73cb1e\nADDS            R2, R4, #1                                             ; +0x30, 0x73cb20\nASRS            R3, R3, #1                                             ; +0x32, 0x73cb22\nADD             R3, R2                                                 ; +0x34, 0x73cb24\nLDRB.W          R3, [R3,#-1]                                           ; +0x36, 0x73cb26\nCMP             R3, #0x5C ; '\\'                                        ; +0x3a, 0x73cb2a\nBEQ             loc_73CB44                                             ; +0x3c, 0x73cb2c\nLDR             R1, =(asc_BB963B - 0x73CB36); \"/\"                      ; +0x3e, 0x73cb2e\nMOV             R0, R4; int                                            ; +0x40, 0x73cb30\nADD             R1, PC; \"/\"                                            ; +0x42, 0x73cb32\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x44, 0x73cb34\nB               loc_73CB44                                             ; +0x48, 0x73cb38\nMOV             R0, R4                                                 ; +0x4a, 0x73cb3a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4c, 0x73cb3c\nBL              __cxa_end_cleanup                                      ; +0x50, 0x73cb40\nMOV             R0, R4                                                 ; +0x54, 0x73cb44\nPOP             {R4,PC}                                                ; +0x56, 0x73cb46", "xrefs": ["LevelEditorLayer::doAutoBackup @ 0x472c66", "AutoBackupOptionsPopup::refreshStats @ 0x73dd68", "AutoBackupOptionsPopup::onDeleteAll @ 0x73e4ac", "AutoBackupOptionsPopup::onPrune @ 0x73e982", "AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb06", "AutoBackupPopup::reloadFiles @ 0x742010", "AutoBackupPopup::init @ 0x7420d0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}