{"type": "func", "start": 4049136, "end": 4049182, "name": "CCTextInputNode::emoteTokenEndingAt", "pseudocode": "// \n// CCTextInputNode::emoteTokenEndingAt from 0x3dc8f0 to 0x3dc91e (46 bytes)\n// \n// 1 xrefs:\n// > CCTextInputNode::onTextFieldDeleteBackward @ 0x3e354e\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::emoteTokenEndingAt(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 + result[1] == a2 )\n      return result;\n  }\n  return nullptr;\n}", "assembly": "; \n; CCTextInputNode::emoteTokenEndingAt from 0x3dc8f0 to 0x3dc91e (46 bytes)\n; \n; 1 xrefs:\n; > CCTextInputNode::onTextFieldDeleteBackward @ 0x3e354e\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-R6,LR}                                             ; +0x0, 0x3dc8f0\nLDR.W           R3, [R0,#0x178]                                        ; +0x2, 0x3dc8f2\nLDR.W           R2, [R0,#0x17C]                                        ; +0x6, 0x3dc8f6\nLDR             R4, =0xAAAAAAAB                                        ; +0xa, 0x3dc8fa\nSUBS            R2, R2, R3                                             ; +0xc, 0x3dc8fc\nASRS            R2, R2, #2                                             ; +0xe, 0x3dc8fe\nMULS            R2, R4                                                 ; +0x10, 0x3dc900\nMOVS            R4, #0                                                 ; +0x12, 0x3dc902\nCMP             R4, R2                                                 ; +0x14, 0x3dc904\nBEQ             loc_3DC91A                                             ; +0x16, 0x3dc906\nMOV             R0, R3                                                 ; +0x18, 0x3dc908\nADDS            R3, #0xC                                               ; +0x1a, 0x3dc90a\nLDM.W           R0, {R5,R6}                                            ; +0x1c, 0x3dc90c\nADD             R5, R6                                                 ; +0x20, 0x3dc910\nCMP             R5, R1                                                 ; +0x22, 0x3dc912\nBEQ             locret_3DC91C                                          ; +0x24, 0x3dc914\nADDS            R4, #1                                                 ; +0x26, 0x3dc916\nB               loc_3DC904                                             ; +0x28, 0x3dc918\nMOVS            R0, #0                                                 ; +0x2a, 0x3dc91a\nPOP             {R4-R6,PC}                                             ; +0x2c, 0x3dc91c", "xrefs": ["CCTextInputNode::onTextFieldDeleteBackward @ 0x3e354e"], "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"}