// File: /workspace/github_c_makefile_star2_O1/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 0x529db
cmpl $0x0, (%rbx)
je 0x52c06
movq 0x30(%rdx), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
jle 0x52c06
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 0xef0d5
movl %eax, %r12d
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x52806
movzbl %r12b, %esi
callq 0xf11be
cmpl $0x0, 0x4(%rbx)
je 0x5298e
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 0x5298e
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 0xecc9a
movsd 0xc4e54(%rip), %xmm3    # 0x1176d0
movq %rax, 0x40(%rsp)
movzbl %r12b, %eax
cmpb $0x21, %r12b
movl $0x20, %ecx
cmovll %ecx, %eax
testq %r15, %r15
jle 0x5298e
movzbl %al, %eax
leal -0x100(,%rax,8), %eax
cvtsi2sd %r14, %xmm0
addq %rax, 0x40(%rsp)
movsd 0xcd112(%rip), %xmm2    # 0x11f9c8
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 0x52980
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 0x52940
cmpl $0x7, %r13d
ja 0x52940
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 0x52942
movl %ebx, %ecx
cmpl $0x1000000, %ecx        # imm = 0x1000000
jb 0x52978
movq 0x20(%rsp), %rax
movq 0x438(%rax), %rdi
movq 0x80(%rsp), %rax
leaq (%rax,%r15), %rsi
movq %r12, %rdx
callq 0xf2afd
movsd 0x78(%rsp), %xmm4
movsd 0xc4d58(%rip), %xmm3    # 0x1176d0
incq %r15
cmpq %r15, %r14
jne 0x52906
incq %rbp
cmpq 0x30(%rsp), %rbp
jne 0x528d7
movq 0x28(%rsp), %rbx
movq 0x40(%rbx), %rax
incq %rax
movq %rax, 0x40(%rbx)
cmpq 0x28(%rbx), %rax
jl 0x529c3
incq 0x48(%rbx)
movq $0x0, 0x40(%rbx)
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x529c3
movl $0xa, %esi
callq 0xf11be
movq 0x60(%rsp), %rcx
incq %rcx
cmpq 0x58(%rsp), %rcx
jne 0x527d9
jmp 0x52c06
cmpq $0xc, 0x30(%rdx)
jl 0x52c06
movq %rdi, %r14
movq 0x10(%rdx), %r15
movq 0x28(%rdx), %r12
movq 0x20(%rsp), %rax
movq 0x440(%rax), %rax
testq %rax, %rax
je 0x52a07
movb (%rax), %al
movb %al, 0x58(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0xef1ca
movq %rax, 0x8(%rbx)
leaq 0x2(%r12), %rsi
movq %r15, %rdi
callq 0xef1ca
movq %rax, 0x10(%rbx)
leaq 0x4(%r12), %rsi
movq %r15, %rdi
callq 0xef1ca
movq %rax, 0x18(%rbx)
leaq 0x6(%r12), %rsi
movq %r15, %rdi
callq 0xef1ca
movq %rax, 0x20(%rbx)
leaq 0x8(%r12), %rsi
movq %r15, %rdi
callq 0xef0d5
movzbl %al, %eax
movq %rax, 0x30(%rbx)
leaq 0x9(%r12), %rsi
movq %r15, %rdi
callq 0xef0d5
movzbl %al, %eax
movq %rax, 0x38(%rbx)
movl 0x8(%rbx), %edx
movl 0x10(%rbx), %ecx
leaq 0xcd103(%rip), %rsi     # 0x11fb81
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movl 0x18(%rbx), %edx
movl 0x20(%rbx), %ecx
leaq 0xcd108(%rip), %rsi     # 0x11fb9d
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movl 0x30(%rbx), %edx
movl 0x38(%rbx), %ecx
leaq 0xcd10f(%rip), %rsi     # 0x11fbbb
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x30(%rbx), %rcx
cmpq $0x3, %rcx
jl 0x52ac7
cmpq $0x2, 0x38(%rbx)
jg 0x52ace
movl $0x0, 0x4(%rbx)
testq %rcx, %rcx
jle 0x52af6
movq 0x18(%rbx), %rax
cqto
idivq %rcx
movq %rax, 0x28(%rbx)
testq %rax, %rax
jg 0x52afe
movl $0x0, 0x4(%rbx)
movq $0x1, 0x28(%rbx)
jmp 0x52afe
movq $0x50, 0x28(%rbx)
movl 0x28(%rbx), %edx
leaq 0xcd0d1(%rip), %rsi     # 0x11fbd9
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
leaq 0xa(%r12), %rsi
movq %r15, %rdi
callq 0xef0d5
leaq 0x50(%rbx), %r8
movzbl %al, %ecx
leaq 0xbf263(%rip), %rdx     # 0x111d90
movq %r14, %rdi
movq 0x20(%rsp), %r13
movq %r13, %rsi
callq 0x52c18
addq $0xb, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xef0d5
leaq 0x54(%rbx), %r8
movzbl %al, %ecx
leaq 0xd3c9c(%rip), %rdx     # 0x1267f6
movq %r14, %rdi
movq %r13, %rsi
callq 0x52c18
cmpl $0x0, 0xc(%r13)
je 0x52b83
leaq 0xcd080(%rip), %rsi     # 0x11fbf3
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xf037a
movq %rax, 0x68(%rbx)
cmpl $0x0, 0x4(%rbx)
je 0x52bf7
cmpb $0x3, 0x58(%rbx)
jne 0x52bf7
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 0xf2cab
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 0xf3d2f
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