	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_check_service_irq
_intel_dp_check_service_irq:            ## @intel_dp_check_service_irq
	.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	_DP_DPCD_REV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$17, (%rax,%rcx,4)
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	_DP_DEVICE_SERVICE_IRQ_VECTOR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_drm_dp_dpcd_readb
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.2:
	movl	-28(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.3:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_drm_dp_dpcd_writeb
	movl	-28(%rbp), %eax
	movq	_DP_AUTOMATED_TEST_REQUEST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_intel_dp_handle_test_request
	movl	-28(%rbp), %eax
LBB0_5:
	movq	_DP_CP_IRQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	callq	_intel_hdcp_handle_cp_irq
	movl	-28(%rbp), %eax
LBB0_7:
	movq	_DP_SINK_SPECIFIC_IRQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_DEVICE_SERVICE_IRQ_VECTOR,4,2 ## @DP_DEVICE_SERVICE_IRQ_VECTOR
	.comm	_DP_AUTOMATED_TEST_REQUEST,4,2  ## @DP_AUTOMATED_TEST_REQUEST
	.comm	_DP_CP_IRQ,4,2                  ## @DP_CP_IRQ
	.comm	_DP_SINK_SPECIFIC_IRQ,4,2       ## @DP_SINK_SPECIFIC_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sink specific irq unhandled\n"

	.no_dead_strip	_intel_dp_check_service_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_check_service_irq
_intel_dp_check_service_irq:            ; @intel_dp_check_service_irq
	.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
	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_8
; %bb.1:
	mov	x19, x0
	add	x20, x0, #12
Lloh3:
	adrp	x21, _DP_DEVICE_SERVICE_IRQ_VECTOR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DP_DEVICE_SERVICE_IRQ_VECTOR@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_drm_dp_dpcd_readb
	ldr	w2, [sp, #12]
	cmp	w0, #1
	ccmp	w2, #0, #4, eq
	b.eq	LBB0_8
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_drm_dp_dpcd_writeb
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _DP_AUTOMATED_TEST_REQUEST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DP_AUTOMATED_TEST_REQUEST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_intel_dp_handle_test_request
	ldr	w8, [sp, #12]
LBB0_4:
Lloh8:
	adrp	x9, _DP_CP_IRQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DP_CP_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_intel_hdcp_handle_cp_irq
	ldr	w8, [sp, #12]
LBB0_6:
Lloh11:
	adrp	x9, _DP_SINK_SPECIFIC_IRQ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DP_SINK_SPECIFIC_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_DEVICE_SERVICE_IRQ_VECTOR,4,2 ; @DP_DEVICE_SERVICE_IRQ_VECTOR
	.comm	_DP_AUTOMATED_TEST_REQUEST,4,2  ; @DP_AUTOMATED_TEST_REQUEST
	.comm	_DP_CP_IRQ,4,2                  ; @DP_CP_IRQ
	.comm	_DP_SINK_SPECIFIC_IRQ,4,2       ; @DP_SINK_SPECIFIC_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sink specific irq unhandled\n"

	.no_dead_strip	_intel_dp_check_service_irq
.subsections_via_symbols
