	.file	"extr_nouveau_bios.c_nouveau_bios_posted.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nouveau_bios_posted, @function
nouveau_bios_posted:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	call	nouveau_drm@PLT
	mov	edi, DWORD PTR [rax]
	call	nv_device@PLT
	mov	rcx, QWORD PTR NV_50[rip]
	cmp	QWORD PTR [rax], rcx
	jl	.L2
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	NVReadVgaCrtc@PLT
	mov	r8d, eax
	mov	eax, 1
	test	r8d, r8d
	je	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 6
	call	NVReadVgaCrtc@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 7
	mov	ebx, eax
	call	NVReadVgaCrtc@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 7
	mov	r12d, eax
	call	NVReadVgaCrtc@PLT
	sal	r12d, 8
	xor	esi, esi
	mov	rdi, rbp
	sal	eax, 4
	and	r12d, 256
	mov	edx, 37
	and	eax, 512
	or	r12d, eax
	call	NVReadVgaCrtc@PLT
	or	ebx, r12d
	xor	esi, esi
	mov	rdi, rbp
	sal	eax, 10
	mov	edx, 65
	and	eax, 1024
	or	ebx, eax
	call	NVReadVgaCrtc@PLT
	sal	eax, 11
	and	eax, 2048
	or	eax, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	setne	al
	pop	r12
	.cfi_def_cfa_offset 8
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 26
	call	NVReadVgaCrtc@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	test	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	setne	al
	movzx	eax, al
	ret
	.cfi_endproc
.LFE0:
	.size	nouveau_bios_posted, .-nouveau_bios_posted
	.comm	NV_50,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_nouveau_bios.c_nouveau_bios_posted.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nouveau_bios_posted, %function
nouveau_bios_posted:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	nouveau_drm
	ldr	r0, [r0]
	bl	nv_device
	ldr	r3, .L8
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L2
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	NVReadVgaCrtc
	subs	r1, r0, #0
	beq	.L7
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r2, #6
	mov	r1, #0
	mov	r0, r4
	bl	NVReadVgaCrtc
	mov	r2, #7
	mov	r7, r0
	mov	r1, #0
	mov	r0, r4
	bl	NVReadVgaCrtc
	mov	r2, #7
	mov	r6, r0
	mov	r1, #0
	mov	r0, r4
	bl	NVReadVgaCrtc
	mov	r2, #37
	mov	r1, #0
	lsl	r5, r0, #4
	mov	r0, r4
	bl	NVReadVgaCrtc
	lsl	r6, r6, #8
	and	r6, r6, #256
	and	r5, r5, #512
	orr	r5, r6, r5
	lsl	r3, r0, #10
	and	r3, r3, #1024
	mov	r0, r4
	mov	r2, #65
	mov	r1, #0
	orr	r5, r5, r7
	orr	r5, r3, r5
	bl	NVReadVgaCrtc
	lsl	r0, r0, #11
	and	r0, r0, #2048
	orrs	r3, r0, r5
	movne	r0, #1
	moveq	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r4
	mov	r2, #26
	bl	NVReadVgaCrtc
	subs	r0, r0, #0
	movne	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	NV_50
	.size	nouveau_bios_posted, .-nouveau_bios_posted
	.comm	NV_50,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
