{"type": "func", "start": 4049188, "end": 4049230, "name": "CCTextInputNode::emoteTokenStartingAt", "pseudocode": "// \n// CCTextInputNode::emoteTokenStartingAt from 0x3dc924 to 0x3dc94e (42 bytes)\n// \n// 1 xrefs:\n// > CCTextInputNode::onTextFieldDeleteBackward @ 0x3e356a\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::emoteTokenStartingAt(CCTextInputNode *this, int a2)\n{\n  _DWORD *v2; // r3\n  int v3; // r2\n  int i; // r4\n  _DWORD *result; // r0\n\n  v2 = *((_DWORD **)this + 94);\n  v3 = -1431655765 * ((*((_DWORD *)this + 95) - (int)v2) >> 2);\n  for ( i = 0; i != v3; ++i )\n  {\n    result = v2;\n    v2 += 3;\n    if ( *result == a2 )\n      return result;\n  }\n  return nullptr;\n}", "assembly": "; \n; CCTextInputNode::emoteTokenStartingAt from 0x3dc924 to 0x3dc94e (42 bytes)\n; \n; 1 xrefs:\n; > CCTextInputNode::onTextFieldDeleteBackward @ 0x3e356a\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, 0x3dc924\nLDR.W           R3, [R0,#0x178]                                        ; +0x2, 0x3dc926\nLDR.W           R2, [R0,#0x17C]                                        ; +0x6, 0x3dc92a\nLDR             R4, =0xAAAAAAAB                                        ; +0xa, 0x3dc92e\nSUBS            R2, R2, R3                                             ; +0xc, 0x3dc930\nASRS            R2, R2, #2                                             ; +0xe, 0x3dc932\nMULS            R2, R4                                                 ; +0x10, 0x3dc934\nMOVS            R4, #0                                                 ; +0x12, 0x3dc936\nCMP             R4, R2                                                 ; +0x14, 0x3dc938\nBEQ             loc_3DC94A                                             ; +0x16, 0x3dc93a\nMOV             R0, R3                                                 ; +0x18, 0x3dc93c\nADDS            R3, #0xC                                               ; +0x1a, 0x3dc93e\nLDR             R5, [R0]                                               ; +0x1c, 0x3dc940\nCMP             R5, R1                                                 ; +0x1e, 0x3dc942\nBEQ             locret_3DC94C                                          ; +0x20, 0x3dc944\nADDS            R4, #1                                                 ; +0x22, 0x3dc946\nB               loc_3DC938                                             ; +0x24, 0x3dc948\nMOVS            R0, #0                                                 ; +0x26, 0x3dc94a\nPOP             {R4,R5,PC}                                             ; +0x28, 0x3dc94c", "xrefs": ["CCTextInputNode::onTextFieldDeleteBackward @ 0x3e356a"], "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"}