#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*/ ACS_BLOCK;
int /*<<< orphan*/ A_BOLD;
int /*<<< orphan*/ A_NORMAL;
int /*<<< orphan*/ COLOR_PAIR(int);
int /*<<< orphan*/ attroff(int /*<<< orphan*/);
int /*<<< orphan*/ attron(int /*<<< orphan*/);
scalar_t__ io_get_ind();
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ mvhline(int, int, int /*<<< orphan*/, int);
void vis_ind_cur(void) {
  attron(COLOR_PAIR(3));
  if (io_get_ind() == 0) {
    attron(A_NORMAL);
    mvhline(1, 43, ACS_BLOCK, 2);
  } else {
    attron(A_BOLD);
    mvhline(1, 43, ACS_BLOCK, 2);
  }
  attroff(COLOR_PAIR(3));
  move(12, 4);
}


x86 assembly (clang, -O0):
<vis_ind_cur>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1050 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1040 <attron@plt>
mov    $0x0,%al
call   1060 <io_get_ind@plt>
cmp    $0x0,%rax
jne    11b6 <vis_ind_cur+0x56>
mov    0x2e5b(%rip),%rax
mov    (%rax),%edi
call   1040 <attron@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
mov    $0x2b,%esi
mov    $0x2,%ecx
call   1070 <mvhline@plt>
jmp    11e1 <vis_ind_cur+0x81>
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
call   1040 <attron@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
mov    $0x2b,%esi
mov    $0x2,%ecx
call   1070 <mvhline@plt>
mov    $0x3,%edi
call   1050 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0xc,%edi
mov    $0x4,%esi
call   1080 <move@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<vis_ind_cur>:
push   %rax
mov    $0x3,%edi
call   1050 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1040 <attron@plt>
xor    %eax,%eax
call   1060 <io_get_ind@plt>
test   %rax,%rax
jne    1187 <vis_ind_cur+0x27>
mov    0x2e63(%rip),%rax
jmp    118e <vis_ind_cur+0x2e>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
call   1040 <attron@plt>
mov    0x2e3c(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
mov    $0x2b,%esi
mov    $0x2,%ecx
call   1070 <mvhline@plt>
mov    $0x3,%edi
call   1050 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0xc,%edi
mov    $0x4,%esi
pop    %rax
jmp    1080 <move@plt>

LLVM IR (-O0):
@A_NORMAL = global i32 0
@ACS_BLOCK = global i32 0
@A_BOLD = global i32 0
define void @vis_ind_cur() {
%1 = call i32 @COLOR_PAIR(i32 3)
%2 = call i32 @attron(i32 %1)
%3 = call i64 (...) @io_get_ind()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %0
%6 = load i32, i32* @A_NORMAL
%7 = call i32 @attron(i32 %6)
%8 = load i32, i32* @ACS_BLOCK
%9 = call i32 @mvhline(i32 1, i32 43, i32 %8, i32 2)
br label %15
10: ; preds = %0
%11 = load i32, i32* @A_BOLD
%12 = call i32 @attron(i32 %11)
%13 = load i32, i32* @ACS_BLOCK
%14 = call i32 @mvhline(i32 1, i32 43, i32 %13, i32 2)
br label %15
15: ; preds = %10, %5
%16 = call i32 @COLOR_PAIR(i32 3)
%17 = call i32 @attroff(i32 %16)
%18 = call i32 @move(i32 12, i32 4)
ret void
}

LLVM IR (-O2):
@A_NORMAL = global i32 0
@ACS_BLOCK = global i32 0
@A_BOLD = global i32 0
define void @vis_ind_cur() {
%1 = tail call i32 @COLOR_PAIR(i32 3)
%2 = tail call i32 @attron(i32 %1)
%3 = tail call i64 (...) @io_get_ind()
%4 = icmp eq i64 %3, 0
%5 = load i32, i32* @A_NORMAL
%6 = load i32, i32* @A_BOLD
%7 = select i1 %4, i32 %5, i32 %6
%8 = tail call i32 @attron(i32 %7)
%9 = load i32, i32* @ACS_BLOCK
%10 = tail call i32 @mvhline(i32 1, i32 43, i32 %9, i32 2)
%11 = tail call i32 @COLOR_PAIR(i32 3)
%12 = tail call i32 @attroff(i32 %11)
%13 = tail call i32 @move(i32 12, i32 4)
ret void
}