	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_short_pulse
_intel_dp_short_pulse:                  ## @intel_dp_short_pulse
	.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	_dp_to_i915
	movq	%rax, %r14
	movq	(%rbx), %r12
	leaq	8(%rbx), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_intel_dp_get_dpcd
	cmpq	(%rbx), %r12
	jne	LBB0_5
## %bb.1:
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_intel_dp_check_service_irq
	leaq	16(%rbx), %rdi
	callq	_drm_dp_cec_irq
	movq	%rbx, %rdi
	callq	_intel_dp_needs_link_retrain
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_intel_psr_short_pulse
	movq	8(%rbx), %rax
	movq	_DP_TEST_LINK_TRAINING@GOTPCREL(%rip), %rcx
	movl	$1, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_drm_kms_helper_hotplug_event
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_TEST_LINK_TRAINING,8,3      ## @DP_TEST_LINK_TRAINING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link Training Compliance Test requested\n"

	.no_dead_strip	_intel_dp_short_pulse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_short_pulse
_intel_dp_short_pulse:                  ; @intel_dp_short_pulse
	.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	_dp_to_i915
	mov	x19, x0
	ldr	x21, [x20]
	add	x0, x20, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x20
	bl	_intel_dp_get_dpcd
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	cmp	x21, x9
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_intel_dp_check_service_irq
	add	x0, x20, #16
	bl	_drm_dp_cec_irq
	mov	x0, x20
	bl	_intel_dp_needs_link_retrain
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_intel_psr_short_pulse
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _DP_TEST_LINK_TRAINING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_TEST_LINK_TRAINING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_drm_kms_helper_hotplug_event
LBB0_5:
	mov	w0, #1
LBB0_6:
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_TEST_LINK_TRAINING,8,3      ; @DP_TEST_LINK_TRAINING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link Training Compliance Test requested\n"

	.no_dead_strip	_intel_dp_short_pulse
.subsections_via_symbols
