//
// sub_C27F38 from 0xc27f38 to 0xc27fb8 (128 bytes)
//
// 1 xrefs:
// > sub_C280C8 @ 0xc284cc
//
// 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_C27F38(__int64 a1, __int64 a2, __int64 a3, int a4)
{
int v4; // w14
__int64 *result; // x0
__int64 v6; // x9
__int64 v7; // x10
__int64 v8; // x11
__int64 v9; // x12
_BYTE *v10; // x5
__int64 *v11; // x8
__int64 v12; // x4
v4 = *(_DWORD *)(a1 + 136);
result = *(__int64 **)(*(_QWORD *)(a1 + 656) + 48LL);
v6 = *result;
v7 = result[1];
v8 = result[2];
if ( a4 > 0 )
{
v9 = 0;
do
{
result = *(__int64 **)(a2 + 8 * v9);
v10 = *(_BYTE **)(a3 + 8 * v9);
v11 = (__int64 *)((char *)result + 3 * (unsigned int)(v4 - 1) + 3);
if ( v4 )
{
do
{
v12 = *(unsigned __int8 *)result;
result = (__int64 *)((char *)result + 3);
*v10++ = *(_BYTE *)(v8 + *((unsigned __int8 *)result - 1))
+ *(_BYTE *)(v7 + *((unsigned __int8 *)result - 2))
+ *(_BYTE *)(v6 + v12);
}
while ( result != v11 );
}
++v9;
}
while ( a4 > (int)v9 );
}
return result;
}