//
// sub_F30F80 from 0xf30f80 to 0xf30fa0 (32 bytes)
//
// 3 xrefs:
// > sub_EDE55C @ 0xede650
// > sub_EE28F0 @ 0xee2be8
// > sub_EE28F0 @ 0xee2da8
//
// 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:12:53 +0000
//
__int64 __fastcall sub_F30F80(__int64 result, int a2)
{
LODWORD(result) = (*(_DWORD *)(result + 32) + *(_DWORD *)(result + 24) - 1) / *(_DWORD *)(result + 32);
if ( (int)result > a2 )
return (unsigned int)a2;
else
return (unsigned int)result;
}