{"type": "func", "start": 7045416, "end": 7045504, "name": "CCTextInputNode::emoteTokenContaining", "pseudocode": "// \n// CCTextInputNode::emoteTokenContaining from 0x6b8128 to 0x6b8180 (88 bytes)\n// \n// 3 xrefs:\n// > CCTextInputNode::updateLabel @ 0x6c34c0\n// > CCTextInputNode::onTextFieldInsertText @ 0x6c508c\n// > <???> @ 0x6f9e8\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:50:53 +0000\n// \n\n_QWORD *__fastcall CCTextInputNode::emoteTokenContaining(CCTextInputNode *this, int a2)\n{\n  unsigned __int64 v2; // x4\n  _QWORD *result; // x0\n  __int64 v4; // x3\n\n  v2 = 0xAAAAAAAAAAAAAAABLL * ((__int64)(*((_QWORD *)this + 65) - *((_QWORD *)this + 64)) >> 3);\n  if ( !v2 )\n    return nullptr;\n  result = *((_QWORD **)this + 64);\n  v4 = 0;\n  while ( 1 )\n  {\n    ++v4;\n    if ( a2 > (int)*result && a2 < (int)(result[1] + *result) )\n      break;\n    result += 3;\n    if ( v4 == v2 )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::emoteTokenContaining from 0x6b8128 to 0x6b8180 (88 bytes)\n; \n; 3 xrefs:\n; > CCTextInputNode::updateLabel @ 0x6c34c0\n; > CCTextInputNode::onTextFieldInsertText @ 0x6c508c\n; > <???> @ 0x6f9e8\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:50:53 +0000\n; \nLDR             X2, [X0,#0x200]                                        ; +0x0, 0x6b8128\nMOV             X5, #0xAAAAAAAAAAAAAAAA                                ; +0x4, 0x6b812c\nLDR             X4, [X0,#0x208]                                        ; +0x8, 0x6b8130\nSUB             X4, X4, X2                                             ; +0xc, 0x6b8134\nASR             X4, X4, #3                                             ; +0x10, 0x6b8138\nMADD            X4, X5, X4, X4                                         ; +0x14, 0x6b813c\nCBZ             X4, loc_6B8178                                         ; +0x18, 0x6b8140\nMOV             X0, X2                                                 ; +0x1c, 0x6b8144\nMOV             X3, #0                                                 ; +0x20, 0x6b8148\nLDR             X2, [X0]                                               ; +0x24, 0x6b814c\nADD             X3, X3, #1                                             ; +0x28, 0x6b8150\nCMP             W1, W2                                                 ; +0x2c, 0x6b8154\nB.LE            loc_6B816C                                             ; +0x30, 0x6b8158\nLDR             X5, [X0,#8]                                            ; +0x34, 0x6b815c\nADD             W2, W5, W2                                             ; +0x38, 0x6b8160\nCMP             W1, W2                                                 ; +0x3c, 0x6b8164\nB.LT            locret_6B817C                                          ; +0x40, 0x6b8168\nCMP             X3, X4                                                 ; +0x44, 0x6b816c\nADD             X0, X0, #0x18                                          ; +0x48, 0x6b8170\nB.NE            loc_6B814C                                             ; +0x4c, 0x6b8174\nMOV             X0, #0                                                 ; +0x50, 0x6b8178\nRET                                                                    ; +0x54, 0x6b817c", "xrefs": ["CCTextInputNode::updateLabel @ 0x6c34c0", "CCTextInputNode::onTextFieldInsertText @ 0x6c508c", "<???> @ 0x6f9e8"], "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"}