	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_mac_process_rate
_mt76_mac_process_rate:                 ## @mt76_mac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MT_RXWI_RATE_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIELD_GET
	movl	%eax, %r15d
	movq	_MT_RXWI_RATE_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%edi, %edi
	cmpl	$8, %r15d
	setge	%dil
	callq	_WARN_ON
	addl	$4, %r15d
	testl	%eax, %eax
	movl	$4, %eax
	cmovel	%r15d, %eax
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_6:
	movq	_RX_ENC_FLAG_HT_GF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_7:
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	%r15d, (%r14)
	movq	_MT_RXWI_RATE_SGI@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_RX_ENC_FLAG_SHORT_GI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_9:
	movq	_MT_RXWI_RATE_STBC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_RX_ENC_FLAG_STBC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, 4(%r14)
LBB0_11:
	movq	_MT_RXWI_RATE_BW@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_RATE_INFO_BW_40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_13
LBB0_3:
	cmpl	$8, %r15d
	jl	LBB0_5
## %bb.4:
	addl	$-8, %r15d
	movq	_RX_ENC_FLAG_SHORTPRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_5:
	xorl	%edi, %edi
	cmpl	$4, %r15d
	setge	%dil
	callq	_WARN_ON
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovel	%r15d, %ecx
	movl	%ecx, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_MT_RXWI_RATE_MCS,4,2           ## @MT_RXWI_RATE_MCS
	.comm	_MT_RXWI_RATE_PHY,4,2           ## @MT_RXWI_RATE_PHY
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ## @RX_ENC_FLAG_SHORTPRE
	.comm	_RX_ENC_FLAG_HT_GF,4,2          ## @RX_ENC_FLAG_HT_GF
	.comm	_RX_ENC_HT,4,2                  ## @RX_ENC_HT
	.comm	_MT_RXWI_RATE_SGI,4,2           ## @MT_RXWI_RATE_SGI
	.comm	_RX_ENC_FLAG_SHORT_GI,4,2       ## @RX_ENC_FLAG_SHORT_GI
	.comm	_MT_RXWI_RATE_STBC,4,2          ## @MT_RXWI_RATE_STBC
	.comm	_RX_ENC_FLAG_STBC_SHIFT,4,2     ## @RX_ENC_FLAG_STBC_SHIFT
	.comm	_MT_RXWI_RATE_BW,4,2            ## @MT_RXWI_RATE_BW
	.comm	_RATE_INFO_BW_40,4,2            ## @RATE_INFO_BW_40
	.no_dead_strip	_mt76_mac_process_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_mac_process_rate
_mt76_mac_process_rate:                 ; @mt76_mac_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MT_RXWI_RATE_MCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_RXWI_RATE_MCS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FIELD_GET
	mov	x21, x0
Lloh3:
	adrp	x8, _MT_RXWI_RATE_PHY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_RXWI_RATE_PHY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_15
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w21, #7
	cset	w0, gt
	bl	_WARN_ON
	add	w8, w21, #4
	mov	w9, #4
	cmp	w0, #0
	csel	w8, w8, w9, eq
	b	LBB0_13
LBB0_3:
Lloh8:
	adrp	x8, _RX_ENC_FLAG_HT_GF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_ENC_FLAG_HT_GF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
Lloh11:
	adrp	x8, _RX_ENC_HT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RX_ENC_HT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	str	w21, [x19]
Lloh14:
	adrp	x8, _MT_RXWI_RATE_SGI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_RXWI_RATE_SGI@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _RX_ENC_FLAG_SHORT_GI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RX_ENC_FLAG_SHORT_GI@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_6:
Lloh20:
	adrp	x8, _MT_RXWI_RATE_STBC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_RXWI_RATE_STBC@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh23:
	adrp	x8, _RX_ENC_FLAG_STBC_SHIFT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RX_ENC_FLAG_STBC_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_8:
Lloh26:
	adrp	x8, _MT_RXWI_RATE_BW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MT_RXWI_RATE_BW@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.9:
Lloh29:
	adrp	x8, _RATE_INFO_BW_40@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RATE_INFO_BW_40@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_14
LBB0_10:
	subs	w8, w21, #8
	b.lt	LBB0_12
; %bb.11:
Lloh32:
	adrp	x9, _RX_ENC_FLAG_SHORTPRE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _RX_ENC_FLAG_SHORTPRE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
	mov	x21, x8
LBB0_12:
	cmp	w21, #3
	cset	w0, gt
	bl	_WARN_ON
	cmp	w0, #0
	csel	w8, w21, wzr, eq
LBB0_13:
	str	w8, [x19]
LBB0_14:
	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_15:
	mov	w0, #1
	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
	b	_WARN_ON
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_MT_RXWI_RATE_MCS,4,2           ; @MT_RXWI_RATE_MCS
	.comm	_MT_RXWI_RATE_PHY,4,2           ; @MT_RXWI_RATE_PHY
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ; @RX_ENC_FLAG_SHORTPRE
	.comm	_RX_ENC_FLAG_HT_GF,4,2          ; @RX_ENC_FLAG_HT_GF
	.comm	_RX_ENC_HT,4,2                  ; @RX_ENC_HT
	.comm	_MT_RXWI_RATE_SGI,4,2           ; @MT_RXWI_RATE_SGI
	.comm	_RX_ENC_FLAG_SHORT_GI,4,2       ; @RX_ENC_FLAG_SHORT_GI
	.comm	_MT_RXWI_RATE_STBC,4,2          ; @MT_RXWI_RATE_STBC
	.comm	_RX_ENC_FLAG_STBC_SHIFT,4,2     ; @RX_ENC_FLAG_STBC_SHIFT
	.comm	_MT_RXWI_RATE_BW,4,2            ; @MT_RXWI_RATE_BW
	.comm	_RATE_INFO_BW_40,4,2            ; @RATE_INFO_BW_40
	.no_dead_strip	_mt76_mac_process_rate
.subsections_via_symbols
