//
// jpeg_quality_scaling from 0xe774f4 to 0xe7753c (72 bytes)
//
// 2 xrefs:
// > jpeg_set_quality @ 0xe77554
// > ??> @ 0x97768
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:40 +0000
//
__int64 __fastcall jpeg_quality_scaling(int a1)
{
bool v2; // cc
__int64 result; // x0
if ( a1 <= 0 )
return 5000;
v2 = a1 <= 100;
result = 0;
if ( v2 )
{
if ( a1 > 49 )
return (unsigned int)(2 * (100 - a1));
else
return (unsigned int)(5000 / a1);
}
return result;
}