{"type": "func", "start": 4049080, "end": 4049130, "name": "CCTextInputNode::emoteTokenContaining", "pseudocode": "// \n// CCTextInputNode::emoteTokenContaining from 0x3dc8b8 to 0x3dc8ea (50 bytes)\n// \n// 2 xrefs:\n// > CCTextInputNode::updateLabel @ 0x3e2f20\n// > CCTextInputNode::onTextFieldInsertText @ 0x3e4244\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:48 +0000\n// \n\n_DWORD *__fastcall CCTextInputNode::emoteTokenContaining(CCTextInputNode *this, int a2)\n{\n  int v2; // r2\n  _DWORD *result; // r0\n  int v4; // r3\n  int v5; // r2\n\n  v2 = *((_DWORD *)this + 95) - *((_DWORD *)this + 94);\n  result = *((_DWORD **)this + 94);\n  v4 = 0;\n  v5 = -1431655765 * (v2 >> 2);\n  while ( v4 != v5 )\n  {\n    if ( a2 > *result && a2 < result[1] + *result )\n      return result;\n    ++v4;\n    result += 3;\n  }\n  return nullptr;\n}", "assembly": "; \n; CCTextInputNode::emoteTokenContaining from 0x3dc8b8 to 0x3dc8ea (50 bytes)\n; \n; 2 xrefs:\n; > CCTextInputNode::updateLabel @ 0x3e2f20\n; > CCTextInputNode::onTextFieldInsertText @ 0x3e4244\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:48 +0000\n; \nPUSH            {R4,R5,LR}                                             ; +0x0, 0x3dc8b8\nLDR.W           R3, [R0,#0x178]                                        ; +0x2, 0x3dc8ba\nLDR.W           R2, [R0,#0x17C]                                        ; +0x6, 0x3dc8be\nLDR             R4, =0xAAAAAAAB                                        ; +0xa, 0x3dc8c2\nSUBS            R2, R2, R3                                             ; +0xc, 0x3dc8c4\nMOV             R0, R3                                                 ; +0xe, 0x3dc8c6\nMOVS            R3, #0                                                 ; +0x10, 0x3dc8c8\nASRS            R2, R2, #2                                             ; +0x12, 0x3dc8ca\nMULS            R2, R4                                                 ; +0x14, 0x3dc8cc\nCMP             R3, R2                                                 ; +0x16, 0x3dc8ce\nBEQ             loc_3DC8E6                                             ; +0x18, 0x3dc8d0\nLDR             R5, [R0]                                               ; +0x1a, 0x3dc8d2\nCMP             R1, R5                                                 ; +0x1c, 0x3dc8d4\nBLE             loc_3DC8E0                                             ; +0x1e, 0x3dc8d6\nLDR             R4, [R0,#4]                                            ; +0x20, 0x3dc8d8\nADD             R4, R5                                                 ; +0x22, 0x3dc8da\nCMP             R1, R4                                                 ; +0x24, 0x3dc8dc\nBLT             locret_3DC8E8                                          ; +0x26, 0x3dc8de\nADDS            R3, #1                                                 ; +0x28, 0x3dc8e0\nADDS            R0, #0xC                                               ; +0x2a, 0x3dc8e2\nB               loc_3DC8CE                                             ; +0x2c, 0x3dc8e4\nMOVS            R0, #0                                                 ; +0x2e, 0x3dc8e6\nPOP             {R4,R5,PC}                                             ; +0x30, 0x3dc8e8", "xrefs": ["CCTextInputNode::updateLabel @ 0x3e2f20", "CCTextInputNode::onTextFieldInsertText @ 0x3e4244"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}