//
// jpeg_quality_scaling from 0x88199c to 0x8819c8 (44 bytes)
//
// 1 xrefs:
// > jpeg_set_quality @ 0x8819d0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:03:10 +0000
//
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;
}