{"type": "func", "start": 6443075984, "end": 6443076035, "name": "cocos2d::cc_utf8_find_last_not_char", "pseudocode": "// \n// cocos2d::cc_utf8_find_last_not_char from 0x180098990 to 0x1800989c3 (51 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004ed5a\n// > <???> @ 0x18014cf68\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:22:10 +0000\n// \n\n__int64 __fastcall cocos2d::cc_utf8_find_last_not_char(__int64 *a1, __int16 a2)\n{\n  __int64 v3; // rdx\n  __int64 result; // rax\n  __int64 v5; // rcx\n  _WORD *v6; // rdx\n\n  v3 = *a1;\n  result = (unsigned int)((a1[1] - *a1) >> 1) - 1;\n  if ( (int)result >= 0 )\n  {\n    v5 = (int)result;\n    v6 = (_WORD *)(v3 + 2LL * (int)result);\n    do\n    {\n      if ( *v6 != a2 )\n        break;\n      result = (unsigned int)(result - 1);\n      --v6;\n      --v5;\n    }\n    while ( v5 >= 0 );\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::cc_utf8_find_last_not_char from 0x180098990 to 0x1800989c3 (51 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCLabelBMFont::updateLabel @ 0x18004ed5a\n; > <???> @ 0x18014cf68\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:22:10 +0000\n; \nmov     rax, [rcx+8]                                                   ; +0x0, 0x180098990\nmovzx   r8d, dx                                                        ; +0x4, 0x180098994\nmov     rdx, [rcx]                                                     ; +0x8, 0x180098998\nsub     rax, rdx                                                       ; +0xb, 0x18009899b\nsar     rax, 1                                                         ; +0xe, 0x18009899e\nsub     eax, 1                                                         ; +0x11, 0x1800989a1\njs      short locret_1800989C2                                         ; +0x14, 0x1800989a4\nmovsxd  rcx, eax                                                       ; +0x16, 0x1800989a6\nlea     rdx, [rdx+rcx*2]                                               ; +0x19, 0x1800989a9\nnop     dword ptr [rax]                                                ; +0x1d, 0x1800989ad\ncmp     [rdx], r8w                                                     ; +0x20, 0x1800989b0\njnz     short locret_1800989C2                                         ; +0x24, 0x1800989b4\ndec     eax                                                            ; +0x26, 0x1800989b6\nsub     rdx, 2                                                         ; +0x28, 0x1800989b8\nsub     rcx, 1                                                         ; +0x2c, 0x1800989bc\njns     short loc_1800989B0                                            ; +0x30, 0x1800989c0\nretn                                                                   ; +0x32, 0x1800989c2", "xrefs": ["cocos2d::CCLabelBMFont::updateLabel @ 0x18004ed5a", "<???> @ 0x18014cf68"], "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"}