//
// sub_73053C from 0x73053c to 0x7305c2 (134 bytes)
//
// 1 xrefs:
// > sub_722E08 @ 0x7231ee
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_73053C(int a1, int a2, int a3, int a4)
{
_DWORD *v4; // r8
_DWORD *v8; // r9
int v9; // r6
int v10; // r4
char *v11; // r11
unsigned int v12; // t1
int v13; // lr
unsigned int v14; // r3
int v15; // r2
int v16; // r0
int v18; // [sp+4h] [bp-8h]
v4 = *(_DWORD **)a1;
v18 = a4;
if ( *(_DWORD *)a1 )
{
do
{
v8 = (_DWORD *)*v4;
v9 = 0;
if ( !*v4 )
v9 = *(_DWORD *)(a1 + 12);
v10 = *(_DWORD *)(a1 + 16);
v11 = (char *)v4 + 2 * v10 + 4;
while ( 1 )
{
v16 = a2;
if ( v9 >= v10 )
break;
v12 = *((unsigned __int16 *)v11 - 1);
v11 -= 2;
--v10;
v13 = v12 & 0x3FFF;
v14 = v12 >> 15;
v15 = (unsigned __int8)v12;
if ( (v12 & 0x4000) != 0 )
v16 = a2;
else
v15 = *(unsigned __int8 *)(a3 + v13);
sub_733B14(v16, v14, v15);
}
if ( v18 )
WebPSafeFree(v4);
v4 = v8;
}
while ( v8 );
a4 = v18;
}
if ( a4 )
*(_DWORD *)a1 = 0;
return 1;
}