// // sub_100067B80 from 0x100067b80 to 0x100067c38 (184 bytes) // // 2 xrefs: // > CCTextInputNode::onTextFieldInsertText @ 0x10006a1d8 // > CCTextInputNode::onTextFieldInsertText @ 0x10006a38c // // This function is hookable on this platform (idp: pc, 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 12:19:44 +0000 // __int64 __fastcall sub_100067B80(unsigned __int8 *a1, int a2) { unsigned int v2; // eax __int64 result; // rax unsigned __int8 *v4; // rdi int v5; // ecx int v6; // edx int v7; // r8d int v8; // r9d v2 = *a1; if ( (v2 & 1) != 0 ) { result = *((unsigned int *)a1 + 2); v4 = *((unsigned __int8 **)a1 + 2); if ( a2 <= 0 ) goto LABEL_3; } else { v4 = a1 + 1; result = v2 >> 1; if ( a2 <= 0 ) goto LABEL_3; } if ( (int)result <= 0 ) { LABEL_3: if ( (int)result > 0 ) return 0; return result; } v5 = 0; v6 = 1; do { v7 = v4[v5]; v8 = 1; if ( (v7 & 0x80u) != 0 ) { v8 = 2; if ( (v7 & 0xFFFFFFE0) != 0xC0 ) { v8 = 3; if ( (v7 & 0xFFFFFFF0) != 0xE0 ) v8 = 4 * ((v7 & 0xFFFFFFF8) == 240); } } v5 += v8 + (v8 == 0); if ( v6 >= a2 ) break; ++v6; } while ( v5 < (int)result ); if ( v5 < (int)result ) return (unsigned int)v5; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source