//
// sub_10055DFDC from 0x10055dfdc to 0x10055e0e8 (268 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d4e18
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:08:05 +0000
//
__int64 __fastcall sub_10055DFDC(__int64 a1, int a2, __int64 a3)
{
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x19
__int64 v6; // x20
uint8x8_t v7; // d0
unsigned int v9; // [xsp+Ch] [xbp-34h] BYREF
if ( !a2 )
{
v3 = a3;
v4 = *(_QWORD *)(a1 + 8);
v5 = *((_QWORD *)off_1009DA5E8 + *(int *)(a1 + 48) + 46);
sub_100568F1C(v5);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 24LL))(v4) )
v6 = v4;
else
v6 = 0;
sub_10055E77C(v4);
if ( v3 )
{
sub_1005F59D0(v5, &v9, 0);
v7 = (uint8x8_t)vcnt_s8((int8x8_t)v9);
v7.i16[0] = vaddlv_u8(v7);
if ( v7.i32[0] != 1 )
{
v3 = 0;
if ( !v6 )
goto LABEL_11;
goto LABEL_10;
}
v3 = sub_10055E350(v4, v3 + 2, 2);
}
if ( !v6 )
{
LABEL_11:
sub_100568F58(v5);
return v3;
}
LABEL_10:
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 32LL))(v6);
goto LABEL_11;
}
return 31;
}