//
// jpeg_stdio_dest from 0x675848 to 0x675876 (46 bytes)
//
// 1 xrefs:
// > cocos2d::CCImage::_saveImageToJPG @ 0x5e22ca
//
// 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 *__fastcall jpeg_stdio_dest(int a1, int a2))(int a1)
{
_DWORD *v3; // r1
v3 = *(_DWORD **)(a1 + 24);
if ( !v3 )
{
v3 = (_DWORD *)(**(int (***)(void))(a1 + 4))();
*(_DWORD *)(a1 + 24) = v3;
}
v3[5] = a2;
v3[2] = sub_675730;
v3[3] = sub_675764;
v3[4] = sub_6757F8;
return sub_675730;
}