//
// sub_C062A8 from 0xc062a8 to 0xc06310 (104 bytes)
//
// 1 xrefs:
// > jpeg_stdio_dest @ 0xc06484
//
// 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 sub_C062A8(__int64 a1)
{
__int64 v1; // x19
void (__fastcall *v3)(__int64); // x2
v1 = *(_QWORD *)(a1 + 40);
if ( fwrite(*(const void **)(v1 + 48), 1u, 0x1000u, *(FILE **)(v1 + 40)) != 4096 )
{
v3 = **(void (__fastcall ***)(__int64))a1;
*(_DWORD *)(*(_QWORD *)a1 + 40LL) = 38;
v3(a1);
}
*(_QWORD *)v1 = *(_QWORD *)(v1 + 48);
*(_QWORD *)(v1 + 8) = 4096;
return 1;
}