	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_hpd_pulse             ## -- Begin function intel_dp_hpd_pulse
	.p2align	4, 0x90
_intel_dp_hpd_pulse:                    ## @intel_dp_hpd_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
	leaq	16(%rdi), %r14
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %r15
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	8(%rbx), %edi
	callq	_port_name
	cmpq	%r12, %r15
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_3
LBB0_5:
	movl	8(%rbx), %edi
	callq	_port_name
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpl	$0, 20(%rbx)
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_intel_dp_check_mst_status
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	20(%rbx), %esi
	addl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	leaq	24(%rbx), %r14
	movq	24(%rbx), %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$0, 20(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dp_mst_topology_mgr_set_mst
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$1, (%r14)
LBB0_10:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	testl	%esi, %esi
	jne	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	callq	_intel_dp_short_pulse
	testl	%eax, %eax
	je	LBB0_10
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_EDP,8,3           ## @INTEL_OUTPUT_EDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ignoring long hpd on eDP port %c\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"got hpd irq on port %c - %s\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"short"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"MST device may have disappeared %d vs %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_hpd_pulse             ; -- Begin function intel_dp_hpd_pulse
	.p2align	2
_intel_dp_hpd_pulse:                    ; @intel_dp_hpd_pulse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	add	x19, x0, #16
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w0, [x20, #8]
	bl	_port_name
	mov	x1, x0
	cmp	x21, x22
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_10
LBB0_3:
	ldr	w0, [x20, #8]
	bl	_port_name
	mov	x1, x0
Lloh5:
	adrp	x8, l_.str.3@PAGE
Lloh6:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_intel_dp_check_mst_status
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w1, [x20, #20]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x20, #24]!
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
	stur	wzr, [x20, #-4]
	mov	x0, x20
	mov	w1, #0
	bl	_drm_dp_mst_topology_mgr_set_mst
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
Lloh18:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	cbnz	w1, LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_intel_dp_short_pulse
	cbz	w0, LBB0_7
LBB0_10:
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_EDP,8,3           ; @INTEL_OUTPUT_EDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ignoring long hpd on eDP port %c\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"got hpd irq on port %c - %s\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"short"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"MST device may have disappeared %d vs %d\n"

.subsections_via_symbols
