//
// sub_BEC50 from 0xbec50 to 0xbecac (92 bytes)
//
// 0 xrefs:
//
// 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_BEC50(_DWORD **a1)
{
_DWORD *v1; // r5
_DWORD *v2; // r1
v1 = *a1;
if ( *a1 )
{
v2 = (_DWORD *)v1[6];
if ( !v2 || (sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v2), v1[6] = 0, (v1 = *a1) != nullptr) )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v1);
*a1 = nullptr;
}
}
return 0;
}