	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nfp_eth_set_speed            ## -- Begin function __nfp_eth_set_speed
	.p2align	4, 0x90
___nfp_eth_set_speed:                   ## @__nfp_eth_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_nfp_eth_speed2rate
	movq	_RATE_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_nfp_nsp_cpp
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_nfp_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_NSP_ETH_RAW_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_NSP_ETH_STATE_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_NSP_ETH_CTRL_SET_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %rdi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_NFP_ETH_SET_BIT_CONFIG         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_INVALID,4,2               ## @RATE_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find matching lane rate for speed %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NSP_ETH_RAW_STATE,4,2          ## @NSP_ETH_RAW_STATE
	.comm	_NSP_ETH_STATE_RATE,4,2         ## @NSP_ETH_STATE_RATE
	.comm	_NSP_ETH_CTRL_SET_RATE,4,2      ## @NSP_ETH_CTRL_SET_RATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nfp_eth_set_speed            ; -- Begin function __nfp_eth_set_speed
	.p2align	2
___nfp_eth_set_speed:                   ; @__nfp_eth_set_speed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_nfp_eth_speed2rate
Lloh0:
	adrp	x8, _RATE_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_nfp_nsp_cpp
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_nfp_warn
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x3, x0
Lloh8:
	adrp	x8, _NSP_ETH_RAW_STATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NSP_ETH_RAW_STATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _NSP_ETH_STATE_RATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NSP_ETH_STATE_RATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _NSP_ETH_CTRL_SET_RATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NSP_ETH_CTRL_SET_RATE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_NFP_ETH_SET_BIT_CONFIG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_INVALID,4,2               ; @RATE_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find matching lane rate for speed %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NSP_ETH_RAW_STATE,4,2          ; @NSP_ETH_RAW_STATE
	.comm	_NSP_ETH_STATE_RATE,4,2         ; @NSP_ETH_STATE_RATE
	.comm	_NSP_ETH_CTRL_SET_RATE,4,2      ; @NSP_ETH_CTRL_SET_RATE
.subsections_via_symbols
