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