//
// sub_BEE28 from 0xbee28 to 0xbee84 (92 bytes)
//
// 0 xrefs:
//
// 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:41:48 +0000
//
int __fastcall sub_BEE28(_DWORD **a1)
{
_DWORD *v1; // r5
_DWORD *v2; // r1
v1 = *a1;
if ( *a1 )
{
v2 = (_DWORD *)v1[1];
if ( !v2 || (sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v2), v1[1] = 0, (v1 = *a1) != nullptr) )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v1);
*a1 = nullptr;
}
}
return 0;
}