// // sub_C4EAA from 0xc4eaa to 0xc4fda (304 bytes) // // 1 xrefs: // > sub_C7C28 @ 0xc7ea8 // // 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:41:51 +0000 // int __fastcall sub_C4EAA(int a1, int a2, unsigned int *a3, int a4, _DWORD *a5) { unsigned int v8; // r4 int v9; // r0 int v10; // r8 int v11; // r10 char v12; // r0 int v13; // r1 unsigned int v16; // [sp+8h] [bp-20h] BYREF if ( !sub_C460A(a1, a2, &v16, 8u) ) return 0; v8 = v16; if ( a4 ) { v9 = (*a5)++; *(_BYTE *)(a4 + v9) = v8; } if ( (v8 & 0x80) == 0 ) { v10 = 0; goto LABEL_24; } if ( (v8 & 0xC0) != 0 && (v8 & 0x20) == 0 ) { v8 &= 0x1Fu; v10 = 1; goto LABEL_24; } if ( (v8 & 0xE0) != 0 && (v8 & 0x10) == 0 ) { v8 &= 0xFu; v10 = 2; goto LABEL_24; } if ( (v8 & 0xF0) != 0 && (v8 & 8) == 0 ) { v8 &= 7u; v10 = 3; goto LABEL_24; } if ( (v8 & 0xF8) != 0 && (v8 & 4) == 0 ) { v8 &= 3u; v10 = 4; goto LABEL_24; } if ( (v8 & 0xFC) != 0 && (v8 & 2) == 0 ) { v8 &= 1u; v10 = 5; goto LABEL_24; } if ( (v8 & 0xFE) != 0 && (v8 & 1) == 0 ) { v10 = 6; v8 = 0; LABEL_24: v11 = 0; while ( 1 ) { if ( !v10 ) { *a3 = v8; a3[1] = v11; return 1; } if ( !sub_C460A(a1, a2, &v16, 8u) ) return 0; v12 = v16; if ( a4 ) { v13 = (*a5)++; *(_BYTE *)(a4 + v13) = v12; } if ( (v12 & 0xC0) != 0x80 ) break; v11 = (v11 << 6) | (v8 >> 26); --v10; v8 = v12 & 0x3F | (v8 << 6); } *a3 = -1; a3[1] = -1; return 1; } *a3 = -1; a3[1] = -1; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source