	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decide_dp_link_settings
_decide_dp_link_settings:               ## @decide_dp_link_settings
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	_LANE_COUNT_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LINK_RATE_LOW@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_LINK_SPREAD_DISABLED@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %r14
	movl	%eax, -80(%rbp)
	movq	%rcx, -72(%rbp)
	movq	%r14, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	xorl	%r12d, %r12d
	cmpq	%rcx, (%rdi)
	jl	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi
	callq	_increase_link_rate
	movq	%rax, -72(%rbp)
	movq	%r14, %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -64(%rbp)
	cmpq	(%rbx), %rax
	jg	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_dc_link_bandwidth_kbps
	cmpq	%r15, %rax
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	cmpq	8(%rbx), %rdi
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_increase_lane_count
	movq	%rax, %rcx
	movq	-72(%rbp), %rax
	jmp	LBB0_7
LBB0_3:
	movq	-48(%rbp), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 32(%rcx)
	movups	-80(%rbp), %xmm0
	movups	-64(%rbp), %xmm1
	movups	%xmm1, 16(%rcx)
	movups	%xmm0, (%rcx)
	movl	$1, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LANE_COUNT_ONE,4,2             ## @LANE_COUNT_ONE
	.comm	_LINK_RATE_LOW,4,2              ## @LINK_RATE_LOW
	.comm	_LINK_SPREAD_DISABLED,4,2       ## @LINK_SPREAD_DISABLED
	.no_dead_strip	_decide_dp_link_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decide_dp_link_settings
_decide_dp_link_settings:               ; @decide_dp_link_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _LANE_COUNT_ONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LANE_COUNT_ONE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LINK_RATE_LOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LINK_RATE_LOW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldrsw	x9, [x9]
Lloh6:
	adrp	x10, _LINK_SPREAD_DISABLED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LINK_SPREAD_DISABLED@GOTPAGEOFF]
Lloh8:
	ldrsw	x22, [x10]
	str	w8, [sp, #8]
	stp	x9, x22, [sp, #16]
	stp	xzr, xzr, [sp, #32]
	ldr	x8, [x0]
	cmp	x8, x9
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #16]
	bl	_increase_link_rate
	str	x0, [sp, #16]
	mov	x8, x22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [sp, #24]
	ldr	x8, [x21]
	cmp	x0, x8
	b.gt	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_dc_link_bandwidth_kbps
	cmp	x0, x20
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #24]
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_increase_lane_count
	mov	x8, x0
	ldr	x0, [sp, #16]
	b	LBB0_4
LBB0_8:
	ldur	q0, [sp, #8]
	ldur	q1, [sp, #24]
	stp	q0, q1, [x19]
	ldr	x8, [sp, #40]
	str	x8, [x19, #32]
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LANE_COUNT_ONE,4,2             ; @LANE_COUNT_ONE
	.comm	_LINK_RATE_LOW,4,2              ; @LINK_RATE_LOW
	.comm	_LINK_SPREAD_DISABLED,4,2       ; @LINK_SPREAD_DISABLED
	.no_dead_strip	_decide_dp_link_settings
.subsections_via_symbols
