	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_scan_lmac
_iwl_mvm_scan_lmac:                     ## @iwl_mvm_scan_lmac
	.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
	subq	$40, %rsp
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	movslq	(%rax), %rbx
	shlq	$2, %rbx
	addq	80(%r15), %rbx
	movl	$0, -44(%rbp)
	callq	_lockdep_assert_held
	movq	%r15, %rdi
	callq	_ksize
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movl	(%r14), %eax
	movq	_IWL_MAX_SCHED_SCAN_PLANS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setg	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_iwl_mvm_scan_lmac_dwell
	movq	%r12, %rdi
	callq	_iwl_mvm_scan_rx_chain
	movl	%eax, 72(%r15)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r15)
	movq	16(%r14), %rax
	movq	%rax, 56(%r15)
	movl	4(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%r15)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_iwl_mvm_scan_lmac_flags
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r15)
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_iwl_mvm_scan_rxon_flags
	movl	%eax, 32(%r15)
	movq	_MAC_FILTER_ACCEPT_GRP@GOTPCREL(%rip), %rax
	movq	_MAC_FILTER_IN_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r15)
	movl	20(%r15), %esi
	movl	40(%r14), %edx
	movq	%r12, %rdi
	callq	_iwl_mvm_scan_fill_tx_cmd
	movl	16(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_iwl_scan_build_ssids
	shll	-44(%rbp)
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$8, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %r12
	movl	(%r12,%r13,8), %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	movl	4(%r12,%r13,8), %eax
	movl	%eax, -8(%rcx,%rbx)
	movl	$1, -4(%rcx,%rbx)
	incq	%r13
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.6:
	decq	%r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_3:
	movq	8(%r15), %rcx
	movq	$-1, %r13
LBB0_7:
	shlq	$4, %r13
	cmpl	$0, (%rcx,%r13)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_9
## %bb.8:
	addq	%r13, %rcx
	movl	$255, (%rcx)
LBB0_9:
	movq	%r12, %rdi
	callq	_iwl_mvm_scan_use_ebs
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_IWL_SCAN_CHANNEL_FLAG_EBS@GOTPCREL(%rip), %rax
	movq	_IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_IWL_SCAN_CHANNEL_FLAG_CACHE_ADD@GOTPCREL(%rip), %r13
	orl	(%r13), %edi
	callq	_cpu_to_le16
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	_IWL_DENSE_EBS_SCAN_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	_IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IWL_SCAN_CHANNEL_FLAG_EBS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r13), %edi
	callq	_cpu_to_le16
	movq	(%r15), %rcx
	movq	%rax, 24(%rcx)
	movq	_IWL_SPARSE_EBS_SCAN_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
LBB0_11:
	movq	16(%r14), %rdx
	movq	24(%r14), %rsi
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	movq	%r15, %r8
	callq	_iwl_mvm_lmac_scan_cfg_channels
	addq	$8, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_scan_set_legacy_probe_req
	xorl	%r13d, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MAX_SCHED_SCAN_PLANS,4,2   ## @IWL_MAX_SCHED_SCAN_PLANS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAC_FILTER_ACCEPT_GRP,4,2      ## @MAC_FILTER_ACCEPT_GRP
	.comm	_MAC_FILTER_IN_BEACON,4,2       ## @MAC_FILTER_IN_BEACON
	.comm	_IWL_SCAN_CHANNEL_FLAG_EBS,4,2  ## @IWL_SCAN_CHANNEL_FLAG_EBS
	.comm	_IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE,4,2 ## @IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE
	.comm	_IWL_SCAN_CHANNEL_FLAG_CACHE_ADD,4,2 ## @IWL_SCAN_CHANNEL_FLAG_CACHE_ADD
	.comm	_IWL_DENSE_EBS_SCAN_RATIO,4,2   ## @IWL_DENSE_EBS_SCAN_RATIO
	.comm	_IWL_SPARSE_EBS_SCAN_RATIO,4,2  ## @IWL_SPARSE_EBS_SCAN_RATIO
	.no_dead_strip	_iwl_mvm_scan_lmac
.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
_iwl_mvm_scan_lmac:                     ; @iwl_mvm_scan_lmac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldp	x8, x20, [x0, #8]
	ldr	x23, [x20, #80]
	ldrsw	x24, [x8]
	str	wzr, [sp, #12]
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_ksize
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IWL_MAX_SCHED_SCAN_PLANS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_MAX_SCHED_SCAN_PLANS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_iwl_mvm_scan_lmac_dwell
	mov	x0, x21
	bl	_iwl_mvm_scan_rx_chain
	str	w0, [x20, #72]
	mov	w25, #1
	mov	w0, #1
	bl	_cpu_to_le32
	ldr	x8, [x19, #16]
	stp	x8, x0, [x20, #56]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le32
	str	x0, [x20, #48]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_iwl_mvm_scan_lmac_flags
	bl	_cpu_to_le32
	str	x0, [x20, #40]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_iwl_mvm_scan_rxon_flags
Lloh6:
	adrp	x8, _MAC_FILTER_ACCEPT_GRP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_FILTER_ACCEPT_GRP@GOTPAGEOFF]
	str	w0, [x20, #32]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MAC_FILTER_IN_BEACON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAC_FILTER_IN_BEACON@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	x0, [x20, #24]
	ldr	w1, [x20, #20]
	ldr	w2, [x19, #40]
	mov	x0, x21
	bl	_iwl_mvm_scan_fill_tx_cmd
	ldr	w1, [x20, #16]
	add	x2, sp, #12
	mov	x0, x19
	bl	_iwl_scan_build_ssids
	ldr	w8, [sp, #12]
	lsl	w8, w8, #1
	str	w8, [sp, #12]
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_6
; %bb.3:
	str	x23, [sp]                       ; 8-byte Folded Spill
	mov	x26, #0
	mov	x27, #0
	mov	x9, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x9
	ldr	x8, [x19, #32]
	add	x23, x8, x26
	ldr	w0, [x23]
	bl	_cpu_to_le16
	ldr	x8, [x20, #8]
	add	x9, x8, x27
	str	x0, [x9, #8]
	ldr	w10, [x23, #4]
	stp	w10, w25, [x9]
	ldrsw	x10, [x19]
	add	x9, x28, #1
	add	x27, x27, #16
	add	x26, x26, #8
	add	x11, x28, #2
	cmp	x11, x10
	b.lt	LBB0_4
; %bb.5:
	ldr	x23, [sp]                       ; 8-byte Folded Reload
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20, #8]
	mov	x9, #-1
LBB0_7:
	add	x23, x23, x24, lsl #2
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8]
	cbnz	w9, LBB0_9
; %bb.8:
	mov	w9, #255
	str	w9, [x8]
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	bl	_iwl_mvm_scan_use_ebs
	cbz	x0, LBB0_11
; %bb.10:
Lloh12:
	adrp	x22, _IWL_SCAN_CHANNEL_FLAG_EBS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _IWL_SCAN_CHANNEL_FLAG_EBS@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh14:
	adrp	x24, _IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE@GOTPAGE
Lloh15:
	ldr	x24, [x24, _IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh16:
	adrp	x25, _IWL_SCAN_CHANNEL_FLAG_CACHE_ADD@GOTPAGE
Lloh17:
	ldr	x25, [x25, _IWL_SCAN_CHANNEL_FLAG_CACHE_ADD@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	ldr	x8, [x20]
	str	x0, [x8, #8]
Lloh18:
	adrp	x8, _IWL_DENSE_EBS_SCAN_RATIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IWL_DENSE_EBS_SCAN_RATIO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	ldr	x8, [x20]
	str	x0, [x8, #24]
Lloh21:
	adrp	x8, _IWL_SPARSE_EBS_SCAN_RATIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IWL_SPARSE_EBS_SCAN_RATIO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	x8, [x20]
	str	x0, [x8, #16]
LBB0_11:
	ldp	x2, x1, [x19, #16]
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x4, x20
	bl	_iwl_mvm_lmac_scan_cfg_channels
	add	x1, x19, #8
	mov	x0, x23
	bl	_iwl_mvm_scan_set_legacy_probe_req
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MAX_SCHED_SCAN_PLANS,4,2   ; @IWL_MAX_SCHED_SCAN_PLANS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAC_FILTER_ACCEPT_GRP,4,2      ; @MAC_FILTER_ACCEPT_GRP
	.comm	_MAC_FILTER_IN_BEACON,4,2       ; @MAC_FILTER_IN_BEACON
	.comm	_IWL_SCAN_CHANNEL_FLAG_EBS,4,2  ; @IWL_SCAN_CHANNEL_FLAG_EBS
	.comm	_IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE,4,2 ; @IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE
	.comm	_IWL_SCAN_CHANNEL_FLAG_CACHE_ADD,4,2 ; @IWL_SCAN_CHANNEL_FLAG_CACHE_ADD
	.comm	_IWL_DENSE_EBS_SCAN_RATIO,4,2   ; @IWL_DENSE_EBS_SCAN_RATIO
	.comm	_IWL_SPARSE_EBS_SCAN_RATIO,4,2  ; @IWL_SPARSE_EBS_SCAN_RATIO
	.no_dead_strip	_iwl_mvm_scan_lmac
.subsections_via_symbols
