	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_hwrate_to_tx_control
_iwlagn_hwrate_to_tx_control:           ## @iwlagn_hwrate_to_tx_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %edi
	movq	16(%rdx), %rbx
	movq	_RATE_MCS_ANT_ABC_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_RATE_MCS_ANT_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 8(%rdx)
	movq	_RATE_MCS_HT_MSK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_2:
	movq	_RATE_MCS_GF_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_IEEE80211_TX_RC_GREEN_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_4:
	movq	_RATE_MCS_HT40_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_6:
	movq	_RATE_MCS_DUP_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_IEEE80211_TX_RC_DUP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_8:
	movq	_RATE_MCS_SGI_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_IEEE80211_TX_RC_SHORT_GI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_10:
	movl	(%rdx), %esi
	callq	_iwlagn_hwrate_to_mac80211_idx
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_MCS_ANT_ABC_MSK,4,2       ## @RATE_MCS_ANT_ABC_MSK
	.comm	_RATE_MCS_ANT_POS,4,2           ## @RATE_MCS_ANT_POS
	.comm	_RATE_MCS_HT_MSK,4,2            ## @RATE_MCS_HT_MSK
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_RATE_MCS_GF_MSK,4,2            ## @RATE_MCS_GF_MSK
	.comm	_IEEE80211_TX_RC_GREEN_FIELD,4,2 ## @IEEE80211_TX_RC_GREEN_FIELD
	.comm	_RATE_MCS_HT40_MSK,4,2          ## @RATE_MCS_HT40_MSK
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_RATE_MCS_DUP_MSK,4,2           ## @RATE_MCS_DUP_MSK
	.comm	_IEEE80211_TX_RC_DUP_DATA,4,2   ## @IEEE80211_TX_RC_DUP_DATA
	.comm	_RATE_MCS_SGI_MSK,4,2           ## @RATE_MCS_SGI_MSK
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ## @IEEE80211_TX_RC_SHORT_GI
	.no_dead_strip	_iwlagn_hwrate_to_tx_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_hwrate_to_tx_control
_iwlagn_hwrate_to_tx_control:           ; @iwlagn_hwrate_to_tx_control
	.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
	mov	x0, x1
Lloh0:
	adrp	x8, _RATE_MCS_ANT_ABC_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_MCS_ANT_ABC_MSK@GOTPAGEOFF]
	ldr	x19, [x2, #16]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _RATE_MCS_ANT_POS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RATE_MCS_ANT_POS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x2, #8]
Lloh6:
	adrp	x8, _RATE_MCS_HT_MSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RATE_MCS_HT_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
Lloh12:
	adrp	x8, _RATE_MCS_GF_MSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RATE_MCS_GF_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
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, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
Lloh18:
	adrp	x8, _RATE_MCS_HT40_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RATE_MCS_HT40_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_6:
Lloh24:
	adrp	x8, _RATE_MCS_DUP_MSK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RATE_MCS_DUP_MSK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh27:
	adrp	x8, _IEEE80211_TX_RC_DUP_DATA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IEEE80211_TX_RC_DUP_DATA@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_8:
Lloh30:
	adrp	x8, _RATE_MCS_SGI_MSK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RATE_MCS_SGI_MSK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
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, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_10:
	ldr	w1, [x2]
	bl	_iwlagn_hwrate_to_mac80211_idx
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_MCS_ANT_ABC_MSK,4,2       ; @RATE_MCS_ANT_ABC_MSK
	.comm	_RATE_MCS_ANT_POS,4,2           ; @RATE_MCS_ANT_POS
	.comm	_RATE_MCS_HT_MSK,4,2            ; @RATE_MCS_HT_MSK
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_RATE_MCS_GF_MSK,4,2            ; @RATE_MCS_GF_MSK
	.comm	_IEEE80211_TX_RC_GREEN_FIELD,4,2 ; @IEEE80211_TX_RC_GREEN_FIELD
	.comm	_RATE_MCS_HT40_MSK,4,2          ; @RATE_MCS_HT40_MSK
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_RATE_MCS_DUP_MSK,4,2           ; @RATE_MCS_DUP_MSK
	.comm	_IEEE80211_TX_RC_DUP_DATA,4,2   ; @IEEE80211_TX_RC_DUP_DATA
	.comm	_RATE_MCS_SGI_MSK,4,2           ; @RATE_MCS_SGI_MSK
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ; @IEEE80211_TX_RC_SHORT_GI
	.no_dead_strip	_iwlagn_hwrate_to_tx_control
.subsections_via_symbols
