	.file	"extr_atafb.c_ext_decode_var.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext_decode_var, @function
ext_decode_var:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR atafb_predefined[rip]
	mov	rcx, QWORD PTR [rax]
	cmp	QWORD PTR [rdi], rcx
	jg	.L2
	mov	rdx, QWORD PTR 8[rax]
	cmp	QWORD PTR 8[rdi], rdx
	jg	.L2
	mov	rdx, QWORD PTR 16[rax]
	cmp	QWORD PTR 16[rdi], rdx
	jg	.L2
	mov	rax, QWORD PTR 24[rax]
	cmp	QWORD PTR 24[rdi], rax
	jg	.L2
	cmp	QWORD PTR 32[rdi], 0
	jg	.L2
	cmp	QWORD PTR 40[rdi], 0
	jg	.L2
	mov	eax, DWORD PTR external_xres_virtual[rip]
	imul	eax, DWORD PTR external_depth[rip]
	mov	edx, eax
	lea	eax, 7[rax]
	test	edx, edx
	cmovns	eax, edx
	sar	eax, 3
	mov	DWORD PTR [rsi], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ext_decode_var, .-ext_decode_var
	.comm	external_xres_virtual,4,4
	.comm	external_depth,4,4
	.comm	atafb_predefined,8,8
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_atafb.c_ext_decode_var.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext_decode_var, %function
ext_decode_var:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L6
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r2, [r3]
	cmp	ip, r2
	bgt	.L2
	ldr	ip, [r0, #4]
	ldr	r2, [r3, #4]
	cmp	ip, r2
	bgt	.L2
	ldr	ip, [r0, #8]
	ldr	r2, [r3, #8]
	cmp	ip, r2
	bgt	.L2
	ldr	r3, [r3, #12]
	ldr	r2, [r0, #12]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, [r0, #16]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, [r0, #20]
	cmp	r3, #0
	bgt	.L2
	mov	r0, #0
	ldr	r3, .L6+4
	ldr	r2, .L6+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mul	r3, r2, r3
	add	r2, r3, #7
	cmp	r3, r0
	movlt	r3, r2
	asr	r3, r3, #3
	str	r3, [r1]
	bx	lr
.L2:
	ldr	r3, .L6+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L7:
	.align	2
.L6:
	.word	atafb_predefined
	.word	external_xres_virtual
	.word	external_depth
	.word	EINVAL
	.size	ext_decode_var, .-ext_decode_var
	.comm	external_xres_virtual,4,4
	.comm	external_depth,4,4
	.comm	atafb_predefined,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
