	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_send_enum_path_resources
_drm_dp_send_enum_path_resources:       ## @drm_dp_send_enum_path_resources
	.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, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_build_enum_path_resources
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_dp_queue_down_tx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_dp_mst_wait_tx_reply
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	movq	_DP_SIDEBAND_REPLY_NAK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	movq	(%r14), %rsi
	cmpq	8(%rbx), %rsi
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	8(%rbx), %rsi
LBB0_7:
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	16(%rbx), %eax
	movl	%eax, 8(%r14)
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DP_SIDEBAND_REPLY_NAK,8,3      ## @DP_SIDEBAND_REPLY_NAK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enum path resources nak received\n"

L_.str.1:                               ## @.str.1
	.asciz	"got incorrect port in response\n"

L_.str.2:                               ## @.str.2
	.asciz	"enum path resources %d: %d %d\n"

	.no_dead_strip	_drm_dp_send_enum_path_resources
.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_enum_path_resources
_drm_dp_send_enum_path_resources:       ; @drm_dp_send_enum_path_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #24]
	ldr	x1, [x19]
	bl	_build_enum_path_resources
	mov	x0, x22
	mov	x1, x20
	bl	_drm_dp_queue_down_tx
	mov	x0, x21
	mov	x1, x20
	bl	_drm_dp_mst_wait_tx_reply
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	ldr	x8, [x20]
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_5
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	ldr	x8, [x20, #8]
LBB0_7:
	ldp	w10, w9, [x20, #16]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x20, #16]
	str	w8, [x19, #8]
LBB0_8:
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DP_SIDEBAND_REPLY_NAK,8,3      ; @DP_SIDEBAND_REPLY_NAK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enum path resources nak received\n"

l_.str.1:                               ; @.str.1
	.asciz	"got incorrect port in response\n"

l_.str.2:                               ; @.str.2
	.asciz	"enum path resources %d: %d %d\n"

	.no_dead_strip	_drm_dp_send_enum_path_resources
.subsections_via_symbols
