	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_intel_dp_dpms
_cdv_intel_dp_dpms:                     ## @cdv_intel_dp_dpms
	.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
	movl	%esi, %r14d
	callq	_to_gma_encoder
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_is_edp
	movl	%eax, %r15d
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_1
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_cdv_intel_edp_panel_on
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cdv_intel_dp_sink_dpms
	movq	_DP_PORT_EN@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cdv_intel_edp_backlight_on     ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.2:
	callq	_cdv_intel_edp_backlight_off
	movq	%rbx, %rdi
	callq	_cdv_intel_edp_panel_vdd_on
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cdv_intel_dp_sink_dpms
	movq	%rbx, %rdi
	callq	_cdv_intel_dp_link_down
	movq	%rbx, %rdi
	callq	_cdv_intel_edp_panel_vdd_off
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cdv_intel_edp_panel_off        ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	callq	_cdv_intel_dp_start_link_train
	movq	%rbx, %rdi
	callq	_cdv_intel_dp_complete_link_train
	testl	%r15d, %r15d
	jne	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r14d, %esi
	callq	_cdv_intel_dp_sink_dpms
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cdv_intel_dp_link_down         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.comm	_DP_PORT_EN,4,2                 ## @DP_PORT_EN
	.no_dead_strip	_cdv_intel_dp_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_intel_dp_dpms
_cdv_intel_dp_dpms:                     ; @cdv_intel_dp_dpms
	.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, x1
	bl	_to_gma_encoder
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_REG_READ
	mov	x22, x0
	mov	x0, x19
	bl	_is_edp
	mov	x21, x0
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.1:
	cbz	w21, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_cdv_intel_edp_panel_on
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_cdv_intel_dp_sink_dpms
Lloh3:
	adrp	x8, _DP_PORT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_PORT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.4:
	cbz	w21, LBB0_9
LBB0_5:
	mov	x0, 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
	b	_cdv_intel_edp_backlight_on
LBB0_6:
	mov	x0, x19
	cbz	w21, LBB0_10
; %bb.7:
	bl	_cdv_intel_edp_backlight_off
	mov	x0, x19
	bl	_cdv_intel_edp_panel_vdd_on
	mov	x0, x19
	mov	x1, x20
	bl	_cdv_intel_dp_sink_dpms
	mov	x0, x19
	bl	_cdv_intel_dp_link_down
	mov	x0, x19
	bl	_cdv_intel_edp_panel_vdd_off
	mov	x0, 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
	b	_cdv_intel_edp_panel_off
LBB0_8:
	mov	x0, x19
	bl	_cdv_intel_dp_start_link_train
	mov	x0, x19
	bl	_cdv_intel_dp_complete_link_train
	cbnz	w21, LBB0_5
LBB0_9:
	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
LBB0_10:
	mov	x1, x20
	bl	_cdv_intel_dp_sink_dpms
	mov	x0, 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
	b	_cdv_intel_dp_link_down
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.comm	_DP_PORT_EN,4,2                 ; @DP_PORT_EN
	.no_dead_strip	_cdv_intel_dp_dpms
.subsections_via_symbols
