//
// png_convert_from_struct_tm from 0x661df0 to 0x661e10 (32 bytes)
//
// 1 xrefs:
// > png_convert_from_time_t @ 0x661e26
//
// 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
//
int __fastcall png_convert_from_struct_tm(int result, _DWORD *a2)
{
*(_WORD *)result = a2[5] + 1900;
*(_BYTE *)(result + 2) = a2[4] + 1;
*(_BYTE *)(result + 3) = a2[3];
*(_BYTE *)(result + 4) = a2[2];
*(_BYTE *)(result + 5) = a2[1];
*(_BYTE *)(result + 6) = *a2;
return result;
}