	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_dp_mst_get_modes
_dm_dp_mst_get_modes:                   ## @dm_dp_mst_get_modes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_to_amdgpu_dm_connector
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.2:
	movq	32(%rbx), %rsi
	movl	28(%rbx), %edx
	movq	%r14, %rdi
	callq	_drm_dp_mst_get_edid
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rsi
	movq	%rax, (%rbx)
LBB0_5:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	movq	(%rdi), %rax
	movq	_SIGNAL_TYPE_VIRTUAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	callq	_dc_sink_release
	movq	$0, 16(%rbx)
	movq	(%rbx), %rsi
LBB0_8:
	movq	_SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	24(%rbx), %edi
	movl	%edi, -20(%rbp)
	movl	(%rsi), %edx
	incl	%edx
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	leaq	-24(%rbp), %rcx
	callq	_dc_link_add_remote_sink
	movq	%rbx, 8(%rax)
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_amdgpu_dm_update_freesync_caps
	movq	(%rbx), %rsi
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_drm_connector_update_edid_property
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_drm_add_edid_modes
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_add_edid_modes             ## TAILCALL
LBB0_3:
	addq	$8, %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_connector_update_edid_property
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGNAL_TYPE_VIRTUAL,8,3        ## @SIGNAL_TYPE_VIRTUAL
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,4,2 ## @SIGNAL_TYPE_DISPLAY_PORT_MST
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.no_dead_strip	_dm_dp_mst_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_dp_mst_get_modes
_dm_dp_mst_get_modes:                   ; @dm_dp_mst_get_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_to_amdgpu_dm_connector
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x1, [x0]
	cbz	x1, LBB0_4
; %bb.2:
	ldr	x0, [x20, #16]
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_drm_add_edid_modes
LBB0_4:
	ldr	x1, [x20, #32]
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_drm_dp_mst_get_edid
	mov	x1, x0
	cbz	x0, LBB0_11
; %bb.5:
	str	x1, [x20]
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_8
LBB0_6:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SIGNAL_TYPE_VIRTUAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGNAL_TYPE_VIRTUAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	bl	_dc_sink_release
	str	xzr, [x20, #16]
	ldr	x1, [x20]
LBB0_8:
Lloh3:
	adrp	x8, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w0, [x20, #24]
	stp	w8, w0, [sp, #8]
	ldr	w8, [x1]
Lloh6:
	adrp	x9, _EDID_LENGTH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EDID_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	madd	w2, w9, w8, w9
	add	x3, sp, #8
	bl	_dc_link_add_remote_sink
	str	x20, [x0, #8]
	str	x0, [x20, #16]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_amdgpu_dm_update_freesync_caps
	ldr	x1, [x20]
LBB0_9:
	add	x0, x20, #8
	bl	_drm_connector_update_edid_property
	ldr	x1, [x20]
	mov	x0, x19
	bl	_drm_add_edid_modes
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	add	x0, x20, #8
	bl	_drm_connector_update_edid_property
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGNAL_TYPE_VIRTUAL,8,3        ; @SIGNAL_TYPE_VIRTUAL
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,4,2 ; @SIGNAL_TYPE_DISPLAY_PORT_MST
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.no_dead_strip	_dm_dp_mst_get_modes
.subsections_via_symbols
