// File: /workspace/github_c_makefile_star2_O0/madler[P]pigz/pigz.c
// Function: outb_write
local void outb_write(void *dummy) {
    size_t len;
    ball_t err;                     // error information from throw()

    (void)dummy;

    Trace(("-- launched decompress write thread"));
    try {
        do {
            possess(outb_write_more);
            wait_for(outb_write_more, TO_BE, 1);
            len = out_len;
            if (len && g.decode == 1)
                writen(g.outd, out_copy, len);
            Trace(("-- decompress wrote %lu bytes", len));
            twist(outb_write_more, TO, 0);
        } while (len);
    }
    catch (err) {
        THREADABORT(err);
    }
    Trace(("-- exited decompress write thread"));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movl $0x1, -0x114(%rbp)
movl $0x0, -0x48(%rbp)
movl $0x0, -0x44(%rbp)
movl $0x0, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
callq 0x12220
leaq 0x356b2(%rip), %rax     # 0x43ab4
movl (%rax), %edi
callq 0x3110
movq %rax, -0x30(%rbp)
leaq 0x356a0(%rip), %rax     # 0x43ab4
movl (%rax), %edi
leaq -0x110(%rbp), %rsi
callq 0x35f0
movl %eax, -0x118(%rbp)
cmpl $0x0, -0x118(%rbp)
jne 0xe43b
movb $0x1, %al
testb $0x1, %al
jne 0xe439
jmp 0xe43b
jmp 0xe45a
leaq 0xddd8(%rip), %rdi      # 0x1c21a
leaq 0xde01(%rip), %rsi      # 0x1c24a
movl $0xd17, %edx            # imm = 0xD17
leaq 0xf36d(%rip), %rcx      # 0x1d7c2
callq 0x3220
jmp 0xe45c
leaq -0x110(%rbp), %rdi
callq 0x32f0
cmpl $0x0, %eax
jne 0xe50c
jmp 0xe473
jmp 0xe475
movq 0x2d4c4(%rip), %rdi     # 0x3b940
leaq 0xddc7(%rip), %rsi      # 0x1c24a
movl $0xd19, %edx            # imm = 0xD19
callq 0x11900
movq 0x2d4ac(%rip), %rdi     # 0x3b940
xorl %esi, %esi
movl $0x1, %edx
leaq 0xdda8(%rip), %rcx      # 0x1c24a
movl $0xd1a, %r8d            # imm = 0xD1A
callq 0x11a50
movq 0x2d49c(%rip), %rax     # 0x3b950
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xe4de
cmpl $0x1, 0x15342(%rip)     # 0x23808
jne 0xe4de
movl 0x152c6(%rip), %edi     # 0x23794
movq -0x10(%rbp), %rdx
leaq 0x2d487(%rip), %rsi     # 0x3b960
callq 0xe2c0
movq 0x2d45b(%rip), %rdi     # 0x3b940
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0xdd58(%rip), %rcx      # 0x1c24a
movl $0xd1f, %r8d            # imm = 0xD1F
callq 0x119a0
cmpq $0x0, -0x10(%rbp)
jne 0xe475
jmp 0xe50a
jmp 0xe50c
movl -0x114(%rbp), %eax
cmpl $0x0, %eax
je 0xe56f
jmp 0xe519
leaq 0x35594(%rip), %rax     # 0x43ab4
movl (%rax), %edi
movq -0x30(%rbp), %rsi
callq 0x35f0
movl %eax, -0x11c(%rbp)
cmpl $0x0, -0x11c(%rbp)
jne 0xe544
movb $0x1, %al
testb $0x1, %al
jne 0xe542
jmp 0xe544
jmp 0xe563
leaq 0xdccf(%rip), %rdi      # 0x1c21a
leaq 0xdcf8(%rip), %rsi      # 0x1c24a
movl $0xd22, %edx            # imm = 0xD22
leaq 0xf264(%rip), %rcx      # 0x1d7c2
callq 0x3220
jmp 0xe565
movl $0x0, -0x114(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0xe5d5
jmp 0xe58f
cmpl $0x20, -0x24(%rbp)
je 0xe5a7
movq -0x18(%rbp), %rsi
leaq 0xddb6(%rip), %rdi      # 0x1c356
movb $0x0, %al
callq 0x49e0
jmp 0xe5a9
cmpl $0x0, -0x20(%rbp)
je 0xe5c7
movq -0x18(%rbp), %rdi
callq 0x3050
movl $0x0, -0x20(%rbp)
movq $0x0, -0x18(%rbp)
jmp 0xe5c9
xorl %edi, %edi
subl -0x24(%rbp), %edi
callq 0x3f20
jmp 0xe5d5
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nop