	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_rate_to_ib               ## -- Begin function mthca_rate_to_ib
	.p2align	4, 0x90
_mthca_rate_to_ib:                      ## @mthca_rate_to_ib
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_mthca_is_memfree
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	cmpl	$3, 8(%rbx)
	jne	LBB0_3
## %bb.5:
	movq	_IB_RATE_2_5_GBPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movl	-4(%rax,%rcx,4), %esi
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tavor_rate_to_ib               ## TAILCALL
LBB0_3:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movl	-4(%rax,%rcx,4), %esi
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memfree_rate_to_ib             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_RATE_2_5_GBPS,4,2           ## @IB_RATE_2_5_GBPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_rate_to_ib               ; -- Begin function mthca_rate_to_ib
	.p2align	2
_mthca_rate_to_ib:                      ; @mthca_rate_to_ib
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_mthca_is_memfree
	cbz	x0, LBB0_4
; %bb.1:
	cbz	w19, LBB0_5
; %bb.2:
	ldr	w8, [x21, #8]
	cmp	w8, #3
	b.ne	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _IB_RATE_2_5_GBPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_RATE_2_5_GBPS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
LBB0_4:
	ldr	x8, [x21]
	add	x8, x8, w20, sxtw #2
	ldur	w1, [x8, #-4]
	mov	x0, x19
	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
	b	_tavor_rate_to_ib
LBB0_5:
	ldr	x8, [x21]
	add	x8, x8, w20, sxtw #2
	ldur	w1, [x8, #-4]
	mov	x0, x19
	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
	b	_memfree_rate_to_ib
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_RATE_2_5_GBPS,4,2           ; @IB_RATE_2_5_GBPS
.subsections_via_symbols
