	.file	"extr_vga.c_vga_get_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vga_get_info, @function
vga_get_info:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR vga_init_done[rip]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR ENXIO[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	mov	edx, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r8d, DWORD PTR [rdi]
	mov	edi, DWORD PTR 8[rdi]
	and	r8d, DWORD PTR V_ADP_COLOR[rip]
	mov	esi, r8d
	call	map_gen_mode_num@PLT
	mov	ebx, eax
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR V_ADP_MODECHANGE[rip], eax
	jne	.L20
	cmp	DWORD PTR 4[rbp], ebx
	jne	.L6
.L5:
	mov	rdx, QWORD PTR bios_vmode[rip]
	mov	ecx, DWORD PTR EOT[rip]
	mov	eax, DWORD PTR [rdx]
	cmp	eax, ecx
	je	.L6
	mov	esi, DWORD PTR NA[rip]
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	ebx, eax
	jne	.L7
	cmp	esi, eax
	jne	.L21
.L7:
	mov	eax, DWORD PTR 16[rdx]
	add	rdx, 16
	cmp	eax, ecx
	jne	.L8
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, ebx
	call	get_mode_param@PLT
	test	rax, rax
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	movdqu	xmm0, XMMWORD PTR [rdx]
	movups	XMMWORD PTR [r12], xmm0
	mov	eax, DWORD PTR 8[r12]
	imul	eax, DWORD PTR 12[r12]
	mov	DWORD PTR 4[r12], eax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vga_get_info, .-vga_get_info
	.comm	vga_init_done,4,4
	.comm	bios_vmode,8,8
	.comm	V_ADP_MODECHANGE,4,4
	.comm	V_ADP_COLOR,4,4
	.comm	NA,4,4
	.comm	EOT,4,4
	.comm	ENXIO,4,4
	.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_vga.c_vga_get_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vga_get_info, %function
vga_get_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L16+4
	ldr	r0, [r3]
	bx	lr
.L2:
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L16+8
	ldr	r0, [r0]
	ldr	r3, [r3]
	mov	r6, r2
	mov	r2, r1
	and	r1, r0, r3
	ldr	r0, [r4, #8]
	bl	map_gen_mode_num
	ldr	r3, .L16+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r5, r0
	tst	r2, r3
	bne	.L14
	ldr	r3, [r4, #4]
	cmp	r3, r0
	bne	.L6
.L5:
	ldr	r2, .L16+16
	ldr	r3, .L16+20
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r1]
	cmp	r3, r2
	beq	.L6
	ldr	r0, .L16+24
	ldr	r0, [r0]
.L8:
	sub	ip, r5, r3
	clz	ip, ip
	cmp	r0, r3
	lsr	ip, ip, #5
	moveq	ip, #0
	cmp	ip, #0
	bne	.L15
	ldr	r3, [r1, #16]!
	cmp	r3, r2
	bne	.L8
.L6:
	ldr	r3, .L16+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L14:
	bl	get_mode_param
	cmp	r0, #0
	bne	.L5
	b	.L6
.L15:
	ldm	r1, {r0, r1, r2, r3}
	mov	ip, r2
	mul	ip, r3, ip
	stm	r6, {r0, r1, r2, r3}
	mov	lr, r3
	mov	r0, #0
	str	ip, [r6, #4]
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	vga_init_done
	.word	ENXIO
	.word	V_ADP_COLOR
	.word	V_ADP_MODECHANGE
	.word	bios_vmode
	.word	EOT
	.word	NA
	.word	EINVAL
	.size	vga_get_info, .-vga_get_info
	.comm	vga_init_done,4,4
	.comm	bios_vmode,4,4
	.comm	V_ADP_MODECHANGE,4,4
	.comm	V_ADP_COLOR,4,4
	.comm	NA,4,4
	.comm	EOT,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
