//
// sub_100551130 from 0x100551130 to 0x1005511c8 (152 bytes)
//
// 6 xrefs:
// > sub_10060E7FC @ 0x10060ea60
// > sub_10060E7FC @ 0x10060eba8
// > sub_10060E7FC @ 0x10060ebd0
// > sub_100610F5C @ 0x100610fdc
// > sub_100610F5C @ 0x100611150
// > sub_100610F5C @ 0x100611284
//
// 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:07:53 +0000
//
__int64 __fastcall sub_100551130(__int64 a1, __int64 a2, unsigned __int64 *a3, unsigned int a4)
{
__int64 result; // x0
unsigned __int64 v8; // x8
unsigned int v9; // [xsp+8h] [xbp-28h] BYREF
unsigned int v10; // [xsp+Ch] [xbp-24h] BYREF
if ( a4 < 0x21 )
{
result = sub_100550E58(a1, a2, &v9, a4);
if ( !(_DWORD)result )
return result;
v8 = v9;
goto LABEL_7;
}
result = sub_100550E58(a1, a2, &v10, a4 - 32);
if ( (_DWORD)result )
{
result = sub_100550E58(a1, a2, &v9, 0x20u);
if ( (_DWORD)result )
{
v8 = v9 | ((unsigned __int64)v10 << 32);
LABEL_7:
*a3 = v8;
return 1;
}
}
return result;
}