{"type": "func", "start": 5369056304, "end": 5369056537, "name": "CCTextInputNode::updateDefaultFontValues", "pseudocode": "// \n// CCTextInputNode::updateDefaultFontValues from 0x140054c30 to 0x140054d19 (233 bytes)\n// \n// 3 xrefs:\n// > CCTextInputNode::init @ 0x1400546e1\n// > CCTextInputNode::addTextArea @ 0x140054873\n// > <???> @ 0x140910304\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 11:25:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall CCTextInputNode::updateDefaultFontValues(__int64 a1, const void **a2)\n{\n  const void *v4; // rcx\n  unsigned __int64 v5; // rdi\n  size_t v6; // r8\n  int v7; // xmm0_4\n  int v8; // xmm1_4\n  _QWORD Buf2[5]; // [rsp+20h] [rbp-38h] BYREF\n\n  Buf2[4] = a2;\n  Buf2[2] = 12;\n  Buf2[3] = 15;\n  Buf2[0] = *(_QWORD *)\"chatFont.fnt\";\n  Buf2[1] = *(unsigned int *)\".fnt\";\n  v4 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v4 = *a2;\n  v5 = (unsigned __int64)a2[2];\n  v6 = v5;\n  if ( v5 > 0xC )\n    v6 = 12;\n  if ( !memcmp(v4, Buf2, v6) && v5 == 12 )\n  {\n    v7 = -1090519040;\n    v8 = 1084227584;\n  }\n  else\n  {\n    v7 = 1069547520;\n    v8 = 1101004800;\n  }\n  *(_DWORD *)(a1 + 476) = v8;\n  *(_DWORD *)(a1 + 472) = v7;\n  sub_14003D310((__int64)a2);\n}", "assembly": "; \n; CCTextInputNode::updateDefaultFontValues from 0x140054c30 to 0x140054d19 (233 bytes)\n; \n; 3 xrefs:\n; > CCTextInputNode::init @ 0x1400546e1\n; > CCTextInputNode::addTextArea @ 0x140054873\n; > <???> @ 0x140910304\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 11:25:40 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140054c30\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140054c35\npush    rdi                                                            ; +0xa, 0x140054c3a\nsub     rsp, 50h                                                       ; +0xb, 0x140054c3b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x140054c3f\nxor     rax, rsp                                                       ; +0x16, 0x140054c46\nmov     [rsp+58h+var_10], rax                                          ; +0x19, 0x140054c49\nmov     rbx, rdx                                                       ; +0x1e, 0x140054c4e\nmov     rsi, rcx                                                       ; +0x21, 0x140054c51\nmov     [rsp+58h+var_18], rdx                                          ; +0x24, 0x140054c54\nxorps   xmm0, xmm0                                                     ; +0x29, 0x140054c59\nmovups  [rsp+58h+Buf2], xmm0                                           ; +0x2c, 0x140054c5c\nmov     edx, 0Ch                                                       ; +0x31, 0x140054c61\nmov     [rsp+58h+var_28], rdx                                          ; +0x36, 0x140054c66\nmov     [rsp+58h+var_20], 0Fh                                          ; +0x3b, 0x140054c6b\nmovsd   xmm0, qword ptr cs:aChatfontFnt; \"chatFont.fnt\"                ; +0x44, 0x140054c74\nmovsd   qword ptr [rsp+58h+Buf2], xmm0                                 ; +0x4c, 0x140054c7c\nmov     eax, dword ptr cs:aChatfontFnt+8; \".fnt\"                       ; +0x52, 0x140054c82\nmov     dword ptr [rsp+58h+Buf2+8], eax                                ; +0x58, 0x140054c88\nmov     byte ptr [rsp+58h+Buf2+0Ch], 0                                 ; +0x5c, 0x140054c8c\nmov     rcx, rbx                                                       ; +0x61, 0x140054c91\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x64, 0x140054c94\njbe     short loc_140054C9E                                            ; +0x69, 0x140054c99\nmov     rcx, [rbx]; Buf1                                               ; +0x6b, 0x140054c9b\nmov     rdi, [rbx+10h]                                                 ; +0x6e, 0x140054c9e\nmov     r8, rdi                                                        ; +0x72, 0x140054ca2\ncmp     rdi, rdx                                                       ; +0x75, 0x140054ca5\ncmova   r8, rdx; Size                                                  ; +0x78, 0x140054ca8\nlea     rdx, [rsp+58h+Buf2]; Buf2                                      ; +0x7c, 0x140054cac\ncall    memcmp                                                         ; +0x81, 0x140054cb1\ntest    eax, eax                                                       ; +0x86, 0x140054cb6\njnz     short loc_140054CC2                                            ; +0x88, 0x140054cb8\ncmp     rdi, 0Ch                                                       ; +0x8a, 0x140054cba\njb      short loc_140054CC2                                            ; +0x8e, 0x140054cbe\njbe     short loc_140054CD4                                            ; +0x90, 0x140054cc0\nmovss   xmm0, cs:dword_140835164                                       ; +0x92, 0x140054cc2\nmovss   xmm1, cs:dword_1408355B4                                       ; +0x9a, 0x140054cca\njmp     short loc_140054CE4                                            ; +0xa2, 0x140054cd2\nmovss   xmm0, cs:dword_140835C7C                                       ; +0xa4, 0x140054cd4\nmovss   xmm1, cs:flt_140835470                                         ; +0xac, 0x140054cdc\nmovss   dword ptr [rsi+1DCh], xmm1                                     ; +0xb4, 0x140054ce4\nmovss   dword ptr [rsi+1D8h], xmm0                                     ; +0xbc, 0x140054cec\nmov     rcx, rbx                                                       ; +0xc4, 0x140054cf4\ncall    sub_14003D310                                                  ; +0xc7, 0x140054cf7\nmov     rcx, [rsp+58h+var_10]                                          ; +0xcc, 0x140054cfc\nxor     rcx, rsp; StackCookie                                          ; +0xd1, 0x140054d01\ncall    __security_check_cookie                                        ; +0xd4, 0x140054d04\nmov     rbx, [rsp+58h+arg_10]                                          ; +0xd9, 0x140054d09\nmov     rsi, [rsp+58h+arg_18]                                          ; +0xde, 0x140054d0e\nadd     rsp, 50h                                                       ; +0xe3, 0x140054d13\npop     rdi                                                            ; +0xe7, 0x140054d17\nretn                                                                   ; +0xe8, 0x140054d18", "xrefs": ["CCTextInputNode::init @ 0x1400546e1", "CCTextInputNode::addTextArea @ 0x140054873", "<???> @ 0x140910304"], "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"}