{"type": "func", "start": 6443061456, "end": 6443061507, "name": "cocos2d::cc_utf8_find_last_not_char", "pseudocode": "// \n// cocos2d::cc_utf8_find_last_not_char from 0x1800950d0 to 0x180095103 (51 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004d048\n// > <???> @ 0x1801438a8\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__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 0x1800950d0 to 0x180095103 (51 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCLabelBMFont::updateLabel @ 0x18004d048\n; > <???> @ 0x1801438a8\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     rax, [rcx+8]                                                   ; +0x0, 0x1800950d0\nmovzx   r8d, dx                                                        ; +0x4, 0x1800950d4\nmov     rdx, [rcx]                                                     ; +0x8, 0x1800950d8\nsub     rax, rdx                                                       ; +0xb, 0x1800950db\nsar     rax, 1                                                         ; +0xe, 0x1800950de\nsub     eax, 1                                                         ; +0x11, 0x1800950e1\njs      short locret_180095102                                         ; +0x14, 0x1800950e4\nmovsxd  rcx, eax                                                       ; +0x16, 0x1800950e6\nlea     rdx, [rdx+rcx*2]                                               ; +0x19, 0x1800950e9\nnop     dword ptr [rax]                                                ; +0x1d, 0x1800950ed\ncmp     [rdx], r8w                                                     ; +0x20, 0x1800950f0\njnz     short locret_180095102                                         ; +0x24, 0x1800950f4\ndec     eax                                                            ; +0x26, 0x1800950f6\nsub     rdx, 2                                                         ; +0x28, 0x1800950f8\nsub     rcx, 1                                                         ; +0x2c, 0x1800950fc\njns     short loc_1800950F0                                            ; +0x30, 0x180095100\nretn                                                                   ; +0x32, 0x180095102", "xrefs": ["cocos2d::CCLabelBMFont::updateLabel @ 0x18004d048", "<???> @ 0x1801438a8"], "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"}