	.file	"extr_crtc.c_nv_crtc_mode_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CTRC mode on CRTC %d:\n"
	.text
	.p2align 4
	.type	nv_crtc_mode_set, @function
nv_crtc_mode_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rsi
	call	nouveau_crtc@PLT
	mov	rdi, r15
	mov	r13, rax
	call	nouveau_drm@PLT
	mov	edx, DWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	r14, rax
	call	NV_DEBUG@PLT
	mov	rdi, rbx
	call	drm_mode_debug_printmodeline@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	nv_crtc_swap_fbs@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[r13]
	mov	edx, -1
	mov	rdi, r15
	call	nv_lock_vga_crtc_shadow@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	nv_crtc_mode_set_vga@PLT
	mov	rax, QWORD PTR NV_DEVICE_INFO_V0_CURIE[rip]
	cmp	QWORD PTR [r14], rax
	je	.L7
.L3:
	mov	rsi, rbx
	mov	rdi, rbp
	call	nv_crtc_mode_set_regs@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	nv_crtc_calc_state_ext@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r15
	call	nv04_display@PLT
	mov	edx, DWORD PTR NV_PRAMDAC_SEL_CLK[rip]
	xor	esi, esi
	mov	rdi, r15
	mov	ecx, DWORD PTR [rax]
	call	NVWriteRAMDAC@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	nv_crtc_mode_set, .-nv_crtc_mode_set
	.comm	NV_PRAMDAC_SEL_CLK,4,4
	.comm	NV_DEVICE_INFO_V0_CURIE,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_crtc.c_nv_crtc_mode_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CTRC mode on CRTC %d:\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv_crtc_mode_set, %function
nv_crtc_mode_set:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r8, r1
	mov	r4, r0
	ldr	r9, [r0]
	bl	nouveau_crtc
	mov	r7, r0
	mov	r0, r9
	bl	nouveau_drm
	ldr	r2, [r7]
	ldr	r1, .L8
	mov	r10, r0
	bl	NV_DEBUG
	mov	r0, r5
	bl	drm_mode_debug_printmodeline
	mov	r0, r4
	ldr	r1, [sp, #36]
	bl	nv_crtc_swap_fbs
	subs	r6, r0, #0
	beq	.L6
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mvn	r2, #0
	ldr	r1, [r7]
	mov	r0, r9
	bl	nv_lock_vga_crtc_shadow
	mov	r1, r5
	mov	r0, r4
	bl	nv_crtc_mode_set_vga
	ldr	r3, .L8+4
	ldr	r2, [r10]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L7
.L3:
	mov	r1, r5
	mov	r0, r4
	bl	nv_crtc_mode_set_regs
	mov	r1, r8
	mov	r0, r4
	ldr	r2, [r5]
	bl	nv_crtc_calc_state_ext
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r3, .L8+8
	mov	r0, r9
	ldr	r7, [r3]
	bl	nv04_display
	mov	r2, r7
	ldr	r3, [r0]
	mov	r1, r6
	mov	r0, r9
	bl	NVWriteRAMDAC
	b	.L3
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	NV_DEVICE_INFO_V0_CURIE
	.word	NV_PRAMDAC_SEL_CLK
	.size	nv_crtc_mode_set, .-nv_crtc_mode_set
	.comm	NV_PRAMDAC_SEL_CLK,4,4
	.comm	NV_DEVICE_INFO_V0_CURIE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
