	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_get_legacy_rate_idx
_ath10k_get_legacy_rate_idx:            ## @ath10k_get_legacy_rate_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	%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
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	_ath10k_get_legacy_rate_idx.legacy_rates(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ath10k_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ath10k_get_legacy_rate_idx.legacy_rates
_ath10k_get_legacy_rate_idx.legacy_rates:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.long	11                              ## 0xb
	.long	6                               ## 0x6
	.long	9                               ## 0x9
	.long	12                              ## 0xc
	.long	18                              ## 0x12
	.long	24                              ## 0x18
	.long	36                              ## 0x24
	.long	48                              ## 0x30
	.long	54                              ## 0x36

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid legacy rate %hhd peer stats"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ath10k_get_legacy_rate_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_get_legacy_rate_idx
_ath10k_get_legacy_rate_idx:            ; @ath10k_get_legacy_rate_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _ath10k_get_legacy_rate_idx.legacy_rates@PAGE
Lloh1:
	add	x21, x21, _ath10k_get_legacy_rate_idx.legacy_rates@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, x22, lsl #2]
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_ath10k_warn
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ath10k_get_legacy_rate_idx.legacy_rates
_ath10k_get_legacy_rate_idx.legacy_rates:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	5                               ; 0x5
	.long	11                              ; 0xb
	.long	6                               ; 0x6
	.long	9                               ; 0x9
	.long	12                              ; 0xc
	.long	18                              ; 0x12
	.long	24                              ; 0x18
	.long	36                              ; 0x24
	.long	48                              ; 0x30
	.long	54                              ; 0x36

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid legacy rate %hhd peer stats"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ath10k_get_legacy_rate_idx
.subsections_via_symbols
