{"type": "func", "start": 4297031232, "end": 4297031492, "name": "CustomizeObjectLayer::updateKerningLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateKerningLabel from 0x1001f7e40 to 0x1001f7f44 (260 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001f68e5\n// > CustomizeObjectLayer::sliderChanged @ 0x1001f7e32\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\nvoid __fastcall CustomizeObjectLayer::updateKerningLabel(CustomizeObjectLayer *a1)\n{\n  __m128 v1; // xmm0\n  unsigned int v3; // eax\n  const std::string::value_type *p_s; // rsi\n  std::string::size_type v5; // rdx\n  cocos2d::CCLabelBMFont *m_kerningLabel; // rdi\n  std::string::pointer data; // rsi\n  CCTextInputNode *m_textInput; // r14\n  void *v9[3]; // [rsp+8h] [rbp-58h] BYREF\n  unsigned __int8 v10; // [rsp+20h] [rbp-40h] BYREF\n  std::string::value_type __s; // [rsp+21h] [rbp-3Fh] BYREF\n  std::string::size_type v12; // [rsp+28h] [rbp-38h]\n  void *__p; // [rsp+30h] [rbp-30h]\n  std::string v14; // [rsp+38h] [rbp-28h] BYREF\n\n  if ( a1->m_kerningLabel )\n  {\n    v14.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18;\n    strcpy(v14.__r_.__value_.__s.__data_, \"Kerning: \");\n    v3 = ((__int64 (__fastcall *)(GameObject *))a1->m_targetObject->getTextKerning)(a1->m_targetObject);\n    GameToolbox::intToString(&v10, v3);\n    if ( (v10 & 1) != 0 )\n    {\n      p_s = (const std::string::value_type *)__p;\n      v5 = v12;\n    }\n    else\n    {\n      v5 = v10 >> 1;\n      p_s = &__s;\n    }\n    std::string::append(&v14, p_s, v5);\n    if ( (v10 & 1) != 0 )\n      operator delete(__p);\n    m_kerningLabel = a1->m_kerningLabel;\n    m_kerningLabel->m_nExtraKerning = a1->m_kerningAmount;\n    if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )\n      data = v14.__r_.__value_.__l.__data_;\n    else\n      data = v14.__r_.__value_.__s.__data_;\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))m_kerningLabel->setString)(\n      m_kerningLabel,\n      data);\n    m_textInput = a1->m_textInput;\n    if ( m_textInput )\n    {\n      m_textInput->m_kerningAmount = a1->m_kerningAmount;\n      CCTextInputNode::getString(v9, (__int64)m_textInput, *(double *)v1.i64);\n      CCTextInputNode::setString(m_textInput, (__int64)v9, v1);\n      if ( ((__int64)v9[0] & 1) != 0 )\n        operator delete(v9[2]);\n    }\n    if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v14.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::updateKerningLabel from 0x1001f7e40 to 0x1001f7f44 (260 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001f68e5\n; > CustomizeObjectLayer::sliderChanged @ 0x1001f7e32\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, 0x1001f7e40\nmov     rbp, rsp                                                       ; +0x1, 0x1001f7e41\npush    r14                                                            ; +0x4, 0x1001f7e44\npush    rbx                                                            ; +0x6, 0x1001f7e46\nsub     rsp, 50h                                                       ; +0x7, 0x1001f7e47\ncmp     qword ptr [rdi+330h], 0                                        ; +0xb, 0x1001f7e4b\njz      loc_1001F7F3B                                                  ; +0x13, 0x1001f7e53\nmov     rbx, rdi                                                       ; +0x19, 0x1001f7e59\nmov     byte ptr [rbp+var_28.__r_.__value_], 12h                       ; +0x1c, 0x1001f7e5c\nmov     rax, 3A676E696E72654Bh                                         ; +0x20, 0x1001f7e60\nmov     qword ptr [rbp+var_28.__r_.__value_+1], rax                    ; +0x2a, 0x1001f7e6a\nmov     word ptr [rbp+var_28.__r_.__value_+9], 20h ; ' '               ; +0x2e, 0x1001f7e6e\nmov     rdi, [rdi+298h]                                                ; +0x34, 0x1001f7e74\nmov     rax, [rdi]                                                     ; +0x3b, 0x1001f7e7b\ncall    qword ptr [rax+6D0h]                                           ; +0x3e, 0x1001f7e7e\nlea     rdi, [rbp+var_40]                                              ; +0x44, 0x1001f7e84\nmov     esi, eax                                                       ; +0x48, 0x1001f7e88\ncall    GameToolbox__intToString                                       ; +0x4a, 0x1001f7e8a\nmovzx   edx, [rbp+var_40]                                              ; +0x4f, 0x1001f7e8f\ntest    dl, 1                                                          ; +0x53, 0x1001f7e93\njz      short loc_1001F7EA2                                            ; +0x56, 0x1001f7e96\nmov     rsi, [rbp+__p]                                                 ; +0x58, 0x1001f7e98\nmov     rdx, [rbp+var_38]                                              ; +0x5c, 0x1001f7e9c\njmp     short loc_1001F7EA8                                            ; +0x60, 0x1001f7ea0\nshr     edx, 1; __n                                                    ; +0x62, 0x1001f7ea2\nlea     rsi, [rbp+__s]; __s                                            ; +0x64, 0x1001f7ea4\nlea     rdi, [rbp+var_28]; this                                        ; +0x68, 0x1001f7ea8\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm; std::string::append(char const*,ulong) ; +0x6c, 0x1001f7eac\ntest    [rbp+var_40], 1                                                ; +0x71, 0x1001f7eb1\njz      short loc_1001F7EC0                                            ; +0x75, 0x1001f7eb5\nmov     rdi, [rbp+__p]; __p                                            ; +0x77, 0x1001f7eb7\ncall    __ZdlPv; operator delete(void *)                               ; +0x7b, 0x1001f7ebb\nmov     eax, [rbx+328h]                                                ; +0x80, 0x1001f7ec0\nmov     rdi, [rbx+330h]                                                ; +0x86, 0x1001f7ec6\nmov     [rdi+200h], eax                                                ; +0x8d, 0x1001f7ecd\ntest    byte ptr [rbp+var_28.__r_.__value_], 1                         ; +0x93, 0x1001f7ed3\njz      short loc_1001F7EDF                                            ; +0x97, 0x1001f7ed7\nmov     rsi, qword ptr [rbp+var_28.__r_.__value_+10h]                  ; +0x99, 0x1001f7ed9\njmp     short loc_1001F7EE3                                            ; +0x9d, 0x1001f7edd\nlea     rsi, [rbp+var_28.__r_.__value_+1]                              ; +0x9f, 0x1001f7edf\nmov     rax, [rdi]                                                     ; +0xa3, 0x1001f7ee3\ncall    qword ptr [rax+390h]                                           ; +0xa6, 0x1001f7ee6\nmov     r14, [rbx+320h]                                                ; +0xac, 0x1001f7eec\ntest    r14, r14                                                       ; +0xb3, 0x1001f7ef3\njz      short loc_1001F7F2C                                            ; +0xb6, 0x1001f7ef6\nmov     eax, [rbx+328h]                                                ; +0xb8, 0x1001f7ef8\nmov     [r14+250h], eax                                                ; +0xbe, 0x1001f7efe\nlea     rdi, [rbp+var_58]                                              ; +0xc5, 0x1001f7f05\nmov     rsi, r14                                                       ; +0xc9, 0x1001f7f09\ncall    CCTextInputNode__getString                                     ; +0xcc, 0x1001f7f0c\nlea     rsi, [rbp+var_58]                                              ; +0xd1, 0x1001f7f11\nmov     rdi, r14                                                       ; +0xd5, 0x1001f7f15\ncall    CCTextInputNode__setString                                     ; +0xd8, 0x1001f7f18\ntest    [rbp+var_58], 1                                                ; +0xdd, 0x1001f7f1d\njz      short loc_1001F7F2C                                            ; +0xe1, 0x1001f7f21\nmov     rdi, [rbp+var_48]; __p                                         ; +0xe3, 0x1001f7f23\ncall    __ZdlPv; operator delete(void *)                               ; +0xe7, 0x1001f7f27\ntest    byte ptr [rbp+var_28.__r_.__value_], 1                         ; +0xec, 0x1001f7f2c\njz      short loc_1001F7F3B                                            ; +0xf0, 0x1001f7f30\nmov     rdi, qword ptr [rbp+var_28.__r_.__value_+10h]; __p             ; +0xf2, 0x1001f7f32\ncall    __ZdlPv; operator delete(void *)                               ; +0xf6, 0x1001f7f36\nadd     rsp, 50h                                                       ; +0xfb, 0x1001f7f3b\npop     rbx                                                            ; +0xff, 0x1001f7f3f\npop     r14                                                            ; +0x100, 0x1001f7f40\npop     rbp                                                            ; +0x102, 0x1001f7f42\nretn                                                                   ; +0x103, 0x1001f7f43", "xrefs": ["CustomizeObjectLayer::init @ 0x1001f68e5", "CustomizeObjectLayer::sliderChanged @ 0x1001f7e32"], "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"}