	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switchtec_ntb_set_link_speed
_switchtec_ntb_set_link_speed:          ## @switchtec_ntb_set_link_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	movl	20(%rbx), %esi
	leaq	-24(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_switchtec_ntb_part_link_speed
	movl	16(%rbx), %esi
	leaq	-20(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_switchtec_ntb_part_link_speed
	movl	-24(%rbp), %edi
	movl	-20(%rbp), %esi
	callq	_min
	movq	%rax, 8(%rbx)
	movl	-16(%rbp), %edi
	movl	-12(%rbp), %esi
	callq	_min
	jmp	LBB0_3
LBB0_1:
	movq	_NTB_SPEED_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_NTB_WIDTH_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	%rax, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NTB_SPEED_NONE,8,3             ## @NTB_SPEED_NONE
	.comm	_NTB_WIDTH_NONE,8,3             ## @NTB_WIDTH_NONE
	.no_dead_strip	_switchtec_ntb_set_link_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switchtec_ntb_set_link_speed
_switchtec_ntb_set_link_speed:          ; @switchtec_ntb_set_link_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w1, [x19, #20]
	add	x2, sp, #12
	add	x3, sp, #4
	mov	x0, x19
	bl	_switchtec_ntb_part_link_speed
	ldr	w1, [x19, #16]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	bl	_switchtec_ntb_part_link_speed
	ldp	w1, w0, [sp, #8]
	bl	_min
	str	x0, [x19, #8]
	ldp	w1, w0, [sp]
	bl	_min
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _NTB_SPEED_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NTB_SPEED_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh3:
	adrp	x8, _NTB_WIDTH_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NTB_WIDTH_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
LBB0_3:
	str	x0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NTB_SPEED_NONE,8,3             ; @NTB_SPEED_NONE
	.comm	_NTB_WIDTH_NONE,8,3             ; @NTB_WIDTH_NONE
	.no_dead_strip	_switchtec_ntb_set_link_speed
.subsections_via_symbols
