//
// sub_62B26C from 0x62b26c to 0x62b2da (110 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_62B26C(int a1, char a2)
{
int v2; // r4
int v4; // r1
unsigned int v5; // r4
int v6; // r4
char *v7; // r7
int v8; // r6
v2 = a2 & 1;
if ( (a2 & 1) != 0 )
v2 = 16;
v4 = a2 & 4;
v5 = v2 | *(_DWORD *)(a1 + 304) & 0xFFFFFFCF;
if ( v4 )
v4 = 32;
v6 = v5 | v4;
*(_DWORD *)(a1 + 304) = v6;
if ( (v6 & 0x10) != 0
|| (v7 = *(char **)(a1 + 34468)) == nullptr
|| (*(_DWORD *)(a1 + 34468) = 0,
v8 = sub_6184D4(*(int **)(a1 + 8), *(_DWORD *)(a1 + 34476), v7, *(_DWORD *)(a1 + 34472)),
off_ABAEB0(v7),
!v8) )
{
if ( (v6 & 0x30) != 0x30 )
sub_62F93C(a1, 0);
return 0;
}
return v8;
}