//
// png_handle_as_unknown from 0x85db18 to 0x85db5a (66 bytes)
//
// 4 xrefs:
// > png_chunk_unknown_handling @ 0x85db80
// > png_write_info_before_PLTE @ 0x871970
// > png_write_info @ 0x871c4e
// > png_write_end @ 0x871e08
//
// 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:02:41 +0000
//
int __fastcall png_handle_as_unknown(int a1, void *a2)
{
bool v2; // zf
int v3; // r4
unsigned int v4; // r6
unsigned __int8 *v6; // r4
v2 = a2 == nullptr;
if ( a2 )
v2 = a1 == 0;
if ( v2 )
return 0;
v3 = *(_DWORD *)(a1 + 792);
if ( !v3 )
return 0;
v4 = *(_DWORD *)(a1 + 796);
v6 = (unsigned __int8 *)(5 * v3 + v4);
do
{
v6 -= 5;
if ( !memcmp(a2, v6, 4u) )
return v6[4];
}
while ( v4 < (unsigned int)v6 );
return 0;
}