	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_mst_mode_valid
_intel_dp_mst_mode_valid:               ## @intel_dp_mst_mode_valid
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_intel_connector
	movq	(%rax), %r15
	movl	(%rbx), %edi
	callq	_to_i915
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_drm_connector_is_unregistered
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MODE_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_2:
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	movq	_MODE_NO_DBLESCAN@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_4:
	movq	%r15, %rdi
	callq	_intel_dp_max_link_rate
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_intel_dp_max_lane_count
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_intel_dp_max_data_rate
	movl	%eax, %ebx
	movl	4(%r14), %edi
	movl	$18, %esi
	callq	_intel_dp_link_required
	movl	4(%r14), %edx
	cmpl	$10000, %edx                    ## imm = 0x2710
	jge	LBB0_6
## %bb.5:
	movq	_MODE_CLOCK_LOW@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_6:
	movq	_DRM_MODE_FLAG_DBLCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_8
## %bb.7:
	movq	_MODE_H_ILLEGAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rsi
	movq	%rsi, %rcx
	cmpl	%r12d, %edx
	jg	LBB0_10
## %bb.9:
	movq	_MODE_OK@GOTPCREL(%rip), %rcx
LBB0_10:
	cmpl	%ebx, %eax
	cmovgq	%rsi, %rcx
LBB0_11:
	movl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_ERROR,4,2                 ## @MODE_ERROR
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ## @MODE_NO_DBLESCAN
	.comm	_MODE_CLOCK_LOW,4,2             ## @MODE_CLOCK_LOW
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ## @DRM_MODE_FLAG_DBLCLK
	.comm	_MODE_H_ILLEGAL,4,2             ## @MODE_H_ILLEGAL
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_intel_dp_mst_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_mst_mode_valid
_intel_dp_mst_mode_valid:               ; @intel_dp_mst_mode_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	bl	_to_intel_connector
	ldr	x20, [x0]
	ldr	w0, [x21]
	bl	_to_i915
	ldr	w22, [x0]
	mov	x0, x21
	bl	_drm_connector_is_unregistered
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MODE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _MODE_NO_DBLESCAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_NO_DBLESCAN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_intel_dp_max_link_rate
	mov	x21, x0
	mov	x0, x20
	bl	_intel_dp_max_lane_count
	mov	x1, x0
	mov	x0, x21
	bl	_intel_dp_max_data_rate
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	w1, #18
	bl	_intel_dp_link_required
	ldr	w8, [x19, #4]
	mov	w9, #10000
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _MODE_CLOCK_LOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MODE_CLOCK_LOW@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w9, [x19]
Lloh9:
	adrp	x10, _DRM_MODE_FLAG_DBLCLK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRM_MODE_FLAG_DBLCLK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w22
Lloh12:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
Lloh14:
	adrp	x11, _MODE_CLOCK_HIGH@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MODE_CLOCK_HIGH@GOTPAGEOFF]
	ccmp	w0, w20, #0, le
	csel	x8, x11, x8, gt
	tst	w10, w9
Lloh16:
	adrp	x9, _MODE_H_ILLEGAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MODE_H_ILLEGAL@GOTPAGEOFF]
	csel	x8, x9, x8, ne
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_ERROR,4,2                 ; @MODE_ERROR
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ; @MODE_NO_DBLESCAN
	.comm	_MODE_CLOCK_LOW,4,2             ; @MODE_CLOCK_LOW
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ; @DRM_MODE_FLAG_DBLCLK
	.comm	_MODE_H_ILLEGAL,4,2             ; @MODE_H_ILLEGAL
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_intel_dp_mst_mode_valid
.subsections_via_symbols
