	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_scan_rate_n_flags
_iwl_mvm_scan_rate_n_flags:             ## @iwl_mvm_scan_rate_n_flags
	.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	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdi, %rsi
	callq	_iwl_mvm_toggle_tx_ant
	movl	(%rbx), %edi
	callq	_BIT
	movq	_RATE_MCS_ANT_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.1:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_IWL_RATE_1M_PLCP@GOTPCREL(%rip), %rcx
	movq	_RATE_MCS_CCK_MSK@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_IWL_RATE_6M_PLCP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_4:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_to_le32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_MCS_ANT_POS,4,2           ## @RATE_MCS_ANT_POS
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_IWL_RATE_1M_PLCP,4,2           ## @IWL_RATE_1M_PLCP
	.comm	_RATE_MCS_CCK_MSK,4,2           ## @RATE_MCS_CCK_MSK
	.comm	_IWL_RATE_6M_PLCP,4,2           ## @IWL_RATE_6M_PLCP
	.no_dead_strip	_iwl_mvm_scan_rate_n_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_scan_rate_n_flags
_iwl_mvm_scan_rate_n_flags:             ; @iwl_mvm_scan_rate_n_flags
	.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, x2
	mov	x19, x1
	mov	x21, x0
	mov	x1, x0
	bl	_iwl_mvm_toggle_tx_ant
	ldr	w0, [x21]
	bl	_BIT
Lloh0:
	adrp	x8, _RATE_MCS_ANT_POS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_MCS_ANT_POS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	cbnz	w20, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _IWL_RATE_1M_PLCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IWL_RATE_1M_PLCP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _RATE_MCS_CCK_MSK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RATE_MCS_CCK_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w0, w8, w10
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x9, _IWL_RATE_6M_PLCP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IWL_RATE_6M_PLCP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w0, w9, w8
LBB0_4:
	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	_cpu_to_le32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_MCS_ANT_POS,4,2           ; @RATE_MCS_ANT_POS
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_IWL_RATE_1M_PLCP,4,2           ; @IWL_RATE_1M_PLCP
	.comm	_RATE_MCS_CCK_MSK,4,2           ; @RATE_MCS_CCK_MSK
	.comm	_IWL_RATE_6M_PLCP,4,2           ; @IWL_RATE_6M_PLCP
	.no_dead_strip	_iwl_mvm_scan_rate_n_flags
.subsections_via_symbols
