	.file	"extr_framebuffer.c_efi_get_max_resolution.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"efi_max_resolution"
	.text
	.p2align 4
	.type	efi_get_max_resolution, @function
efi_get_max_resolution:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	mov	DWORD PTR [rsi], 0
	mov	DWORD PTR [rdi], 0
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR resolutions[rip]
	mov	rsi, r12
	lea	rbp, [rax+rbx*8]
	add	rbx, 1
	mov	rdi, rbp
	call	efi_resolution_compare@PLT
	test	rax, rax
	jne	.L18
.L2:
	mov	rdi, QWORD PTR resolutions[rip]
	call	nitems@PLT
	cmp	eax, ebx
	jg	.L4
	mov	rdi, r12
	call	strdup@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	mov	esi, 120
	mov	rdi, rax
	call	strchr@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L16
	mov	BYTE PTR [rax], 0
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	strtol@PLT
	lea	rdi, 1[rbx]
	xor	edx, edx
	xor	esi, esi
	mov	DWORD PTR [r14], eax
	call	strtol@PLT
	mov	DWORD PTR 0[r13], eax
.L16:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 0[r13], eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	efi_get_max_resolution, .-efi_get_max_resolution
	.comm	resolutions,8,8
	.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_framebuffer.c_efi_get_max_resolution.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"efi_max_resolution\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efi_get_max_resolution, %function
efi_get_max_resolution:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	mov	r4, #0
	ldr	r0, .L17
	str	r4, [r1]
	str	r4, [r9]
	mov	r8, r1
	bl	getenv
	subs	r7, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r6, .L17+4
	b	.L2
.L5:
	ldr	r5, [r6]
	mov	r1, r7
	add	r5, r5, r4, lsl #3
	mov	r0, r5
	bl	efi_resolution_compare
	cmp	r0, #0
	bne	.L15
	add	r4, r4, #1
.L2:
	ldr	r0, [r6]
	bl	nitems
	cmp	r0, r4
	bgt	.L5
	mov	r0, r7
	bl	strdup
	subs	r5, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, #120
	bl	strchr
	subs	r4, r0, #0
	beq	.L16
	mov	r6, #0
	mov	r0, r5
	mov	r2, r6
	mov	r1, r6
	strb	r6, [r4], #1
	bl	strtol
	mov	r3, r0
	mov	r2, r6
	str	r3, [r9]
	mov	r0, r4
	mov	r1, r6
	bl	strtol
	mov	r3, r0
	mov	r0, r5
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	free
.L15:
	ldr	r3, [r5]
	str	r3, [r9]
	ldr	r3, [r5, #4]
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	free
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	resolutions
	.size	efi_get_max_resolution, .-efi_get_max_resolution
	.comm	resolutions,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
