// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
cmpb $0x0, 0x2c(%rdi)
je 0xd0a8
movl 0x28(%rdi), %edi
testb %sil, %sil
je 0xd089
movl $0x5427, %esi           # imm = 0x5427
xorl %eax, %eax
callq 0x8470
cmpl $-0x1, %eax
jne 0xd09a
leaq -0x1c0(%rbp), %rdi
callq 0x8220
leaq -0x1b0(%rbp), %r14
leaq 0x1352f(%rip), %rsi     # 0x20526
movl $0x2e, %edx
movq %r14, %rdi
callq 0x83b0
callq 0x8060
movq %rax, %rbx
movl (%rax), %esi
movq %r14, %rdi
callq 0x85c0
movq %rax, %r14
leaq 0x13634(%rip), %rsi     # 0x20654
movl $0x1, %edx
movq %rax, %rdi
callq 0x83b0
movl (%rbx), %edi
callq 0x8110
movq %r14, %rdi
movq %rax, %rsi
callq 0x82e0
movl $0x28, %edi
callq 0x8190
movq %rax, %r14
leaq -0x1a8(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x8550
movb $0x1, %r15b
movq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0xe0e2
xorl %r15d, %r15d
leaq 0x19c13(%rip), %rsi     # 0x26c88
leaq 0x11ce(%rip), %rdx      # 0xe24a
movq %r14, %rdi
callq 0x85b0
jmp 0xd181
movl $0x5428, %esi           # imm = 0x5428
xorl %eax, %eax
callq 0x8470
cmpl $-0x1, %eax
je 0xd0da
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x8190
movq %rax, %r14
leaq 0x13459(%rip), %rsi     # 0x20515
movq %rax, %rdi
callq 0xe70c
leaq 0x19bed(%rip), %rsi     # 0x26cb8
leaq 0x17a2(%rip), %rdx      # 0xe874
movq %r14, %rdi
callq 0x85b0
leaq -0x1c0(%rbp), %rdi
callq 0x8220
leaq -0x1b0(%rbp), %r14
leaq 0x13461(%rip), %rsi     # 0x20555
movl $0x2e, %edx
movq %r14, %rdi
callq 0x83b0
callq 0x8060
movq %rax, %rbx
movl (%rax), %esi
movq %r14, %rdi
callq 0x85c0
movq %rax, %r14
leaq 0x13537(%rip), %rsi     # 0x20654
movl $0x1, %edx
movq %rax, %rdi
callq 0x83b0
movl (%rbx), %edi
callq 0x8110
movq %r14, %rdi
movq %rax, %rsi
callq 0x82e0
movl $0x28, %edi
callq 0x8190
movq %rax, %r14
leaq -0x1a8(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x8550
movb $0x1, %r15b
movq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0xe0e2
xorl %r15d, %r15d
leaq 0x19b16(%rip), %rsi     # 0x26c88
leaq 0x10d1(%rip), %rdx      # 0xe24a
movq %r14, %rdi
callq 0x85b0
jmp 0xd183
movq %rax, %rbx
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd19f
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x8310
testb %r15b, %r15b
jne 0xd1ab
jmp 0xd1ba
jmp 0xd1a8
movq %rax, %rbx
movq %r14, %rdi
callq 0x8240
jmp 0xd1ba
jmp 0xd1b7
movq %rax, %rbx
movq 0x19ddf(%rip), %rsi     # 0x26fa0
leaq -0x1c0(%rbp), %rdi
callq 0x8260
leaq -0x140(%rbp), %rdi
callq 0x8100
jmp 0xd1e6
movq %rax, %rbx
movq %r14, %rdi
callq 0x8240
movq %rbx, %rdi
callq 0x85f0