//
// png_create_write_struct_2 from 0x661e30 to 0x661e9e (110 bytes)
//
// 1 xrefs:
// > png_create_write_struct @ 0x661eac
//
// 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_write_struct_2(int a1, int a2, int a3, int a4, int a5, int a6, int a7)
{
_DWORD *png_struct; // r0
_DWORD *v8; // r4
png_struct = png_create_png_struct(a1, a2, a3, a4, a5, a6, a7);
v8 = png_struct;
if ( png_struct )
{
png_struct[78] |= 0x200000u;
png_struct[96] = 0x2000;
png_struct[101] = 1;
png_struct[106] = 0;
png_struct[97] = -1;
png_struct[102] = -1;
png_struct[100] = 8;
png_struct[98] = 8;
png_struct[105] = 8;
png_struct[103] = 8;
png_struct[99] = 15;
png_struct[104] = 15;
png_set_write_fn(png_struct, 0, nullptr, nullptr);
}
return v8;
}