// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/flif.c
// Function: de_run_flif
static void de_run_flif(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos;
	i64 bytes_consumed;

	d = de_malloc(c, sizeof(lctx));

	pos = 0;

	if(!do_read_header(c, d, pos, &bytes_consumed)) goto done;
	pos += bytes_consumed;


	if(!do_read_metadata(c, d, pos, &bytes_consumed)) goto done;
	pos += bytes_consumed;

	if(!do_second_header(c, d, pos, &bytes_consumed)) goto done;

done:
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
pushq $0x30
popq %rsi
callq 0xdecaf
movq %rax, %r14
leaq 0xe064f(%rip), %rsi     # 0x12c3ee
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq 0x18(%rbx), %rdi
pushq $0x4
popq %rsi
callq 0xe3eb4
movl %eax, %ebp
shrb $0x4, %al
movzbl %al, %edx
leal -0x3(%rdx), %eax
cmpl $0x3, %eax
ja 0x4be04
leaq 0xc5def(%rip), %rcx     # 0x111bc8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, (%r14)
jmp 0x4be15
movl $0x1, 0x4(%r14)
jmp 0x4be15
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, (%r14)
jmp 0x4be15
leaq 0xc5de4(%rip), %rsi     # 0x111bef
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf05a
movl (%r14), %edx
leaq 0xc5df5(%rip), %rsi     # 0x111c14
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x4(%r14), %edx
leaq 0xc5def(%rip), %rsi     # 0x111c23
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
andb $0xf, %bpl
movzbl %bpl, %edx
movq %rdx, 0x8(%r14)
leaq 0xc5ddf(%rip), %rsi     # 0x111c30
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
pushq $0x5
popq %rsi
callq 0xe3eb4
movzbl %al, %r15d
cmpb $0x30, %r15b
jne 0x4be7a
leaq 0xc5dcf(%rip), %rsi     # 0x111c47
jmp 0x4bea7
addb $-0x31, %al
cmpb $0x1, %al
ja 0x4bea0
leal -0x30(%r15), %ecx
movq %rcx, 0x10(%r14)
leaq 0xdd18d(%rip), %rdx     # 0x12901c
leaq 0x10(%rsp), %rdi
pushq $0x50
popq %rsi
xorl %eax, %eax
callq 0xde40c
jmp 0x4beb4
leaq 0xd303a(%rip), %rsi     # 0x11eee1
leaq 0x10(%rsp), %rdi
pushq $0x50
popq %rdx
callq 0xde492
leaq 0xc5d93(%rip), %rsi     # 0x111c4e
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x6
popq %r15
leaq 0x8(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4c09a
movb $0x1, %bpl
testl %eax, %eax
je 0x4bf81
leaq 0x8(%rsp), %rdx
movq (%rdx), %rax
incq %rax
movq %rax, 0x18(%r14)
movq %rsp, %rcx
movq (%rcx), %r15
addq $0x6, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4c09a
testl %eax, %eax
je 0x4bf81
movq 0x8(%rsp), %rdx
incq %rdx
movq %rdx, 0x20(%r14)
addq (%rsp), %r15
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0xdf038
cmpl $0x0, 0x4(%r14)
je 0x4bf77
leaq 0x8(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4c09a
testl %eax, %eax
je 0x4bf81
movq 0x8(%rsp), %rdx
addq $0x2, %rdx
movq %rdx, 0x28(%r14)
addq (%rsp), %r15
leaq 0xbab77(%rip), %rsi     # 0x106ae0
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
jmp 0x4bf81
movq $0x1, 0x28(%r14)
xorl %ebp, %ebp
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
testb %bpl, %bpl
jne 0x4c062
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xdebae
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe3eb4
movl %eax, %ebp
cmpb $0x1f, %al
jbe 0x4bfdb
leaq 0xc5cf0(%rip), %rsi     # 0x111cab
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
leaq 0xefd6b(%rip), %rsi     # 0x13bd3a
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x4bfec
leaq 0xc5caa(%rip), %rsi     # 0x111c8c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x10(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
cmpb $0x1f, %bpl
ja 0x4c062
leaq 0xc5cbd(%rip), %rsi     # 0x111cc2
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe3eb4
movzbl %al, %ebp
leaq 0xc5cb7(%rip), %rsi     # 0x111cea
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xde896
testb %bpl, %bpl
je 0x4c057
leaq 0xc5c93(%rip), %rsi     # 0x111cde
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xdf2a5
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq