//
// sub_73D4C8 from 0x73d4c8 to 0x73d5fe (310 bytes)
//
// 2 xrefs:
// > sub_73D604 @ 0x73d8b6
// > sub_73D604 @ 0x73d8c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:58:31 +0000
//
int __fastcall sub_73D4C8(int a1, unsigned __int8 *a2)
{
unsigned __int8 *v4; // r5
unsigned int v5; // r4
unsigned __int8 *v6; // r7
unsigned __int8 *v7; // r4
int v8; // r11
unsigned __int8 *v9; // r10
int v10; // r3
unsigned int v11; // r0
_DWORD v13[16]; // [sp+14h] [bp-48h] BYREF
switch ( (int)&a2[-a1] >> 6 )
{
case 0:
case 1:
return 1;
case 2:
v4 = a2 - 64;
v5 = sub_73C376(a2 - 64, (unsigned __int8 *)a1);
if ( !v5 )
return 1;
AutoBackupPopup::BackupFile::BackupFile(v13, (int *)a1);
AutoBackupPopup::BackupFile::operator=(a1, v4);
AutoBackupPopup::BackupFile::operator=((int)v4, v13);
goto LABEL_16;
case 3:
sub_73D220((int *)a1, (int *)(a1 + 64), a2 - 64);
return 1;
case 4:
sub_73D320((int *)a1, (int *)(a1 + 64), (unsigned __int8 *)(a1 + 128), a2 - 64);
return 1;
case 5:
sub_73D3DC((int *)a1, (int *)(a1 + 64), (unsigned __int8 *)(a1 + 128), (unsigned __int8 *)(a1 + 192), a2 - 64);
return 1;
default:
v6 = (unsigned __int8 *)(a1 + 128);
v7 = (unsigned __int8 *)(a1 + 192);
v8 = 0;
sub_73D220((int *)a1, (int *)(a1 + 64), (unsigned __int8 *)(a1 + 128));
break;
}
while ( 1 )
{
v9 = v6;
if ( v7 == a2 )
return 1;
if ( sub_73C376(v7, v6) )
break;
LABEL_9:
v7 += 64;
v6 += 64;
}
AutoBackupPopup::BackupFile::BackupFile(v13, (int *)v7);
v10 = (int)v7;
while ( 1 )
{
AutoBackupPopup::BackupFile::operator=(v10, v9);
if ( v9 == (unsigned __int8 *)a1 )
break;
v11 = sub_73C376((unsigned __int8 *)v13, v9 - 64);
v10 = (int)v9;
if ( !v11 )
break;
v9 -= 64;
}
++v8;
AutoBackupPopup::BackupFile::operator=((int)v9, v13);
if ( v8 != 8 )
{
AutoBackupPopup::BackupFile::~BackupFile((AutoBackupPopup::BackupFile *)v13);
goto LABEL_9;
}
v5 = a2 == v7 + 64;
LABEL_16:
AutoBackupPopup::BackupFile::~BackupFile((AutoBackupPopup::BackupFile *)v13);
return v5;
}