	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_rate_to_mlx5
_ib_rate_to_mlx5:                       ## @ib_rate_to_mlx5
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IB_RATE_PORT_CURRENT@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	cmpl	%esi, (%r15)
	je	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	movq	_IB_RATE_2_5_GBPS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_8
## %bb.2:
	movq	_IB_RATE_600_GBPS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_8
## %bb.3:
	movq	%rdi, %r14
	movq	_stat_rate_support@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MLX5_STAT_RATE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%ebx, %r12d
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_MLX5_CAP_GEN
	btl	%r12d, %eax
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	cmpl	(%r15), %ebx
	jne	LBB0_4
LBB0_6:
	movq	_MLX5_STAT_RATE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_RATE_PORT_CURRENT,4,2       ## @IB_RATE_PORT_CURRENT
	.comm	_IB_RATE_2_5_GBPS,4,2           ## @IB_RATE_2_5_GBPS
	.comm	_IB_RATE_600_GBPS,4,2           ## @IB_RATE_600_GBPS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_STAT_RATE_OFFSET,4,2      ## @MLX5_STAT_RATE_OFFSET
	.comm	_stat_rate_support,4,2          ## @stat_rate_support
	.no_dead_strip	_ib_rate_to_mlx5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_rate_to_mlx5
_ib_rate_to_mlx5:                       ; @ib_rate_to_mlx5
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _IB_RATE_PORT_CURRENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IB_RATE_PORT_CURRENT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x1
Lloh2:
	adrp	x8, _IB_RATE_2_5_GBPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_RATE_2_5_GBPS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IB_RATE_600_GBPS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_RATE_600_GBPS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #8, le
	b.ge	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
	mov	x20, x0
Lloh11:
	adrp	x22, _MLX5_STAT_RATE_OFFSET@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MLX5_STAT_RATE_OFFSET@GOTPAGEOFF]
Lloh13:
	adrp	x23, _stat_rate_support@GOTPAGE
Lloh14:
	ldr	x23, [x23, _stat_rate_support@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	add	w24, w19, w8
	ldr	w0, [x20]
	ldr	w1, [x23]
	bl	_MLX5_CAP_GEN
	lsr	w8, w0, w24
	tbnz	w8, #0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w19, w19, #1
	ldr	w8, [x21]
	cmp	w19, w8
	b.ne	LBB0_5
LBB0_7:
	ldr	w8, [x22]
	add	w8, w8, w19
	cmp	w19, #0
	csel	w0, wzr, w8, eq
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_RATE_PORT_CURRENT,4,2       ; @IB_RATE_PORT_CURRENT
	.comm	_IB_RATE_2_5_GBPS,4,2           ; @IB_RATE_2_5_GBPS
	.comm	_IB_RATE_600_GBPS,4,2           ; @IB_RATE_600_GBPS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_STAT_RATE_OFFSET,4,2      ; @MLX5_STAT_RATE_OFFSET
	.comm	_stat_rate_support,4,2          ; @stat_rate_support
	.no_dead_strip	_ib_rate_to_mlx5
.subsections_via_symbols
