//
// sub_1005339C0 from 0x1005339c0 to 0x100533a34 (116 bytes)
//
// 10 xrefs:
// > sub_1005325F0 @ 0x10053274c
// > sub_100532774 @ 0x10053279c
// > sub_100532E54 @ 0x100532f08
// > sub_100532F1C @ 0x100532f64
// > sub_1005331C8 @ 0x100533494
// > sub_1005334B0 @ 0x100533580
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x1005337b8
// > sub_1005337FC @ 0x100533874
// > sub_1005338D8 @ 0x100533984
// > sub_1005338D8 @ 0x100533994
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:07:22 +0000
//
void __fastcall sub_1005339C0(void ***a1)
{
void **v1; // x19
char *v2; // x22
char *v4; // x21
void *v5; // x0
v1 = *a1;
v2 = (char *)**a1;
if ( v2 )
{
v4 = (char *)v1[1];
v5 = **a1;
if ( v4 != v2 )
{
do
{
v4 -= 128;
sub_100535810(v1, v4);
}
while ( v4 != v2 );
v5 = **a1;
}
v1[1] = v2;
operator delete(v5);
}
}