//
// sub_D14B0C from 0xd14b0c to 0xd14ba0 (148 bytes)
//
// 1 xrefs:
// > sub_D14BA0 @ 0xd14cb4
//
// 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_D14B0C(void *a1, unsigned __int64 a2, unsigned __int64 a3)
{
char *v3; // x7
_BYTE *v4; // x5
unsigned __int64 v5; // x3
signed int v6; // w19
_BYTE v9[24]; // [xsp+18h] [xbp-18h] BYREF
v3 = off_1233EF0[0];
v4 = v9;
do
{
v5 = a3 % 0xA;
a3 /= 0xAu;
*--v4 = v3[v5 + 4];
}
while ( a3 );
v6 = (unsigned int)v9 - (_DWORD)v4;
if ( v6 > a2 )
return (unsigned int)-1;
else
memcpy(a1, v9 - 8 * v6 + 32, v6);
return (unsigned int)v6;
}