//
// CCTextInputNode::updateDefaultFontValues from 0x10009e400 to 0x10009e49b (155 bytes)
//
// 0 xrefs:
//
// 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 CCTextInputNode::updateDefaultFontValues(__int64 a1, unsigned __int8 *a2)
{
const void *v3; // rdi
unsigned __int64 v4; // rcx
size_t v5; // rdx
__int64 result; // rax
_QWORD __s2[4]; // [rsp+9h] [rbp-27h] BYREF
strcpy((char *)__s2, "chatFont.fnt");
v3 = a2 + 1;
v4 = *a2 >> 1;
if ( (*a2 & 1) != 0 )
{
v3 = *((const void **)a2 + 2);
v4 = *((_QWORD *)a2 + 1);
}
v5 = 12;
if ( v4 < 0xC )
v5 = v4;
result = (v4 == 12) & (unsigned __int8)(memcmp(v3, __s2, v5) == 0);
_mm_storel_ps(
(double *)(a1 + 464),
_mm_blendv_ps(
(__m128)0x41A000003FC00000uLL,
(__m128)xmmword_100815C80,
(__m128)_mm_slli_epi32(_mm_shuffle_epi32(_mm_cvtsi32_si128((unsigned __int8)result), 80), 0x1Fu)));
*(_BYTE *)(a1 + 472) = result;
return result;
}