{"type": "func", "start": 4295615488, "end": 4295615643, "name": "CCTextInputNode::updateDefaultFontValues", "pseudocode": "// \n// CCTextInputNode::updateDefaultFontValues from 0x10009e400 to 0x10009e49b (155 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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_100815C80,\n      (__m128)_mm_slli_epi32(_mm_shuffle_epi32(_mm_cvtsi32_si128((unsigned __int8)result), 80), 0x1Fu)));\n  *(_BYTE *)(a1 + 472) = result;\n  return result;\n}", "assembly": "; \n; CCTextInputNode::updateDefaultFontValues from 0x10009e400 to 0x10009e49b (155 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10009e400\nmov     rbp, rsp                                                       ; +0x1, 0x10009e401\npush    r14                                                            ; +0x4, 0x10009e404\npush    rbx                                                            ; +0x6, 0x10009e406\nsub     rsp, 20h                                                       ; +0x7, 0x10009e407\nmov     rbx, rdi                                                       ; +0xb, 0x10009e40b\nmov     rax, 746E6F4674616863h                                         ; +0xe, 0x10009e40e\nmov     [rbp+__s2], rax                                                ; +0x18, 0x10009e418\nmov     [rbp+var_1F], 746E662Eh                                        ; +0x1c, 0x10009e41c\nmov     [rbp+var_1B], 0                                                ; +0x23, 0x10009e423\nmovzx   eax, byte ptr [rsi]                                            ; +0x27, 0x10009e427\nlea     rdi, [rsi+1]                                                   ; +0x2a, 0x10009e42a\nmov     ecx, eax                                                       ; +0x2e, 0x10009e42e\nshr     ecx, 1                                                         ; +0x30, 0x10009e430\ntest    al, 1                                                          ; +0x32, 0x10009e432\ncmovnz  rdi, [rsi+10h]; __s1                                           ; +0x34, 0x10009e434\nlea     rax, [rbp+__s2]                                                ; +0x39, 0x10009e439\ncmovnz  rcx, [rsi+8]                                                   ; +0x3d, 0x10009e43d\ncmp     rcx, 0Ch                                                       ; +0x42, 0x10009e442\nmov     edx, 0Ch                                                       ; +0x46, 0x10009e446\ncmovb   rdx, rcx; __n                                                  ; +0x4b, 0x10009e44b\nsetz    r14b                                                           ; +0x4f, 0x10009e44f\nmov     rsi, rax; __s2                                                 ; +0x53, 0x10009e453\ncall    _memcmp                                                        ; +0x56, 0x10009e456\ntest    eax, eax                                                       ; +0x5b, 0x10009e45b\nsetz    al                                                             ; +0x5d, 0x10009e45d\nand     al, r14b                                                       ; +0x60, 0x10009e460\nmovzx   eax, al                                                        ; +0x63, 0x10009e463\nmovd    xmm0, eax                                                      ; +0x66, 0x10009e466\npshufd  xmm0, xmm0, 50h ; 'P'                                          ; +0x6a, 0x10009e46a\npslld   xmm0, 1Fh                                                      ; +0x6f, 0x10009e46f\nmovsd   xmm1, cs:qword_100815C70                                       ; +0x74, 0x10009e474\nblendvps xmm1, cs:xmmword_100815C80                                    ; +0x7c, 0x10009e47c\nmovlps  qword ptr [rbx+1D0h], xmm1                                     ; +0x85, 0x10009e485\nmov     [rbx+1D8h], al                                                 ; +0x8c, 0x10009e48c\nadd     rsp, 20h                                                       ; +0x92, 0x10009e492\npop     rbx                                                            ; +0x96, 0x10009e496\npop     r14                                                            ; +0x97, 0x10009e497\npop     rbp                                                            ; +0x99, 0x10009e499\nretn                                                                   ; +0x9a, 0x10009e49a", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}