	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wmi_bitrate_reply_rx
_ath6kl_wmi_bitrate_reply_rx:           ## @ath6kl_wmi_bitrate_reply_rx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$3, %edx
	jbe	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ATH6KL_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	movl	(%rbx), %eax
	movq	_RATE_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	andl	$127, %eax
	movq	_RATE_MCS_7_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setg	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %edi
	callq	_ath6kl_wakeup_event
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_DBG_WMI,4,2             ## @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rateindex %d\n"

	.comm	_RATE_AUTO,8,3                  ## @RATE_AUTO
	.comm	_RATE_MCS_7_40,4,2              ## @RATE_MCS_7_40
	.comm	_wmi_rate_tbl,8,3               ## @wmi_rate_tbl
	.no_dead_strip	_ath6kl_wmi_bitrate_reply_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wmi_bitrate_reply_rx
_ath6kl_wmi_bitrate_reply_rx:           ; @ath6kl_wmi_bitrate_reply_rx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w2, #3
	b.ls	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ATH6KL_DBG_WMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_WMI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x1]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _RATE_AUTO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RATE_AUTO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.2:
	and	w8, w8, #0x7f
Lloh8:
	adrp	x9, _RATE_MCS_7_40@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RATE_MCS_7_40@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w9, w9, #1
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_ath6kl_wakeup_event
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_DBG_WMI,4,2             ; @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rateindex %d\n"

	.comm	_RATE_AUTO,8,3                  ; @RATE_AUTO
	.comm	_RATE_MCS_7_40,4,2              ; @RATE_MCS_7_40
	.comm	_wmi_rate_tbl,8,3               ; @wmi_rate_tbl
	.no_dead_strip	_ath6kl_wmi_bitrate_reply_rx
.subsections_via_symbols
