	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_compute_link_config_wide
_intel_dp_compute_link_config_wide:     ## @intel_dp_compute_link_config_wide
	.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, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %esi
	cmpl	4(%rdx), %esi
	jge	LBB0_1
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_1:
	movq	%rdx, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movq	%r15, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_intel_dp_output_bpp
	movl	12(%r15), %edi
	movl	%eax, %esi
	callq	_intel_dp_link_required
	movslq	8(%rbx), %r12
	movl	12(%rbx), %ecx
	cmpl	%ecx, %r12d
	jle	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	$-6, %esi
	cmpl	4(%rbx), %esi
	jge	LBB0_2
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movl	20(%rbx), %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	12(%rbx), %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	leaq	1(%r12), %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %r12
	movq	%rdx, %r12
	jge	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	movl	16(%rbx), %r14d
	cmpl	%eax, %r14d
	jg	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %r15d
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_intel_dp_max_data_rate
	cmpl	%eax, %r13d
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=3
	addl	%r14d, %r14d
	movl	20(%rbx), %eax
	cmpl	%eax, %r14d
	jle	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movl	%r15d, 8(%rax)
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intel_dp_compute_link_config_wide
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_compute_link_config_wide
_intel_dp_compute_link_config_wide:     ; @intel_dp_compute_link_config_wide
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	w20, w8, [x2]
	cmp	w20, w8
	b.ge	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	mov	x0, x19
	mov	x1, x20
	bl	_intel_dp_output_bpp
	mov	x1, x0
	ldr	w0, [x19, #12]
	bl	_intel_dp_link_required
	ldp	w26, w8, [x21, #8]
                                        ; kill: def $w26 killed $w26 def $x26
	sxtw	x26, w26
	cmp	w26, w8
	b.le	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w20, w20, #6
	ldr	w8, [x21, #4]
	cmp	w20, w8
	b.ge	LBB0_3
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	w9, [x21, #20]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x21, #12]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	cmp	x26, w8, sxtw
	add	x26, x26, #1
	b.ge	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	w24, [x21, #16]
	cmp	w24, w9
	b.gt	LBB0_7
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x22]
	ldr	w25, [x8, x26, lsl #2]
	mov	x0, x25
	mov	x1, x24
	bl	_intel_dp_max_data_rate
	cmp	w23, w0
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	lsl	w24, w24, #1
	ldr	w9, [x21, #20]
	cmp	w24, w9
	b.le	LBB0_9
	b	LBB0_6
LBB0_11:
	mov	w0, #0
	stp	w24, w20, [x19]
	str	w25, [x19, #8]
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_intel_dp_compute_link_config_wide
.subsections_via_symbols
