	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_mstc_get_modes
_nv50_mstc_get_modes:                   ## @nv50_mstc_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nv50_mstc
	movq	%rax, %rbx
	movq	24(%rax), %rdx
	movl	(%rdx), %esi
	movq	%rax, %rdi
	callq	_drm_dp_mst_get_edid
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_drm_connector_update_edid_property
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_drm_add_edid_modes
	movl	%eax, %r14d
	cmpl	$0, 4(%rbx)
	jne	LBB0_5
LBB0_4:
	movl	$8, 4(%rbx)
LBB0_5:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	callq	_drm_mode_destroy
LBB0_7:
	movq	%rbx, %rdi
	callq	_nouveau_conn_native_mode
	movq	%rax, 8(%rbx)
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%r14d, %r14d
	cmpl	$0, 4(%rbx)
	jne	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_mstc_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_mstc_get_modes
_nv50_mstc_get_modes:                   ; @nv50_mstc_get_modes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_nv50_mstc
	mov	x19, x0
	ldr	x2, [x0, #24]
	ldr	w1, [x2]
	bl	_drm_dp_mst_get_edid
	mov	x1, x0
	str	x0, [x19, #16]
	mov	x0, x19
	bl	_drm_connector_update_edid_property
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_drm_add_edid_modes
	mov	x20, x0
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_3
LBB0_2:
	mov	w8, #8
	str	w8, [x19, #4]
LBB0_3:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	bl	_drm_mode_destroy
LBB0_5:
	mov	x0, x19
	bl	_nouveau_conn_native_mode
	str	x0, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w20, #0
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_3
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_mstc_get_modes
.subsections_via_symbols
