//
// sub_50F44 from 0x50f44 to 0x50f6a (38 bytes)
//
// 2 xrefs:
// > sub_56BEC @ 0x56c56
// > sub_58788 @ 0x587ba
//
// 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 sub_50F44(int a1, int a2)
{
if ( sub_BE198(a2) > 255 )
return 31;
sub_BE220(a1, a2, 256);
return 0;
}