// // sub_1001FC380 from 0x1001fc380 to 0x1001fc41c (156 bytes) // // 4 xrefs: // > CCTextInputNode::updateLabel @ 0x1001fb2b4 // > CCTextInputNode::insertAtCursor @ 0x1001fbec0 // > CCTextInputNode::onTextFieldDeleteBackward @ 0x1001fc854 // > CCTextInputNode::onTextFieldInsertText @ 0x1001fda94 // // 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_1001FC380(__int64 *a1) { int v1; // w9 __int64 *v2; // x8 bool v3; // nf int v4; // w9 __int64 result; // x0 __int64 v6; // x10 int v7; // w11 __int64 v8; // x11 v1 = *((char *)a1 + 23); v2 = (__int64 *)*a1; v3 = v1 < 0; if ( v1 >= 0 ) v2 = a1; v4 = *((unsigned __int8 *)a1 + 23); if ( v3 ) v4 = *((_DWORD *)a1 + 2); if ( v4 < 1 ) return 0; result = 0; v6 = 0; do { v7 = *((char *)v2 + v6); if ( v7 < 0 ) { if ( (v7 & 0xE0) == 0xC0 ) { v8 = 2; } else if ( (v7 & 0xF0) == 0xE0 ) { v8 = 3; } else { if ( (v7 & 0xF8) != 0xF0 ) return result; v8 = 4; } } else { v8 = 1; } v6 += v8; if ( (int)v6 > v4 ) break; result = (unsigned int)(result + 1); } while ( (int)v6 < v4 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source