	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_dfp_restore
_nv04_dfp_restore:                      ## @nv04_dfp_restore
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nouveau_encoder
	movq	%rax, %r12
	movq	(%rbx), %r15
	movslq	16(%rax), %r14
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_DCB_OUTPUT_LVDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_nouveau_encoder_connector_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	8(%r12), %rsi
	movq	_LVDS_PANEL_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_call_lvds_script
	jmp	LBB0_6
LBB0_4:
	movq	_DCB_OUTPUT_TMDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_nv04_display
	movq	%r14, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_nouveau_hw_pllvals_to_clk
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_run_tmds_table
LBB0_6:
	movq	_NV_DPMS_CLEARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_OUTPUT_LVDS,8,3            ## @DCB_OUTPUT_LVDS
	.comm	_LVDS_PANEL_ON,4,2              ## @LVDS_PANEL_ON
	.comm	_DCB_OUTPUT_TMDS,8,3            ## @DCB_OUTPUT_TMDS
	.comm	_NV_DPMS_CLEARED,4,2            ## @NV_DPMS_CLEARED
	.no_dead_strip	_nv04_dfp_restore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_dfp_restore
_nv04_dfp_restore:                      ; @nv04_dfp_restore
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_nouveau_encoder
	mov	x19, x0
	ldr	x21, [x20]
	ldrsw	x20, [x0, #16]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DCB_OUTPUT_LVDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCB_OUTPUT_LVDS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_nouveau_encoder_connector_get
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x1, [x19, #8]
Lloh3:
	adrp	x9, _LVDS_PANEL_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LVDS_PANEL_ON@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	ldr	w4, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_call_lvds_script
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x9, _DCB_OUTPUT_TMDS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DCB_OUTPUT_TMDS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_nv04_display
	ldr	x8, [x0]
	add	x0, x8, x20, lsl #2
	bl	_nouveau_hw_pllvals_to_clk
	mov	x3, x0
	ldr	x1, [x19, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_run_tmds_table
LBB0_6:
Lloh9:
	adrp	x8, _NV_DPMS_CLEARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV_DPMS_CLEARED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_OUTPUT_LVDS,8,3            ; @DCB_OUTPUT_LVDS
	.comm	_LVDS_PANEL_ON,4,2              ; @LVDS_PANEL_ON
	.comm	_DCB_OUTPUT_TMDS,8,3            ; @DCB_OUTPUT_TMDS
	.comm	_NV_DPMS_CLEARED,4,2            ; @NV_DPMS_CLEARED
	.no_dead_strip	_nv04_dfp_restore
.subsections_via_symbols
