{"type": "func", "start": 4295384240, "end": 4295384389, "name": "CCTextInputNode::updateDefaultFontValues", "pseudocode": "// \n// CCTextInputNode::updateDefaultFontValues from 0x100065cb0 to 0x100065d45 (149 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:19:43 +0000\n// \n\n__int64 __fastcall CCTextInputNode::updateDefaultFontValues(__int64 a1, unsigned __int8 *a2)\n{\n  const void *v3; // rdi\n  unsigned __int64 v4; // rcx\n  size_t v5; // rdx\n  __int64 result; // rax\n  _QWORD __s2[4]; // [rsp+9h] [rbp-27h] BYREF\n\n  strcpy((char *)__s2, \"chatFont.fnt\");\n  v3 = a2 + 1;\n  v4 = *a2 >> 1;\n  if ( (*a2 & 1) != 0 )\n  {\n    v3 = *((const void **)a2 + 2);\n    v4 = *((_QWORD *)a2 + 1);\n  }\n  v5 = 12;\n  if ( v4 < 0xC )\n    v5 = v4;\n  result = (v4 == 12) & (unsigned __int8)(memcmp(v3, __s2, v5) == 0);\n  _mm_storel_ps(\n    (double *)(a1 + 464),\n    _mm_blendv_ps(\n      (__m128)0x41A000003FC00000uLL,\n      (__m128)xmmword_100A03FF0,\n      (__m128)_mm_slli_epi32(_mm_shuffle_epi32(_mm_cvtsi32_si128((unsigned __int8)result), 80), 0x1Fu)));\n  return result;\n}", "assembly": "; \n; CCTextInputNode::updateDefaultFontValues from 0x100065cb0 to 0x100065d45 (149 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:19:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x100065cb0\nmov     rbp, rsp                                                       ; +0x1, 0x100065cb1\npush    r14                                                            ; +0x4, 0x100065cb4\npush    rbx                                                            ; +0x6, 0x100065cb6\nsub     rsp, 20h                                                       ; +0x7, 0x100065cb7\nmov     rbx, rdi                                                       ; +0xb, 0x100065cbb\nmov     rax, 746E6F4674616863h                                         ; +0xe, 0x100065cbe\nmov     [rbp+__s2], rax                                                ; +0x18, 0x100065cc8\nmov     [rbp+var_1F], 746E662Eh                                        ; +0x1c, 0x100065ccc\nmov     [rbp+var_1B], 0                                                ; +0x23, 0x100065cd3\nmovzx   eax, byte ptr [rsi]                                            ; +0x27, 0x100065cd7\nlea     rdi, [rsi+1]                                                   ; +0x2a, 0x100065cda\nmov     ecx, eax                                                       ; +0x2e, 0x100065cde\nshr     ecx, 1                                                         ; +0x30, 0x100065ce0\ntest    al, 1                                                          ; +0x32, 0x100065ce2\ncmovnz  rdi, [rsi+10h]; __s1                                           ; +0x34, 0x100065ce4\nlea     rax, [rbp+__s2]                                                ; +0x39, 0x100065ce9\ncmovnz  rcx, [rsi+8]                                                   ; +0x3d, 0x100065ced\ncmp     rcx, 0Ch                                                       ; +0x42, 0x100065cf2\nmov     edx, 0Ch                                                       ; +0x46, 0x100065cf6\ncmovb   rdx, rcx; __n                                                  ; +0x4b, 0x100065cfb\nsetz    r14b                                                           ; +0x4f, 0x100065cff\nmov     rsi, rax; __s2                                                 ; +0x53, 0x100065d03\ncall    _memcmp                                                        ; +0x56, 0x100065d06\ntest    eax, eax                                                       ; +0x5b, 0x100065d0b\nsetz    al                                                             ; +0x5d, 0x100065d0d\nand     al, r14b                                                       ; +0x60, 0x100065d10\nmovzx   eax, al                                                        ; +0x63, 0x100065d13\nmovd    xmm0, eax                                                      ; +0x66, 0x100065d16\npshufd  xmm0, xmm0, 50h ; 'P'                                          ; +0x6a, 0x100065d1a\npslld   xmm0, 1Fh                                                      ; +0x6f, 0x100065d1f\nmovsd   xmm1, cs:qword_100A03FE0                                       ; +0x74, 0x100065d24\nblendvps xmm1, cs:xmmword_100A03FF0                                    ; +0x7c, 0x100065d2c\nmovlps  qword ptr [rbx+1D0h], xmm1                                     ; +0x85, 0x100065d35\nadd     rsp, 20h                                                       ; +0x8c, 0x100065d3c\npop     rbx                                                            ; +0x90, 0x100065d40\npop     r14                                                            ; +0x91, 0x100065d41\npop     rbp                                                            ; +0x93, 0x100065d43\nretn                                                                   ; +0x94, 0x100065d44", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}