#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int multiply_convert_utf_8_to_uint32(uint32_t *value_out, const char *str,
                                     const size_t len) {
  int bytes_number;
  uint32_t new_unicode_char = 0;
  char *str_original_p;
  unsigned char ch;
  ch = (unsigned char)*str;
  if ((ch & 0x80) == 0)
    bytes_number = 1;
  else if ((ch & 0xe0) == 0xc0)
    bytes_number = 2;
  else if ((ch & 0xf0) == 0xe0)
    bytes_number = 3;
  else if ((ch & 0xf8) == 0xf0)
    bytes_number = 4;
  else if ((ch & 0xfc) == 0xf8)
    bytes_number = 5;
  else if ((ch & 0xfe) == 0xfc)
    bytes_number = 6;
  else {
    return -1;
  }
  if (len < (size_t)bytes_number) {
    return -1;
  }
  str_original_p = (char *)str;
  switch (bytes_number) {
  case 1:
    new_unicode_char = ch & 0x7f;
    str_original_p++;
    break;
  case 2:
    new_unicode_char = (ch & 0x1f);
    str_original_p++;
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    break;
  case 3:
    new_unicode_char = (ch & 0x1f);
    str_original_p++;
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    break;
  case 4:
    new_unicode_char = (ch & 0x1f);
    str_original_p++;
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    break;
  case 5:
    new_unicode_char = (ch & 0x1f);
    str_original_p++;
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    break;
  case 6:
    new_unicode_char = (ch & 0x1f);
    str_original_p++;
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    {
      ch = (unsigned char)*str_original_p;
      if ((ch & 0xc0) != 0x80) {
        return -1;
      }
      new_unicode_char = (new_unicode_char << 6) | (ch & 0x3f);
      str_original_p++;
    };
    break;
  }
  *value_out = new_unicode_char;
  return 0;
}


x86 assembly (clang, -O0):
<multiply_convert_utf_8_to_uint32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    113e <multiply_convert_utf_8_to_uint32+0x3e>
movl   $0x1,-0x24(%rbp)
jmp    1203 <multiply_convert_utf_8_to_uint32+0x103>
movzbl -0x31(%rbp),%eax
and    $0xe0,%eax
cmp    $0xc0,%eax
jne    115e <multiply_convert_utf_8_to_uint32+0x5e>
movl   $0x2,-0x24(%rbp)
jmp    11fe <multiply_convert_utf_8_to_uint32+0xfe>
movzbl -0x31(%rbp),%eax
and    $0xf0,%eax
cmp    $0xe0,%eax
jne    117e <multiply_convert_utf_8_to_uint32+0x7e>
movl   $0x3,-0x24(%rbp)
jmp    11f9 <multiply_convert_utf_8_to_uint32+0xf9>
movzbl -0x31(%rbp),%eax
and    $0xf8,%eax
cmp    $0xf0,%eax
jne    119e <multiply_convert_utf_8_to_uint32+0x9e>
movl   $0x4,-0x24(%rbp)
jmp    11f4 <multiply_convert_utf_8_to_uint32+0xf4>
movzbl -0x31(%rbp),%eax
and    $0xfc,%eax
cmp    $0xf8,%eax
jne    11be <multiply_convert_utf_8_to_uint32+0xbe>
movl   $0x5,-0x24(%rbp)
jmp    11ef <multiply_convert_utf_8_to_uint32+0xef>
movzbl -0x31(%rbp),%eax
and    $0xfe,%eax
cmp    $0xfc,%eax
jne    11de <multiply_convert_utf_8_to_uint32+0xde>
movl   $0x6,-0x24(%rbp)
jmp    11ea <multiply_convert_utf_8_to_uint32+0xea>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
jmp    11ef <multiply_convert_utf_8_to_uint32+0xef>
jmp    11f4 <multiply_convert_utf_8_to_uint32+0xf4>
jmp    11f9 <multiply_convert_utf_8_to_uint32+0xf9>
jmp    11fe <multiply_convert_utf_8_to_uint32+0xfe>
jmp    1203 <multiply_convert_utf_8_to_uint32+0x103>
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
cmp    %rcx,%rax
jae    1220 <multiply_convert_utf_8_to_uint32+0x120>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x5,%eax
ja     1717 <multiply_convert_utf_8_to_uint32+0x617>
mov    -0x40(%rbp),%rax
lea    0xdb8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movzbl -0x31(%rbp),%eax
and    $0x7f,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1717 <multiply_convert_utf_8_to_uint32+0x617>
movzbl -0x31(%rbp),%eax
and    $0x1f,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     12ab <multiply_convert_utf_8_to_uint32+0x1ab>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1717 <multiply_convert_utf_8_to_uint32+0x617>
movzbl -0x31(%rbp),%eax
and    $0x1f,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     130d <multiply_convert_utf_8_to_uint32+0x20d>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     1354 <multiply_convert_utf_8_to_uint32+0x254>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1717 <multiply_convert_utf_8_to_uint32+0x617>
movzbl -0x31(%rbp),%eax
and    $0x1f,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     13b6 <multiply_convert_utf_8_to_uint32+0x2b6>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     13fd <multiply_convert_utf_8_to_uint32+0x2fd>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     1444 <multiply_convert_utf_8_to_uint32+0x344>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1717 <multiply_convert_utf_8_to_uint32+0x617>
movzbl -0x31(%rbp),%eax
and    $0x1f,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     14a6 <multiply_convert_utf_8_to_uint32+0x3a6>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     14ed <multiply_convert_utf_8_to_uint32+0x3ed>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     1534 <multiply_convert_utf_8_to_uint32+0x434>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     157b <multiply_convert_utf_8_to_uint32+0x47b>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1717 <multiply_convert_utf_8_to_uint32+0x617>
movzbl -0x31(%rbp),%eax
and    $0x1f,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     15dd <multiply_convert_utf_8_to_uint32+0x4dd>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     1624 <multiply_convert_utf_8_to_uint32+0x524>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     166b <multiply_convert_utf_8_to_uint32+0x56b>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     16b2 <multiply_convert_utf_8_to_uint32+0x5b2>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     16f9 <multiply_convert_utf_8_to_uint32+0x5f9>
movl   $0xffffffff,-0x4(%rbp)
jmp    1727 <multiply_convert_utf_8_to_uint32+0x627>
mov    -0x28(%rbp),%eax
shl    $0x6,%eax
movzbl -0x31(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<multiply_convert_utf_8_to_uint32>:
movzbl (%rsi),%r8d
mov    $0x1,%r10d
test   $0x80,%r8b
je     117b <multiply_convert_utf_8_to_uint32+0x7b>
mov    %r8d,%eax
and    $0xffffffe0,%eax
mov    $0x2,%r10d
cmp    $0xc0,%eax
je     117b <multiply_convert_utf_8_to_uint32+0x7b>
mov    %r8d,%eax
and    $0xfffffff0,%eax
mov    $0x3,%r10d
cmp    $0xe0,%eax
je     117b <multiply_convert_utf_8_to_uint32+0x7b>
mov    %r8d,%eax
and    $0xfffffff8,%eax
mov    $0x4,%r10d
cmp    $0xf0,%eax
je     117b <multiply_convert_utf_8_to_uint32+0x7b>
mov    %r8d,%eax
and    $0xfffffffc,%eax
mov    $0x5,%r10d
cmp    $0xf8,%eax
je     117b <multiply_convert_utf_8_to_uint32+0x7b>
mov    %r8d,%r9d
and    $0xfffffffe,%r9d
mov    $0xffffffff,%eax
mov    $0x6,%r10d
cmp    $0xfc,%r9d
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
mov    %r10d,%ecx
mov    $0xffffffff,%eax
cmp    %rdx,%rcx
ja     13ae <multiply_convert_utf_8_to_uint32+0x2ae>
xor    %edx,%edx
add    $0xffffffff,%r10d
cmp    $0x5,%r10d
ja     13aa <multiply_convert_utf_8_to_uint32+0x2aa>
lea    0xe5d(%rip),%rcx
movslq (%rcx,%r10,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
and    $0x7f,%r8d
mov    %r8d,%edx
jmp    13aa <multiply_convert_utf_8_to_uint32+0x2aa>
movzbl 0x1(%rsi),%edx
mov    %edx,%ecx
and    $0xffffffc0,%ecx
cmp    $0x80,%ecx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
and    $0x1f,%r8d
shl    $0x6,%r8d
and    $0x3f,%edx
or     %r8d,%edx
jmp    13aa <multiply_convert_utf_8_to_uint32+0x2aa>
movzbl 0x1(%rsi),%ecx
mov    %ecx,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x2(%rsi),%edx
mov    %edx,%esi
and    $0xffffffc0,%esi
cmp    $0x80,%esi
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
and    $0x1f,%r8d
shl    $0x6,%r8d
and    $0x3f,%ecx
or     %r8d,%ecx
shl    $0x6,%ecx
and    $0x3f,%edx
or     %ecx,%edx
jmp    13aa <multiply_convert_utf_8_to_uint32+0x2aa>
movzbl 0x1(%rsi),%ecx
mov    %ecx,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x2(%rsi),%r9d
mov    %r9d,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x3(%rsi),%edx
mov    %edx,%esi
and    $0xffffffc0,%esi
cmp    $0x80,%esi
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
and    $0x1f,%r8d
shl    $0x6,%r8d
and    $0x3f,%ecx
or     %r8d,%ecx
shl    $0xc,%ecx
and    $0x3f,%r9d
shl    $0x6,%r9d
or     %ecx,%r9d
and    $0x3f,%edx
or     %r9d,%edx
jmp    13aa <multiply_convert_utf_8_to_uint32+0x2aa>
movzbl 0x1(%rsi),%ecx
mov    %ecx,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x2(%rsi),%r9d
mov    %r9d,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x3(%rsi),%r10d
mov    %r10d,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x4(%rsi),%edx
mov    %edx,%esi
and    $0xffffffc0,%esi
cmp    $0x80,%esi
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
and    $0x1f,%r8d
shl    $0x6,%r8d
and    $0x3f,%ecx
or     %r8d,%ecx
shl    $0xc,%ecx
and    $0x3f,%r9d
shl    $0x6,%r9d
or     %ecx,%r9d
and    $0x3f,%r10d
or     %r9d,%r10d
shl    $0x6,%r10d
and    $0x3f,%edx
or     %r10d,%edx
jmp    13aa <multiply_convert_utf_8_to_uint32+0x2aa>
movzbl 0x1(%rsi),%ecx
mov    %ecx,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x2(%rsi),%r10d
mov    %r10d,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x3(%rsi),%r9d
mov    %r9d,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x4(%rsi),%r11d
mov    %r11d,%edx
and    $0xffffffc0,%edx
cmp    $0x80,%edx
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
movzbl 0x5(%rsi),%edx
mov    %edx,%esi
and    $0xffffffc0,%esi
cmp    $0x80,%esi
jne    13ae <multiply_convert_utf_8_to_uint32+0x2ae>
and    $0x3f,%ecx
shl    $0x12,%r8d
shl    $0xc,%ecx
or     %r8d,%ecx
and    $0x3f,%r10d
shl    $0x6,%r10d
or     %ecx,%r10d
and    $0x3f,%r9d
or     %r10d,%r9d
shl    $0xc,%r9d
and    $0x3f,%r11d
shl    $0x6,%r11d
or     %r9d,%r11d
and    $0x3f,%edx
or     %r11d,%edx
mov    %edx,(%rdi)
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @multiply_convert_utf_8_to_uint32(i32* %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8
store i32* %0, i32** %5
store i8* %1, i8** %6
store i64 %2, i64* %7
store i32 0, i32* %9
%12 = load i8*, i8** %6
%13 = load i8, i8* %12
store i8 %13, i8* %11
%14 = load i8, i8* %11
%15 = zext i8 %14 to i32
%16 = and i32 %15, 128
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 1, i32* %8
br label %55
19: ; preds = %3
%20 = load i8, i8* %11
%21 = zext i8 %20 to i32
%22 = and i32 %21, 224
%23 = icmp eq i32 %22, 192
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 2, i32* %8
br label %54
25: ; preds = %19
%26 = load i8, i8* %11
%27 = zext i8 %26 to i32
%28 = and i32 %27, 240
%29 = icmp eq i32 %28, 224
br i1 %29, label %30, label %31
30: ; preds = %25
store i32 3, i32* %8
br label %53
31: ; preds = %25
%32 = load i8, i8* %11
%33 = zext i8 %32 to i32
%34 = and i32 %33, 248
%35 = icmp eq i32 %34, 240
br i1 %35, label %36, label %37
36: ; preds = %31
store i32 4, i32* %8
br label %52
37: ; preds = %31
%38 = load i8, i8* %11
%39 = zext i8 %38 to i32
%40 = and i32 %39, 252
%41 = icmp eq i32 %40, 248
br i1 %41, label %42, label %43
42: ; preds = %37
store i32 5, i32* %8
br label %51
43: ; preds = %37
%44 = load i8, i8* %11
%45 = zext i8 %44 to i32
%46 = and i32 %45, 254
%47 = icmp eq i32 %46, 252
br i1 %47, label %48, label %49
48: ; preds = %43
store i32 6, i32* %8
br label %50
49: ; preds = %43
store i32 -1, i32* %4
br label %343
50: ; preds = %48
br label %51
51: ; preds = %50, %42
br label %52
52: ; preds = %51, %36
br label %53
53: ; preds = %52, %30
br label %54
54: ; preds = %53, %24
br label %55
55: ; preds = %54, %18
%56 = load i64, i64* %7
%57 = load i32, i32* %8
%58 = sext i32 %57 to i64
%59 = icmp ult i64 %56, %58
br i1 %59, label %60, label %61
60: ; preds = %55
store i32 -1, i32* %4
br label %343
61: ; preds = %55
%62 = load i8*, i8** %6
store i8* %62, i8** %10
%63 = load i32, i32* %8
switch i32 %63, label %340 [
i32 1, label %64
i32 2, label %70
i32 3, label %92
i32 4, label %130
i32 5, label %184
i32 6, label %254
]
64: ; preds = %61
%65 = load i8, i8* %11
%66 = zext i8 %65 to i32
%67 = and i32 %66, 127
store i32 %67, i32* %9
%68 = load i8*, i8** %10
%69 = getelementptr inbounds i8, i8* %68, i32 1
store i8* %69, i8** %10
br label %340
70: ; preds = %61
%71 = load i8, i8* %11
%72 = zext i8 %71 to i32
%73 = and i32 %72, 31
store i32 %73, i32* %9
%74 = load i8*, i8** %10
%75 = getelementptr inbounds i8, i8* %74, i32 1
store i8* %75, i8** %10
%76 = load i8*, i8** %10
%77 = load i8, i8* %76
store i8 %77, i8* %11
%78 = load i8, i8* %11
%79 = zext i8 %78 to i32
%80 = and i32 %79, 192
%81 = icmp ne i32 %80, 128
br i1 %81, label %82, label %83
82: ; preds = %70
store i32 -1, i32* %4
br label %343
83: ; preds = %70
%84 = load i32, i32* %9
%85 = shl i32 %84, 6
%86 = load i8, i8* %11
%87 = zext i8 %86 to i32
%88 = and i32 %87, 63
%89 = or i32 %85, %88
store i32 %89, i32* %9
%90 = load i8*, i8** %10
%91 = getelementptr inbounds i8, i8* %90, i32 1
store i8* %91, i8** %10
br label %340
92: ; preds = %61
%93 = load i8, i8* %11
%94 = zext i8 %93 to i32
%95 = and i32 %94, 31
store i32 %95, i32* %9
%96 = load i8*, i8** %10
%97 = getelementptr inbounds i8, i8* %96, i32 1
store i8* %97, i8** %10
%98 = load i8*, i8** %10
%99 = load i8, i8* %98
store i8 %99, i8* %11
%100 = load i8, i8* %11
%101 = zext i8 %100 to i32
%102 = and i32 %101, 192
%103 = icmp ne i32 %102, 128
br i1 %103, label %104, label %105
104: ; preds = %92
store i32 -1, i32* %4
br label %343
105: ; preds = %92
%106 = load i32, i32* %9
%107 = shl i32 %106, 6
%108 = load i8, i8* %11
%109 = zext i8 %108 to i32
%110 = and i32 %109, 63
%111 = or i32 %107, %110
store i32 %111, i32* %9
%112 = load i8*, i8** %10
%113 = getelementptr inbounds i8, i8* %112, i32 1
store i8* %113, i8** %10
%114 = load i8*, i8** %10
%115 = load i8, i8* %114
store i8 %115, i8* %11
%116 = load i8, i8* %11
%117 = zext i8 %116 to i32
%118 = and i32 %117, 192
%119 = icmp ne i32 %118, 128
br i1 %119, label %120, label %121
120: ; preds = %105
store i32 -1, i32* %4
br label %343
121: ; preds = %105
%122 = load i32, i32* %9
%123 = shl i32 %122, 6
%124 = load i8, i8* %11
%125 = zext i8 %124 to i32
%126 = and i32 %125, 63
%127 = or i32 %123, %126
store i32 %127, i32* %9
%128 = load i8*, i8** %10
%129 = getelementptr inbounds i8, i8* %128, i32 1
store i8* %129, i8** %10
br label %340
130: ; preds = %61
%131 = load i8, i8* %11
%132 = zext i8 %131 to i32
%133 = and i32 %132, 31
store i32 %133, i32* %9
%134 = load i8*, i8** %10
%135 = getelementptr inbounds i8, i8* %134, i32 1
store i8* %135, i8** %10
%136 = load i8*, i8** %10
%137 = load i8, i8* %136
store i8 %137, i8* %11
%138 = load i8, i8* %11
%139 = zext i8 %138 to i32
%140 = and i32 %139, 192
%141 = icmp ne i32 %140, 128
br i1 %141, label %142, label %143
142: ; preds = %130
store i32 -1, i32* %4
br label %343
143: ; preds = %130
%144 = load i32, i32* %9
%145 = shl i32 %144, 6
%146 = load i8, i8* %11
%147 = zext i8 %146 to i32
%148 = and i32 %147, 63
%149 = or i32 %145, %148
store i32 %149, i32* %9
%150 = load i8*, i8** %10
%151 = getelementptr inbounds i8, i8* %150, i32 1
store i8* %151, i8** %10
%152 = load i8*, i8** %10
%153 = load i8, i8* %152
store i8 %153, i8* %11
%154 = load i8, i8* %11
%155 = zext i8 %154 to i32
%156 = and i32 %155, 192
%157 = icmp ne i32 %156, 128
br i1 %157, label %158, label %159
158: ; preds = %143
store i32 -1, i32* %4
br label %343
159: ; preds = %143
%160 = load i32, i32* %9
%161 = shl i32 %160, 6
%162 = load i8, i8* %11
%163 = zext i8 %162 to i32
%164 = and i32 %163, 63
%165 = or i32 %161, %164
store i32 %165, i32* %9
%166 = load i8*, i8** %10
%167 = getelementptr inbounds i8, i8* %166, i32 1
store i8* %167, i8** %10
%168 = load i8*, i8** %10
%169 = load i8, i8* %168
store i8 %169, i8* %11
%170 = load i8, i8* %11
%171 = zext i8 %170 to i32
%172 = and i32 %171, 192
%173 = icmp ne i32 %172, 128
br i1 %173, label %174, label %175
174: ; preds = %159
store i32 -1, i32* %4
br label %343
175: ; preds = %159
%176 = load i32, i32* %9
%177 = shl i32 %176, 6
%178 = load i8, i8* %11
%179 = zext i8 %178 to i32
%180 = and i32 %179, 63
%181 = or i32 %177, %180
store i32 %181, i32* %9
%182 = load i8*, i8** %10
%183 = getelementptr inbounds i8, i8* %182, i32 1
store i8* %183, i8** %10
br label %340
184: ; preds = %61
%185 = load i8, i8* %11
%186 = zext i8 %185 to i32
%187 = and i32 %186, 31
store i32 %187, i32* %9
%188 = load i8*, i8** %10
%189 = getelementptr inbounds i8, i8* %188, i32 1
store i8* %189, i8** %10
%190 = load i8*, i8** %10
%191 = load i8, i8* %190
store i8 %191, i8* %11
%192 = load i8, i8* %11
%193 = zext i8 %192 to i32
%194 = and i32 %193, 192
%195 = icmp ne i32 %194, 128
br i1 %195, label %196, label %197
196: ; preds = %184
store i32 -1, i32* %4
br label %343
197: ; preds = %184
%198 = load i32, i32* %9
%199 = shl i32 %198, 6
%200 = load i8, i8* %11
%201 = zext i8 %200 to i32
%202 = and i32 %201, 63
%203 = or i32 %199, %202
store i32 %203, i32* %9
%204 = load i8*, i8** %10
%205 = getelementptr inbounds i8, i8* %204, i32 1
store i8* %205, i8** %10
%206 = load i8*, i8** %10
%207 = load i8, i8* %206
store i8 %207, i8* %11
%208 = load i8, i8* %11
%209 = zext i8 %208 to i32
%210 = and i32 %209, 192
%211 = icmp ne i32 %210, 128
br i1 %211, label %212, label %213
212: ; preds = %197
store i32 -1, i32* %4
br label %343
213: ; preds = %197
%214 = load i32, i32* %9
%215 = shl i32 %214, 6
%216 = load i8, i8* %11
%217 = zext i8 %216 to i32
%218 = and i32 %217, 63
%219 = or i32 %215, %218
store i32 %219, i32* %9
%220 = load i8*, i8** %10
%221 = getelementptr inbounds i8, i8* %220, i32 1
store i8* %221, i8** %10
%222 = load i8*, i8** %10
%223 = load i8, i8* %222
store i8 %223, i8* %11
%224 = load i8, i8* %11
%225 = zext i8 %224 to i32
%226 = and i32 %225, 192
%227 = icmp ne i32 %226, 128
br i1 %227, label %228, label %229
228: ; preds = %213
store i32 -1, i32* %4
br label %343
229: ; preds = %213
%230 = load i32, i32* %9
%231 = shl i32 %230, 6
%232 = load i8, i8* %11
%233 = zext i8 %232 to i32
%234 = and i32 %233, 63
%235 = or i32 %231, %234
store i32 %235, i32* %9
%236 = load i8*, i8** %10
%237 = getelementptr inbounds i8, i8* %236, i32 1
store i8* %237, i8** %10
%238 = load i8*, i8** %10
%239 = load i8, i8* %238
store i8 %239, i8* %11
%240 = load i8, i8* %11
%241 = zext i8 %240 to i32
%242 = and i32 %241, 192
%243 = icmp ne i32 %242, 128
br i1 %243, label %244, label %245
244: ; preds = %229
store i32 -1, i32* %4
br label %343
245: ; preds = %229
%246 = load i32, i32* %9
%247 = shl i32 %246, 6
%248 = load i8, i8* %11
%249 = zext i8 %248 to i32
%250 = and i32 %249, 63
%251 = or i32 %247, %250
store i32 %251, i32* %9
%252 = load i8*, i8** %10
%253 = getelementptr inbounds i8, i8* %252, i32 1
store i8* %253, i8** %10
br label %340
254: ; preds = %61
%255 = load i8, i8* %11
%256 = zext i8 %255 to i32
%257 = and i32 %256, 31
store i32 %257, i32* %9
%258 = load i8*, i8** %10
%259 = getelementptr inbounds i8, i8* %258, i32 1
store i8* %259, i8** %10
%260 = load i8*, i8** %10
%261 = load i8, i8* %260
store i8 %261, i8* %11
%262 = load i8, i8* %11
%263 = zext i8 %262 to i32
%264 = and i32 %263, 192
%265 = icmp ne i32 %264, 128
br i1 %265, label %266, label %267
266: ; preds = %254
store i32 -1, i32* %4
br label %343
267: ; preds = %254
%268 = load i32, i32* %9
%269 = shl i32 %268, 6
%270 = load i8, i8* %11
%271 = zext i8 %270 to i32
%272 = and i32 %271, 63
%273 = or i32 %269, %272
store i32 %273, i32* %9
%274 = load i8*, i8** %10
%275 = getelementptr inbounds i8, i8* %274, i32 1
store i8* %275, i8** %10
%276 = load i8*, i8** %10
%277 = load i8, i8* %276
store i8 %277, i8* %11
%278 = load i8, i8* %11
%279 = zext i8 %278 to i32
%280 = and i32 %279, 192
%281 = icmp ne i32 %280, 128
br i1 %281, label %282, label %283
282: ; preds = %267
store i32 -1, i32* %4
br label %343
283: ; preds = %267
%284 = load i32, i32* %9
%285 = shl i32 %284, 6
%286 = load i8, i8* %11
%287 = zext i8 %286 to i32
%288 = and i32 %287, 63
%289 = or i32 %285, %288
store i32 %289, i32* %9
%290 = load i8*, i8** %10
%291 = getelementptr inbounds i8, i8* %290, i32 1
store i8* %291, i8** %10
%292 = load i8*, i8** %10
%293 = load i8, i8* %292
store i8 %293, i8* %11
%294 = load i8, i8* %11
%295 = zext i8 %294 to i32
%296 = and i32 %295, 192
%297 = icmp ne i32 %296, 128
br i1 %297, label %298, label %299
298: ; preds = %283
store i32 -1, i32* %4
br label %343
299: ; preds = %283
%300 = load i32, i32* %9
%301 = shl i32 %300, 6
%302 = load i8, i8* %11
%303 = zext i8 %302 to i32
%304 = and i32 %303, 63
%305 = or i32 %301, %304
store i32 %305, i32* %9
%306 = load i8*, i8** %10
%307 = getelementptr inbounds i8, i8* %306, i32 1
store i8* %307, i8** %10
%308 = load i8*, i8** %10
%309 = load i8, i8* %308
store i8 %309, i8* %11
%310 = load i8, i8* %11
%311 = zext i8 %310 to i32
%312 = and i32 %311, 192
%313 = icmp ne i32 %312, 128
br i1 %313, label %314, label %315
314: ; preds = %299
store i32 -1, i32* %4
br label %343
315: ; preds = %299
%316 = load i32, i32* %9
%317 = shl i32 %316, 6
%318 = load i8, i8* %11
%319 = zext i8 %318 to i32
%320 = and i32 %319, 63
%321 = or i32 %317, %320
store i32 %321, i32* %9
%322 = load i8*, i8** %10
%323 = getelementptr inbounds i8, i8* %322, i32 1
store i8* %323, i8** %10
%324 = load i8*, i8** %10
%325 = load i8, i8* %324
store i8 %325, i8* %11
%326 = load i8, i8* %11
%327 = zext i8 %326 to i32
%328 = and i32 %327, 192
%329 = icmp ne i32 %328, 128
br i1 %329, label %330, label %331
330: ; preds = %315
store i32 -1, i32* %4
br label %343
331: ; preds = %315
%332 = load i32, i32* %9
%333 = shl i32 %332, 6
%334 = load i8, i8* %11
%335 = zext i8 %334 to i32
%336 = and i32 %335, 63
%337 = or i32 %333, %336
store i32 %337, i32* %9
%338 = load i8*, i8** %10
%339 = getelementptr inbounds i8, i8* %338, i32 1
store i8* %339, i8** %10
br label %340
340: ; preds = %61, %331, %245, %175, %121, %83, %64
%341 = load i32, i32* %9
%342 = load i32*, i32** %5
store i32 %341, i32* %342
store i32 0, i32* %4
br label %343
343: ; preds = %340, %330, %314, %298, %282, %266, %244, %228, %212, %196, %174, %158, %142, %120, %104, %82, %60, %49
%344 = load i32, i32* %4
ret i32 %344
}

LLVM IR (-O2):
define i32 @multiply_convert_utf_8_to_uint32(i32* nocapture writeonly %0, i8* nocapture %1, i64 %2) {
%4 = load i8, i8* %1
%5 = zext i8 %4 to i32
%6 = and i32 %5, 128
%7 = icmp eq i32 %6, 0
br i1 %7, label %23, label %8
8: ; preds = %3
%9 = and i32 %5, 224
%10 = icmp eq i32 %9, 192
br i1 %10, label %23, label %11
11: ; preds = %8
%12 = and i32 %5, 240
%13 = icmp eq i32 %12, 224
br i1 %13, label %23, label %14
14: ; preds = %11
%15 = and i32 %5, 248
%16 = icmp eq i32 %15, 240
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = and i32 %5, 252
%19 = icmp eq i32 %18, 248
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = and i32 %5, 254
%22 = icmp eq i32 %21, 252
br i1 %22, label %23, label %177
23: ; preds = %20, %17, %14, %11, %8, %3
%24 = phi i32 [ 1, %3 ], [ 2, %8 ], [ 3, %11 ], [ 4, %14 ], [ 5, %17 ], [ 6, %20 ]
%25 = zext i32 %24 to i64
%26 = icmp ugt i64 %25, %2
br i1 %26, label %177, label %27
27: ; preds = %23
switch i32 %24, label %175 [
i32 1, label %28
i32 2, label %30
i32 3, label %41
i32 4, label %61
i32 5, label %90
i32 6, label %128
]
28: ; preds = %27
%29 = and i32 %5, 127
br label %175
30: ; preds = %27
%31 = getelementptr inbounds i8, i8* %1, i64 1
%32 = load i8, i8* %31
%33 = zext i8 %32 to i32
%34 = and i32 %33, 192
%35 = icmp eq i32 %34, 128
br i1 %35, label %36, label %177
36: ; preds = %30
%37 = shl nuw nsw i32 %5, 6
%38 = and i32 %37, 1984
%39 = and i32 %33, 63
%40 = or i32 %39, %38
br label %175
41: ; preds = %27
%42 = getelementptr inbounds i8, i8* %1, i64 1
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = and i32 %44, 192
%46 = icmp eq i32 %45, 128
br i1 %46, label %47, label %177
47: ; preds = %41
%48 = getelementptr inbounds i8, i8* %1, i64 2
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = and i32 %50, 192
%52 = icmp eq i32 %51, 128
br i1 %52, label %53, label %177
53: ; preds = %47
%54 = shl nuw nsw i32 %5, 6
%55 = and i32 %54, 1984
%56 = and i32 %44, 63
%57 = or i32 %56, %55
%58 = shl nuw nsw i32 %57, 6
%59 = and i32 %50, 63
%60 = or i32 %59, %58
br label %175
61: ; preds = %27
%62 = getelementptr inbounds i8, i8* %1, i64 1
%63 = load i8, i8* %62
%64 = zext i8 %63 to i32
%65 = and i32 %64, 192
%66 = icmp eq i32 %65, 128
br i1 %66, label %67, label %177
67: ; preds = %61
%68 = getelementptr inbounds i8, i8* %1, i64 2
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = and i32 %70, 192
%72 = icmp eq i32 %71, 128
br i1 %72, label %73, label %177
73: ; preds = %67
%74 = getelementptr inbounds i8, i8* %1, i64 3
%75 = load i8, i8* %74
%76 = zext i8 %75 to i32
%77 = and i32 %76, 192
%78 = icmp eq i32 %77, 128
br i1 %78, label %79, label %177
79: ; preds = %73
%80 = shl nuw nsw i32 %5, 6
%81 = and i32 %80, 1984
%82 = and i32 %64, 63
%83 = or i32 %82, %81
%84 = shl nuw nsw i32 %83, 12
%85 = shl nuw nsw i32 %70, 6
%86 = and i32 %85, 4032
%87 = or i32 %86, %84
%88 = and i32 %76, 63
%89 = or i32 %88, %87
br label %175
90: ; preds = %27
%91 = getelementptr inbounds i8, i8* %1, i64 1
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = and i32 %93, 192
%95 = icmp eq i32 %94, 128
br i1 %95, label %96, label %177
96: ; preds = %90
%97 = getelementptr inbounds i8, i8* %1, i64 2
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = and i32 %99, 192
%101 = icmp eq i32 %100, 128
br i1 %101, label %102, label %177
102: ; preds = %96
%103 = getelementptr inbounds i8, i8* %1, i64 3
%104 = load i8, i8* %103
%105 = zext i8 %104 to i32
%106 = and i32 %105, 192
%107 = icmp eq i32 %106, 128
br i1 %107, label %108, label %177
108: ; preds = %102
%109 = getelementptr inbounds i8, i8* %1, i64 4
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = and i32 %111, 192
%113 = icmp eq i32 %112, 128
br i1 %113, label %114, label %177
114: ; preds = %108
%115 = shl nuw nsw i32 %5, 6
%116 = and i32 %115, 1984
%117 = and i32 %93, 63
%118 = or i32 %117, %116
%119 = shl nuw nsw i32 %118, 12
%120 = shl nuw nsw i32 %99, 6
%121 = and i32 %120, 4032
%122 = or i32 %121, %119
%123 = and i32 %105, 63
%124 = or i32 %123, %122
%125 = shl nuw nsw i32 %124, 6
%126 = and i32 %111, 63
%127 = or i32 %126, %125
br label %175
128: ; preds = %27
%129 = getelementptr inbounds i8, i8* %1, i64 1
%130 = load i8, i8* %129
%131 = zext i8 %130 to i32
%132 = and i32 %131, 192
%133 = icmp eq i32 %132, 128
br i1 %133, label %134, label %177
134: ; preds = %128
%135 = getelementptr inbounds i8, i8* %1, i64 2
%136 = load i8, i8* %135
%137 = zext i8 %136 to i32
%138 = and i32 %137, 192
%139 = icmp eq i32 %138, 128
br i1 %139, label %140, label %177
140: ; preds = %134
%141 = getelementptr inbounds i8, i8* %1, i64 3
%142 = load i8, i8* %141
%143 = zext i8 %142 to i32
%144 = and i32 %143, 192
%145 = icmp eq i32 %144, 128
br i1 %145, label %146, label %177
146: ; preds = %140
%147 = getelementptr inbounds i8, i8* %1, i64 4
%148 = load i8, i8* %147
%149 = zext i8 %148 to i32
%150 = and i32 %149, 192
%151 = icmp eq i32 %150, 128
br i1 %151, label %152, label %177
152: ; preds = %146
%153 = getelementptr inbounds i8, i8* %1, i64 5
%154 = load i8, i8* %153
%155 = zext i8 %154 to i32
%156 = and i32 %155, 192
%157 = icmp eq i32 %156, 128
br i1 %157, label %158, label %177
158: ; preds = %152
%159 = shl nuw nsw i32 %5, 6
%160 = and i32 %159, 192
%161 = and i32 %131, 63
%162 = or i32 %161, %160
%163 = shl nuw nsw i32 %162, 12
%164 = shl nuw nsw i32 %137, 6
%165 = and i32 %164, 4032
%166 = or i32 %165, %163
%167 = and i32 %143, 63
%168 = or i32 %167, %166
%169 = shl nuw i32 %168, 12
%170 = shl nuw nsw i32 %149, 6
%171 = and i32 %170, 4032
%172 = or i32 %171, %169
%173 = and i32 %155, 63
%174 = or i32 %173, %172
br label %175
175: ; preds = %27, %158, %114, %79, %53, %36, %28
%176 = phi i32 [ 0, %27 ], [ %174, %158 ], [ %127, %114 ], [ %89, %79 ], [ %60, %53 ], [ %40, %36 ], [ %29, %28 ]
store i32 %176, i32* %0
br label %177
177: ; preds = %152, %146, %140, %134, %128, %108, %102, %96, %90, %73, %67, %61, %47, %41, %30, %23, %20, %175
%178 = phi i32 [ 0, %175 ], [ -1, %20 ], [ -1, %23 ], [ -1, %30 ], [ -1, %41 ], [ -1, %47 ], [ -1, %61 ], [ -1, %67 ], [ -1, %73 ], [ -1, %90 ], [ -1, %96 ], [ -1, %102 ], [ -1, %108 ], [ -1, %128 ], [ -1, %134 ], [ -1, %140 ], [ -1, %146 ], [ -1, %152 ]
ret i32 %178
}