	.file	"extr_nv04_dac.c_nv04_dac_restore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv04_dac_restore, @function
nv04_dac_restore:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	nouveau_encoder@PLT
	mov	r12, QWORD PTR 0[rbp]
	mov	rbx, rax
	mov	rdi, r12
	call	nv_gf4_disp_arch@PLT
	test	rax, rax
	jne	.L8
.L2:
	mov	eax, DWORD PTR NV_DPMS_CLEARED[rip]
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r13d, DWORD PTR 4[rbx]
	mov	rdi, rbp
	call	nv04_dac_output_offset@PLT
	add	rax, QWORD PTR NV_PRAMDAC_DACCLK[rip]
	xor	esi, esi
	mov	rdi, r12
	mov	rdx, rax
	mov	ecx, r13d
	call	NVWriteRAMDAC@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	nv04_dac_restore, .-nv04_dac_restore
	.comm	NV_PRAMDAC_DACCLK,8,8
	.comm	NV_DPMS_CLEARED,4,4
	.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_nv04_dac.c_nv04_dac_restore.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv04_dac_restore, %function
nv04_dac_restore:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	nouveau_encoder
	ldr	r6, [r5]
	mov	r4, r0
	mov	r0, r6
	bl	nv_gf4_disp_arch
	cmp	r0, #0
	bne	.L8
.L2:
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r5
	bl	nv04_dac_output_offset
	mov	r1, r0
	ldr	r3, .L9+4
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r3, [r4, #4]
	add	r2, r1, r2
	mov	r1, #0
	bl	NVWriteRAMDAC
	b	.L2
.L10:
	.align	2
.L9:
	.word	NV_DPMS_CLEARED
	.word	NV_PRAMDAC_DACCLK
	.size	nv04_dac_restore, .-nv04_dac_restore
	.comm	NV_PRAMDAC_DACCLK,4,4
	.comm	NV_DPMS_CLEARED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
