{"type": "func", "start": 5373487360, "end": 5373487655, "name": "ShareCommentLayer::updateDescText", "pseudocode": "// \n// ShareCommentLayer::updateDescText from 0x14048e900 to 0x14048ea27 (295 bytes)\n// \n// 5 xrefs:\n// > ShareCommentLayer::init @ 0x14048e00c\n// > ShareCommentLayer::onClear @ 0x14048e12d\n// > ShareCommentLayer::textInputClosed @ 0x14048e778\n// > ShareCommentLayer::textChanged @ 0x14048e895\n// > <???> @ 0x1406dbfcc\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// Hidden C++ exception states: #wind=1\nvoid __fastcall ShareCommentLayer::updateDescText(__int64 a1, void **a2)\n{\n  __int64 v2; // rdi\n  void **v4; // rcx\n  int v5; // r14d\n  int v6; // ebp\n  __int64 *v7; // rcx\n  __int64 v8; // rax\n  cocos2d::ccColor3B *v9; // rdx\n  void (__fastcall **v10)(__int64, const char *); // rbx\n  cocos2d::CCString *v11; // rax\n  const char *CString; // rax\n\n  v2 = (__int64)a2;\n  v4 = (void **)(a1 + 680);\n  if ( v4 != a2 )\n  {\n    if ( (unsigned __int64)a2[3] > 0xF )\n      a2 = (void **)*a2;\n    sub_14003CCE0(v4, a2, *(_QWORD *)(v2 + 16));\n  }\n  v5 = *(_DWORD *)(a1 + 696);\n  v6 = *(_DWORD *)(a1 + 656);\n  v7 = (__int64 *)(*(_QWORD *)(a1 + 744) + 368LL);\n  v8 = *v7;\n  if ( (float)((float)v6 * 0.69999999) <= (float)v5 )\n  {\n    LOBYTE(a2) = -1;\n    if ( (float)((float)v6 * 0.89999998) <= (float)v5 )\n    {\n      (*(void (__fastcall **)(__int64 *, void **))(v8 + 40))(v7, a2);\n      v9 = (cocos2d::ccColor3B *)&unk_140529C7C;\n      goto LABEL_10;\n    }\n  }\n  else\n  {\n    LOBYTE(a2) = 125;\n  }\n  (*(void (__fastcall **)(__int64 *, void **))(v8 + 40))(v7, a2);\n  v9 = &stru_140529C78;\nLABEL_10:\n  (**(void (__fastcall ***)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)(a1 + 744) + 368LL))(\n    *(_QWORD *)(a1 + 744) + 368LL,\n    v9);\n  v10 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 744) + 360LL);\n  v11 = cocos2d::CCString::createWithFormat(\"%i\", v6 - v5);\n  CString = cocos2d::CCString::getCString(v11);\n  (*v10)(*(_QWORD *)(a1 + 744) + 360LL, CString);\n  sub_14003A830(v2);\n}", "assembly": "; \n; ShareCommentLayer::updateDescText from 0x14048e900 to 0x14048ea27 (295 bytes)\n; \n; 5 xrefs:\n; > ShareCommentLayer::init @ 0x14048e00c\n; > ShareCommentLayer::onClear @ 0x14048e12d\n; > ShareCommentLayer::textInputClosed @ 0x14048e778\n; > ShareCommentLayer::textChanged @ 0x14048e895\n; > <???> @ 0x1406dbfcc\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14048e900\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14048e905\npush    rsi                                                            ; +0xa, 0x14048e90a\npush    rdi                                                            ; +0xb, 0x14048e90b\npush    r14                                                            ; +0xc, 0x14048e90c\nsub     rsp, 30h                                                       ; +0xe, 0x14048e90e\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x14048e912\nxor     rax, rsp                                                       ; +0x19, 0x14048e919\nmov     [rsp+48h+var_20], rax                                          ; +0x1c, 0x14048e91c\nmov     rdi, rdx                                                       ; +0x21, 0x14048e921\nmov     rsi, rcx                                                       ; +0x24, 0x14048e924\nmov     [rsp+48h+var_28], rdx                                          ; +0x27, 0x14048e927\nadd     rcx, 2A8h; void *                                              ; +0x2c, 0x14048e92c\ncmp     rcx, rdx                                                       ; +0x33, 0x14048e933\njz      short loc_14048E94B                                            ; +0x36, 0x14048e936\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x38, 0x14048e938\njbe     short loc_14048E942                                            ; +0x3d, 0x14048e93d\nmov     rdx, [rdx]; Src                                                ; +0x3f, 0x14048e93f\nmov     r8, [rdi+10h]; Size                                            ; +0x42, 0x14048e942\ncall    sub_14003CCE0                                                  ; +0x46, 0x14048e946\nmov     r14d, [rsi+2B8h]                                               ; +0x4b, 0x14048e94b\nmov     ebp, [rsi+290h]                                                ; +0x52, 0x14048e952\nmovd    xmm2, r14d                                                     ; +0x58, 0x14048e958\ncvtdq2ps xmm2, xmm2                                                    ; +0x5d, 0x14048e95d\nmovd    xmm1, ebp                                                      ; +0x60, 0x14048e960\ncvtdq2ps xmm1, xmm1                                                    ; +0x64, 0x14048e964\nmovaps  xmm0, xmm1                                                     ; +0x67, 0x14048e967\nmulss   xmm0, cs:dword_140622B74                                       ; +0x6a, 0x14048e96a\nmov     rcx, [rsi+2E8h]                                                ; +0x72, 0x14048e972\nadd     rcx, 170h                                                      ; +0x79, 0x14048e979\nmov     rax, [rcx]                                                     ; +0x80, 0x14048e980\ncomiss  xmm0, xmm2                                                     ; +0x83, 0x14048e983\njbe     short loc_14048E996                                            ; +0x86, 0x14048e986\nmov     dl, 7Dh ; '}'                                                  ; +0x88, 0x14048e988\ncall    qword ptr [rax+28h]                                            ; +0x8a, 0x14048e98a\nlea     rdx, stru_140529C78                                            ; +0x8d, 0x14048e98d\njmp     short loc_14048E9AF                                            ; +0x94, 0x14048e994\nmulss   xmm1, cs:dword_140622BD8                                       ; +0x96, 0x14048e996\nmov     dl, 0FFh                                                       ; +0x9e, 0x14048e99e\ncomiss  xmm1, xmm2                                                     ; +0xa0, 0x14048e9a0\nja      short loc_14048E98A                                            ; +0xa3, 0x14048e9a3\ncall    qword ptr [rax+28h]                                            ; +0xa5, 0x14048e9a5\nlea     rdx, unk_140529C7C                                             ; +0xa8, 0x14048e9a8\nmov     rcx, [rsi+2E8h]                                                ; +0xaf, 0x14048e9af\nadd     rcx, 170h                                                      ; +0xb6, 0x14048e9b6\nmov     rax, [rcx]                                                     ; +0xbd, 0x14048e9bd\ncall    qword ptr [rax]                                                ; +0xc0, 0x14048e9c0\nmov     rax, [rsi+2E8h]                                                ; +0xc2, 0x14048e9c2\nmov     rbx, [rax+168h]                                                ; +0xc9, 0x14048e9c9\nsub     ebp, r14d                                                      ; +0xd0, 0x14048e9d0\nmov     edx, ebp                                                       ; +0xd3, 0x14048e9d3\nlea     rcx, aI_11; \"%i\"                                               ; +0xd5, 0x14048e9d5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xdc, 0x14048e9dc\nmov     rcx, rax                                                       ; +0xe2, 0x14048e9e2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xe5, 0x14048e9e5\nmov     rdx, rax                                                       ; +0xeb, 0x14048e9eb\nmov     rcx, [rsi+2E8h]                                                ; +0xee, 0x14048e9ee\nadd     rcx, 168h                                                      ; +0xf5, 0x14048e9f5\ncall    qword ptr [rbx]                                                ; +0xfc, 0x14048e9fc\nnop                                                                    ; +0xfe, 0x14048e9fe\nmov     rcx, rdi                                                       ; +0xff, 0x14048e9ff\ncall    sub_14003A830                                                  ; +0x102, 0x14048ea02\nmov     rcx, [rsp+48h+var_20]                                          ; +0x107, 0x14048ea07\nxor     rcx, rsp; StackCookie                                          ; +0x10c, 0x14048ea0c\ncall    __security_check_cookie                                        ; +0x10f, 0x14048ea0f\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x114, 0x14048ea14\nmov     rbp, [rsp+48h+arg_18]                                          ; +0x119, 0x14048ea19\nadd     rsp, 30h                                                       ; +0x11e, 0x14048ea1e\npop     r14                                                            ; +0x122, 0x14048ea22\npop     rdi                                                            ; +0x124, 0x14048ea24\npop     rsi                                                            ; +0x125, 0x14048ea25\nretn                                                                   ; +0x126, 0x14048ea26", "xrefs": ["ShareCommentLayer::init @ 0x14048e00c", "ShareCommentLayer::onClear @ 0x14048e12d", "ShareCommentLayer::textInputClosed @ 0x14048e778", "ShareCommentLayer::textChanged @ 0x14048e895", "<???> @ 0x1406dbfcc"], "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"}