// // png_write_sRGB from 0xbec0e8 to 0xbec1d4 (236 bytes) // // 2 xrefs: // > png_write_info_before_PLTE @ 0xbe6de0 // > @ 0xa5360 // // 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_write_sRGB(_DWORD *a1, int a2) { char v3; // w21 _BYTE v5[8]; // [xsp+38h] [xbp+38h] BYREF _BYTE v6[4]; // [xsp+40h] [xbp+40h] BYREF _BYTE v7[4]; // [xsp+44h] [xbp+44h] BYREF v3 = a2; if ( a2 > 3 ) png_warning((__int64)a1, "Invalid sRGB rendering intent specified"); v5[0] = v3; if ( a1 ) { a1[313] = 34; png_save_uint_32(v6, 1); png_save_uint_32(v7, 1934772034); png_write_data((__int64)a1); a1[148] = 1934772034; png_reset_crc((__int64)a1); png_calculate_crc(a1, (__int64)v7, 4); a1[313] = 66; png_write_chunk_data((__int64)a1, (__int64)v5, 1); png_write_chunk_end((__int64)a1); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source