//
// png_process_some_data from 0xbd0240 to 0xbd0280 (64 bytes)
//
// 2 xrefs:
// > png_process_data @ 0xbd02b8
// > ??> @ 0xbaee8
//
// 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
//
unsigned __int64 __fastcall png_process_some_data(unsigned __int64 a1, __int64 a2)
{
if ( a1 )
{
switch ( *(_DWORD *)(a1 + 952) )
{
case 0:
a1 = png_push_read_sig(a1, a2);
break;
case 1:
a1 = png_push_read_chunk(a1, a2);
break;
case 2:
a1 = png_push_read_IDAT(a1);
break;
case 3:
a1 = png_push_crc_finish(a1);
break;
default:
*(_QWORD *)(a1 + 936) = 0;
break;
}
}
return a1;
}