//
// jpeg_quality_scaling from 0x67191c to 0x671948 (44 bytes)
//
// 1 xrefs:
// > jpeg_set_quality @ 0x671950
//
// 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 jpeg_quality_scaling(int a1)
{
if ( a1 <= 0 )
return 5000;
if ( a1 > 100 )
return 0;
if ( a1 > 49 )
return 2 * (100 - a1);
return 5000 / a1;
}