// File: /workspace/github_c_makefile_star2_O2/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 0x500eb
cmpl $0x0, (%rbx)
je 0x50314
movq 0x30(%rdx), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
jle 0x50314
movq 0x10(%rdx), %rax
movq %rax, 0x40(%rsp)
movq 0x28(%rdx), %rax
movq %rax, 0x38(%rsp)
xorl %ecx, %ecx
movq %rbx, 0x28(%rsp)
cmpq 0x48(%rsp), %rcx
je 0x50314
movq 0x38(%rsp), %rax
movq %rcx, 0x50(%rsp)
leaq (%rcx,%rax), %rsi
movq 0x40(%rsp), %rdi
callq 0xe3eb4
movq 0x68(%rbx), %rdi
movzbl %al, %r15d
testq %rdi, %rdi
je 0x4ff30
movl %r15d, %esi
callq 0xe5bc5
cmpl $0x0, 0x4(%rbx)
je 0x4ff53
movq 0x28(%rsp), %rcx
movq 0x38(%rcx), %rdx
movq 0x48(%rcx), %rax
movq %rax, %rsi
incq %rax
imulq %rdx, %rax
cmpq 0x20(%rcx), %rax
jle 0x4ff90
movq 0x28(%rsp), %rbx
movq 0x40(%rbx), %rax
incq %rax
movq %rax, 0x40(%rbx)
cmpq 0x28(%rbx), %rax
jl 0x4ff83
incq 0x48(%rbx)
andq $0x0, 0x40(%rbx)
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x4ff83
pushq $0xa
popq %rsi
callq 0xe5bc5
movq 0x50(%rsp), %rcx
incq %rcx
jmp 0x4fef8
movq %rdx, %r12
movq 0x28(%rsp), %rax
movq 0x30(%rax), %rbp
movq 0x40(%rax), %rcx
imulq %rbp, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x80(%rsp)
imulq %rdx, %rsi
addq 0x10(%rax), %rsi
movq %rsi, 0x60(%rsp)
movl 0x50(%rax), %ecx
movl %ecx, 0x34(%rsp)
movl 0x54(%rax), %r14d
callq 0xe1bd6
cmpb $0x21, %r15b
pushq $0x20
popq %rcx
cmovll %ecx, %r15d
movzbl %r15b, %ecx
leal -0x100(,%rcx,8), %ebx
addq %rax, %rbx
cvtsi2sd %rbp, %xmm0
movsd 0xc2a2d(%rip), %xmm1    # 0x112a20
movapd %xmm1, %xmm2
divsd %xmm0, %xmm2
cvtsi2sd %r12, %xmm0
movapd %xmm1, %xmm3
movsd 0xba734(%rip), %xmm1    # 0x10a740
divsd %xmm0, %xmm3
movsd %xmm3, 0x58(%rsp)
testq %rbp, %rbp
movl $0x0, %eax
cmovleq %rax, %rbp
testq %r12, %r12
cmovleq %rax, %r12
movq %r12, 0x68(%rsp)
xorl %ecx, %ecx
movsd %xmm2, 0x78(%rsp)
cmpq 0x68(%rsp), %rcx
je 0x4ff53
cvtsi2sd %rcx, %xmm0
mulsd 0x58(%rsp), %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %r13d
movq 0x60(%rsp), %rax
movq %rcx, 0x70(%rsp)
leaq (%rax,%rcx), %r15
xorl %r12d, %r12d
cmpq %r12, %rbp
je 0x500de
cvtsi2sd %r12, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
cmpl $0x7, %eax
ja 0x500a0
cmpl $0x7, %r13d
ja 0x500a0
movzbl (%rbx,%r13), %ecx
movb $0x7, %dl
subb %al, %dl
movzbl %dl, %eax
btl %eax, %ecx
movl 0x34(%rsp), %ecx
jb 0x500a3
movl %r14d, %ecx
cmpl $0x1000000, %ecx        # imm = 0x1000000
jb 0x500d9
movq 0x20(%rsp), %rax
movq 0x438(%rax), %rdi
movq 0x80(%rsp), %rax
leaq (%rax,%r12), %rsi
movq %r15, %rdx
callq 0xe7287
movsd 0x78(%rsp), %xmm2
movsd 0xba667(%rip), %xmm1    # 0x10a740
incq %r12
jmp 0x50069
movq 0x70(%rsp), %rcx
incq %rcx
jmp 0x50036
cmpq $0xc, 0x30(%rdx)
jl 0x50314
movq %rdi, %r14
movq 0x10(%rdx), %r15
movq 0x28(%rdx), %r12
movq 0x20(%rsp), %rax
movq 0x440(%rax), %rax
testq %rax, %rax
je 0x50117
movb (%rax), %al
movb %al, 0x58(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0xe3fa3
movq %rax, 0x8(%rbx)
leaq 0x2(%r12), %rsi
movq %r15, %rdi
callq 0xe3fa3
movq %rax, 0x10(%rbx)
leaq 0x4(%r12), %rsi
movq %r15, %rdi
callq 0xe3fa3
movq %rax, 0x18(%rbx)
leaq 0x6(%r12), %rsi
movq %r15, %rdi
callq 0xe3fa3
movq %rax, 0x20(%rbx)
leaq 0x8(%r12), %rsi
movq %r15, %rdi
callq 0xe3eb4
movzbl %al, %eax
movq %rax, 0x30(%rbx)
leaq 0x9(%r12), %rsi
movq %r15, %rdi
callq 0xe3eb4
movzbl %al, %eax
movq %rax, 0x38(%rbx)
movl 0x8(%rbx), %edx
movl 0x10(%rbx), %ecx
leaq 0xc2a6f(%rip), %rsi     # 0x112bfd
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x18(%rbx), %edx
movl 0x20(%rbx), %ecx
leaq 0xc2a74(%rip), %rsi     # 0x112c19
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x30(%rbx), %edx
movl 0x38(%rbx), %ecx
leaq 0xc2a7b(%rip), %rsi     # 0x112c37
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x30(%rbx), %rcx
cmpq $0x3, %rcx
jge 0x501e5
andl $0x0, 0x4(%rbx)
testq %rcx, %rcx
jg 0x501f0
movq $0x50, 0x28(%rbx)
pushq $0x50
jmp 0x50213
cmpq $0x2, 0x38(%rbx)
jg 0x501f0
andl $0x0, 0x4(%rbx)
movq 0x18(%rbx), %rax
cqto
idivq %rcx
movq %rax, %rdx
movq %rax, 0x28(%rbx)
testq %rax, %rax
jg 0x50214
andl $0x0, 0x4(%rbx)
movq $0x1, 0x28(%rbx)
pushq $0x1
popq %rdx
leaq 0xc2a3a(%rip), %rsi     # 0x112c55
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
leaq 0xa(%r12), %rsi
movq %r15, %rdi
callq 0xe3eb4
leaq 0x50(%rbx), %r8
movzbl %al, %ecx
leaq 0xb4b40(%rip), %rdx     # 0x104d80
movq %r14, %rdi
movq 0x20(%rsp), %r13
movq %r13, %rsi
callq 0x50326
addq $0xb, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xe3eb4
leaq 0x54(%rbx), %r8
movzbl %al, %ecx
leaq 0xc95b9(%rip), %rdx     # 0x119826
movq %r14, %rdi
movq %r13, %rsi
callq 0x50326
cmpl $0x0, 0xc(%r13)
je 0x50296
leaq 0xc29e9(%rip), %rsi     # 0x112c6f
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, 0x68(%rbx)
cmpl $0x0, 0x4(%rbx)
je 0x50305
cmpb $0x3, 0x58(%rbx)
jne 0x50305
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
pushq $0x4
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xe7437
movq %rax, 0x60(%rbx)
movq 0x438(%r13), %rdi
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rsp)
andl $0x0, 0x10(%rsp)
movq %rax, %rsi
movq %r15, %r8
movq %r12, %r9
callq 0xe8314
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