	.file	"extr_vga.c_nvkm_wrvgaowner.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nvkm_wrvgaowner
	.type	nvkm_wrvgaowner, @function
nvkm_wrvgaowner:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR NV_50[rip]
	cmp	QWORD PTR [rdi], rax
	jl	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, 3
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	esi, 1
	cmove	r12d, eax
	cmp	DWORD PTR 8[rdi], 17
	je	.L13
.L5:
	xor	esi, esi
	mov	ecx, r12d
	mov	edx, 68
	mov	rdi, rbp
	call	nvkm_wrvgac@PLT
	cmp	DWORD PTR 8[rbp], 17
	je	.L14
	add	rsp, 8
	.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
.L13:
	.cfi_restore_state
	xor	esi, esi
	mov	edx, 31
	call	nvkm_rdvgac@PLT
	mov	edx, 31
	mov	esi, 1
	mov	rdi, rbp
	call	nvkm_rdvgac@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, r12d
	mov	rdi, rbp
	mov	edx, 46
	xor	esi, esi
	call	nvkm_wrvgac@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	ecx, r12d
	mov	rdi, rbp
	mov	edx, 46
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	xor	esi, esi
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	nvkm_wrvgac@PLT
	.cfi_endproc
.LFE0:
	.size	nvkm_wrvgaowner, .-nvkm_wrvgaowner
	.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_vga.c_nvkm_wrvgaowner.c"
	.text
	.align	2
	.global	nvkm_wrvgaowner
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvkm_wrvgaowner, %function
nvkm_wrvgaowner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bxge	lr
	ldr	r3, [r0, #4]
	cmp	r1, #1
	push	{r4, r5, r6, lr}
	mov	r5, r1
	movne	r5, r1
	moveq	r5, #3
	cmp	r3, #17
	mov	r4, r0
	beq	.L12
.L5:
	mov	r3, r5
	mov	r2, #68
	mov	r1, #0
	mov	r0, r4
	bl	nvkm_wrvgac
	ldr	r3, [r4, #4]
	cmp	r3, #17
	popne	{r4, r5, r6, pc}
	mov	r3, r5
	mov	r2, #46
	mov	r1, #0
	mov	r0, r4
	bl	nvkm_wrvgac
	mov	r3, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #46
	mov	r1, #0
	b	nvkm_wrvgac
.L12:
	mov	r2, #31
	mov	r1, #0
	bl	nvkm_rdvgac
	mov	r2, #31
	mov	r1, #1
	mov	r0, r4
	bl	nvkm_rdvgac
	b	.L5
.L14:
	.align	2
.L13:
	.word	NV_50
	.size	nvkm_wrvgaowner, .-nvkm_wrvgaowner
	.comm	NV_50,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
