	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_send_link_address
_drm_dp_send_link_address:              ## @drm_dp_send_link_address
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, 32(%rax)
	movq	%rax, %rdi
	callq	_build_link_address
	movl	$1, (%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_dp_queue_down_tx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drm_dp_mst_wait_tx_reply
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	movq	(%r14), %rax
	movq	_DP_SIDEBAND_REPLY_NAK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$0, (%rbx)
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_12
LBB0_4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpl	$0, 8(%r14)
	jle	LBB0_7
## %bb.5:
	movl	$32, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%r12), %edx
	movl	-4(%rax,%r12), %ecx
	movl	-8(%rax,%r12), %r8d
	movl	-12(%rax,%r12), %r9d
	movl	-16(%rax,%r12), %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	-20(%rax,%r12), %r11d
	movl	-24(%rax,%r12), %r15d
	movq	%r14, %r10
	movl	-32(%rax,%r12), %r14d
	movl	-28(%rax,%r12), %r13d
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	pushq	%r14
	movq	%r10, %r14
	pushq	%r13
	pushq	%r15
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_DRM_DEBUG_KMS
	addq	$48, %rsp
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$36, %r12
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movl	24(%r14), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_drm_dp_check_mstb_guid
	cmpl	$0, 8(%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_10
## %bb.8:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	16(%r14), %rdx
	addq	%r12, %rdx
	movq	%r15, %rdi
	callq	_drm_dp_add_port
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$36, %r12
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movl	(%r13), %edi
	callq	_drm_kms_helper_hotplug_event
LBB0_12:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DP_SIDEBAND_REPLY_NAK,8,3      ## @DP_SIDEBAND_REPLY_NAK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link address nak received\n"

L_.str.1:                               ## @.str.1
	.asciz	"link address reply: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"port %d: input %d, pdt: %d, pn: %d, dpcd_rev: %02x, mcs: %d, ddps: %d, ldps %d, sdp %d/%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"link address failed %d\n"

	.no_dead_strip	_drm_dp_send_link_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_send_link_address
_drm_dp_send_link_address:              ; @drm_dp_send_link_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #32]
	bl	_build_link_address
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_drm_dp_queue_down_tx
	mov	x0, x20
	mov	x1, x19
	bl	_drm_dp_mst_wait_tx_reply
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _DP_SIDEBAND_REPLY_NAK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_SIDEBAND_REPLY_NAK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	str	wzr, [x20]
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_DRM_DEBUG_KMS
	b	LBB0_14
LBB0_7:
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
	mov	w24, #32
Lloh12:
	adrp	x22, l_.str.2@PAGE
Lloh13:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x24
	ldp	w10, w9, [x8, #-4]
	ldp	w12, w11, [x8, #-12]
	ldp	w14, w13, [x8, #-20]
	ldp	w16, w15, [x8, #-28]
	ldur	w8, [x8, #-32]
	stp	x16, x8, [sp, #64]
	stp	x14, x15, [sp, #48]
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x23, x9, [sp]
	mov	x0, x22
	bl	_DRM_DEBUG_KMS
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x24, x24, #36
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_10:
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_drm_dp_check_mstb_guid
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x22, #0
	mov	x23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	x8, [x19, #16]
	add	x2, x8, x22
	mov	x0, x20
	bl	_drm_dp_add_port
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #36
	cmp	x23, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	w0, [x21]
	bl	_drm_kms_helper_hotplug_event
LBB0_14:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DP_SIDEBAND_REPLY_NAK,8,3      ; @DP_SIDEBAND_REPLY_NAK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link address nak received\n"

l_.str.1:                               ; @.str.1
	.asciz	"link address reply: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"port %d: input %d, pdt: %d, pn: %d, dpcd_rev: %02x, mcs: %d, ddps: %d, ldps %d, sdp %d/%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"link address failed %d\n"

	.no_dead_strip	_drm_dp_send_link_address
.subsections_via_symbols
