	.file	"extr_nv_driver.c_riva_is_second.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	riva_is_second, @function
riva_is_second:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	DWORD PTR [rdi], 1
	mov	rbp, rdi
	jne	.L2
	movzx	ecx, WORD PTR 4[rdi]
	cmp	ecx, 652
	je	.L24
	jg	.L4
	cmp	ecx, 391
	jg	.L5
	cmp	ecx, 371
	jle	.L13
	sub	ecx, 372
	mov	eax, 1
	sal	rax, cl
	test	eax, 787247
	je	.L13
.L24:
	mov	rax, QWORD PTR TRUE[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	riva_override_CRTC@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	sub	ecx, 790
	cmp	ecx, 23
	ja	.L13
	lea	rdx, .L8[rip]
	movsx	rax, DWORD PTR [rdx+rcx*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L13-.L8
	.long	.L13-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L13-.L8
	.long	.L13-.L8
	.long	.L13-.L8
	.long	.L13-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L13-.L8
	.long	.L13-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.long	.L13-.L8
	.long	.L13-.L8
	.long	.L24-.L8
	.long	.L24-.L8
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	ecx, 646
	je	.L24
.L13:
	mov	rax, QWORD PTR FALSE[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	riva_override_CRTC@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	esi, esi
	call	riva_is_connected@PLT
	test	rax, rax
	je	.L11
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, 1324
	call	NV_RD32@PLT
	test	ah, 1
	je	.L13
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, 1
	mov	rdi, rbp
	call	riva_is_connected@PLT
	test	rax, rax
	je	.L13
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, 9516
	call	NV_RD32@PLT
	test	ah, 1
	je	.L13
	jmp	.L24
	.cfi_endproc
.LFE0:
	.size	riva_is_second, .-riva_is_second
	.comm	TRUE,8,8
	.comm	FALSE,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_nv_driver.c_riva_is_second.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	riva_is_second, %function
riva_is_second:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	cmp	r3, #1
	mov	r4, r0
	bne	.L2
	ldrh	r3, [r0, #4]
	cmp	r3, #652
	beq	.L22
	bgt	.L4
	cmp	r3, #392
	bge	.L5
	cmp	r3, #372
	blt	.L14
	sub	r3, r3, #372
	cmp	r3, #19
	ldrls	pc, [pc, r3, asl #2]
	b	.L14
.L9:
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L14
	.word	.L22
	.word	.L14
	.word	.L14
	.word	.L22
	.word	.L22
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L22
	.word	.L22
.L4:
	sub	r3, r3, #788
	sub	r3, r3, #2
	cmp	r3, #23
	bhi	.L14
	cmp	r3, #23
	ldrls	pc, [pc, r3, asl #2]
	b	.L14
.L8:
	.word	.L22
	.word	.L22
	.word	.L14
	.word	.L14
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L22
	.word	.L22
	.word	.L14
	.word	.L14
	.word	.L22
	.word	.L22
	.word	.L14
	.word	.L14
	.word	.L22
	.word	.L22
.L5:
	ldr	r2, .L24
	cmp	r3, r2
	beq	.L22
.L14:
	ldr	r3, .L24+4
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, lr}
	b	riva_override_CRTC
.L2:
	mov	r1, #0
	bl	riva_is_connected
	cmp	r0, #0
	beq	.L12
	ldr	r1, .L24+8
	ldr	r0, [r4, #12]
	bl	NV_RD32
	tst	r0, #256
	beq	.L14
.L22:
	ldr	r3, .L24+12
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, lr}
	b	riva_override_CRTC
.L12:
	mov	r1, #1
	mov	r0, r4
	bl	riva_is_connected
	cmp	r0, #0
	beq	.L14
	ldr	r1, .L24+16
	ldr	r0, [r4, #12]
	bl	NV_RD32
	tst	r0, #256
	beq	.L14
	b	.L22
.L25:
	.align	2
.L24:
	.word	646
	.word	FALSE
	.word	1324
	.word	TRUE
	.word	9516
	.size	riva_is_second, .-riva_is_second
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
