// // sub_1005ECC5C from 0x1005ecc5c to 0x1005eccf4 (152 bytes) // // 1 xrefs: // > sub_1005A0B94 @ 0x1005a0c34 // // 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:09:46 +0000 // __int64 __fastcall sub_1005ECC5C(_BYTE *a1) { char v1; // w9 int v2; // w11 unsigned __int8 *v3; // x8 int v4; // w10 int v5; // t1 v1 = *a1; if ( !*a1 ) return 0xFFFFFFFFLL; v2 = 0; v3 = a1 + 1; while ( v2 ) { v4 = v2; if ( (v1 & 0xC0) != 0x80 ) return 0; LABEL_4: v2 = v4 - 1; v5 = *v3++; v1 = v5; if ( !v5 ) return (unsigned int)((v4 - 2) >> 31); } if ( (v1 & 0x80) == 0 ) { v4 = 1; goto LABEL_4; } if ( (v1 & 0xE0) == 0xC0 ) { v4 = 2; goto LABEL_4; } if ( (v1 & 0xF0) == 0xE0 ) { v4 = 3; goto LABEL_4; } if ( (v1 & 0xF8) == 0xF0 ) { v4 = 4; goto LABEL_4; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source