// // sub_1001FC2D0 from 0x1001fc2d0 to 0x1001fc380 (176 bytes) // // 10 xrefs: // > CCTextInputNode::updateLabel @ 0x1001fb3e4 // > CCTextInputNode::insertAtCursor @ 0x1001fbe04 // > CCTextInputNode::insertAtCursor @ 0x1001fbed4 // > CCTextInputNode::onTextFieldDeleteBackward @ 0x1001fc870 // > CCTextInputNode::onTextFieldDeleteBackward @ 0x1001fc8f4 // > sub_1001FCD10 @ 0x1001fcd94 // > CCTextInputNode::onTextFieldInsertText @ 0x1001fd6fc // > CCTextInputNode::onTextFieldInsertText @ 0x1001fd85c // > CCTextInputNode::onTextFieldInsertText @ 0x1001fdaa8 // > CCTextInputNode::updateCursorPosition @ 0x1001fea3c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:00:43 +0000 // __int64 __fastcall sub_1001FC2D0(__int64 *a1, int a2) { int v2; // w8 int v3; // w9 __int64 *v4; // x10 bool v5; // nf int v6; // w9 int v7; // w11 int v8; // w12 unsigned int v9; // w12 v2 = 0; v3 = *((char *)a1 + 23); v4 = (__int64 *)*a1; v5 = v3 < 0; if ( v3 >= 0 ) v4 = a1; v6 = *((unsigned __int8 *)a1 + 23); if ( v5 ) v6 = *((_DWORD *)a1 + 2); if ( a2 >= 1 && v6 >= 1 ) { v2 = 0; v7 = 1; do { v8 = *((char *)v4 + (unsigned int)v2); if ( v8 < 0 ) { if ( (v8 & 0xE0) == 0xC0 ) { v9 = 2; } else if ( (v8 & 0xF0) == 0xE0 ) { v9 = 3; } else { v9 = 4 * ((v8 & 0xF8) == 240); } } else { v9 = 1; } if ( v9 <= 1 ) v9 = 1; v2 += v9; if ( v7 >= a2 ) break; ++v7; } while ( v2 < v6 ); } if ( v2 >= v6 ) return (unsigned int)v6; else return (unsigned int)v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source