{"type": "func", "start": 7204948, "end": 7205032, "name": "EmoteSprite::characterCount", "pseudocode": "// \n// EmoteSprite::characterCount from 0x6df054 to 0x6df0a8 (84 bytes)\n// \n// 4 xrefs:\n// > EmoteSprite::effectiveLength @ 0x6e0fec\n// > ShareCommentLayer::updateCharCountLabel @ 0x90e3f0\n// > NewThreadPopup::textChanged @ 0xc67f28\n// > <???> @ 0x1003d8\n// \n// This function is hookable on this platform (idp: arm, 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:51:36 +0000\n// \n\n__int64 __fastcall EmoteSprite::characterCount(__int64 a1)\n{\n  unsigned __int64 v1; // x1\n  unsigned int v2; // w3\n  __int64 v3; // x2\n  char v4; // w2\n\n  v1 = 0;\n  v2 = 0;\n  while ( 1 )\n  {\n    v3 = a1 + 1;\n    if ( (*(_BYTE *)a1 & 1) == 0 )\n      break;\n    if ( v1 >= *(_QWORD *)(a1 + 8) )\n      return v2;\n    v3 = *(_QWORD *)(a1 + 16);\nLABEL_4:\n    v4 = *(_BYTE *)(v3 + v1++);\n    if ( (v4 & 0xC0) != 0x80 )\n      ++v2;\n  }\n  if ( v1 < *(_BYTE *)a1 >> 1 )\n    goto LABEL_4;\n  return v2;\n}", "assembly": "; \n; EmoteSprite::characterCount from 0x6df054 to 0x6df0a8 (84 bytes)\n; \n; 4 xrefs:\n; > EmoteSprite::effectiveLength @ 0x6e0fec\n; > ShareCommentLayer::updateCharCountLabel @ 0x90e3f0\n; > NewThreadPopup::textChanged @ 0xc67f28\n; > <???> @ 0x1003d8\n; \n; This function is hookable on this platform (idp: arm, 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:51:36 +0000\n; \nLDRB            W4, [X0]                                               ; +0x0, 0x6df054\nMOV             X1, #0                                                 ; +0x4, 0x6df058\nMOV             W3, #0                                                 ; +0x8, 0x6df05c\nAND             W5, W4, #1                                             ; +0xc, 0x6df060\nUBFX            X4, X4, #1, #7                                         ; +0x10, 0x6df064\nB               loc_6DF090                                             ; +0x14, 0x6df068\nLDR             X2, [X0,#8]                                            ; +0x18, 0x6df06c\nCMP             X1, X2                                                 ; +0x1c, 0x6df070\nB.CS            loc_6DF0A0                                             ; +0x20, 0x6df074\nLDR             X2, [X0,#0x10]                                         ; +0x24, 0x6df078\nLDRB            W2, [X2,X1]                                            ; +0x28, 0x6df07c\nADD             X1, X1, #1                                             ; +0x2c, 0x6df080\nAND             W2, W2, #0xC0                                          ; +0x30, 0x6df084\nCMP             W2, #0x80                                              ; +0x34, 0x6df088\nCINC            W3, W3, NE                                             ; +0x38, 0x6df08c\nCMP             X1, X4                                                 ; +0x3c, 0x6df090\nADD             X2, X0, #1                                             ; +0x40, 0x6df094\nCBNZ            W5, loc_6DF06C                                         ; +0x44, 0x6df098\nB.CC            loc_6DF07C                                             ; +0x48, 0x6df09c\nMOV             W0, W3                                                 ; +0x4c, 0x6df0a0\nRET                                                                    ; +0x50, 0x6df0a4", "xrefs": ["EmoteSprite::effectiveLength @ 0x6e0fec", "ShareCommentLayer::updateCharCountLabel @ 0x90e3f0", "NewThreadPopup::textChanged @ 0xc67f28", "<???> @ 0x1003d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}