//
// sub_822060 from 0x822060 to 0x822098 (56 bytes)
//
// 2 xrefs:
// > sub_824308 @ 0x8243da
// > sub_825538 @ 0x826b2e
//
// 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 12:01:51 +0000
//
void __fastcall sub_822060(void ***a1)
{
void **v1; // r4
void **v3; // r5
void **v4; // r0
v1 = *a1;
if ( *a1 )
{
do
{
while ( 1 )
{
v3 = (void **)*v1;
if ( (unsigned int)v1[1] <= 2 )
break;
off_D200B0(v1);
v1 = v3;
if ( !v3 )
goto LABEL_6;
}
off_D200B0(v1[2]);
v4 = v1;
v1 = v3;
off_D200B0(v4);
}
while ( v3 );
LABEL_6:
*a1 = v3;
}
}