	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_sink_dpms             ## -- Begin function intel_dp_sink_dpms
	.p2align	4, 0x90
_intel_dp_sink_dpms:                    ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$17, (%rax,%rcx,4)
	jl	LBB0_10
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %r15
	cmpl	%esi, (%r15)
	jne	LBB0_2
## %bb.5:
	movq	%rbx, %rdi
	callq	_dp_to_lspcon
	movq	%rax, %r15
	addq	$8, %rbx
	movq	_DP_SET_POWER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DP_SET_POWER_D0@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_writeb
	cmpl	$1, %eax
	je	LBB0_9
## %bb.6:
	movl	$1, %edi
	callq	_msleep
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_writeb
	cmpl	$1, %eax
	je	LBB0_9
## %bb.7:
	movl	$1, %edi
	callq	_msleep
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_writeb
	cmpl	$1, %eax
	jne	LBB0_8
LBB0_9:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lspcon_wait_pcon_mode          ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_downstream_hpd_needs_d0
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	addq	$8, %rbx
	movq	_DP_SET_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DP_SET_POWER_D3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_writeb
	cmpl	$1, %eax
	jne	LBB0_4
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, %edi
	callq	_msleep
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %r15
LBB0_4:
	cmpl	%r14d, (%r15)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## 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
	.comm	_DP_SET_POWER_D0,4,2            ## @DP_SET_POWER_D0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to %s sink power state\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_sink_dpms             ; -- Begin function intel_dp_sink_dpms
	.p2align	2
_intel_dp_sink_dpms:                    ; @intel_dp_sink_dpms
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
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.lt	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x22, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.2:
	bl	_dp_to_lspcon
	mov	x20, x0
	add	x21, x21, #8
Lloh5:
	adrp	x23, _DP_SET_POWER@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DP_SET_POWER@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x24, _DP_SET_POWER_D0@GOTPAGE
Lloh8:
	ldr	x24, [x24, _DP_SET_POWER_D0@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_drm_dp_dpcd_writeb
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_drm_dp_dpcd_writeb
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_drm_dp_dpcd_writeb
	cmp	w0, #1
	b.ne	LBB0_10
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_lspcon_wait_pcon_mode
LBB0_7:
	bl	_downstream_hpd_needs_d0
	cbnz	x0, LBB0_9
; %bb.8:
	add	x0, x21, #8
Lloh9:
	adrp	x8, _DP_SET_POWER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_SET_POWER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DP_SET_POWER_D3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_SET_POWER_D3@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_drm_dp_dpcd_writeb
	cmp	w0, #1
	b.ne	LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #1
	bl	_msleep
LBB0_11:
	ldr	w8, [x22]
Lloh15:
	adrp	x9, l_.str.2@PAGE
Lloh16:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh17:
	adrp	x10, l_.str.1@PAGE
Lloh18:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w19
	csel	x1, x10, x9, eq
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.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
	.comm	_DP_SET_POWER_D0,4,2            ; @DP_SET_POWER_D0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to %s sink power state\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

.subsections_via_symbols
