// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/src/fmtutil-lzw.c
// Function: my_lzw_codec_addbuf
static void my_lzw_codec_addbuf(struct de_dfilter_ctx *dfctx,
	const u8 *buf, i64 buf_len)
{
	delzwctx *dc = (delzwctx*)dfctx->codec_private;

	if(!dc) return;
	delzw_addbuf(dc, buf, buf_len);
	if(dc->state == DELZW_STATE_FINISHED) {
		dfctx->finished_flag = 1;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq 0x28(%rdi), %r14
testq %r14, %r14
je 0xf70b1
movq %rdx, %r15
cmpl $0x3, 0x10(%r14)
jl 0xf660a
leaq 0x48164(%rip), %rdx     # 0x13e75e
pushq $0x3
popq %rsi
movq %r14, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0xf7516
xorl %eax, %eax
testq %r15, %r15
cmovleq %rax, %r15
leaq 0xb8(%r14), %r13
xorl %ebp, %ebp
cmpq %r15, %rbp
je 0xf70a1
cmpl $0x0, 0x60(%r14)
jne 0xf70a1
movl 0x64(%r14), %ecx
cmpl $0x3, %ecx
je 0xf70a8
movb 0x31(%r14), %al
testb %al, %al
je 0xf6653
movq 0x70(%r14), %rdx
cmpq 0x38(%r14), %rdx
jge 0xf7092
movq 0x10(%rsp), %rdx
movb (%rdx,%rbp), %r12b
cmpl $0x2, %ecx
je 0xf6c96
cmpl $0x1, %ecx
je 0xf6709
testl %ecx, %ecx
jne 0xf6cac
movl 0x14(%r14), %ecx
leal -0x1(%rcx), %edx
cmpl $0xb, %edx
ja 0xf66a4
cmpl $0x1, %ecx
jne 0xf6701
movl 0x1c(%r14), %ecx
testb $0x1, %cl
jne 0xf66cb
movb $0x1, 0x41(%r14)
testb $0x2, %cl
jne 0xf66dd
movl 0x24(%r14), %edx
movl %edx, 0x48(%r14)
jmp 0xf66ed
movq %r14, %rdi
pushq $0x9
popq %rsi
leaq 0x480c9(%rip), %rdx     # 0x13e77a
callq 0xf75d3
cmpl $0x0, 0x60(%r14)
movl $0x1, 0x64(%r14)
jne 0xf6cac
jmp 0xf6709
movl $0x1, 0x2c(%r14)
movq $0x3, 0x50(%r14)
jmp 0xf66ed
movl $0x2, 0x2c(%r14)
movq $0x1, 0x50(%r14)
testb %al, %al
setne %al
testb $0x4, %cl
sete %cl
orb %al, %cl
jne 0xf6701
movb $0x1, 0x30(%r14)
movl $0x1, 0x64(%r14)
movq 0x50(%r14), %rax
movq 0x68(%r14), %rcx
cmpq %rax, %rcx
jge 0xf6723
movb %r12b, 0xe0(%r14,%rcx)
jmp 0xf6cac
testq %rax, %rax
je 0xf6887
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x48070(%rip), %rdx     # 0x13e7a9
xorl %eax, %eax
callq 0xf7516
movl 0x2c(%r14), %eax
cmpl $0x2, %eax
je 0xf67af
cmpl $0x1, %eax
jne 0xf67ee
cmpb $0x1f, 0xe0(%r14)
jne 0xf67d8
cmpb $-0x63, 0xe1(%r14)
jne 0xf67d8
movzbl 0xe2(%r14), %ecx
movb %cl, 0x5c(%r14)
movl %ecx, %r8d
andl $0x1f, %r8d
movb %r8b, 0x5d(%r14)
movl %ecx, %r9d
shrl $0x7, %r9d
movb %r9b, 0x5e(%r14)
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x48080(%rip), %rdx     # 0x13e815
xorl %eax, %eax
callq 0xf7516
movzbl 0x5d(%r14), %eax
movl %eax, 0x48(%r14)
movb 0x5e(%r14), %al
movb %al, 0x41(%r14)
jmp 0xf67ea
movzbl 0xe0(%r14), %ecx
andl $0x1f, %ecx
movb %cl, 0x5d(%r14)
movl %ecx, 0x48(%r14)
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x48070(%rip), %rdx     # 0x13e83f
xorl %eax, %eax
callq 0xf7516
jmp 0xf67ea
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x48019(%rip), %rdx     # 0x13e7fe
callq 0xf75d3
movl 0x2c(%r14), %eax
movq (%r14), %rbx
cmpl $0x2, %eax
je 0xf6871
cmpl $0x1, %eax
jne 0xf6887
movzbl 0x5c(%r14), %edx
movq %rbx, %rdi
leaq 0x48043(%rip), %rsi     # 0x13e851
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movzbl 0x5d(%r14), %edx
movq %rbx, %rdi
leaq 0x4809d(%rip), %rsi     # 0x13e8cc
xorl %eax, %eax
callq 0xde896
movzbl 0x5e(%r14), %edx
movq %rbx, %rdi
leaq 0x4801d(%rip), %rsi     # 0x13e862
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0x5e(%r14)
jne 0xf6864
movq %rbx, %rdi
leaq 0x48013(%rip), %rsi     # 0x13e870
xorl %eax, %eax
callq 0xdf05a
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
jmp 0xf6887
movzbl 0x5d(%r14), %edx
movq %rbx, %rdi
leaq 0x48048(%rip), %rsi     # 0x13e8c8
xorl %eax, %eax
callq 0xde896
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x47f27(%rip), %rdx     # 0x13e7bb
xorl %eax, %eax
callq 0xf7516
movl 0x14(%r14), %eax
decl %eax
cmpl $0xb, %eax
ja 0xf6946
leaq 0x47db3(%rip), %rdx     # 0x13e664
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
pushq $0xe
popq %rax
jmpq *%rcx
movw $0x101, 0x58(%r14)      # imm = 0x101
movb $0x1, 0x40(%r14)
jmp 0xf6960
movb $0x1, %al
movb %al, 0x58(%r14)
movb %al, 0x40(%r14)
pushq $0xd
jmp 0xf6970
movb $0x1, 0x58(%r14)
pushq $0xa
jmp 0xf6970
movb $0x1, %al
movb %al, 0x58(%r14)
movb %al, 0x40(%r14)
movl 0x20(%r14), %ecx
incl %ecx
movl %ecx, 0x44(%r14)
movl $0xc, 0x48(%r14)
xorl %eax, %eax
jmp 0xf6975
movb $0x1, %al
movb %al, 0x58(%r14)
movb %al, 0x5a(%r14)
movl $0xd, 0x48(%r14)
jmp 0xf6946
movb $0x1, 0x5b(%r14)
movabsq $0xc0000000c, %rax      # imm = 0xC0000000C
movq %rax, 0x44(%r14)
pushq $0xc
popq %rax
movl %eax, %r8d
movl %eax, %ecx
jmp 0xf69a9
movb $0x1, %al
movb %al, 0x58(%r14)
movb %al, 0x40(%r14)
xorl %eax, %eax
jmp 0xf6971
movb $0x1, %al
movb %al, 0x58(%r14)
movb %al, 0x40(%r14)
jmp 0xf6960
movb $0x1, %al
movb %al, 0x40(%r14)
movb %al, 0x59(%r14)
pushq $0xc
jmp 0xf6970
movb $0x1, %al
movb %al, 0x59(%r14)
movb %al, 0x40(%r14)
pushq $0xe
popq %rax
movl 0x44(%r14), %ecx
testl %ecx, %ecx
jne 0xf6984
movl $0x9, 0x44(%r14)
pushq $0x9
popq %rcx
movl 0x48(%r14), %r8d
testl %r8d, %r8d
jne 0xf699d
movl 0x24(%r14), %edx
testl %edx, %edx
cmovnel %edx, %eax
movl %eax, 0x48(%r14)
movl %eax, %r8d
leal -0x11(%rcx), %eax
cmpl $-0xe, %eax
jb 0xf6a84
cmpl %r8d, %ecx
ja 0xf6a84
leal -0x11(%r8), %eax
cmpl $-0xf, %eax
jbe 0xf6a84
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x47e1c(%rip), %rdx     # 0x13e7e8
xorl %eax, %eax
callq 0xf7516
movl 0x44(%r14), %eax
movl %eax, 0x90(%r14)
movb 0x48(%r14), %cl
pushq $0x1
popq %rsi
shlq %cl, %rsi
movl %esi, 0xc8(%r14)
movq (%r14), %rdi
pushq $0x6
popq %rdx
callq 0xdf66f
movq %rax, 0xd0(%r14)
cmpb $0x0, 0x5b(%r14)
je 0xf6a21
movq (%r14), %rdi
movl 0xc8(%r14), %esi
pushq $0x2
popq %rdx
callq 0xdf66f
movq %rax, 0xd8(%r14)
movl 0xc8(%r14), %esi
movq %rsi, 0xe8(%r14)
movq (%r14), %rdi
callq 0xdecaf
movq %rax, 0xf0(%r14)
movl 0x14(%r14), %eax
decl %eax
cmpl $0xb, %eax
ja 0xf6bbb
leaq 0x47c40(%rip), %rcx     # 0x13e694
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0xf76df
movq 0xd0(%r14), %rax
movb $0x8, 0x603(%rax)
movb $0x9, 0x609(%rax)
movl $0x102, %eax            # imm = 0x102
jmp 0xf6bb4
movq %r14, %rdi
pushq $0x9
popq %rsi
leaq 0x47d39(%rip), %rdx     # 0x13e7ca
xorl %eax, %eax
callq 0xf7625
jmp 0xf6c87
movq %r14, %rdi
callq 0xf76df
jmp 0xf6ae9
movq %r14, %rdi
callq 0xf76df
jmp 0xf6afc
movq %r14, %rdi
callq 0xf76df
movq 0xd0(%r14), %rax
movb $0x0, 0x603(%rax)
movb $0xa, 0x609(%rax)
movb $0x9, 0x60f(%rax)
jmp 0xf6baf
movq %r14, %rdi
callq 0xf76df
cmpb $0x0, 0x41(%r14)
je 0xf6afc
movq 0xd0(%r14), %rax
movb $0x8, 0x603(%rax)
jmp 0xf6b84
movl $0x100, %eax            # imm = 0x100
jmp 0xf6bb4
movq %r14, %rdi
callq 0xf76df
movq 0xd0(%r14), %rax
movb $0xf, 0x603(%rax)
jmp 0xf6b84
movb 0x20(%r14), %cl
pushq $0x1
popq %rax
shlq %cl, %rax
movq 0xd0(%r14), %rcx
leaq 0x3(%rcx), %rdx
xorl %esi, %esi
cmpq %rsi, %rax
je 0xf6b54
movl $0x100, %edi            # imm = 0x100
cmpl %edi, %esi
cmovbl %esi, %edi
movb $0x1, (%rdx)
movb %dil, -0x1(%rdx)
incq %rsi
addq $0x6, %rdx
jmp 0xf6b35
imulq $0x6, %rax, %rdx
movb $0x8, 0x3(%rcx,%rdx)
leal 0x1(%rax), %edx
imulq $0x6, %rdx, %rdx
movb $0x9, 0x3(%rcx,%rdx)
addl $0x2, %eax
jmp 0xf6bb4
movq %r14, %rdi
callq 0xf76df
movq 0xd0(%r14), %rax
movb $0x0, 0x603(%rax)
movl $0x101, %eax            # imm = 0x101
jmp 0xf6bb4
movq %r14, %rdi
callq 0xf76df
movq 0xd0(%r14), %rax
movb $0x9, 0x603(%rax)
movb $0xa, 0x609(%rax)
movb $0x8, 0x60f(%rax)
movl $0x103, %eax            # imm = 0x103
movl %eax, 0xac(%r14)
movb 0x5b(%r14), %al
movl 0xc8(%r14), %ecx
testb %al, %al
je 0xf6be2
xorl %edx, %edx
cmpq %rdx, %rcx
je 0xf6be2
movq 0xd8(%r14), %rsi
orw $-0x1, (%rsi,%rdx,2)
incq %rdx
jmp 0xf6bcc
movl 0xac(%r14), %edx
imulq $0x6, %rdx, %rsi
addq $0x3, %rsi
movq %rdx, %rdi
cmpq %rcx, %rdi
jae 0xf6c0e
movq 0xd0(%r14), %r8
movb $0x2, (%r8,%rsi)
incq %rdi
addq $0x6, %rsi
jmp 0xf6bf4
movl %edx, 0xa8(%r14)
testb %al, %al
je 0xf6c74
cmpb $0x0, 0x28(%r14)
je 0xf6c32
movq 0xd0(%r14), %rax
movb $0x9, 0x3(%rax)
incl 0xcc(%r14)
xorl %ebx, %ebx
cmpl $0x100, %ebx            # imm = 0x100
je 0xf6c74
movzbl %bl, %edx
movq %r14, %rdi
movl $0xffff, %esi           # imm = 0xFFFF
callq 0xf7705
cmpl $0x0, 0x60(%r14)
jne 0xf6c70
movq 0xd0(%r14), %rcx
cltq
imulq $0x6, %rax, %rax
movb %bl, 0x2(%rcx,%rax)
movb $0x1, 0x3(%rcx,%rax)
incl 0xcc(%r14)
incl %ebx
jmp 0xf6c34
movb 0x58(%r14), %al
movb %al, 0xb8(%r14)
movq %r13, %rdi
callq 0xe6a40
movl $0x2, 0x64(%r14)
cmpl $0x0, 0x60(%r14)
jne 0xf6cac
movq 0x80(%r14), %rax
testq %rax, %rax
jle 0xf6cb8
decq %rax
movq %rax, 0x80(%r14)
incq 0x68(%r14)
incq %rbp
jmp 0xf661c
movzbl %r12b, %esi
movq %r13, %rdi
callq 0xe69c4
cmpl $0x0, 0x60(%r14)
jne 0xf6cac
cmpb $0x0, 0xb0(%r14)
je 0xf6cdf
cmpl $0x8, 0x14(%r14)
pushq $0x3
popq %rsi
je 0xf6ce6
movl 0x90(%r14), %esi
cmpl %esi, 0xbc(%r14)
jb 0xf6cac
movq %r13, %rdi
callq 0xe69f9
incq 0x78(%r14)
movq %rax, %rbx
cmpl $0x3, 0x10(%r14)
jl 0xf6d61
cmpb $0x0, 0xb0(%r14)
leaq 0x24c0e(%rip), %rcx     # 0x11b922
leaq 0x40f45(%rip), %rax     # 0x137c60
cmoveq %rax, %rcx
movl 0x98(%r14), %r9d
movl 0x9c(%r14), %r10d
movzbl 0xa0(%r14), %r11d
movl 0xa8(%r14), %r12d
subq $0x8, %rsp
movq %r14, %rdi
pushq $0x3
popq %rsi
leaq 0x47b8b(%rip), %rdx     # 0x13e8d8
movl %ebx, %r8d
xorl %eax, %eax
pushq %r12
pushq %r11
pushq %r10
callq 0xf7516
addq $0x20, %rsp
cmpb $0x0, 0xb0(%r14)
je 0xf6db0
movb $0x0, 0xb0(%r14)
movl 0x14(%r14), %eax
cmpl $0x3, %eax
jne 0xf6e58
cmpl $0x2, %ebx
je 0xf6e98
cmpl $0x1, %ebx
jne 0xf6e86
movl 0x90(%r14), %eax
cmpl 0x48(%r14), %eax
jae 0xf6e86
movq %r14, %rdi
callq 0xf779b
jmp 0xf702d
cmpl %ebx, 0xc8(%r14)
jbe 0xf702d
movq 0xd0(%r14), %rax
movl %ebx, %ecx
imulq $0x6, %rcx, %r12
movzbl 0x3(%rax,%r12), %eax
leal -0x1(%rax), %ecx
cmpl $0xe, %ecx
ja 0xf6f6b
leaq 0x478e1(%rip), %rdx     # 0x13e6c4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x0, 0x94(%r14)
je 0xf6f3a
decb %al
testb $-0x3, %al
je 0xf6fc1
movl 0xa8(%r14), %r8d
cmpl %ebx, %r8d
jae 0xf6e22
cmpb $0x0, 0x5a(%r14)
jne 0xf6e22
cmpb $0x0, 0x5b(%r14)
je 0xf704b
movl 0x98(%r14), %esi
movzbl 0xa0(%r14), %edx
movq %r14, %rdi
callq 0xf7ad4
cmpl $0x0, 0x60(%r14)
jne 0xf6ff0
movl 0x9c(%r14), %esi
movq %r14, %rdi
callq 0xf7936
jmp 0xf6fe9
cmpl $0x8, %eax
setne %al
testl %ebx, %ebx
sete %cl
orb %al, %cl
jne 0xf702d
movq %r14, %rdi
pushq $0x9
popq %rsi
leaq 0x47a85(%rip), %rdx     # 0x13e8fd
movl %ebx, %ecx
xorl %eax, %eax
callq 0xf7625
jmp 0xf702d
movq %r14, %rdi
pushq $0x2
popq %rsi
xorl %edx, %edx
callq 0xf75d3
jmp 0xf702d
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x47ac1(%rip), %rdx     # 0x13e966
xorl %eax, %eax
callq 0xf7516
movl 0xa4(%r14), %eax
movl 0xac(%r14), %ebx
movl %ebx, %ecx
cmpl %eax, %ecx
ja 0xf6f23
movq 0xd0(%r14), %rdx
movl %ecx, %esi
imulq $0x6, %rsi, %rsi
cmpb $0x3, 0x3(%rdx,%rsi)
jne 0xf6eec
addq %rdx, %rsi
movzwl (%rsi), %esi
cmpq $0x101, %rsi            # imm = 0x101
jb 0xf6eec
imulq $0x6, %rsi, %rsi
movb $0x1, 0x4(%rdx,%rsi)
incl %ecx
jmp 0xf6ebc
movq 0xd0(%r14), %rcx
movl %ebx, %edx
imulq $0x6, %rdx, %rdx
cmpb $0x0, 0x4(%rcx,%rdx)
je 0xf6f10
addq %rdx, %rcx
addq $0x4, %rcx
movb $0x0, (%rcx)
jmp 0xf6f21
movq %r14, %rdi
movl %ebx, %esi
callq 0xf7911
movl 0xa4(%r14), %eax
incl %ebx
cmpl %eax, %ebx
jbe 0xf6ef0
movl 0xac(%r14), %eax
movl %eax, 0xa8(%r14)
jmp 0xf702d
movq %r14, %rdi
movl %ebx, %esi
callq 0xf7936
movl %ebx, 0x98(%r14)
movb $0x1, 0x94(%r14)
movq 0xd0(%r14), %rax
movb 0x2(%rax,%r12), %al
movb %al, 0xa0(%r14)
jmp 0xf6ff0
movq %r14, %rdi
pushq $0x9
popq %rsi
leaq 0x479a2(%rip), %rdx     # 0x13e91a
movl %ebx, %ecx
xorl %eax, %eax
callq 0xf7625
jmp 0xf6ff0
movq %r14, %rdi
callq 0xf779b
jmp 0xf6ff0
cmpl $0x100, %ebx            # imm = 0x100
jne 0xf6ff0
cmpl $0x3, 0x14(%r14)
jne 0xf6ff0
movb $0x1, 0xb0(%r14)
jmp 0xf6ff0
movq %r14, %rdi
callq 0xf77f7
jmp 0xf6ff0
movq %r14, %rdi
leaq 0x1a616(%rip), %rsi     # 0x1115d0
callq 0xf74ef
jmp 0xf6ff0
movq %r14, %rdi
movl %ebx, %esi
callq 0xf7936
cmpl $0x0, 0x60(%r14)
jne 0xf6ff0
movl 0x98(%r14), %esi
movzbl 0xa0(%r14), %edx
movq %r14, %rdi
callq 0xf7ad4
movl %ebx, 0x98(%r14)
movq 0x88(%r14), %rax
incq %rax
movq %rax, 0x88(%r14)
cmpl $0x8, 0x14(%r14)
sete %cl
movabsq $-0x7ffffffffffffe01, %rdx # imm = 0x80000000000001FF
andq %rdx, %rax
cmpq $0x100, %rax            # imm = 0x100
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0xf702d
movb $0x1, 0xb0(%r14)
cmpl $0x2, 0x64(%r14)
jne 0xf6cac
cmpq $0x0, 0x80(%r14)
jle 0xf6cc4
jmp 0xf6cac
cmpb $0x0, 0x30(%r14)
je 0xf7077
movq %r14, %rdi
pushq $0x1
popq %rsi
leaq 0x4791a(%rip), %rdx     # 0x13e979
movl %ebx, %ecx
xorl %eax, %eax
callq 0xf7516
movq %r14, %rdi
leaq 0x4793b(%rip), %rsi     # 0x13e9ad
jmp 0xf6fba
movq %r14, %rdi
pushq $0x2
popq %rsi
leaq 0x47936(%rip), %rdx     # 0x13e9ba
movl %ebx, %ecx
xorl %eax, %eax
callq 0xf7625
jmp 0xf6ff0
leaq 0x4767e(%rip), %rsi     # 0x13e717
movq %r14, %rdi
callq 0xf74ef
cmpl $0x3, 0x64(%r14)
jne 0xf70b1
movq 0x8(%rsp), %rax
movb $0x1, 0x20(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq