	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_mst_hpd_irq             ## -- Begin function drm_dp_mst_hpd_irq
	.p2align	4, 0x90
_drm_dp_mst_hpd_irq:                    ## @drm_dp_mst_hpd_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$0, (%rdx)
	movl	(%rsi), %eax
	andl	$63, %eax
	cmpl	(%rdi), %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, (%r12)
	movl	$1, (%r14)
LBB0_2:
	movl	4(%rbx), %eax
	movq	_DP_DOWN_REP_MSG_RDY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_drm_dp_mst_handle_down_rep
	movl	%eax, %r15d
	movl	$1, (%r14)
	movl	4(%rbx), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	_DP_UP_REQ_MSG_RDY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_drm_dp_mst_handle_up_req
	orl	%eax, %r15d
	movl	$1, (%r14)
LBB0_7:
	movq	%r12, %rdi
	callq	_drm_dp_mst_kick_tx
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DOWN_REP_MSG_RDY,4,2        ## @DP_DOWN_REP_MSG_RDY
	.comm	_DP_UP_REQ_MSG_RDY,4,2          ## @DP_UP_REQ_MSG_RDY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_mst_hpd_irq             ; -- Begin function drm_dp_mst_hpd_irq
	.p2align	2
_drm_dp_mst_hpd_irq:                    ; @drm_dp_mst_hpd_irq
	.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, x2
	mov	x22, x1
	mov	x19, x0
	str	wzr, [x2]
	ldr	w8, [x1]
	and	w8, w8, #0x3f
	ldr	w9, [x0]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.1:
	str	w8, [x19]
	mov	w8, #1
	str	w8, [x20]
LBB0_2:
	ldr	w8, [x22, #4]
Lloh0:
	adrp	x9, _DP_DOWN_REP_MSG_RDY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_DOWN_REP_MSG_RDY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_drm_dp_mst_handle_down_rep
	mov	x21, x0
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x22, #4]
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
Lloh3:
	adrp	x9, _DP_UP_REQ_MSG_RDY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_UP_REQ_MSG_RDY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_drm_dp_mst_handle_up_req
	orr	w21, w0, w21
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	mov	x0, x19
	bl	_drm_dp_mst_kick_tx
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DOWN_REP_MSG_RDY,4,2        ; @DP_DOWN_REP_MSG_RDY
	.comm	_DP_UP_REQ_MSG_RDY,4,2          ; @DP_UP_REQ_MSG_RDY
.subsections_via_symbols
