{"type": "func", "start": 4296909648, "end": 4296909908, "name": "CustomizeObjectLayer::updateKerningLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateKerningLabel from 0x1001da350 to 0x1001da454 (260 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001d8c95\n// > CustomizeObjectLayer::sliderChanged @ 0x1001da342\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:26:25 +0000\n// \n\nvoid __fastcall CustomizeObjectLayer::updateKerningLabel(__int64 a1)\n{\n  unsigned int v2; // eax\n  const std::string::value_type *p_s; // rsi\n  std::string::size_type v4; // rdx\n  _DWORD *v5; // rdi\n  std::string::pointer data; // rsi\n  __int64 v7; // r14\n  void *v8[3]; // [rsp+8h] [rbp-58h] BYREF\n  unsigned __int8 v9; // [rsp+20h] [rbp-40h] BYREF\n  std::string::value_type __s; // [rsp+21h] [rbp-3Fh] BYREF\n  std::string::size_type v11; // [rsp+28h] [rbp-38h]\n  void *__p; // [rsp+30h] [rbp-30h]\n  std::string v13; // [rsp+38h] [rbp-28h] BYREF\n\n  if ( *(_QWORD *)(a1 + 840) )\n  {\n    v13.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18;\n    strcpy(v13.__r_.__value_.__s.__data_, \"Kerning: \");\n    v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 1760LL))(*(_QWORD *)(a1 + 688));\n    GameToolbox::intToString(&v9, v2);\n    if ( (v9 & 1) != 0 )\n    {\n      p_s = (const std::string::value_type *)__p;\n      v4 = v11;\n    }\n    else\n    {\n      v4 = v9 >> 1;\n      p_s = &__s;\n    }\n    std::string::append(&v13, p_s, v4);\n    if ( (v9 & 1) != 0 )\n      operator delete(__p);\n    v5 = *(_DWORD **)(a1 + 840);\n    v5[128] = *(_DWORD *)(a1 + 832);\n    if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n      data = v13.__r_.__value_.__l.__data_;\n    else\n      data = v13.__r_.__value_.__s.__data_;\n    (*(void (__fastcall **)(_DWORD *, std::string::pointer))(*(_QWORD *)v5 + 928LL))(v5, data);\n    v7 = *(_QWORD *)(a1 + 824);\n    if ( v7 )\n    {\n      *(_DWORD *)(v7 + 708) = *(_DWORD *)(a1 + 832);\n      CCTextInputNode::getString(v8, v7);\n      CCTextInputNode::setString((_QWORD *)v7, (__int64)v8);\n      if ( ((__int64)v8[0] & 1) != 0 )\n        operator delete(v8[2]);\n    }\n    if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v13.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::updateKerningLabel from 0x1001da350 to 0x1001da454 (260 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001d8c95\n; > CustomizeObjectLayer::sliderChanged @ 0x1001da342\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:26:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001da350\nmov     rbp, rsp                                                       ; +0x1, 0x1001da351\npush    r14                                                            ; +0x4, 0x1001da354\npush    rbx                                                            ; +0x6, 0x1001da356\nsub     rsp, 50h                                                       ; +0x7, 0x1001da357\ncmp     qword ptr [rdi+348h], 0                                        ; +0xb, 0x1001da35b\njz      loc_1001DA44B                                                  ; +0x13, 0x1001da363\nmov     rbx, rdi                                                       ; +0x19, 0x1001da369\nmov     byte ptr [rbp+var_28.__r_.__value_], 12h                       ; +0x1c, 0x1001da36c\nmov     rax, 3A676E696E72654Bh                                         ; +0x20, 0x1001da370\nmov     qword ptr [rbp+var_28.__r_.__value_+1], rax                    ; +0x2a, 0x1001da37a\nmov     word ptr [rbp+var_28.__r_.__value_+9], 20h ; ' '               ; +0x2e, 0x1001da37e\nmov     rdi, [rdi+2B0h]                                                ; +0x34, 0x1001da384\nmov     rax, [rdi]                                                     ; +0x3b, 0x1001da38b\ncall    qword ptr [rax+6E0h]                                           ; +0x3e, 0x1001da38e\nlea     rdi, [rbp+var_40]                                              ; +0x44, 0x1001da394\nmov     esi, eax                                                       ; +0x48, 0x1001da398\ncall    GameToolbox__intToString                                       ; +0x4a, 0x1001da39a\nmovzx   edx, [rbp+var_40]                                              ; +0x4f, 0x1001da39f\ntest    dl, 1                                                          ; +0x53, 0x1001da3a3\njz      short loc_1001DA3B2                                            ; +0x56, 0x1001da3a6\nmov     rsi, [rbp+__p]                                                 ; +0x58, 0x1001da3a8\nmov     rdx, [rbp+var_38]                                              ; +0x5c, 0x1001da3ac\njmp     short loc_1001DA3B8                                            ; +0x60, 0x1001da3b0\nshr     edx, 1; __n                                                    ; +0x62, 0x1001da3b2\nlea     rsi, [rbp+__s]; __s                                            ; +0x64, 0x1001da3b4\nlea     rdi, [rbp+var_28]; this                                        ; +0x68, 0x1001da3b8\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm; std::string::append(char const*,ulong) ; +0x6c, 0x1001da3bc\ntest    [rbp+var_40], 1                                                ; +0x71, 0x1001da3c1\njz      short loc_1001DA3D0                                            ; +0x75, 0x1001da3c5\nmov     rdi, [rbp+__p]; __p                                            ; +0x77, 0x1001da3c7\ncall    __ZdlPv; operator delete(void *)                               ; +0x7b, 0x1001da3cb\nmov     eax, [rbx+340h]                                                ; +0x80, 0x1001da3d0\nmov     rdi, [rbx+348h]                                                ; +0x86, 0x1001da3d6\nmov     [rdi+200h], eax                                                ; +0x8d, 0x1001da3dd\ntest    byte ptr [rbp+var_28.__r_.__value_], 1                         ; +0x93, 0x1001da3e3\njz      short loc_1001DA3EF                                            ; +0x97, 0x1001da3e7\nmov     rsi, qword ptr [rbp+var_28.__r_.__value_+10h]                  ; +0x99, 0x1001da3e9\njmp     short loc_1001DA3F3                                            ; +0x9d, 0x1001da3ed\nlea     rsi, [rbp+var_28.__r_.__value_+1]                              ; +0x9f, 0x1001da3ef\nmov     rax, [rdi]                                                     ; +0xa3, 0x1001da3f3\ncall    qword ptr [rax+3A0h]                                           ; +0xa6, 0x1001da3f6\nmov     r14, [rbx+338h]                                                ; +0xac, 0x1001da3fc\ntest    r14, r14                                                       ; +0xb3, 0x1001da403\njz      short loc_1001DA43C                                            ; +0xb6, 0x1001da406\nmov     eax, [rbx+340h]                                                ; +0xb8, 0x1001da408\nmov     [r14+2C4h], eax                                                ; +0xbe, 0x1001da40e\nlea     rdi, [rbp+var_58]                                              ; +0xc5, 0x1001da415\nmov     rsi, r14                                                       ; +0xc9, 0x1001da419\ncall    CCTextInputNode__getString                                     ; +0xcc, 0x1001da41c\nlea     rsi, [rbp+var_58]                                              ; +0xd1, 0x1001da421\nmov     rdi, r14                                                       ; +0xd5, 0x1001da425\ncall    CCTextInputNode__setString                                     ; +0xd8, 0x1001da428\ntest    [rbp+var_58], 1                                                ; +0xdd, 0x1001da42d\njz      short loc_1001DA43C                                            ; +0xe1, 0x1001da431\nmov     rdi, [rbp+var_48]; __p                                         ; +0xe3, 0x1001da433\ncall    __ZdlPv; operator delete(void *)                               ; +0xe7, 0x1001da437\ntest    byte ptr [rbp+var_28.__r_.__value_], 1                         ; +0xec, 0x1001da43c\njz      short loc_1001DA44B                                            ; +0xf0, 0x1001da440\nmov     rdi, qword ptr [rbp+var_28.__r_.__value_+10h]; __p             ; +0xf2, 0x1001da442\ncall    __ZdlPv; operator delete(void *)                               ; +0xf6, 0x1001da446\nadd     rsp, 50h                                                       ; +0xfb, 0x1001da44b\npop     rbx                                                            ; +0xff, 0x1001da44f\npop     r14                                                            ; +0x100, 0x1001da450\npop     rbp                                                            ; +0x102, 0x1001da452\nretn                                                                   ; +0x103, 0x1001da453", "xrefs": ["CustomizeObjectLayer::init @ 0x1001d8c95", "CustomizeObjectLayer::sliderChanged @ 0x1001da342"], "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"}