	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_rate_to_idx             ## -- Begin function wlcore_rate_to_idx
	.p2align	4, 0x90
_wlcore_rate_to_idx:                    ## @wlcore_rate_to_idx
	.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, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$2, %edx
	setae	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpq	%r14, (%rbx)
	setbe	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax,%r14,8), %rbx
	movq	_CONF_HW_RXTX_RATE_UNSUPPORTED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movq	%r14, %rsi
	callq	_wl1271_error
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal RX rate from HW: %d"

	.comm	_CONF_HW_RXTX_RATE_UNSUPPORTED,8,3 ## @CONF_HW_RXTX_RATE_UNSUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported RX rate from HW: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_rate_to_idx             ; -- Begin function wlcore_rate_to_idx
	.p2align	2
_wlcore_rate_to_idx:                    ; @wlcore_rate_to_idx
	.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
	cmp	w2, #1
	cset	w0, hi
	bl	_BUG_ON
	ldr	x8, [x21]
	cmp	x8, x19
	cset	w0, ls
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, w20, uxtw #3]
	ldr	x20, [x8, x19, lsl #3]
Lloh2:
	adrp	x8, _CONF_HW_RXTX_RATE_UNSUPPORTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONF_HW_RXTX_RATE_UNSUPPORTED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x20, x8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	mov	x1, x19
	bl	_wl1271_error
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal RX rate from HW: %d"

	.comm	_CONF_HW_RXTX_RATE_UNSUPPORTED,8,3 ; @CONF_HW_RXTX_RATE_UNSUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported RX rate from HW: %d"

.subsections_via_symbols
