	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_mac_process_tx_rate
_mt76x02_mac_process_tx_rate:           ## @mt76x02_mac_process_tx_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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MT_RXWI_RATE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIELD_GET
	movl	%eax, %r15d
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	movl	$0, 8(%rbx)
	movq	_MT_RXWI_RATE_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_FIELD_GET
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	8(%rbx), %eax
	movq	_IEEE80211_TX_RC_VHT_MCS@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	leal	4(%r15), %ecx
	cmpl	%r12d, (%rax)
	cmovnel	%r15d, %ecx
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_4:
	movq	_IEEE80211_TX_RC_GREEN_FIELD@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %eax
	orl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	8(%rbx), %eax
LBB0_7:
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rcx
LBB0_8:
	orl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, (%rbx)
	movq	_MT_RXWI_RATE_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_FIELD_GET
	cmpl	$135, %eax
	je	LBB0_14
## %bb.9:
	cmpl	$134, %eax
	je	LBB0_10
## %bb.11:
	cmpl	$133, %eax
	jne	LBB0_17
## %bb.12:
	movq	_IEEE80211_TX_RC_80_MHZ_WIDTH@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_3:
	leal	-8(%r15), %eax
	cmpl	$8, %r15d
	cmovll	%r15d, %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_10:
	movq	_IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_14:
	movq	_MT_RXWI_RATE_SGI@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r14d, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_IEEE80211_TX_RC_SHORT_GI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_MT_RXWI_RATE_INDEX,4,2         ## @MT_RXWI_RATE_INDEX
	.comm	_MT_RXWI_RATE_PHY,4,2           ## @MT_RXWI_RATE_PHY
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_IEEE80211_TX_RC_GREEN_FIELD,4,2 ## @IEEE80211_TX_RC_GREEN_FIELD
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ## @IEEE80211_TX_RC_VHT_MCS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT_RXWI_RATE_BW,4,2            ## @MT_RXWI_RATE_BW
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_80_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_80_MHZ_WIDTH
	.comm	_MT_RXWI_RATE_SGI,4,2           ## @MT_RXWI_RATE_SGI
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ## @IEEE80211_TX_RC_SHORT_GI
	.no_dead_strip	_mt76x02_mac_process_tx_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mt76x02_mac_process_tx_rate
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mt76x02_mac_process_tx_rate:           ; @mt76x02_mac_process_tx_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	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MT_RXWI_RATE_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_RXWI_RATE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FIELD_GET
	mov	x21, x0
	str	wzr, [x19, #8]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh5:
	adrp	x8, _MT_RXWI_RATE_PHY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_RXWI_RATE_PHY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_11
; %bb.1:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #8]
Lloh10:
	adrp	x9, _IEEE80211_TX_RC_VHT_MCS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_TX_RC_VHT_MCS@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	w0, #0
Lloh12:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w9, w21, #4
	cmp	w8, w22
	csel	w8, w9, w21, eq
	str	w8, [x19]
	b	LBB0_18
LBB0_4:
Lloh15:
	adrp	x8, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #8]
LBB0_6:
Lloh18:
	adrp	x9, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	str	w21, [x19]
Lloh20:
	adrp	x8, _MT_RXWI_RATE_BW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_RXWI_RATE_BW@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	cmp	w0, #135
	b.eq	LBB0_15
; %bb.8:
	cmp	w0, #134
	b.eq	LBB0_13
; %bb.9:
	cmp	w0, #133
	b.ne	LBB0_11
; %bb.10:
Lloh23:
	adrp	x8, _IEEE80211_TX_RC_80_MHZ_WIDTH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IEEE80211_TX_RC_80_MHZ_WIDTH@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_12:
	mov	w0, #0
	sub	w8, w21, #8
	cmp	w21, #7
	csel	w8, w8, w21, gt
	str	w8, [x19]
	b	LBB0_18
LBB0_13:
Lloh28:
	adrp	x8, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_15:
Lloh30:
	adrp	x8, _MT_RXWI_RATE_SGI@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MT_RXWI_RATE_SGI@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.16:
	mov	w0, #0
Lloh33:
	adrp	x8, _IEEE80211_TX_RC_SHORT_GI@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IEEE80211_TX_RC_SHORT_GI@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.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_5-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_MT_RXWI_RATE_INDEX,4,2         ; @MT_RXWI_RATE_INDEX
	.comm	_MT_RXWI_RATE_PHY,4,2           ; @MT_RXWI_RATE_PHY
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_IEEE80211_TX_RC_GREEN_FIELD,4,2 ; @IEEE80211_TX_RC_GREEN_FIELD
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ; @IEEE80211_TX_RC_VHT_MCS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT_RXWI_RATE_BW,4,2            ; @MT_RXWI_RATE_BW
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_80_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_80_MHZ_WIDTH
	.comm	_MT_RXWI_RATE_SGI,4,2           ; @MT_RXWI_RATE_SGI
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ; @IEEE80211_TX_RC_SHORT_GI
	.no_dead_strip	_mt76x02_mac_process_tx_rate
.subsections_via_symbols
