//
// jpeg_stdio_dest from 0xc06458 to 0xc064c4 (108 bytes)
//
// 2 xrefs:
// > cocos2d::CCImage::_saveImageToJPG @ 0xb0cec8
// > ??> @ 0x60fc0
//
// 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 *__fastcall jpeg_stdio_dest(__int64 a1, __int64 a2))(void (__fastcall ***a1)(_QWORD))
{
_QWORD *v3; // x1
v3 = *(_QWORD **)(a1 + 40);
if ( !v3 )
{
v3 = (_QWORD *)(**(__int64 (***)(void))(a1 + 8))();
*(_QWORD *)(a1 + 40) = v3;
}
v3[5] = a2;
v3[2] = sub_C0623C;
v3[3] = sub_C062A8;
v3[4] = sub_C063BC;
return sub_C063BC;
}