	.file	"extr_vga.c_nv_rdvgaowner.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rdvgaowner after nv4x\n"
	.text
	.p2align 4
	.globl	nv_rdvgaowner
	.type	nv_rdvgaowner, @function
nv_rdvgaowner:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nv_device@PLT
	mov	rcx, QWORD PTR NV_50[rip]
	cmp	QWORD PTR [rax], rcx
	jge	.L2
	mov	rdi, rbp
	call	nv_device@PLT
	cmp	DWORD PTR 8[rax], 17
	jne	.L3
	mov	esi, 4228
	mov	rdi, rbp
	call	nv_rd32@PLT
	and	eax, 268435456
	mov	r12d, eax
	jne	.L7
	xor	esi, esi
	mov	edx, 40
	mov	rdi, rbp
	call	nv_rdvgac@PLT
	xor	esi, esi
	mov	edx, 51
	mov	rdi, rbp
	and	eax, 128
	mov	r13d, eax
	call	nv_rdvgac@PLT
	mov	edx, 40
	mov	esi, 1
	mov	rdi, rbp
	mov	r14d, eax
	call	nv_rdvgac@PLT
	mov	edx, 51
	mov	esi, 1
	mov	rdi, rbp
	mov	ebx, eax
	call	nv_rdvgac@PLT
	test	r13d, r13d
	je	.L9
	and	r14d, 1
	je	.L1
.L9:
	shr	bl, 7
	test	al, 1
	jne	.L10
	test	bl, bl
	jne	.L8
.L10:
	test	r13d, r13d
	jne	.L1
	test	bl, bl
	mov	eax, 3
	cmovne	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	nv_error@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	edx, 68
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	nv_rdvgac@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r12d, 4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12d, 3
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nv_rdvgaowner, .-nv_rdvgaowner
	.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_nv_rdvgaowner.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rdvgaowner after nv4x\012\000"
	.text
	.align	2
	.global	nv_rdvgaowner
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv_rdvgaowner, %function
nv_rdvgaowner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	nv_device
	ldr	r3, .L11
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	bge	.L2
	bl	nv_device
	ldr	r3, [r0, #4]
	cmp	r3, #17
	bne	.L3
	mov	r0, r4
	ldr	r1, .L11+4
	bl	nv_rd32
	ands	r5, r0, #268435456
	movne	r5, #4
	bne	.L1
	mov	r2, #40
	mov	r1, r5
	mov	r0, r4
	bl	nv_rdvgac
	mov	r2, #51
	mov	r7, r0
	mov	r1, r5
	mov	r0, r4
	bl	nv_rdvgac
	mov	r2, #40
	mov	r6, r0
	mov	r1, #1
	mov	r0, r4
	bl	nv_rdvgac
	mov	r3, r0
	mov	r2, #51
	mov	r0, r4
	mov	r1, #1
	and	r7, r7, #128
	mvn	r6, r6
	mov	r4, r3
	bl	nv_rdvgac
	cmp	r7, #0
	moveq	r6, #0
	andne	r6, r6, #1
	cmp	r6, #0
	bne	.L1
	lsr	r3, r4, #7
	bic	r0, r3, r0
	tst	r0, #1
	movne	r5, #3
	and	r3, r3, #1
	bne	.L1
	cmp	r7, #0
	movne	r3, #0
	cmp	r3, #0
	movne	r5, #3
	b	.L1
.L2:
	ldr	r1, .L11+8
	bl	nv_error
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #68
	mov	r1, #0
	b	nv_rdvgac
.L12:
	.align	2
.L11:
	.word	NV_50
	.word	4228
	.word	.LC0
	.size	nv_rdvgaowner, .-nv_rdvgaowner
	.comm	NV_50,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
