#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 */

/* Variables and functions */
int /*<<< orphan*/ bbm_read(void *, int, unsigned char *);
int /*<<< orphan*/ msWait(int);
int /*<<< orphan*/ tuner_get_rssi(void *, int *);
int fc8150_scan_status(void *hDevice) {
  unsigned int ifagc_timeout = 7;
  unsigned int ofdm_timeout = 16;
  unsigned int ffs_lock_timeout = 10;
  unsigned int dagc_timeout = 100;
  unsigned int cfs_timeout = 12;
  unsigned int tmcc_timeout = 105;
  unsigned int ts_err_free_timeout = 0;
  int rssi;
  unsigned char data, data1;
  unsigned char lay0_mod, lay0_cr;
  int i;
  for (i = 0; i < ifagc_timeout; i++) {
    bbm_read(hDevice, 0x3025, &data);
    if (data & 0x01)
      break;
    msWait(10);
  }
  if (i == ifagc_timeout)
    return 1;
  tuner_get_rssi(hDevice, &rssi);
  if (rssi < -107)
    return 1;
  for (; i < ofdm_timeout; i++) {
    bbm_read(hDevice, 0x3025, &data);
    if (data & 0x08)
      break;
    msWait(10);
  }
  if (i == ofdm_timeout)
    return 1;
  if (0 == (data & 0x04))
    return 1;
  for (; i < ffs_lock_timeout; i++) {
    bbm_read(hDevice, 0x3026, &data);
    if (data & 0x10)
      break;
    msWait(10);
  }
  if (i == ffs_lock_timeout)
    return 1;
  for (i = 0; i < dagc_timeout; i++) {
    bbm_read(hDevice, 0x3026, &data);
    if (data & 0x01)
      break;
    msWait(10);
  }
  if (i == dagc_timeout)
    return 1;
  for (i = 0; i < cfs_timeout; i++) {
    bbm_read(hDevice, 0x3025, &data);
    if (data & 0x40)
      break;
    msWait(10);
  }
  if (i == cfs_timeout)
    return 1;
  bbm_read(hDevice, 0x2023, &data1);
  if (data1 & 1)
    return 1;
  for (i = 0; i < tmcc_timeout; i++) {
    bbm_read(hDevice, 0x3026, &data);
    if (data & 0x02)
      break;
    msWait(10);
  }
  if (i == tmcc_timeout)
    return 1;
  bbm_read(hDevice, 0x4113, &data);
  bbm_read(hDevice, 0x4114, &data1);
  if (((data >> 3) & 0x1) == 0)
    return 1;
  lay0_mod = ((data & 0x10) >> 2) | ((data & 0x20) >> 4) | ((data & 0x40) >> 6);
  lay0_cr =
      ((data & 0x80) >> 5) | ((data1 & 0x01) << 1) | ((data1 & 0x02) >> 1);
  if (!((lay0_mod == 1) || (lay0_mod == 2)))
    return 1;
  if (((0x70 & data) == 0x40) && ((0x1c & data1) == 0x18))
    ts_err_free_timeout = 40;
  else
    ts_err_free_timeout = 65;
  for (i = 0; i < ts_err_free_timeout; i++) {
    bbm_read(hDevice, 0x5053, &data);
    if (data & 0x01)
      break;
    msWait(10);
  }
  if (i == ts_err_free_timeout)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<fc8150_scan_status>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x7,-0x14(%rbp)
movl   $0x10,-0x18(%rbp)
movl   $0xa,-0x1c(%rbp)
movl   $0x64,-0x20(%rbp)
movl   $0xc,-0x24(%rbp)
movl   $0x69,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    11bf <fc8150_scan_status+0x8f>
mov    -0x10(%rbp),%rdi
mov    $0x3025,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11a7 <fc8150_scan_status+0x77>
jmp    11bf <fc8150_scan_status+0x8f>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1174 <fc8150_scan_status+0x44>
mov    -0x38(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    11d7 <fc8150_scan_status+0xa7>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
mov    -0x10(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1030 <tuner_get_rssi@plt>
cmpl   $0xffffff95,-0x30(%rbp)
jge    11fa <fc8150_scan_status+0xca>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
jmp    11ff <fc8150_scan_status+0xcf>
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jae    124a <fc8150_scan_status+0x11a>
mov    -0x10(%rbp),%rdi
mov    $0x3025,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1232 <fc8150_scan_status+0x102>
jmp    124a <fc8150_scan_status+0x11a>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11ff <fc8150_scan_status+0xcf>
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    1262 <fc8150_scan_status+0x132>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
movzbl -0x31(%rbp),%ecx
and    $0x4,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
jne    127f <fc8150_scan_status+0x14f>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
jmp    1284 <fc8150_scan_status+0x154>
mov    -0x38(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    12cf <fc8150_scan_status+0x19f>
mov    -0x10(%rbp),%rdi
mov    $0x3026,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     12b7 <fc8150_scan_status+0x187>
jmp    12cf <fc8150_scan_status+0x19f>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1284 <fc8150_scan_status+0x154>
mov    -0x38(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jne    12e7 <fc8150_scan_status+0x1b7>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x20(%rbp),%eax
jae    1339 <fc8150_scan_status+0x209>
mov    -0x10(%rbp),%rdi
mov    $0x3026,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1321 <fc8150_scan_status+0x1f1>
jmp    1339 <fc8150_scan_status+0x209>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12ee <fc8150_scan_status+0x1be>
mov    -0x38(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    1351 <fc8150_scan_status+0x221>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x24(%rbp),%eax
jae    13a3 <fc8150_scan_status+0x273>
mov    -0x10(%rbp),%rdi
mov    $0x3025,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     138b <fc8150_scan_status+0x25b>
jmp    13a3 <fc8150_scan_status+0x273>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1358 <fc8150_scan_status+0x228>
mov    -0x38(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    13bb <fc8150_scan_status+0x28b>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
mov    -0x10(%rbp),%rdi
mov    $0x2023,%esi
lea    -0x32(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x32(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     13e9 <fc8150_scan_status+0x2b9>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x28(%rbp),%eax
jae    143b <fc8150_scan_status+0x30b>
mov    -0x10(%rbp),%rdi
mov    $0x3026,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1423 <fc8150_scan_status+0x2f3>
jmp    143b <fc8150_scan_status+0x30b>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13f0 <fc8150_scan_status+0x2c0>
mov    -0x38(%rbp),%eax
cmp    -0x28(%rbp),%eax
jne    1453 <fc8150_scan_status+0x323>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
mov    -0x10(%rbp),%rdi
mov    $0x4113,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
mov    -0x10(%rbp),%rdi
mov    $0x4114,%esi
lea    -0x32(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
sar    $0x3,%eax
and    $0x1,%eax
cmp    $0x0,%eax
jne    1496 <fc8150_scan_status+0x366>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
movzbl -0x31(%rbp),%eax
and    $0x10,%eax
sar    $0x2,%eax
movzbl -0x31(%rbp),%ecx
and    $0x20,%ecx
sar    $0x4,%ecx
or     %ecx,%eax
movzbl -0x31(%rbp),%ecx
and    $0x40,%ecx
sar    $0x6,%ecx
or     %ecx,%eax
mov    %al,-0x33(%rbp)
movzbl -0x31(%rbp),%eax
and    $0x80,%eax
sar    $0x5,%eax
movzbl -0x32(%rbp),%ecx
and    $0x1,%ecx
shl    $0x1,%ecx
or     %ecx,%eax
movzbl -0x32(%rbp),%ecx
and    $0x2,%ecx
sar    $0x1,%ecx
or     %ecx,%eax
mov    %al,-0x34(%rbp)
movzbl -0x33(%rbp),%eax
cmp    $0x1,%eax
je     1508 <fc8150_scan_status+0x3d8>
movzbl -0x33(%rbp),%eax
cmp    $0x2,%eax
je     1508 <fc8150_scan_status+0x3d8>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
movzbl -0x31(%rbp),%eax
and    $0x70,%eax
cmp    $0x40,%eax
jne    1534 <fc8150_scan_status+0x404>
movzbl -0x32(%rbp),%eax
and    $0x1c,%eax
cmp    $0x18,%eax
jne    1534 <fc8150_scan_status+0x404>
movl   $0x28,-0x2c(%rbp)
jmp    153b <fc8150_scan_status+0x40b>
movl   $0x41,-0x2c(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jae    158d <fc8150_scan_status+0x45d>
mov    -0x10(%rbp),%rdi
mov    $0x5053,%esi
lea    -0x31(%rbp),%rdx
call   1050 <bbm_read@plt>
movzbl -0x31(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1575 <fc8150_scan_status+0x445>
jmp    158d <fc8150_scan_status+0x45d>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1542 <fc8150_scan_status+0x412>
mov    -0x38(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    15a5 <fc8150_scan_status+0x475>
movl   $0x1,-0x4(%rbp)
jmp    15ac <fc8150_scan_status+0x47c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fc8150_scan_status>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r15
lea    0x2(%rsp),%rdx
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
xor    %ebx,%ebx
testb  $0x1,0x2(%rsp)
jne    1267 <fc8150_scan_status+0x137>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
mov    $0x1,%ebx
testb  $0x1,0x2(%rsp)
jne    1267 <fc8150_scan_status+0x137>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
mov    $0x2,%ebx
testb  $0x1,0x2(%rsp)
jne    1267 <fc8150_scan_status+0x137>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
mov    $0x3,%ebx
testb  $0x1,0x2(%rsp)
jne    1267 <fc8150_scan_status+0x137>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
mov    $0x4,%ebx
testb  $0x1,0x2(%rsp)
jne    1267 <fc8150_scan_status+0x137>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
mov    $0x5,%ebx
testb  $0x1,0x2(%rsp)
jne    1267 <fc8150_scan_status+0x137>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
mov    $0x6,%ebx
testb  $0x1,0x2(%rsp)
jne    1267 <fc8150_scan_status+0x137>
mov    $0xa,%edi
call   1040 <msWait@plt>
mov    $0x1,%r14d
jmp    1629 <fc8150_scan_status+0x4f9>
lea    0x4(%rsp),%rsi
mov    %r15,%rdi
call   1030 <tuner_get_rssi@plt>
mov    $0x1,%r14d
cmpl   $0xffffff95,0x4(%rsp)
jl     1629 <fc8150_scan_status+0x4f9>
lea    0x2(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    $0x3025,%esi
mov    %rbp,%rdx
call   1050 <bbm_read@plt>
movzbl 0x2(%rsp),%eax
test   $0x8,%al
jne    12c0 <fc8150_scan_status+0x190>
mov    $0xa,%edi
call   1040 <msWait@plt>
add    $0x1,%ebx
cmp    $0x10,%ebx
jne    1290 <fc8150_scan_status+0x160>
jmp    1629 <fc8150_scan_status+0x4f9>
test   $0x4,%al
je     1629 <fc8150_scan_status+0x4f9>
cmp    $0x9,%ebx
ja     130e <fc8150_scan_status+0x1de>
lea    0x2(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    $0x3026,%esi
mov    %rbp,%rdx
call   1050 <bbm_read@plt>
testb  $0x10,0x2(%rsp)
jne    130e <fc8150_scan_status+0x1de>
mov    $0xa,%edi
call   1040 <msWait@plt>
add    $0x1,%ebx
cmp    $0xa,%ebx
jne    12e0 <fc8150_scan_status+0x1b0>
jmp    1629 <fc8150_scan_status+0x4f9>
cmp    $0xa,%ebx
je     1629 <fc8150_scan_status+0x4f9>
mov    $0x64,%ebx
lea    0x2(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    $0x3026,%esi
mov    %rbp,%rdx
call   1050 <bbm_read@plt>
testb  $0x1,0x2(%rsp)
jne    135b <fc8150_scan_status+0x22b>
mov    $0xa,%edi
call   1040 <msWait@plt>
add    $0xffffffff,%ebx
jne    1330 <fc8150_scan_status+0x200>
jmp    1629 <fc8150_scan_status+0x4f9>
test   %ebx,%ebx
je     1629 <fc8150_scan_status+0x4f9>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x3025,%esi
call   1050 <bbm_read@plt>
testb  $0x40,0x2(%rsp)
jne    152c <fc8150_scan_status+0x3fc>
mov    $0xa,%edi
call   1040 <msWait@plt>
jmp    1629 <fc8150_scan_status+0x4f9>
lea    0x3(%rsp),%rdx
mov    %r15,%rdi
mov    $0x2023,%esi
call   1050 <bbm_read@plt>
testb  $0x1,0x3(%rsp)
jne    1629 <fc8150_scan_status+0x4f9>
mov    $0x69,%ebx
lea    0x2(%rsp),%rbp
mov    %r15,%rdi
mov    $0x3026,%esi
mov    %rbp,%rdx
call   1050 <bbm_read@plt>
testb  $0x2,0x2(%rsp)
jne    157e <fc8150_scan_status+0x44e>
mov    $0xa,%edi
call   1040 <msWait@plt>
add    $0xffffffff,%ebx
jne    1553 <fc8150_scan_status+0x423>
jmp    1629 <fc8150_scan_status+0x4f9>
lea    0x2(%rsp),%rdx
mov    %r15,%rdi
mov    $0x4113,%esi
call   1050 <bbm_read@plt>
lea    0x3(%rsp),%rdx
mov    %r15,%rdi
mov    $0x4114,%esi
call   1050 <bbm_read@plt>
movzbl 0x2(%rsp),%eax
test   $0x8,%al
je     1629 <fc8150_scan_status+0x4f9>
mov    %eax,%ecx
shr    $0x2,%cl
and    $0x4,%cl
mov    %eax,%edx
shr    $0x4,%dl
and    $0x2,%dl
or     %cl,%dl
mov    %eax,%ecx
shr    $0x6,%cl
and    $0x1,%cl
or     %dl,%cl
add    $0xff,%cl
cmp    $0x1,%cl
ja     1629 <fc8150_scan_status+0x4f9>
mov    0x3(%rsp),%cl
and    $0x70,%eax
and    $0x1c,%cl
cmp    $0x18,%cl
mov    $0x28,%ebp
mov    $0x41,%ecx
cmovne %ecx,%ebp
cmp    $0x40,%eax
cmovne %ecx,%ebp
xor    %ebx,%ebx
lea    0x2(%rsp),%r14
mov    %r15,%rdi
mov    $0x5053,%esi
mov    %r14,%rdx
call   1050 <bbm_read@plt>
testb  $0x1,0x2(%rsp)
jne    1620 <fc8150_scan_status+0x4f0>
mov    $0xa,%edi
call   1040 <msWait@plt>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    15f6 <fc8150_scan_status+0x4c6>
mov    %ebp,%ebx
xor    %r14d,%r14d
cmp    %ebp,%ebx
sete   %r14b
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @fc8150_scan_status(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
%16 = alloca i32
store i8* %0, i8** %3
store i32 7, i32* %4
store i32 16, i32* %5
store i32 10, i32* %6
store i32 100, i32* %7
store i32 12, i32* %8
store i32 105, i32* %9
store i32 0, i32* %10
store i32 0, i32* %16
br label %17
17: ; preds = %31, %1
%18 = load i32, i32* %16
%19 = load i32, i32* %4
%20 = icmp ult i32 %18, %19
br i1 %20, label %21, label %34
21: ; preds = %17
%22 = load i8*, i8** %3
%23 = call i32 @bbm_read(i8* %22, i32 12325, i8* %12)
%24 = load i8, i8* %12
%25 = zext i8 %24 to i32
%26 = and i32 %25, 1
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %21
br label %34
29: ; preds = %21
%30 = call i32 @msWait(i32 10)
br label %31
31: ; preds = %29
%32 = load i32, i32* %16
%33 = add nsw i32 %32, 1
store i32 %33, i32* %16
br label %17
34: ; preds = %28, %17
%35 = load i32, i32* %16
%36 = load i32, i32* %4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 1, i32* %2
br label %260
39: ; preds = %34
%40 = load i8*, i8** %3
%41 = call i32 @tuner_get_rssi(i8* %40, i32* %11)
%42 = load i32, i32* %11
%43 = icmp slt i32 %42, -107
br i1 %43, label %44, label %45
44: ; preds = %39
store i32 1, i32* %2
br label %260
45: ; preds = %39
br label %46
46: ; preds = %60, %45
%47 = load i32, i32* %16
%48 = load i32, i32* %5
%49 = icmp ult i32 %47, %48
br i1 %49, label %50, label %63
50: ; preds = %46
%51 = load i8*, i8** %3
%52 = call i32 @bbm_read(i8* %51, i32 12325, i8* %12)
%53 = load i8, i8* %12
%54 = zext i8 %53 to i32
%55 = and i32 %54, 8
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %50
br label %63
58: ; preds = %50
%59 = call i32 @msWait(i32 10)
br label %60
60: ; preds = %58
%61 = load i32, i32* %16
%62 = add nsw i32 %61, 1
store i32 %62, i32* %16
br label %46
63: ; preds = %57, %46
%64 = load i32, i32* %16
%65 = load i32, i32* %5
%66 = icmp eq i32 %64, %65
br i1 %66, label %67, label %68
67: ; preds = %63
store i32 1, i32* %2
br label %260
68: ; preds = %63
%69 = load i8, i8* %12
%70 = zext i8 %69 to i32
%71 = and i32 %70, 4
%72 = icmp eq i32 0, %71
br i1 %72, label %73, label %74
73: ; preds = %68
store i32 1, i32* %2
br label %260
74: ; preds = %68
br label %75
75: ; preds = %89, %74
%76 = load i32, i32* %16
%77 = load i32, i32* %6
%78 = icmp ult i32 %76, %77
br i1 %78, label %79, label %92
79: ; preds = %75
%80 = load i8*, i8** %3
%81 = call i32 @bbm_read(i8* %80, i32 12326, i8* %12)
%82 = load i8, i8* %12
%83 = zext i8 %82 to i32
%84 = and i32 %83, 16
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %79
br label %92
87: ; preds = %79
%88 = call i32 @msWait(i32 10)
br label %89
89: ; preds = %87
%90 = load i32, i32* %16
%91 = add nsw i32 %90, 1
store i32 %91, i32* %16
br label %75
92: ; preds = %86, %75
%93 = load i32, i32* %16
%94 = load i32, i32* %6
%95 = icmp eq i32 %93, %94
br i1 %95, label %96, label %97
96: ; preds = %92
store i32 1, i32* %2
br label %260
97: ; preds = %92
store i32 0, i32* %16
br label %98
98: ; preds = %112, %97
%99 = load i32, i32* %16
%100 = load i32, i32* %7
%101 = icmp ult i32 %99, %100
br i1 %101, label %102, label %115
102: ; preds = %98
%103 = load i8*, i8** %3
%104 = call i32 @bbm_read(i8* %103, i32 12326, i8* %12)
%105 = load i8, i8* %12
%106 = zext i8 %105 to i32
%107 = and i32 %106, 1
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %102
br label %115
110: ; preds = %102
%111 = call i32 @msWait(i32 10)
br label %112
112: ; preds = %110
%113 = load i32, i32* %16
%114 = add nsw i32 %113, 1
store i32 %114, i32* %16
br label %98
115: ; preds = %109, %98
%116 = load i32, i32* %16
%117 = load i32, i32* %7
%118 = icmp eq i32 %116, %117
br i1 %118, label %119, label %120
119: ; preds = %115
store i32 1, i32* %2
br label %260
120: ; preds = %115
store i32 0, i32* %16
br label %121
121: ; preds = %135, %120
%122 = load i32, i32* %16
%123 = load i32, i32* %8
%124 = icmp ult i32 %122, %123
br i1 %124, label %125, label %138
125: ; preds = %121
%126 = load i8*, i8** %3
%127 = call i32 @bbm_read(i8* %126, i32 12325, i8* %12)
%128 = load i8, i8* %12
%129 = zext i8 %128 to i32
%130 = and i32 %129, 64
%131 = icmp ne i32 %130, 0
br i1 %131, label %132, label %133
132: ; preds = %125
br label %138
133: ; preds = %125
%134 = call i32 @msWait(i32 10)
br label %135
135: ; preds = %133
%136 = load i32, i32* %16
%137 = add nsw i32 %136, 1
store i32 %137, i32* %16
br label %121
138: ; preds = %132, %121
%139 = load i32, i32* %16
%140 = load i32, i32* %8
%141 = icmp eq i32 %139, %140
br i1 %141, label %142, label %143
142: ; preds = %138
store i32 1, i32* %2
br label %260
143: ; preds = %138
%144 = load i8*, i8** %3
%145 = call i32 @bbm_read(i8* %144, i32 8227, i8* %13)
%146 = load i8, i8* %13
%147 = zext i8 %146 to i32
%148 = and i32 %147, 1
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %151
150: ; preds = %143
store i32 1, i32* %2
br label %260
151: ; preds = %143
store i32 0, i32* %16
br label %152
152: ; preds = %166, %151
%153 = load i32, i32* %16
%154 = load i32, i32* %9
%155 = icmp ult i32 %153, %154
br i1 %155, label %156, label %169
156: ; preds = %152
%157 = load i8*, i8** %3
%158 = call i32 @bbm_read(i8* %157, i32 12326, i8* %12)
%159 = load i8, i8* %12
%160 = zext i8 %159 to i32
%161 = and i32 %160, 2
%162 = icmp ne i32 %161, 0
br i1 %162, label %163, label %164
163: ; preds = %156
br label %169
164: ; preds = %156
%165 = call i32 @msWait(i32 10)
br label %166
166: ; preds = %164
%167 = load i32, i32* %16
%168 = add nsw i32 %167, 1
store i32 %168, i32* %16
br label %152
169: ; preds = %163, %152
%170 = load i32, i32* %16
%171 = load i32, i32* %9
%172 = icmp eq i32 %170, %171
br i1 %172, label %173, label %174
173: ; preds = %169
store i32 1, i32* %2
br label %260
174: ; preds = %169
%175 = load i8*, i8** %3
%176 = call i32 @bbm_read(i8* %175, i32 16659, i8* %12)
%177 = load i8*, i8** %3
%178 = call i32 @bbm_read(i8* %177, i32 16660, i8* %13)
%179 = load i8, i8* %12
%180 = zext i8 %179 to i32
%181 = ashr i32 %180, 3
%182 = and i32 %181, 1
%183 = icmp eq i32 %182, 0
br i1 %183, label %184, label %185
184: ; preds = %174
store i32 1, i32* %2
br label %260
185: ; preds = %174
%186 = load i8, i8* %12
%187 = zext i8 %186 to i32
%188 = and i32 %187, 16
%189 = ashr i32 %188, 2
%190 = load i8, i8* %12
%191 = zext i8 %190 to i32
%192 = and i32 %191, 32
%193 = ashr i32 %192, 4
%194 = or i32 %189, %193
%195 = load i8, i8* %12
%196 = zext i8 %195 to i32
%197 = and i32 %196, 64
%198 = ashr i32 %197, 6
%199 = or i32 %194, %198
%200 = trunc i32 %199 to i8
store i8 %200, i8* %14
%201 = load i8, i8* %12
%202 = zext i8 %201 to i32
%203 = and i32 %202, 128
%204 = ashr i32 %203, 5
%205 = load i8, i8* %13
%206 = zext i8 %205 to i32
%207 = and i32 %206, 1
%208 = shl i32 %207, 1
%209 = or i32 %204, %208
%210 = load i8, i8* %13
%211 = zext i8 %210 to i32
%212 = and i32 %211, 2
%213 = ashr i32 %212, 1
%214 = or i32 %209, %213
%215 = trunc i32 %214 to i8
store i8 %215, i8* %15
%216 = load i8, i8* %14
%217 = zext i8 %216 to i32
%218 = icmp eq i32 %217, 1
br i1 %218, label %224, label %219
219: ; preds = %185
%220 = load i8, i8* %14
%221 = zext i8 %220 to i32
%222 = icmp eq i32 %221, 2
br i1 %222, label %224, label %223
223: ; preds = %219
store i32 1, i32* %2
br label %260
224: ; preds = %219, %185
%225 = load i8, i8* %12
%226 = zext i8 %225 to i32
%227 = and i32 112, %226
%228 = icmp eq i32 %227, 64
br i1 %228, label %229, label %235
229: ; preds = %224
%230 = load i8, i8* %13
%231 = zext i8 %230 to i32
%232 = and i32 28, %231
%233 = icmp eq i32 %232, 24
br i1 %233, label %234, label %235
234: ; preds = %229
store i32 40, i32* %10
br label %236
235: ; preds = %229, %224
store i32 65, i32* %10
br label %236
236: ; preds = %235, %234
store i32 0, i32* %16
br label %237
237: ; preds = %251, %236
%238 = load i32, i32* %16
%239 = load i32, i32* %10
%240 = icmp ult i32 %238, %239
br i1 %240, label %241, label %254
241: ; preds = %237
%242 = load i8*, i8** %3
%243 = call i32 @bbm_read(i8* %242, i32 20563, i8* %12)
%244 = load i8, i8* %12
%245 = zext i8 %244 to i32
%246 = and i32 %245, 1
%247 = icmp ne i32 %246, 0
br i1 %247, label %248, label %249
248: ; preds = %241
br label %254
249: ; preds = %241
%250 = call i32 @msWait(i32 10)
br label %251
251: ; preds = %249
%252 = load i32, i32* %16
%253 = add nsw i32 %252, 1
store i32 %253, i32* %16
br label %237
254: ; preds = %248, %237
%255 = load i32, i32* %16
%256 = load i32, i32* %10
%257 = icmp eq i32 %255, %256
br i1 %257, label %258, label %259
258: ; preds = %254
store i32 1, i32* %2
br label %260
259: ; preds = %254
store i32 0, i32* %2
br label %260
260: ; preds = %259, %258, %223, %184, %173, %150, %142, %119, %96, %73, %67, %44, %38
%261 = load i32, i32* %2
ret i32 %261
}

LLVM IR (-O2):
define i32 @fc8150_scan_status(i8* %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
%5 = bitcast i32* %2 to i8*
%6 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%7 = load i8, i8* %3
%8 = and i8 %7, 1
%9 = icmp eq i8 %8, 0
br i1 %9, label %10, label %48
10: ; preds = %1
%11 = call i32 @msWait(i32 10)
%12 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%13 = load i8, i8* %3
%14 = and i8 %13, 1
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %48
16: ; preds = %10
%17 = call i32 @msWait(i32 10)
%18 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%19 = load i8, i8* %3
%20 = and i8 %19, 1
%21 = icmp eq i8 %20, 0
br i1 %21, label %22, label %48
22: ; preds = %16
%23 = call i32 @msWait(i32 10)
%24 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%25 = load i8, i8* %3
%26 = and i8 %25, 1
%27 = icmp eq i8 %26, 0
br i1 %27, label %28, label %48
28: ; preds = %22
%29 = call i32 @msWait(i32 10)
%30 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%31 = load i8, i8* %3
%32 = and i8 %31, 1
%33 = icmp eq i8 %32, 0
br i1 %33, label %34, label %48
34: ; preds = %28
%35 = call i32 @msWait(i32 10)
%36 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%37 = load i8, i8* %3
%38 = and i8 %37, 1
%39 = icmp eq i8 %38, 0
br i1 %39, label %40, label %48
40: ; preds = %34
%41 = call i32 @msWait(i32 10)
%42 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%43 = load i8, i8* %3
%44 = and i8 %43, 1
%45 = icmp eq i8 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = call i32 @msWait(i32 10)
br label %221
48: ; preds = %1, %10, %16, %22, %28, %34, %40
%49 = phi i32 [ 0, %1 ], [ 1, %10 ], [ 2, %16 ], [ 3, %22 ], [ 4, %28 ], [ 5, %34 ], [ 6, %40 ]
%50 = call i32 @tuner_get_rssi(i8* %0, i32* %2)
%51 = load i32, i32* %2
%52 = icmp slt i32 %51, -107
br i1 %52, label %221, label %53
53: ; preds = %48, %59
%54 = phi i32 [ %61, %59 ], [ %49, %48 ]
%55 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%56 = load i8, i8* %3
%57 = and i8 %56, 8
%58 = icmp eq i8 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %53
%60 = call i32 @msWait(i32 10)
%61 = add nuw nsw i32 %54, 1
%62 = icmp eq i32 %61, 16
br i1 %62, label %221, label %53
63: ; preds = %53
%64 = and i8 %56, 4
%65 = icmp eq i8 %64, 0
br i1 %65, label %221, label %66
66: ; preds = %63
%67 = icmp ult i32 %54, 10
br i1 %67, label %68, label %78
68: ; preds = %66, %74
%69 = phi i32 [ %76, %74 ], [ %54, %66 ]
%70 = call i32 @bbm_read(i8* %0, i32 12326, i8* %3)
%71 = load i8, i8* %3
%72 = and i8 %71, 16
%73 = icmp eq i8 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %68
%75 = call i32 @msWait(i32 10)
%76 = add nuw nsw i32 %69, 1
%77 = icmp eq i32 %76, 10
br i1 %77, label %221, label %68
78: ; preds = %68, %66
%79 = phi i32 [ %54, %66 ], [ %69, %68 ]
%80 = icmp eq i32 %79, 10
br i1 %80, label %221, label %81
81: ; preds = %78, %87
%82 = phi i32 [ %89, %87 ], [ 0, %78 ]
%83 = call i32 @bbm_read(i8* %0, i32 12326, i8* %3)
%84 = load i8, i8* %3
%85 = and i8 %84, 1
%86 = icmp eq i8 %85, 0
br i1 %86, label %87, label %91
87: ; preds = %81
%88 = call i32 @msWait(i32 10)
%89 = add nuw nsw i32 %82, 1
%90 = icmp eq i32 %89, 100
br i1 %90, label %221, label %81
91: ; preds = %81
%92 = icmp eq i32 %82, 100
br i1 %92, label %221, label %93
93: ; preds = %91
%94 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%95 = load i8, i8* %3
%96 = and i8 %95, 64
%97 = icmp eq i8 %96, 0
br i1 %97, label %98, label %166
98: ; preds = %93
%99 = call i32 @msWait(i32 10)
%100 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%101 = load i8, i8* %3
%102 = and i8 %101, 64
%103 = icmp eq i8 %102, 0
br i1 %103, label %104, label %166
104: ; preds = %98
%105 = call i32 @msWait(i32 10)
%106 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%107 = load i8, i8* %3
%108 = and i8 %107, 64
%109 = icmp eq i8 %108, 0
br i1 %109, label %110, label %166
110: ; preds = %104
%111 = call i32 @msWait(i32 10)
%112 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%113 = load i8, i8* %3
%114 = and i8 %113, 64
%115 = icmp eq i8 %114, 0
br i1 %115, label %116, label %166
116: ; preds = %110
%117 = call i32 @msWait(i32 10)
%118 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%119 = load i8, i8* %3
%120 = and i8 %119, 64
%121 = icmp eq i8 %120, 0
br i1 %121, label %122, label %166
122: ; preds = %116
%123 = call i32 @msWait(i32 10)
%124 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%125 = load i8, i8* %3
%126 = and i8 %125, 64
%127 = icmp eq i8 %126, 0
br i1 %127, label %128, label %166
128: ; preds = %122
%129 = call i32 @msWait(i32 10)
%130 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%131 = load i8, i8* %3
%132 = and i8 %131, 64
%133 = icmp eq i8 %132, 0
br i1 %133, label %134, label %166
134: ; preds = %128
%135 = call i32 @msWait(i32 10)
%136 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%137 = load i8, i8* %3
%138 = and i8 %137, 64
%139 = icmp eq i8 %138, 0
br i1 %139, label %140, label %166
140: ; preds = %134
%141 = call i32 @msWait(i32 10)
%142 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%143 = load i8, i8* %3
%144 = and i8 %143, 64
%145 = icmp eq i8 %144, 0
br i1 %145, label %146, label %166
146: ; preds = %140
%147 = call i32 @msWait(i32 10)
%148 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%149 = load i8, i8* %3
%150 = and i8 %149, 64
%151 = icmp eq i8 %150, 0
br i1 %151, label %152, label %166
152: ; preds = %146
%153 = call i32 @msWait(i32 10)
%154 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%155 = load i8, i8* %3
%156 = and i8 %155, 64
%157 = icmp eq i8 %156, 0
br i1 %157, label %158, label %166
158: ; preds = %152
%159 = call i32 @msWait(i32 10)
%160 = call i32 @bbm_read(i8* %0, i32 12325, i8* %3)
%161 = load i8, i8* %3
%162 = and i8 %161, 64
%163 = icmp eq i8 %162, 0
br i1 %163, label %164, label %166
164: ; preds = %158
%165 = call i32 @msWait(i32 10)
br label %221
166: ; preds = %93, %98, %104, %110, %116, %122, %128, %134, %140, %146, %152, %158
%167 = call i32 @bbm_read(i8* %0, i32 8227, i8* %4)
%168 = load i8, i8* %4
%169 = and i8 %168, 1
%170 = icmp eq i8 %169, 0
br i1 %170, label %171, label %221
171: ; preds = %166, %177
%172 = phi i32 [ %179, %177 ], [ 0, %166 ]
%173 = call i32 @bbm_read(i8* %0, i32 12326, i8* %3)
%174 = load i8, i8* %3
%175 = and i8 %174, 2
%176 = icmp eq i8 %175, 0
br i1 %176, label %177, label %181
177: ; preds = %171
%178 = call i32 @msWait(i32 10)
%179 = add nuw nsw i32 %172, 1
%180 = icmp eq i32 %179, 105
br i1 %180, label %221, label %171
181: ; preds = %171
%182 = call i32 @bbm_read(i8* %0, i32 16659, i8* %3)
%183 = call i32 @bbm_read(i8* %0, i32 16660, i8* %4)
%184 = load i8, i8* %3
%185 = zext i8 %184 to i32
%186 = and i32 %185, 8
%187 = icmp eq i32 %186, 0
br i1 %187, label %221, label %188
188: ; preds = %181
%189 = lshr i8 %184, 2
%190 = and i8 %189, 4
%191 = lshr i8 %184, 4
%192 = and i8 %191, 2
%193 = or i8 %190, %192
%194 = lshr i8 %184, 6
%195 = and i8 %194, 1
%196 = add nsw i8 %195, -1
%197 = add nsw i8 %196, %193
%198 = icmp ult i8 %197, 2
br i1 %198, label %199, label %221
199: ; preds = %188
%200 = load i8, i8* %4
%201 = and i32 %185, 112
%202 = icmp eq i32 %201, 64
%203 = and i8 %200, 28
%204 = icmp eq i8 %203, 24
%205 = select i1 %202, i1 %204, i1 false
%206 = select i1 %205, i32 40, i32 65
br label %207
207: ; preds = %199, %213
%208 = phi i32 [ 0, %199 ], [ %215, %213 ]
%209 = call i32 @bbm_read(i8* %0, i32 20563, i8* %3)
%210 = load i8, i8* %3
%211 = and i8 %210, 1
%212 = icmp eq i8 %211, 0
br i1 %212, label %213, label %217
213: ; preds = %207
%214 = call i32 @msWait(i32 10)
%215 = add nuw nsw i32 %208, 1
%216 = icmp eq i32 %215, %206
br i1 %216, label %217, label %207
217: ; preds = %207, %213
%218 = phi i32 [ %208, %207 ], [ %206, %213 ]
%219 = icmp eq i32 %218, %206
%220 = zext i1 %219 to i32
br label %221
221: ; preds = %59, %74, %87, %177, %164, %46, %217, %188, %181, %166, %91, %78, %63, %48
%222 = phi i32 [ 1, %46 ], [ 1, %48 ], [ 1, %63 ], [ 1, %78 ], [ 1, %91 ], [ 1, %164 ], [ 1, %166 ], [ 1, %181 ], [ 1, %188 ], [ %220, %217 ], [ 1, %177 ], [ 1, %87 ], [ 1, %74 ], [ 1, %59 ]
ret i32 %222
}