// File: /workspace/github_c_makefile_star2_O0/patriciogonzalezvivo[P]tprint/include/serial/unix.cc
// Function: serial::Serial::SerialImpl::setBreak(bool)
void
Serial::SerialImpl::setBreak (bool level)
{
  if (is_open_ == false) {
    throw PortNotOpenedException ("Serial::setBreak");
  }

  if (level) {
    if (-1 == ioctl (fd_, TIOCSBRK))
    {
        stringstream ss;
        ss << "setBreak failed on a call to ioctl(TIOCSBRK): " << errno << " " << strerror(errno);
        throw(SerialException(ss.str().c_str()));
    }
  } else {
    if (-1 == ioctl (fd_, TIOCCBRK))
    {
        stringstream ss;
        ss << "setBreak failed on a call to ioctl(TIOCCBRK): " << errno << " " << strerror(errno);
        throw(SerialException(ss.str().c_str()));
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3d0, %rsp            # imm = 0x3D0
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x388(%rbp)
movb 0x2c(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x167bb
movl $0x28, %edi
callq 0xd1e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x390(%rbp)
leaq 0x16d37(%rip), %rsi     # 0x2d4b4
callq 0x18610
jmp 0x16784
movq -0x390(%rbp), %rdi
leaq 0x1f53e(%rip), %rsi     # 0x35cd0
leaq 0x1fb7(%rip), %rdx      # 0x18750
callq 0xd720
movq -0x390(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0xd2c0
jmp 0x16aaf
testb $0x1, -0x9(%rbp)
je 0x1693a
movq -0x388(%rbp), %rax
movl 0x28(%rax), %edi
movl $0x5427, %esi           # imm = 0x5427
movb $0x0, %al
callq 0xd5e0
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %eax
jne 0x16935
leaq -0x1a8(%rbp), %rdi
callq 0xd2a0
leaq -0x198(%rbp), %rdi
leaq 0x16cc1(%rip), %rsi     # 0x2d4c5
callq 0xd3a0
movq %rax, -0x398(%rbp)
jmp 0x16812
callq 0xd060
movq -0x398(%rbp), %rdi
movl (%rax), %esi
callq 0xd740
movq %rax, -0x3a0(%rbp)
jmp 0x1682e
movq -0x3a0(%rbp), %rdi
leaq 0x16db7(%rip), %rsi     # 0x2d5f3
callq 0xd3a0
movq %rax, -0x3a8(%rbp)
jmp 0x1684a
callq 0xd060
movl (%rax), %edi
callq 0xd100
movq -0x3a8(%rbp), %rdi
movq %rax, %rsi
callq 0xd3a0
jmp 0x16867
movb $0x1, -0x1c9(%rbp)
movl $0x28, %edi
callq 0xd1e0
movq %rax, -0x3b0(%rbp)
leaq -0x1c8(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0xd390
jmp 0x16894
leaq -0x1c8(%rbp), %rdi
callq 0xd170
movq -0x3b0(%rbp), %rdi
movq %rax, %rsi
callq 0x17ff0
jmp 0x168b1
movq -0x3b0(%rbp), %rdi
movb $0x0, -0x1c9(%rbp)
leaq 0x1f3da(%rip), %rsi     # 0x35ca0
leaq 0x1863(%rip), %rdx      # 0x18130
callq 0xd720
jmp 0x16ab8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x16924
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x1690b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0xd240
testb $0x1, -0x1c9(%rbp)
jne 0x16916
jmp 0x16922
movq -0x3b0(%rbp), %rdi
callq 0xd2c0
jmp 0x16924
leaq -0x1a8(%rbp), %rdi
callq 0xd2e0
jmp 0x16aaf
jmp 0x16aa6
movq -0x388(%rbp), %rax
movl 0x28(%rax), %edi
movl $0x5428, %esi           # imm = 0x5428
movb $0x0, %al
callq 0xd5e0
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %eax
jne 0x16aa4
leaq -0x358(%rbp), %rdi
callq 0xd2a0
leaq -0x348(%rbp), %rdi
leaq 0x16b7b(%rip), %rsi     # 0x2d4f4
callq 0xd3a0
movq %rax, -0x3b8(%rbp)
jmp 0x16987
callq 0xd060
movq -0x3b8(%rbp), %rdi
movl (%rax), %esi
callq 0xd740
movq %rax, -0x3c0(%rbp)
jmp 0x169a3
movq -0x3c0(%rbp), %rdi
leaq 0x16c42(%rip), %rsi     # 0x2d5f3
callq 0xd3a0
movq %rax, -0x3c8(%rbp)
jmp 0x169bf
callq 0xd060
movl (%rax), %edi
callq 0xd100
movq -0x3c8(%rbp), %rdi
movq %rax, %rsi
callq 0xd3a0
jmp 0x169dc
movb $0x1, -0x379(%rbp)
movl $0x28, %edi
callq 0xd1e0
movq %rax, -0x3d0(%rbp)
leaq -0x378(%rbp), %rdi
leaq -0x358(%rbp), %rsi
callq 0xd390
jmp 0x16a09
leaq -0x378(%rbp), %rdi
callq 0xd170
movq -0x3d0(%rbp), %rdi
movq %rax, %rsi
callq 0x17ff0
jmp 0x16a26
movq -0x3d0(%rbp), %rdi
movb $0x0, -0x379(%rbp)
leaq 0x1f265(%rip), %rsi     # 0x35ca0
leaq 0x16ee(%rip), %rdx      # 0x18130
callq 0xd720
jmp 0x16ab8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x16a96
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x16a7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x378(%rbp), %rdi
callq 0xd240
testb $0x1, -0x379(%rbp)
jne 0x16a88
jmp 0x16a94
movq -0x3d0(%rbp), %rdi
callq 0xd2c0
jmp 0x16a96
leaq -0x358(%rbp), %rdi
callq 0xd2e0
jmp 0x16aaf
jmp 0x16aa6
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0xd750
nopl (%rax,%rax)