// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/gif.c
// Function: callback_for_plaintext_ext
static void callback_for_plaintext_ext(deark *c, lctx *d, struct subblock_reader_data *sbrd)
{
	struct plaintext_ext_ctx *ctx = (struct plaintext_ext_ctx*)sbrd->userdata;

	if(sbrd->subblock_idx==0) {
		// The first sub-block is the header
		do_plaintext_ext_header(c, d, ctx, sbrd->inf, sbrd->dpos, sbrd->dlen);
	}
	else {
		if(ctx->header_ok && sbrd->dlen>0) {
			do_plaintext_ext_textsubblock(c, d, ctx, sbrd->inf, sbrd->dpos, sbrd->dlen);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, 0x20(%rsp)
movq (%rdx), %rbx
cmpq $0x0, 0x8(%rdx)
je 0x52927
cmpl $0x0, (%rbx)
je 0x52b63
movq 0x30(%rdx), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
jle 0x52b63
movq 0x10(%rdx), %rax
movq %rax, 0x50(%rsp)
movq 0x28(%rdx), %rax
movq %rax, 0x48(%rsp)
xorl %ecx, %ecx
movq %rbx, 0x28(%rsp)
movq 0x48(%rsp), %rax
movq %rcx, 0x60(%rsp)
leaq (%rcx,%rax), %rsi
movq 0x50(%rsp), %rdi
callq 0xeead3
movl %eax, %r12d
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x52752
movzbl %r12b, %esi
callq 0xf0bd6
cmpl $0x0, 0x4(%rbx)
je 0x528da
movq 0x28(%rsp), %rcx
movq 0x38(%rcx), %rdx
movq 0x48(%rcx), %rax
movq %rax, %rsi
incq %rax
movq %rdx, 0x30(%rsp)
imulq %rdx, %rax
cmpq 0x20(%rcx), %rax
jg 0x528da
movq 0x28(%rsp), %rax
movq 0x30(%rax), %r14
movq 0x40(%rax), %rcx
imulq %r14, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x80(%rsp)
movq 0x30(%rsp), %r15
imulq %r15, %rsi
addq 0x10(%rax), %rsi
movq %rsi, 0x70(%rsp)
movl 0x50(%rax), %ecx
movl %ecx, 0x3c(%rsp)
movl 0x54(%rax), %ebx
callq 0xec638
movsd 0xc5068(%rip), %xmm3    # 0x117830
movq %rax, 0x40(%rsp)
movzbl %r12b, %eax
cmpb $0x21, %r12b
movl $0x20, %ecx
cmovll %ecx, %eax
testq %r15, %r15
jle 0x528da
movzbl %al, %eax
leal -0x100(,%rax,8), %eax
cvtsi2sd %r14, %xmm0
addq %rax, 0x40(%rsp)
movsd 0xcd2ee(%rip), %xmm2    # 0x11faf0
movapd %xmm2, %xmm4
cvtsi2sdq 0x30(%rsp), %xmm1
divsd %xmm0, %xmm4
divsd %xmm1, %xmm2
movsd %xmm2, 0x68(%rsp)
xorl %ebp, %ebp
movsd %xmm4, 0x78(%rsp)
testq %r14, %r14
jle 0x528cc
xorps %xmm0, %xmm0
cvtsi2sd %rbp, %xmm0
mulsd 0x68(%rsp), %xmm0
addsd %xmm3, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %r13d
movq 0x70(%rsp), %rax
leaq (%rax,%rbp), %r12
xorl %r15d, %r15d
xorps %xmm0, %xmm0
cvtsi2sd %r15, %xmm0
mulsd %xmm4, %xmm0
addsd %xmm3, %xmm0
cvttsd2si %xmm0, %rax
cmpl $0x7, %eax
ja 0x5288c
cmpl $0x7, %r13d
ja 0x5288c
movq 0x40(%rsp), %rcx
movzbl (%rcx,%r13), %ecx
movb $0x7, %dl
subb %al, %dl
movzbl %dl, %eax
btl %eax, %ecx
movl 0x3c(%rsp), %ecx
jb 0x5288e
movl %ebx, %ecx
cmpl $0x1000000, %ecx        # imm = 0x1000000
jb 0x528c4
movq 0x20(%rsp), %rax
movq 0x438(%rax), %rdi
movq 0x80(%rsp), %rax
leaq (%rax,%r15), %rsi
movq %r12, %rdx
callq 0xf24ba
movsd 0x78(%rsp), %xmm4
movsd 0xc4f6c(%rip), %xmm3    # 0x117830
incq %r15
cmpq %r15, %r14
jne 0x52852
incq %rbp
cmpq 0x30(%rsp), %rbp
jne 0x52823
movq 0x28(%rsp), %rbx
movq 0x40(%rbx), %rax
incq %rax
movq %rax, 0x40(%rbx)
cmpq 0x28(%rbx), %rax
jl 0x5290f
incq 0x48(%rbx)
movq $0x0, 0x40(%rbx)
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x5290f
movl $0xa, %esi
callq 0xf0bd6
movq 0x60(%rsp), %rcx
incq %rcx
cmpq 0x58(%rsp), %rcx
jne 0x52725
jmp 0x52b63
cmpq $0xc, 0x30(%rdx)
jl 0x52b63
movq %rdi, %r14
movq 0x10(%rdx), %r15
movq 0x28(%rdx), %r12
movq 0x20(%rsp), %rax
movq 0x440(%rax), %rax
testq %rax, %rax
je 0x52953
movb (%rax), %al
movb %al, 0x58(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0xeebc8
movq %rax, 0x8(%rbx)
leaq 0x2(%r12), %rsi
movq %r15, %rdi
callq 0xeebc8
movq %rax, 0x10(%rbx)
leaq 0x4(%r12), %rsi
movq %r15, %rdi
callq 0xeebc8
movq %rax, 0x18(%rbx)
leaq 0x6(%r12), %rsi
movq %r15, %rdi
callq 0xeebc8
movq %rax, 0x20(%rbx)
leaq 0x8(%r12), %rsi
movq %r15, %rdi
callq 0xeead3
movzbl %al, %eax
movq %rax, 0x30(%rbx)
leaq 0x9(%r12), %rsi
movq %r15, %rdi
callq 0xeead3
movzbl %al, %eax
movq %rax, 0x38(%rbx)
movl 0x8(%rbx), %edx
movl 0x10(%rbx), %ecx
leaq 0xcd2df(%rip), %rsi     # 0x11fca9
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8617
movl 0x18(%rbx), %edx
movl 0x20(%rbx), %ecx
leaq 0xcd2e4(%rip), %rsi     # 0x11fcc5
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8617
movl 0x30(%rbx), %edx
movl 0x38(%rbx), %ecx
leaq 0xcd2eb(%rip), %rsi     # 0x11fce3
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x30(%rbx), %rcx
cmpq $0x3, %rcx
jge 0x52a27
movl $0x0, 0x4(%rbx)
testq %rcx, %rcx
jg 0x52a35
movq $0x50, 0x28(%rbx)
movl $0x50, %edx
jmp 0x52a5e
cmpq $0x2, 0x38(%rbx)
jg 0x52a35
movl $0x0, 0x4(%rbx)
movq 0x18(%rbx), %rax
cqto
idivq %rcx
movq %rax, %rdx
movq %rax, 0x28(%rbx)
testq %rax, %rax
jg 0x52a5e
movl $0x0, 0x4(%rbx)
movq $0x1, 0x28(%rbx)
movl $0x1, %edx
leaq 0xcd29c(%rip), %rsi     # 0x11fd01
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8617
leaq 0xa(%r12), %rsi
movq %r15, %rdi
callq 0xeead3
leaq 0x50(%rbx), %r8
movzbl %al, %ecx
leaq 0xbf316(%rip), %rdx     # 0x111da0
movq %r14, %rdi
movq 0x20(%rsp), %r13
movq %r13, %rsi
callq 0x52b75
addq $0xb, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xeead3
leaq 0x54(%rbx), %r8
movzbl %al, %ecx
leaq 0xd3f6f(%rip), %rdx     # 0x126a26
movq %r14, %rdi
movq %r13, %rsi
callq 0x52b75
cmpl $0x0, 0xc(%r13)
je 0x52ae0
leaq 0xcd24b(%rip), %rsi     # 0x11fd1b
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, 0x68(%rbx)
cmpl $0x0, 0x4(%rbx)
je 0x52b54
cmpb $0x3, 0x58(%rbx)
jne 0x52b54
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
movq 0x20(%rsp), %r13
movq 0x18(%r13), %r15
cmpq %r15, %rax
cmovlq %rax, %r15
movq 0x20(%r13), %r12
cmpq %r12, %rcx
cmovlq %rcx, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0x4, %ecx
callq 0xf266a
movq %rax, 0x60(%rbx)
movq 0x438(%r13), %rdi
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rsp)
movl $0x0, 0x10(%rsp)
movq %rax, %rsi
movq %r15, %r8
movq %r12, %r9
callq 0xf36d0
xorpd %xmm0, %xmm0
movupd %xmm0, 0x40(%rbx)
movl $0x1, (%rbx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq