//
// sub_10056C510 from 0x10056c510 to 0x10056c58c (124 bytes)
//
// 0 xrefs:
//
// 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:16 +0000
//
__int64 __fastcall sub_10056C510(__int64 a1, unsigned int a2, _WORD *a3, _WORD *a4)
{
__int64 result; // x0
__int64 v7; // [xsp+0h] [xbp-20h] BYREF
__int64 v8; // [xsp+8h] [xbp-18h] BYREF
*a3 = 0;
*a4 = 0;
v8 = 0;
result = sub_100564A64(*(_QWORD *)(a1 + 40), a2, &v8);
if ( (_DWORD)result == 9 )
return 0;
if ( !(_DWORD)result )
{
v7 = 0;
result = sub_1005AF7F8(v8, (char *)&v7 + 4, &v7);
if ( !(_DWORD)result )
{
*a3 = WORD2(v7);
*a4 = v7;
}
}
return result;
}