	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_process_rate         ## -- Begin function ath9k_cmn_process_rate
	.p2align	4, 0x90
_ath9k_cmn_process_rate:                ## @ath9k_cmn_process_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	(%rdi), %rbx
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r15
	callq	_IS_CHAN_QUARTER_RATE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_RATE_INFO_BW_5@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rdi
	callq	_IS_CHAN_HALF_RATE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_RATE_INFO_BW_10@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_5:
	movl	(%r12), %eax
	testb	$-128, %al
	jne	LBB0_12
## %bb.6:
	movl	(%r15), %edx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.7:
	movq	8(%r15), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi,%rcx,8)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, 4(%rsi,%rcx,8)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_8
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_12:
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
	movl	8(%r12), %ecx
	orl	%ecx, 4(%r14)
	movl	4(%r12), %ecx
	movl	%ecx, 8(%r14)
	andl	$127, %eax
	movl	%eax, (%r14)
	jmp	LBB0_15
LBB0_13:
	movq	_RX_ENC_FLAG_SHORTPRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_14:
	movl	%ecx, (%r14)
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_INFO_BW_5,4,2             ## @RATE_INFO_BW_5
	.comm	_RATE_INFO_BW_10,4,2            ## @RATE_INFO_BW_10
	.comm	_RX_ENC_HT,4,2                  ## @RX_ENC_HT
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ## @RX_ENC_FLAG_SHORTPRE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_process_rate         ; -- Begin function ath9k_cmn_process_rate
	.p2align	2
_ath9k_cmn_process_rate:                ; @ath9k_cmn_process_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
	mov	x19, x3
	mov	x20, x2
	ldr	x22, [x0]
	ldr	x0, [x22]
	ldr	x8, [x0]
	ldr	w8, [x8]
	ldr	x9, [x1]
	ldr	x9, [x9]
	ldr	x21, [x9, x8, lsl #3]
	bl	_IS_CHAN_QUARTER_RATE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RATE_INFO_BW_5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_INFO_BW_5@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x0, [x22]
	bl	_IS_CHAN_HALF_RATE
	cbz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _RATE_INFO_BW_10@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RATE_INFO_BW_10@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_5:
	ldr	w8, [x20]
	tbnz	w8, #7, LBB0_12
; %bb.6:
	ldr	w10, [x21]
	cbz	w10, LBB0_11
; %bb.7:
	mov	x9, #0
	ldr	x11, [x21, #8]
	add	x11, x11, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x11, #-4]
	cmp	w12, w8
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x11]
	cmp	w12, w8
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	add	x11, x11, #8
	cmp	x10, x9
	b.ne	LBB0_8
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
Lloh7:
	adrp	x9, _RX_ENC_HT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RX_ENC_HT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	ldp	w12, w11, [x20, #4]
	orr	w10, w10, w11
	stp	w12, w9, [x19, #8]
	and	w8, w8, #0x7f
	stp	w8, w10, [x19]
LBB0_13:
	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_14:
	mov	w0, #0
	str	w9, [x19]
	b	LBB0_13
LBB0_15:
	mov	w0, #0
Lloh10:
	adrp	x8, _RX_ENC_FLAG_SHORTPRE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RX_ENC_FLAG_SHORTPRE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w10, [x19, #4]
	orr	w8, w10, w8
	stp	w9, w8, [x19]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_INFO_BW_5,4,2             ; @RATE_INFO_BW_5
	.comm	_RATE_INFO_BW_10,4,2            ; @RATE_INFO_BW_10
	.comm	_RX_ENC_HT,4,2                  ; @RX_ENC_HT
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ; @RX_ENC_FLAG_SHORTPRE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
