// File: /workspace/github_c_makefile_star2_O1/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
movl $0x30, %esi
callq 0xe969b
movq %rax, %r14
leaq 0xeaedd(%rip), %rsi     # 0x13935e
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rdi
movl $0x4, %esi
callq 0xef0d5
movl %eax, %ebp
shrb $0x4, %al
movzbl %al, %edx
leal -0x3(%rdx), %eax
cmpl $0x3, %eax
ja 0x4e4ea
leaq 0xd06d1(%rip), %rcx     # 0x11eb90
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, (%r14)
jmp 0x4e4fb
movl $0x1, 0x4(%r14)
jmp 0x4e4fb
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, (%r14)
jmp 0x4e4fb
leaq 0xd06c6(%rip), %rsi     # 0x11ebb7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9b27
movl (%r14), %edx
leaq 0xd06d7(%rip), %rsi     # 0x11ebdc
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movl 0x4(%r14), %edx
leaq 0xd06d1(%rip), %rsi     # 0x11ebeb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
andb $0xf, %bpl
movzbl %bpl, %edx
movq %rdx, 0x8(%r14)
leaq 0xd06c1(%rip), %rsi     # 0x11ebf8
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movl $0x5, %esi
callq 0xef0d5
movzbl %al, %r15d
cmpb $0x30, %r15b
jne 0x4e562
leaq 0xd06af(%rip), %rsi     # 0x11ec0f
jmp 0x4e591
addb $-0x31, %al
cmpb $0x1, %al
ja 0x4e58a
leal -0x30(%r15), %ecx
movq %rcx, 0x10(%r14)
leaq 0xe7962(%rip), %rdx     # 0x135ed9
leaq 0x10(%rsp), %rdi
movl $0x50, %esi
xorl %eax, %eax
callq 0xe8d67
jmp 0x4e5a0
leaq 0xdd8d8(%rip), %rsi     # 0x12be69
leaq 0x10(%rsp), %rdi
movl $0x50, %edx
callq 0xe8ded
leaq 0xd066f(%rip), %rsi     # 0x11ec16
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
movl $0x6, %r15d
leaq 0x8(%rsp), %rdx
movq %rsp, %rcx
movl $0x6, %esi
movq %rbx, %rdi
callq 0x4e794
movb $0x1, %bpl
testl %eax, %eax
je 0x4e671
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 0x4e794
testl %eax, %eax
je 0x4e671
movq 0x8(%rsp), %rdx
incq %rdx
movq %rdx, 0x20(%r14)
addq (%rsp), %r15
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0xe9b05
cmpl $0x0, 0x4(%r14)
je 0x4e667
leaq 0x8(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4e794
testl %eax, %eax
je 0x4e671
movq 0x8(%rsp), %rdx
addq $0x2, %rdx
movq %rdx, 0x28(%r14)
addq (%rsp), %r15
leaq 0xc5437(%rip), %rsi     # 0x113a90
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
jmp 0x4e671
movq $0x1, 0x28(%r14)
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
testb %bpl, %bpl
jne 0x4e758
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xe958c
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef0d5
movl %eax, %ebp
cmpb $0x1f, %al
jbe 0x4e6cd
leaq 0xd05c6(%rip), %rsi     # 0x11ec73
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
leaq 0xfa5b1(%rip), %rsi     # 0x148c72
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x4e6de
leaq 0xd0580(%rip), %rsi     # 0x11ec54
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movl 0x10(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x1f, %bpl
ja 0x4e758
leaq 0xd0593(%rip), %rsi     # 0x11ec8a
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef0d5
movzbl %al, %ebp
leaq 0xd058b(%rip), %rsi     # 0x11ecb2
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
testb %bpl, %bpl
je 0x4e74b
leaq 0xd0567(%rip), %rsi     # 0x11eca6
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9df7
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe9752
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq