	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_intel_dp_sink_dpms
_cdv_intel_dp_sink_dpms:                ## @cdv_intel_dp_sink_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$17, (%rax,%rcx,4)
	jge	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rcx
	movq	_DP_SET_POWER@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%esi, (%rcx)
	jne	LBB0_6
## %bb.2:
	movq	_DP_SET_POWER_D0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cdv_intel_dp_aux_native_write_1
	cmpl	$1, %eax
	je	LBB0_7
## %bb.3:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_cdv_intel_dp_aux_native_write_1
	cmpl	$1, %eax
	je	LBB0_7
## %bb.4:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_cdv_intel_dp_aux_native_write_1
	cmpl	$1, %eax
	je	LBB0_7
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
LBB0_6:
	movq	_DP_SET_POWER_D3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cdv_intel_dp_aux_native_write_1
	cmpl	$1, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.comm	_DP_SET_POWER,4,2               ## @DP_SET_POWER
	.comm	_DP_SET_POWER_D3,4,2            ## @DP_SET_POWER_D3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write sink power state\n"

	.comm	_DP_SET_POWER_D0,4,2            ## @DP_SET_POWER_D0
	.no_dead_strip	_cdv_intel_dp_sink_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_sink_dpms
_cdv_intel_dp_sink_dpms:                ; @cdv_intel_dp_sink_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
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DP_DPCD_REV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_DPCD_REV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #17
	b.ge	LBB0_2
LBB0_1:
	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_2:
	mov	x19, x0
Lloh3:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x20, _DP_SET_POWER@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DP_SET_POWER@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w9, w1
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x21, _DP_SET_POWER_D0@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DP_SET_POWER_D0@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x8
	bl	_cdv_intel_dp_aux_native_write_1
	cmp	w0, #1
	b.eq	LBB0_1
; %bb.4:
	mov	w0, #1000
	bl	_udelay
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_cdv_intel_dp_aux_native_write_1
	cmp	w0, #1
	b.eq	LBB0_1
; %bb.5:
	mov	w0, #1000
	bl	_udelay
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_cdv_intel_dp_aux_native_write_1
	cmp	w0, #1
	b.eq	LBB0_1
; %bb.6:
	mov	w0, #1000
	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	_udelay
LBB0_7:
Lloh10:
	adrp	x9, _DP_SET_POWER_D3@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DP_SET_POWER_D3@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x1, x8
	bl	_cdv_intel_dp_aux_native_write_1
	cmp	w0, #1
	b.eq	LBB0_1
; %bb.8:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_DEBUG_DRIVER
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.comm	_DP_SET_POWER,4,2               ; @DP_SET_POWER
	.comm	_DP_SET_POWER_D3,4,2            ; @DP_SET_POWER_D3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write sink power state\n"

	.comm	_DP_SET_POWER_D0,4,2            ; @DP_SET_POWER_D0
	.no_dead_strip	_cdv_intel_dp_sink_dpms
.subsections_via_symbols
