	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_mst_wait_tx_reply
_drm_dp_mst_wait_tx_reply:              ## @drm_dp_mst_wait_tx_reply
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	4(%r14), %ebx
	movq	%r14, %rdi
	callq	_check_txmsg_state
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shll	$2, %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wait_event_timeout
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	callq	_mutex_lock
	movq	(%r12), %rdx
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	_DRM_DP_SIDEBAND_TX_TIMEOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_9
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movq	8(%r12), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_DRM_DEBUG_KMS
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r12), %rax
	movq	_DRM_DP_SIDEBAND_TX_QUEUED@GOTPCREL(%rip), %rcx
	movq	_DRM_DP_SIDEBAND_TX_START_SEND@GOTPCREL(%rip), %r13
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	(%r13), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
LBB0_5:
	leaq	16(%r12), %rdi
	callq	_list_del
	movq	(%r12), %rax
	movq	(%r13), %rcx
LBB0_6:
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.7:
	movq	_DRM_DP_SIDEBAND_TX_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	movq	(%r15), %rax
	movq	8(%r12), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_DRM_DP_SIDEBAND_TX_TIMEOUT,8,3 ## @DRM_DP_SIDEBAND_TX_TIMEOUT
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timedout msg send %p %d %d\n"

	.comm	_DRM_DP_SIDEBAND_TX_QUEUED,8,3  ## @DRM_DP_SIDEBAND_TX_QUEUED
	.comm	_DRM_DP_SIDEBAND_TX_START_SEND,8,3 ## @DRM_DP_SIDEBAND_TX_START_SEND
	.comm	_DRM_DP_SIDEBAND_TX_SENT,8,3    ## @DRM_DP_SIDEBAND_TX_SENT
	.no_dead_strip	_drm_dp_mst_wait_tx_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_mst_wait_tx_reply
_drm_dp_mst_wait_tx_reply:              ; @drm_dp_mst_wait_tx_reply
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w22, [x19, #4]
	mov	x0, x19
	bl	_check_txmsg_state
	mov	x1, x0
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x22
	bl	_wait_event_timeout
	mov	x22, x0
	ldr	x0, [x21, #8]
	bl	_mutex_lock
	ldr	x2, [x20]
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DRM_DP_SIDEBAND_TX_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_DP_SIDEBAND_TX_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_3:
	ldr	x3, [x20, #8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _DRM_DP_SIDEBAND_TX_QUEUED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_DP_SIDEBAND_TX_QUEUED@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x9]
Lloh17:
	adrp	x23, _DRM_DP_SIDEBAND_TX_START_SEND@GOTPAGE
Lloh18:
	ldr	x23, [x23, _DRM_DP_SIDEBAND_TX_START_SEND@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_5
; %bb.4:
	add	x0, x20, #16
	bl	_list_del
	ldr	x8, [x20]
	ldr	x9, [x23]
LBB0_5:
Lloh19:
	adrp	x10, _DRM_DP_SIDEBAND_TX_SENT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DRM_DP_SIDEBAND_TX_SENT@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x21]
	ldr	x9, [x20, #8]
	str	xzr, [x8, x9, lsl #3]
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_DRM_DP_SIDEBAND_TX_TIMEOUT,8,3 ; @DRM_DP_SIDEBAND_TX_TIMEOUT
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timedout msg send %p %d %d\n"

	.comm	_DRM_DP_SIDEBAND_TX_QUEUED,8,3  ; @DRM_DP_SIDEBAND_TX_QUEUED
	.comm	_DRM_DP_SIDEBAND_TX_START_SEND,8,3 ; @DRM_DP_SIDEBAND_TX_START_SEND
	.comm	_DRM_DP_SIDEBAND_TX_SENT,8,3    ; @DRM_DP_SIDEBAND_TX_SENT
	.no_dead_strip	_drm_dp_mst_wait_tx_reply
.subsections_via_symbols
