	.file	"146805.c"
	.intel_syntax noprefix
	.text
	.globl	fbopen
	.type	fbopen, @function
fbopen:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -208[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L2
	mov	eax, 1
	jmp	.L10
.L2:
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, 17920
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L4
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 2
	jmp	.L10
.L4:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, 32
	jne	.L5
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 8
	jne	.L5
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 8
	jne	.L5
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 8
	jne	.L5
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR 8[rax], 4
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, 24
	jne	.L7
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 8
	jne	.L7
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 8
	jne	.L7
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 8
	jne	.L7
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR 8[rax], 3
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, 16
	jne	.L8
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 5
	jne	.L8
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 6
	jne	.L8
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 5
	jne	.L8
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR 8[rax], 2
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 3
	jmp	.L10
.L6:
	mov	edx, DWORD PTR -164[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -168[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR -144[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	edx, DWORD PTR -168[rbp]
	mov	eax, DWORD PTR -164[rbp]
	imul	edx, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, edx
	mov	esi, eax
	mov	eax, DWORD PTR -180[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	rax, -1
	jne	.L9
	mov	eax, 4
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fbopen, .-fbopen
	.globl	fbunpack
	.type	fbunpack, @function
fbunpack:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	QWORD PTR -72[rbp], rcx
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -60[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	imul	eax, edx
	cmp	ecx, eax
	jbe	.L13
	mov	eax, 1
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 4
	je	.L15
	cmp	eax, 4
	ja	.L16
	cmp	eax, 2
	je	.L17
	cmp	eax, 3
	je	.L18
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -64[rbp]
	add	eax, eax
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -34[rbp], ax
	movzx	edx, WORD PTR -34[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	lea	edx, 0[0+rcx*8]
	mov	BYTE PTR [rax], dl
	movzx	edx, WORD PTR -34[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	lea	edx, 0[0+rcx*4]
	mov	BYTE PTR [rax], dl
	movzx	edx, WORD PTR -34[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	lea	edx, 0[0+rcx*8]
	mov	BYTE PTR [rax], dl
.L19:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jne	.L20
	jmp	.L16
.L18:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	eax, eax
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	jmp	.L21
.L22:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	add	eax, ecx
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	ecx, edx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	ecx, edx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	ecx, edx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L21:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jne	.L22
.L15:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -64[rbp]
	sal	eax, 2
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	ecx, edx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	ecx, edx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	ecx, edx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L23:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jne	.L24
	nop
.L16:
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fbunpack, .-fbunpack
	.globl	fbpack
	.type	fbpack, @function
fbpack:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	imul	eax, edx
	cmp	ecx, eax
	jbe	.L26
	mov	eax, 1
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 4
	je	.L28
	cmp	eax, 4
	ja	.L29
	cmp	eax, 2
	je	.L30
	cmp	eax, 3
	je	.L31
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, eax
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 3
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	esi, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	shr	al, 3
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	ecx, esi
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	edx, ecx
	mov	WORD PTR [rax], dx
	add	QWORD PTR -56[rbp], 3
.L32:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -44[rbp], edx
	test	eax, eax
	jne	.L33
	jmp	.L29
.L31:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	eax, eax
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	esi, edx
	mov	ecx, eax
	sal	esi, cl
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	eax, esi
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, DWORD PTR -28[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -56[rbp], 3
.L34:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -44[rbp], edx
	test	eax, eax
	jne	.L35
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 2
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	esi, edx
	mov	ecx, eax
	sal	esi, cl
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	eax, esi
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -8[rbp], rdx
	or	ecx, -16777216
	mov	edx, ecx
	mov	DWORD PTR [rax], edx
	add	QWORD PTR -56[rbp], 3
.L36:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -44[rbp], edx
	test	eax, eax
	jne	.L37
	nop
.L29:
	mov	eax, 0
.L27:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fbpack, .-fbpack
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"146805.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fbopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	fbopen, %function
fbopen:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, [fp, #-180]
	bl	open
	str	r0, [fp, #-172]
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bge	.L2
	mov	r3, #1
	b	.L10
.L2:
	sub	r3, fp, #168
	mov	r2, r3
	mov	r1, #17920
	ldr	r0, [fp, #-172]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, [fp, #-172]
	bl	close
	mov	r3, #2
	b	.L10
.L4:
	ldr	r3, [fp, #-144]
	cmp	r3, #32
	bne	.L5
	ldr	r3, [fp, #-132]
	cmp	r3, #8
	bne	.L5
	ldr	r3, [fp, #-120]
	cmp	r3, #8
	bne	.L5
	ldr	r3, [fp, #-108]
	cmp	r3, #8
	bne	.L5
	ldr	r3, [fp, #-176]
	mov	r2, #4
	str	r2, [r3, #8]
	b	.L6
.L5:
	ldr	r3, [fp, #-144]
	cmp	r3, #24
	bne	.L7
	ldr	r3, [fp, #-132]
	cmp	r3, #8
	bne	.L7
	ldr	r3, [fp, #-120]
	cmp	r3, #8
	bne	.L7
	ldr	r3, [fp, #-108]
	cmp	r3, #8
	bne	.L7
	ldr	r3, [fp, #-176]
	mov	r2, #3
	str	r2, [r3, #8]
	b	.L6
.L7:
	ldr	r3, [fp, #-144]
	cmp	r3, #16
	bne	.L8
	ldr	r3, [fp, #-132]
	cmp	r3, #5
	bne	.L8
	ldr	r3, [fp, #-120]
	cmp	r3, #6
	bne	.L8
	ldr	r3, [fp, #-108]
	cmp	r3, #5
	bne	.L8
	ldr	r3, [fp, #-176]
	mov	r2, #2
	str	r2, [r3, #8]
	b	.L6
.L8:
	ldr	r0, [fp, #-172]
	bl	close
	mov	r3, #3
	b	.L10
.L6:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-176]
	str	r2, [r3]
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-176]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-176]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-176]
	str	r2, [r3, #16]
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-176]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-160]
	ldr	r2, [fp, #-156]
	mul	r3, r2, r3
	ldr	r2, [fp, #-176]
	ldr	r2, [r2, #8]
	mul	r1, r2, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-172]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	mov	r2, r0
	ldr	r3, [fp, #-176]
	str	r2, [r3, #24]
	ldr	r0, [fp, #-172]
	bl	close
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #24]
	cmn	r3, #1
	bne	.L9
	mov	r3, #4
	b	.L10
.L9:
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	fbopen, .-fbopen
	.align	2
	.global	fbunpack
	.syntax unified
	.arm
	.fpu softvfp
	.type	fbunpack, %function
fbunpack:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	ldr	r1, [r1, #4]
	mul	r3, r1, r3
	cmp	r2, r3
	bls	.L15
	mov	r3, #1
	b	.L16
.L15:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	cmp	r3, #4
	beq	.L17
	cmp	r3, #4
	bhi	.L18
	cmp	r3, #2
	beq	.L19
	cmp	r3, #3
	beq	.L20
	b	.L18
.L19:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L21
.L22:
	ldr	r3, [fp, #-24]
	add	r2, r3, #2
	str	r2, [fp, #-24]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-26]	@ movhi
	ldrh	r2, [fp, #-26]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	asr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	lsl	r2, r2, #3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrh	r2, [fp, #-26]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	asr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	lsl	r2, r2, #2
	and	r2, r2, #255
	strb	r2, [r3]
	ldrh	r2, [fp, #-26]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	asr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	lsl	r2, r2, #3
	and	r2, r2, #255
	strb	r2, [r3]
.L21:
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	str	r2, [fp, #-36]
	cmp	r3, #0
	bne	.L22
	b	.L18
.L20:
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #24]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-20]
	b	.L23
.L24:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r2, r1, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	lsr	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-12]
	lsr	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-12]
	lsr	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	and	r2, r2, #255
	strb	r2, [r3]
.L23:
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	str	r2, [fp, #-36]
	cmp	r3, #0
	bne	.L24
.L17:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L25
.L26:
	ldr	r3, [fp, #-16]
	add	r2, r3, #4
	str	r2, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-8]
	lsr	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-8]
	lsr	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-8]
	lsr	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	and	r2, r2, #255
	strb	r2, [r3]
.L25:
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	str	r2, [fp, #-36]
	cmp	r3, #0
	bne	.L26
	nop
.L18:
	mov	r3, #0
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fbunpack, .-fbunpack
	.align	2
	.global	fbpack
	.syntax unified
	.arm
	.fpu softvfp
	.type	fbpack, %function
fbpack:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	ldr	r1, [r1, #4]
	mul	r3, r1, r3
	cmp	r2, r3
	bls	.L28
	mov	r3, #1
	b	.L29
.L28:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	cmp	r3, #4
	beq	.L30
	cmp	r3, #4
	bhi	.L31
	cmp	r3, #2
	beq	.L32
	cmp	r3, #3
	beq	.L33
	b	.L31
.L32:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L34
.L35:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	lsl	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	lsl	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	lsl	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-20]
	add	r1, r3, #2
	str	r1, [fp, #-20]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	str	r3, [fp, #-36]
.L34:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	str	r2, [fp, #-28]
	cmp	r3, #0
	bne	.L35
	b	.L31
.L33:
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #24]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-16]
	b	.L36
.L37:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	lsl	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	lsl	r3, r1, r3
	orr	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	lsl	r3, r1, r3
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	str	r1, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	str	r1, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	str	r3, [fp, #-36]
.L36:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	str	r2, [fp, #-28]
	cmp	r3, #0
	bne	.L37
	b	.L31
.L30:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L38
.L39:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	lsl	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	lsl	r3, r1, r3
	orr	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	lsl	r3, r1, r3
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r2, r3, #4
	str	r2, [fp, #-12]
	orr	r2, r1, #-16777216
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	str	r3, [fp, #-36]
.L38:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	str	r2, [fp, #-28]
	cmp	r3, #0
	bne	.L39
	nop
.L31:
	mov	r3, #0
.L29:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fbpack, .-fbpack
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
