	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_get_rate            ## -- Begin function ath6kl_wmi_get_rate
	.p2align	4, 0x90
_ath6kl_wmi_get_rate:                   ## @ath6kl_wmi_get_rate
	.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	_RATE_AUTO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	%esi, (%rax)
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	movq	_RATE_INDEX_MSB@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	setne	%r15b
	movq	_RATE_INDEX_WITHOUT_SGI_MASK@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	cmpl	$1, %ecx
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	orl	(%rdx), %ebx
	andl	%esi, %ebx
	movq	_ATH6KL_FW_CAPABILITY_RATETABLE_MCS15@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_wmi_rate_tbl_mcs15@GOTPCREL(%rip), %r13
	jmp	LBB0_4
LBB0_3:
	movq	_wmi_rate_tbl@GOTPCREL(%rip), %r13
LBB0_4:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movb	%r15b, %r14b
	movq	(%r13), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%r14,4), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_AUTO,4,2                  ## @RATE_AUTO
	.comm	_RATE_INDEX_MSB,4,2             ## @RATE_INDEX_MSB
	.comm	_RATE_INDEX_WITHOUT_SGI_MASK,4,2 ## @RATE_INDEX_WITHOUT_SGI_MASK
	.comm	_ATH6KL_FW_CAPABILITY_RATETABLE_MCS15,4,2 ## @ATH6KL_FW_CAPABILITY_RATETABLE_MCS15
	.comm	_wmi_rate_tbl_mcs15,8,3         ## @wmi_rate_tbl_mcs15
	.comm	_wmi_rate_tbl,8,3               ## @wmi_rate_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_get_rate            ; -- Begin function ath6kl_wmi_get_rate
	.p2align	2
_ath6kl_wmi_get_rate:                   ; @ath6kl_wmi_get_rate
	.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
Lloh0:
	adrp	x8, _RATE_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _RATE_INDEX_MSB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RATE_INDEX_MSB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w1
	cset	w19, ne
Lloh6:
	adrp	x9, _RATE_INDEX_WITHOUT_SGI_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RATE_INDEX_WITHOUT_SGI_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	csinv	w9, w9, wzr, ne
	and	w20, w9, w1
Lloh9:
	adrp	x9, _ATH6KL_FW_CAPABILITY_RATETABLE_MCS15@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATH6KL_FW_CAPABILITY_RATETABLE_MCS15@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x21, _wmi_rate_tbl_mcs15@GOTPAGE
Lloh13:
	ldr	x21, [x21, _wmi_rate_tbl_mcs15@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x21, _wmi_rate_tbl@GOTPAGE
Lloh15:
	ldr	x21, [x21, _wmi_rate_tbl@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	cset	w0, ge
	bl	_WARN_ON
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	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_7:
	ldr	x8, [x21]
	ldr	x8, [x8, w20, sxtw #3]
	ldr	w0, [x8, x19, lsl #2]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_AUTO,4,2                  ; @RATE_AUTO
	.comm	_RATE_INDEX_MSB,4,2             ; @RATE_INDEX_MSB
	.comm	_RATE_INDEX_WITHOUT_SGI_MASK,4,2 ; @RATE_INDEX_WITHOUT_SGI_MASK
	.comm	_ATH6KL_FW_CAPABILITY_RATETABLE_MCS15,4,2 ; @ATH6KL_FW_CAPABILITY_RATETABLE_MCS15
	.comm	_wmi_rate_tbl_mcs15,8,3         ; @wmi_rate_tbl_mcs15
	.comm	_wmi_rate_tbl,8,3               ; @wmi_rate_tbl
.subsections_via_symbols
