//
// png_create_read_struct_2 from 0xbd32c8 to 0xbd3318 (80 bytes)
//
// 2 xrefs:
// > png_create_read_struct @ 0xbd3324
// > ??> @ 0xc54c0
//
// 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
//
_DWORD *__fastcall png_create_read_struct_2(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int64 a7)
{
_DWORD *png_struct; // x0
_DWORD *v8; // x19
int v9; // w3
png_struct = png_create_png_struct(a1, a2, a3, a4, a5, a6, a7);
v8 = png_struct;
if ( png_struct )
{
v9 = png_struct[90];
png_struct[89] = 0x8000;
png_struct[312] = 0x2000;
png_struct[90] = v9 | 0x300000;
png_set_read_fn(png_struct, 0, 0);
}
return v8;
}