//
// png_safe_warning from 0xbcd4d4 to 0xbcd518 (68 bytes)
//
// 4 xrefs:
// > ??> @ 0x53a48
// > sub_BD5DF0 @ 0xbd5e3c
// > png_image_write_to_stdio @ 0xbe90a0
// > ??> @ 0x122ab00
//
// 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
//
__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;
}