//
// png_create_write_struct_2 from 0xe5d68c to 0xe5d710 (132 bytes)
//
// 2 xrefs:
// > png_create_write_struct @ 0xe5d71c
// > ??> @ 0xc6f58
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:21 +0000
//
_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;
}