// // sub_3DC656 from 0x3dc656 to 0x3dc6b0 (90 bytes) // // 10 xrefs: // > CCTextInputNode::updateBlinkLabelToChar @ 0x3e1c2a // > CCTextInputNode::updateCursorPosition @ 0x3e2310 // > CCTextInputNode::updateLabel @ 0x3e2f18 // > CCTextInputNode::onTextFieldDeleteBackward @ 0x3e3546 // > CCTextInputNode::onTextFieldDeleteBackward @ 0x3e3562 // > CCTextInputNode::insertAtCursor @ 0x3e4026 // > CCTextInputNode::insertAtCursor @ 0x3e4118 // > CCTextInputNode::onTextFieldInsertText @ 0x3e423c // > CCTextInputNode::onTextFieldInsertText @ 0x3e4352 // > CCTextInputNode::onTextFieldInsertText @ 0x3e4516 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:46:48 +0000 // int __fastcall sub_3DC656(unsigned __int8 *a1, int a2) { int v2; // r4 int v3; // r3 int v4; // r2 unsigned __int8 *v5; // r5 int result; // r0 unsigned __int8 v7; // r3 int v8; // r3 v2 = 0; v3 = *a1; v4 = 0; if ( (v3 & 1) != 0 ) { v5 = *((unsigned __int8 **)a1 + 2); result = *((_DWORD *)a1 + 1); } else { v5 = a1 + 1; result = v3 >> 1; } while ( v2 < a2 ) { if ( v4 >= result ) return result; v7 = v5[v4]; if ( (v7 & 0x80) != 0 ) { if ( (v7 & 0xE0) == 0xC0 ) { v8 = 2; } else if ( (v7 & 0xF0) == 0xE0 ) { v8 = 3; } else if ( (v7 & 0xF8) == 0xF0 ) { v8 = 4; } else { v8 = 1; } } else { v8 = 1; } v4 += v8; ++v2; } if ( result >= v4 ) return v4; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source