//
// png_safe_warning from 0xe43694 to 0xe436d8 (68 bytes)
//
// 4 xrefs:
// > ??> @ 0x74068
// > sub_E4BFB0 @ 0xe4bffc
// > png_image_write_to_stdio @ 0xe5f260
// > ??> @ 0x1542eb0
//
// 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:04 +0000
//
__int64 __fastcall png_safe_warning(__int64 a1, char *a2)
{
__int64 v2; // x19
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 296);
result = *(unsigned int *)(v2 + 32);
if ( !(_DWORD)result )
{
png_safecat(v2 + 36, 0x40u, 0, a2);
result = *(_DWORD *)(v2 + 32) | 1u;
*(_DWORD *)(v2 + 32) = result;
}
return result;
}