//
// sub_46680 from 0x46680 to 0x466d8 (88 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_46680(int a1, int a2)
{
int v4; // r6
_DWORD v6[2]; // [sp+4h] [bp-1Ch] BYREF
char v7; // [sp+Ch] [bp-14h]
v6[0] = *(_DWORD *)(a1 + 4);
v6[1] = 8;
v7 = 0;
sub_44998((int)v6);
v4 = sub_44CE8(a1, a2);
if ( !v4 )
{
if ( (*(_BYTE *)(a1 + 33) & 0x40) != 0 )
v4 = 0;
else
v4 = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 128) + 44))(*(_DWORD *)(a1 + 128), a2);
}
sub_448CC((int)v6);
return v4;
}