	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_scan_lmac_flags
_iwl_mvm_scan_lmac_flags:               ## @iwl_mvm_scan_lmac_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	%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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rsi), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_IWL_MVM_LMAC_SCAN_FLAG_PASSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_2:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_IWL_MVM_LMAC_SCAN_FLAG_PRE_CONNECTION@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_5:
	movl	4(%r15), %edi
	callq	_iwl_mvm_is_scan_fragmented
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_IWL_MVM_LMAC_SCAN_FLAG_FRAGMENTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	orl	%r13d, %ebx
	movq	%r12, %rdi
	callq	_iwl_mvm_rrm_scan_needed
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	16(%r12), %rdi
	movq	_IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_IWL_MVM_LMAC_SCAN_FLAGS_RRM_ENABLED@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_10:
	cmpq	$0, 8(%r15)
	jne	LBB0_11
## %bb.12:
	movq	_IWL_MVM_LMAC_SCAN_FLAG_MATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_IWL_MVM_LMAC_SCAN_FLAG_PASS_ALL@GOTPCREL(%rip), %rax
LBB0_13:
	orl	(%rax), %ebx
	movq	(%r12), %rcx
	movq	_SCHED_SCAN_PASS_ALL_ENABLED@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.14:
	movq	_IWL_MVM_LMAC_SCAN_FLAG_ITER_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	orl	%eax, %ebx
	movq	%r15, %rdi
	callq	_iwl_mvm_is_regular_scan
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.17:
	movl	4(%r15), %edi
	callq	_iwl_mvm_is_scan_fragmented
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	_IWL_MVM_LMAC_SCAN_FLAG_EXTENDED_DWELL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_PASSIVE,4,2 ## @IWL_MVM_LMAC_SCAN_FLAG_PASSIVE
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_PRE_CONNECTION,4,2 ## @IWL_MVM_LMAC_SCAN_FLAG_PRE_CONNECTION
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_FRAGMENTED,4,2 ## @IWL_MVM_LMAC_SCAN_FLAG_FRAGMENTED
	.comm	_IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT,4,2 ## @IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT
	.comm	_IWL_MVM_LMAC_SCAN_FLAGS_RRM_ENABLED,4,2 ## @IWL_MVM_LMAC_SCAN_FLAGS_RRM_ENABLED
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_PASS_ALL,4,2 ## @IWL_MVM_LMAC_SCAN_FLAG_PASS_ALL
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_MATCH,4,2 ## @IWL_MVM_LMAC_SCAN_FLAG_MATCH
	.comm	_SCHED_SCAN_PASS_ALL_ENABLED,8,3 ## @SCHED_SCAN_PASS_ALL_ENABLED
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_ITER_COMPLETE,4,2 ## @IWL_MVM_LMAC_SCAN_FLAG_ITER_COMPLETE
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ## @NL80211_IFTYPE_P2P_DEVICE
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_EXTENDED_DWELL,4,2 ## @IWL_MVM_LMAC_SCAN_FLAG_EXTENDED_DWELL
	.no_dead_strip	_iwl_mvm_scan_lmac_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_lmac_flags
_iwl_mvm_scan_lmac_flags:               ; @iwl_mvm_scan_lmac_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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IWL_MVM_LMAC_SCAN_FLAG_PASSIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_MVM_LMAC_SCAN_FLAG_PASSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w22, w9, wzr, eq
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _IWL_MVM_LMAC_SCAN_FLAG_PRE_CONNECTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_LMAC_SCAN_FLAG_PRE_CONNECTION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_iwl_mvm_is_scan_fragmented
Lloh6:
	adrp	x8, _IWL_MVM_LMAC_SCAN_FLAG_FRAGMENTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_MVM_LMAC_SCAN_FLAG_FRAGMENTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w8, w22
	mov	x0, x21
	bl	_iwl_mvm_rrm_scan_needed
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x0, [x21, #16]
Lloh9:
	adrp	x8, _IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _IWL_MVM_LMAC_SCAN_FLAGS_RRM_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_MVM_LMAC_SCAN_FLAGS_RRM_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_6:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _IWL_MVM_LMAC_SCAN_FLAG_MATCH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IWL_MVM_LMAC_SCAN_FLAG_MATCH@GOTPAGEOFF]
Lloh17:
	adrp	x10, _IWL_MVM_LMAC_SCAN_FLAG_PASS_ALL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IWL_MVM_LMAC_SCAN_FLAG_PASS_ALL@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	orr	w8, w8, w22
	ldr	x9, [x21]
Lloh19:
	adrp	x10, _SCHED_SCAN_PASS_ALL_ENABLED@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SCHED_SCAN_PASS_ALL_ENABLED@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
Lloh22:
	adrp	x11, _IWL_MVM_LMAC_SCAN_FLAG_ITER_COMPLETE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _IWL_MVM_LMAC_SCAN_FLAG_ITER_COMPLETE@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w21, w8, w9
	mov	x0, x19
	bl	_iwl_mvm_is_regular_scan
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x20]
Lloh25:
	adrp	x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_iwl_mvm_is_scan_fragmented
	cbnz	x0, LBB0_10
; %bb.9:
Lloh28:
	adrp	x8, _IWL_MVM_LMAC_SCAN_FLAG_EXTENDED_DWELL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IWL_MVM_LMAC_SCAN_FLAG_EXTENDED_DWELL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_10:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_PASSIVE,4,2 ; @IWL_MVM_LMAC_SCAN_FLAG_PASSIVE
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_PRE_CONNECTION,4,2 ; @IWL_MVM_LMAC_SCAN_FLAG_PRE_CONNECTION
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_FRAGMENTED,4,2 ; @IWL_MVM_LMAC_SCAN_FLAG_FRAGMENTED
	.comm	_IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT,4,2 ; @IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT
	.comm	_IWL_MVM_LMAC_SCAN_FLAGS_RRM_ENABLED,4,2 ; @IWL_MVM_LMAC_SCAN_FLAGS_RRM_ENABLED
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_PASS_ALL,4,2 ; @IWL_MVM_LMAC_SCAN_FLAG_PASS_ALL
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_MATCH,4,2 ; @IWL_MVM_LMAC_SCAN_FLAG_MATCH
	.comm	_SCHED_SCAN_PASS_ALL_ENABLED,8,3 ; @SCHED_SCAN_PASS_ALL_ENABLED
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_ITER_COMPLETE,4,2 ; @IWL_MVM_LMAC_SCAN_FLAG_ITER_COMPLETE
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ; @NL80211_IFTYPE_P2P_DEVICE
	.comm	_IWL_MVM_LMAC_SCAN_FLAG_EXTENDED_DWELL,4,2 ; @IWL_MVM_LMAC_SCAN_FLAG_EXTENDED_DWELL
	.no_dead_strip	_iwl_mvm_scan_lmac_flags
.subsections_via_symbols
