	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_mst_handle_up_req
_drm_dp_mst_handle_up_req:              ## @drm_dp_mst_handle_up_req
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_drm_dp_get_one_sb_msg
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.4:
	cmpl	$0, 12(%rbx)
	je	LBB0_10
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_10:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_drm_dp_get_mst_branch_device
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	movl	(%rbx), %r15d
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_drm_dp_sideband_parse_req
	movq	-72(%rbp), %rdx
	movq	_DP_CONNECTION_STATUS_NOTIFY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_12
## %bb.7:
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_drm_dp_send_up_ack_reply
	testq	%r14, %r14
	jne	LBB0_9
## %bb.8:
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_drm_dp_get_mst_branch_device_by_guid
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	leaq	-52(%rbp), %rsi
	movq	%r14, %rdi
	callq	_drm_dp_update_port
	movl	-32(%rbp), %esi
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movl	-52(%rbp), %eax
	movl	-48(%rbp), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	28(%rbx), %edi
	callq	_drm_kms_helper_hotplug_event
	jmp	LBB0_17
LBB0_12:
	movq	_DP_RESOURCE_STATUS_NOTIFY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_16
## %bb.13:
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_drm_dp_send_up_ack_reply
	testq	%r14, %r14
	jne	LBB0_15
## %bb.14:
	movl	-56(%rbp), %esi
	movq	%rbx, %rdi
	callq	_drm_dp_get_mst_branch_device_by_guid
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_11
LBB0_15:
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_17
LBB0_11:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_1
LBB0_16:
	testq	%r14, %r14
	je	LBB0_1
LBB0_17:
	movq	%r14, %rdi
	callq	_drm_dp_mst_topology_put_mstb
LBB0_1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_2:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got MST reply from unknown device %d\n"

	.comm	_DP_CONNECTION_STATUS_NOTIFY,8,3 ## @DP_CONNECTION_STATUS_NOTIFY
L_.str.1:                               ## @.str.1
	.asciz	"Got CSN: pn: %d ldps:%d ddps: %d mcs: %d ip: %d pdt: %d\n"

	.comm	_DP_RESOURCE_STATUS_NOTIFY,8,3  ## @DP_RESOURCE_STATUS_NOTIFY
L_.str.2:                               ## @.str.2
	.asciz	"Got RSN: pn: %d avail_pbn %d\n"

	.no_dead_strip	_drm_dp_mst_handle_up_req
.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_handle_up_req
_drm_dp_mst_handle_up_req:              ; @drm_dp_mst_handle_up_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	mov	w1, #1
	bl	_drm_dp_get_one_sb_msg
	cbz	w0, LBB0_16
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
; %bb.2:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:
	ldp	w1, w2, [x19, #4]
	mov	x0, x19
	bl	_drm_dp_get_mst_branch_device
	mov	x20, x0
	cbz	x0, LBB0_13
LBB0_5:
	ldr	w21, [x19]
	add	x1, sp, #48
	mov	x0, x19
	bl	_drm_dp_sideband_parse_req
	ldr	x2, [sp, #48]
Lloh0:
	adrp	x8, _DP_CONNECTION_STATUS_NOTIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_CONNECTION_STATUS_NOTIFY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_9
; %bb.6:
	ldr	w1, [x19, #24]
	mov	x0, x19
	mov	x3, x21
	mov	w4, #0
	bl	_drm_dp_send_up_ack_reply
	cbnz	x20, LBB0_8
; %bb.7:
	ldr	w1, [sp, #92]
	mov	x0, x19
	bl	_drm_dp_get_mst_branch_device_by_guid
	mov	x20, x0
	cbz	x0, LBB0_13
LBB0_8:
	add	x8, sp, #48
	add	x1, x8, #20
	mov	x0, x20
	bl	_drm_dp_update_port
	ldp	w8, w1, [sp, #84]
	ldp	w10, w9, [sp, #76]
	ldp	w12, w11, [sp, #68]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x19, #28]
	bl	_drm_kms_helper_hotplug_event
	b	LBB0_15
LBB0_9:
Lloh5:
	adrp	x8, _DP_RESOURCE_STATUS_NOTIFY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_RESOURCE_STATUS_NOTIFY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_14
; %bb.10:
	ldr	w1, [x19, #24]
	mov	x0, x19
	mov	x3, x21
	mov	w4, #0
	bl	_drm_dp_send_up_ack_reply
	cbnz	x20, LBB0_12
; %bb.11:
	ldr	w1, [sp, #64]
	mov	x0, x19
	bl	_drm_dp_get_mst_branch_device_by_guid
	mov	x20, x0
	cbz	x0, LBB0_13
LBB0_12:
	ldp	w8, w1, [sp, #56]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_15
LBB0_13:
	ldr	w1, [x19, #4]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_16
LBB0_14:
	cbz	x20, LBB0_16
LBB0_15:
	mov	x0, x20
	bl	_drm_dp_mst_topology_put_mstb
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got MST reply from unknown device %d\n"

	.comm	_DP_CONNECTION_STATUS_NOTIFY,8,3 ; @DP_CONNECTION_STATUS_NOTIFY
l_.str.1:                               ; @.str.1
	.asciz	"Got CSN: pn: %d ldps:%d ddps: %d mcs: %d ip: %d pdt: %d\n"

	.comm	_DP_RESOURCE_STATUS_NOTIFY,8,3  ; @DP_RESOURCE_STATUS_NOTIFY
l_.str.2:                               ; @.str.2
	.asciz	"Got RSN: pn: %d avail_pbn %d\n"

	.no_dead_strip	_drm_dp_mst_handle_up_req
.subsections_via_symbols
