//
// png_create_write_struct_2 from 0x871eb0 to 0x871f1e (110 bytes)
//
// 1 xrefs:
// > png_create_write_struct @ 0x871f2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:58 +0000
//
_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;
}