	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decide_link_settings           ## -- Begin function decide_link_settings
	.p2align	4, 0x90
_decide_link_settings:                  ## @decide_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	%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
	addq	$16, %rdi
	callq	_dc_bandwidth_in_kbps_from_timing
	movq	8(%rbx), %r15
	movq	24(%r15), %rcx
	movq	_LANE_COUNT_UNKNOWN@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rcx
	je	LBB0_3
## %bb.1:
	movq	32(%r15), %rcx
	movq	_LINK_RATE_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
LBB0_3:
	movq	(%rbx), %rcx
	movq	_SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$8, %r15
	jmp	LBB0_10
LBB0_5:
	movq	(%r15), %rcx
	movq	_SIGNAL_TYPE_EDP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_decide_edp_link_settings
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_9
LBB0_2:
	addq	$24, %r15
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_decide_dp_link_settings
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	movq	8(%r15), %rax
	addq	$8, %r15
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	callq	_ASSERT
LBB0_10:
	movups	(%r15), %xmm0
	movups	%xmm0, (%r14)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LANE_COUNT_UNKNOWN,8,3         ## @LANE_COUNT_UNKNOWN
	.comm	_LINK_RATE_UNKNOWN,8,3          ## @LINK_RATE_UNKNOWN
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,8,3 ## @SIGNAL_TYPE_DISPLAY_PORT_MST
	.comm	_SIGNAL_TYPE_EDP,8,3            ## @SIGNAL_TYPE_EDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decide_link_settings           ; -- Begin function decide_link_settings
	.p2align	2
_decide_link_settings:                  ; @decide_link_settings
	.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
	add	x0, x0, #16
	bl	_dc_bandwidth_in_kbps_from_timing
	mov	x2, x0
	ldr	x20, [x21, #8]
	mov	x8, x20
	ldr	x9, [x8, #24]!
Lloh0:
	adrp	x22, _LANE_COUNT_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LANE_COUNT_UNKNOWN@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x20, #32]
Lloh2:
	adrp	x10, _LINK_RATE_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LINK_RATE_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
LBB0_2:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x8, x20, #8
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _SIGNAL_TYPE_EDP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIGNAL_TYPE_EDP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	mov	x0, x20
	mov	x1, x19
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	bl	_decide_edp_link_settings
	cbnz	x0, LBB0_9
	b	LBB0_7
LBB0_6:
	bl	_decide_dp_link_settings
	cbnz	x0, LBB0_9
LBB0_7:
	bl	_BREAK_TO_DEBUGGER
	ldr	x8, [x20, #8]!
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, ne
	bl	_ASSERT
	mov	x8, x20
LBB0_8:
	ldr	q0, [x8]
	str	q0, [x19]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LANE_COUNT_UNKNOWN,8,3         ; @LANE_COUNT_UNKNOWN
	.comm	_LINK_RATE_UNKNOWN,8,3          ; @LINK_RATE_UNKNOWN
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,8,3 ; @SIGNAL_TYPE_DISPLAY_PORT_MST
	.comm	_SIGNAL_TYPE_EDP,8,3            ; @SIGNAL_TYPE_EDP
.subsections_via_symbols
