//
// sub_B55F8 from 0xb55f8 to 0xb5678 (128 bytes)
//
// 1 xrefs:
// > sub_B5754 @ 0xb5758
//
// 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
//
__int64 __fastcall sub_B55F8(__int64 a1, int a2, void *src, int a4)
{
__int64 result; // x0
result = 31;
if ( a2 == 2 )
{
if ( src )
return 31;
else
return 0;
}
else if ( a2 == 1 )
{
if ( src )
{
if ( a4 == 128 )
{
memcpy((void *)(a1 + 3564), src, 0x80u);
*(_WORD *)(a1 + 3560) = 257;
*(_BYTE *)(a1 + 3562) = 1;
return 0;
}
else
{
return 31;
}
}
else
{
return 0;
}
}
return result;
}