	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_max_link_cap
_get_max_link_cap:                      ## @get_max_link_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	_LANE_COUNT_FOUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
	movq	_LINK_RATE_HIGH@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, 8(%rdi)
	movq	_LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movq	%rdx, 16(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdi)
	movq	$0, 40(%rdi)
	movq	24(%rsi), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_LINK_RATE_HIGH2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
LBB0_2:
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	_LINK_RATE_HIGH3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
LBB0_4:
	movq	(%rsi), %rdi
	cmpq	%rdx, %rdi
	jge	LBB0_6
## %bb.5:
	movq	%rdi, 16(%rax)
LBB0_6:
	movq	8(%rsi), %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_8
## %bb.7:
	movq	%rdx, 8(%rax)
LBB0_8:
	movq	16(%rsi), %rcx
	testq	%rcx, %rcx
	js	LBB0_9
## %bb.10:
	popq	%rbp
	retq
LBB0_9:
	movq	%rax, %rdx
	addq	$24, %rdx
	movq	%rcx, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LANE_COUNT_FOUR,4,2            ## @LANE_COUNT_FOUR
	.comm	_LINK_RATE_HIGH,4,2             ## @LINK_RATE_HIGH
	.comm	_LINK_SPREAD_05_DOWNSPREAD_30KHZ,4,2 ## @LINK_SPREAD_05_DOWNSPREAD_30KHZ
	.comm	_LINK_RATE_HIGH2,8,3            ## @LINK_RATE_HIGH2
	.comm	_LINK_RATE_HIGH3,8,3            ## @LINK_RATE_HIGH3
	.no_dead_strip	_get_max_link_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_max_link_cap
_get_max_link_cap:                      ; @get_max_link_cap
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _LANE_COUNT_FOUR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LANE_COUNT_FOUR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8]
Lloh3:
	adrp	x9, _LINK_RATE_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LINK_RATE_HIGH@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x9]
Lloh6:
	adrp	x9, _LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x11, [x9]
	stp	x10, x11, [x8, #8]
	mov	x9, x8
	str	xzr, [x9, #24]!
	stp	xzr, xzr, [x8, #32]
	ldr	x12, [x0, #24]
	ldr	x13, [x12, #8]
	cbz	x13, LBB0_2
; %bb.1:
Lloh9:
	adrp	x10, _LINK_RATE_HIGH2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LINK_RATE_HIGH2@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	x10, [x8, #8]
LBB0_2:
	ldr	x12, [x12]
	cbz	x12, LBB0_4
; %bb.3:
Lloh12:
	adrp	x10, _LINK_RATE_HIGH3@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LINK_RATE_HIGH3@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	str	x10, [x8, #8]
LBB0_4:
	ldr	x12, [x0]
	cmp	x12, x11
	b.ge	LBB0_6
; %bb.5:
	str	x12, [x8, #16]
LBB0_6:
	ldr	x11, [x0, #8]
	cmp	x11, x10
	b.lt	LBB0_9
; %bb.7:
	ldr	x8, [x0, #16]
	tbnz	x8, #63, LBB0_10
LBB0_8:
	ret
LBB0_9:
	str	x11, [x8, #8]
	ldr	x8, [x0, #16]
	tbz	x8, #63, LBB0_8
LBB0_10:
	str	x8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LANE_COUNT_FOUR,4,2            ; @LANE_COUNT_FOUR
	.comm	_LINK_RATE_HIGH,4,2             ; @LINK_RATE_HIGH
	.comm	_LINK_SPREAD_05_DOWNSPREAD_30KHZ,4,2 ; @LINK_SPREAD_05_DOWNSPREAD_30KHZ
	.comm	_LINK_RATE_HIGH2,8,3            ; @LINK_RATE_HIGH2
	.comm	_LINK_RATE_HIGH3,8,3            ; @LINK_RATE_HIGH3
	.no_dead_strip	_get_max_link_cap
.subsections_via_symbols
