//
// png_create_write_struct_2 from 0xbe74cc to 0xbe7550 (132 bytes)
//
// 2 xrefs:
// > png_create_write_struct @ 0xbe755c
// > ??> @ 0x96a68
//
// 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(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int64 a7)
{
_DWORD *png_struct; // x0
_DWORD *v8; // x19
int v9; // w5
png_struct = png_create_png_struct(a1, a2, a3, a4, a5, a6, a7);
v8 = png_struct;
if ( png_struct )
{
v9 = png_struct[90] | 0x200000;
png_struct[124] = 0x2000;
png_struct[129] = 1;
png_struct[125] = -1;
png_struct[128] = 8;
png_struct[127] = 15;
png_struct[126] = 8;
png_struct[134] = 0;
png_struct[130] = -1;
png_struct[133] = 8;
png_struct[132] = 15;
png_struct[131] = 8;
png_struct[90] = v9;
png_set_write_fn(png_struct, 0, nullptr, nullptr);
}
return v8;
}