	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function drm_dp_payload_send_msg
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_5:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
LCPI0_6:
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
LCPI0_7:
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
LCPI0_8:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_drm_dp_payload_send_msg:               ## @drm_dp_payload_send_msg
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DRM_DP_MAX_SDP_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_drm_dp_mst_topology_get_mstb_validated
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	8(%r12), %esi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	callq	_drm_dp_get_last_connected_port_and_mstb
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.4:
	movq	%rax, %r15
	movl	4(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.5:
	cmpl	$8, %r8d
	jae	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_7:
	movl	%r8d, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$24, %rsi
	jae	LBB0_9
## %bb.8:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_9:
	andq	$-4, %rdx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [20,20,20,20]
	movdqa	LCPI0_6(%rip), %xmm6            ## xmm6 = [24,24,24,24]
	movdqa	LCPI0_7(%rip), %xmm7            ## xmm7 = [28,28,28,28]
	movdqa	LCPI0_8(%rip), %xmm1            ## xmm1 = [32,32,32,32]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm2
	paddd	%xmm8, %xmm2
	movdqa	%xmm0, (%rbx,%rsi,4)
	movdqa	%xmm2, 16(%rbx,%rsi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm9, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm10, %xmm3
	movdqa	%xmm2, 32(%rbx,%rsi,4)
	movdqa	%xmm3, 48(%rbx,%rsi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm4, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm5, %xmm3
	movdqa	%xmm2, 64(%rbx,%rsi,4)
	movdqa	%xmm3, 80(%rbx,%rsi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm7, %xmm3
	movdqa	%xmm2, 96(%rbx,%rsi,4)
	movdqa	%xmm3, 112(%rbx,%rsi,4)
	addq	$32, %rsi
	paddd	%xmm1, %xmm0
	addq	$-4, %rdx
	jne	LBB0_10
LBB0_11:
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:
	leaq	(%rbx,%rsi,4), %rdx
	addq	$16, %rdx
	shlq	$5, %rcx
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm3
	paddd	%xmm1, %xmm3
	movdqa	%xmm0, -16(%rdx,%rsi)
	movdqa	%xmm3, (%rdx,%rsi)
	paddd	%xmm2, %xmm0
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_13
LBB0_14:
	cmpq	%r8, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rbx,%rax,4)
	incq	%rax
	cmpq	%rax, %r8
	jne	LBB0_15
LBB0_16:
	movq	%r13, 8(%r15)
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%rbx, %r9
	callq	_build_allocate_payload
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_dp_queue_down_tx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_drm_dp_mst_wait_tx_reply
	testl	%eax, %eax
	jle	LBB0_17
## %bb.18:
	movq	(%r15), %rax
	movq	_DP_SIDEBAND_REPLY_NAK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_17:
	movl	%eax, %ebx
LBB0_20:
	movq	%r15, %rdi
	callq	_kfree
LBB0_21:
	movq	%r13, %rdi
	callq	_drm_dp_mst_topology_put_mstb
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_22:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.23:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_DP_MAX_SDP_STREAMS,4,2     ## @DRM_DP_MAX_SDP_STREAMS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DP_SIDEBAND_REPLY_NAK,8,3      ## @DP_SIDEBAND_REPLY_NAK
	.no_dead_strip	_drm_dp_payload_send_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function drm_dp_payload_send_msg
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_drm_dp_payload_send_msg:               ; @drm_dp_payload_send_msg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x3
	mov	x22, x2
	mov	x25, x1
	mov	x20, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _DRM_DP_MAX_SDP_STREAMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_DP_MAX_SDP_STREAMS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w8, [x1]
	stur	w8, [x29, #-76]
	ldr	w1, [x1, #8]
	bl	_drm_dp_mst_topology_get_mstb_validated
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x25, #8]
	sub	x2, x29, #76
	mov	x0, x20
	bl	_drm_dp_get_last_connected_port_and_mstb
	mov	x19, x0
	cbz	x0, LBB0_20
LBB0_2:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x23, x0
	ldr	w4, [x25, #4]
	cmp	w4, #1
	b.lt	LBB0_11
; %bb.4:
	cmp	w4, #16
	b.hs	LBB0_7
; %bb.5:
	mov	x8, #0
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_7:
	and	x8, x4, #0xfffffff0
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	add	x9, x24, #32
	movi.4s	v1, #4
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #16
	mov	x10, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v5, v0, v1
	add.4s	v6, v0, v2
	add.4s	v7, v0, v3
	stp	q0, q5, [x9, #-32]
	stp	q6, q7, [x9], #64
	add.4s	v0, v0, v4
	subs	x10, x10, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x8, x4
	b.eq	LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x24, x8, lsl #2]
	add	x8, x8, #1
	cmp	x4, x8
	b.ne	LBB0_10
LBB0_11:
	str	x19, [x23, #8]
	ldur	w1, [x29, #-76]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, x24
	bl	_build_allocate_payload
	mov	x0, x20
	mov	x1, x23
	bl	_drm_dp_queue_down_tx
	mov	x0, x19
	mov	x1, x23
	bl	_drm_dp_mst_wait_tx_reply
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.12:
	ldr	x8, [x23]
Lloh16:
	adrp	x9, _DP_SIDEBAND_REPLY_NAK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DP_SIDEBAND_REPLY_NAK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_14:
	mov	x20, x0
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x23
	bl	_kfree
LBB0_17:
	mov	x0, x19
	bl	_drm_dp_mst_topology_put_mstb
LBB0_18:
	mov	sp, x26
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_DP_MAX_SDP_STREAMS,4,2     ; @DRM_DP_MAX_SDP_STREAMS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DP_SIDEBAND_REPLY_NAK,8,3      ; @DP_SIDEBAND_REPLY_NAK
	.no_dead_strip	_drm_dp_payload_send_msg
.subsections_via_symbols
