	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_rate_from_status
_rt2800_rate_from_status:               ## @rt2800_rate_from_status
	.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
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_TX_STA_FIFO_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %r15d
	movq	_TX_STA_FIFO_PHYMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
                                        ## kill: def $eax killed $eax def $rax
	xorl	%r12d, %r12d
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	leal	4(%r15), %ecx
	cmpl	%ebx, (%rax)
	cmovnel	%r15d, %ecx
	movl	%ecx, %r15d
	jmp	LBB0_6
LBB0_2:
	movq	_IEEE80211_TX_RC_GREEN_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_3:
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_6
LBB0_5:
	leal	-8(%r15), %eax
	cmpl	$8, %r15d
	cmovll	%r15d, %eax
	movl	%eax, %r15d
LBB0_6:
	movq	_TX_STA_FIFO_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	orl	%r12d, %ebx
	movq	_TX_STA_FIFO_SGI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_IEEE80211_TX_RC_SHORT_GI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	orl	%eax, %ebx
	movl	%r15d, (%r14)
	movl	%ebx, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_TX_STA_FIFO_MCS,4,2            ## @TX_STA_FIFO_MCS
	.comm	_TX_STA_FIFO_PHYMODE,4,2        ## @TX_STA_FIFO_PHYMODE
	.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	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_TX_STA_FIFO_BW,4,2             ## @TX_STA_FIFO_BW
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_TX_STA_FIFO_SGI,4,2            ## @TX_STA_FIFO_SGI
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ## @IEEE80211_TX_RC_SHORT_GI
	.no_dead_strip	_rt2800_rate_from_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_rate_from_status
_rt2800_rate_from_status:               ; @rt2800_rate_from_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TX_STA_FIFO_MCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_STA_FIFO_MCS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	mov	x20, x0
Lloh3:
	adrp	x8, _TX_STA_FIFO_PHYMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_STA_FIFO_PHYMODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	mov	w23, #0
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %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:
	mov	w23, #0
Lloh8:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w9, w20, #4
	cmp	w8, w22
	csel	w20, w9, w20, eq
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
LBB0_4:
Lloh14:
	adrp	x8, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_6
LBB0_5:
	mov	w23, #0
	sub	w8, w20, #8
	cmp	w20, #7
	csel	w20, w8, w20, gt
LBB0_6:
Lloh17:
	adrp	x8, _TX_STA_FIFO_BW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TX_STA_FIFO_BW@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
Lloh20:
	adrp	x8, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w8, w23
Lloh23:
	adrp	x8, _TX_STA_FIFO_SGI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TX_STA_FIFO_SGI@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
Lloh26:
	adrp	x8, _IEEE80211_TX_RC_SHORT_GI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_TX_RC_SHORT_GI@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w22, w8
	stp	w20, w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_TX_STA_FIFO_MCS,4,2            ; @TX_STA_FIFO_MCS
	.comm	_TX_STA_FIFO_PHYMODE,4,2        ; @TX_STA_FIFO_PHYMODE
	.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	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_TX_STA_FIFO_BW,4,2             ; @TX_STA_FIFO_BW
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_TX_STA_FIFO_SGI,4,2            ; @TX_STA_FIFO_SGI
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ; @IEEE80211_TX_RC_SHORT_GI
	.no_dead_strip	_rt2800_rate_from_status
.subsections_via_symbols
