	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_scan_umac
_iwl_mvm_scan_umac:                     ## @iwl_mvm_scan_umac
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_iwl_mvm_get_scan_req_umac_data
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movslq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$0, -72(%rbp)
	movq	%r12, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_iwl_mvm_get_scan_req_umac_channel
	movq	%rax, %r15
	leaq	8(%rbx), %rdi
	callq	_lockdep_assert_held
	movl	(%r13), %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
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_30
LBB0_2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_scan_uid_by_status
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_30
## %bb.3:
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_ksize
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_iwl_mvm_scan_umac_dwell
	movq	(%rbx), %rax
	movl	%r12d, %ecx
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r15)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_iwl_mvm_scan_umac_flags
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r15)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_iwl_mvm_is_adaptive_dwell_v2_supported
	testq	%rax, %rax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_9
## %bb.4:
	movq	_IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_IWL_SCAN_NUM_OF_FRAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r15), %rcx
	movq	_SCAN_LB_LMAC_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_6:
	movq	_IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_IWL_SCAN_NUM_OF_FRAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r15), %rcx
	movq	_SCAN_HB_LMAC_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_8:
	movq	_IWL_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_9:
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	movq	_IWL_MVM_SCAN_SCHED@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_IWL_MVM_SCAN_NETDETECT@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_12
LBB0_11:
	movq	_IWL_UMAC_SCAN_FLAG_PREEMPTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
LBB0_12:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_scan_use_ebs
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_IWL_SCAN_CHANNEL_FLAG_EBS@GOTPCREL(%rip), %rax
	movq	_IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_IWL_SCAN_CHANNEL_FLAG_CACHE_ADD@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_iwl_mvm_is_frag_ebs_supported
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	_IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_17
LBB0_15:
	movq	_IWL_SCAN_CHANNEL_FLAG_EBS_FRAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_19
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	callq	_iwl_mvm_is_cdb_supported
	testl	%eax, %eax
	je	LBB0_31
LBB0_18:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_19:
	movq	%rbx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %r12
	movl	%r15d, (%rcx)
	movl	8(%r13), %eax
	movl	%eax, 4(%rcx)
	cmpl	$0, (%r13)
	jle	LBB0_23
## %bb.20:
	movq	24(%r12), %rcx
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	(%rax,%r15,8), %edx
	movl	%edx, (%rcx,%rbx)
	movl	4(%rax,%r15,8), %edi
	callq	_cpu_to_le16
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx,%rbx)
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_21
## %bb.22:
	decq	%r15
	jmp	LBB0_24
LBB0_23:
	movq	24(%r12), %rcx
	movq	$-1, %r15
LBB0_24:
	shlq	$4, %r15
	cmpl	$0, (%rcx,%r15)
	jne	LBB0_26
## %bb.25:
	addq	%r15, %rcx
	movl	$255, (%rcx)
LBB0_26:
	movl	4(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	callq	_iwl_mvm_is_scan_ext_chan_supported
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	16(%r13), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_29
LBB0_28:
	leaq	8(%r12), %rdi
	leaq	16(%r13), %rsi
	callq	_iwl_mvm_scan_set_legacy_probe_req
LBB0_29:
	movq	(%r12), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	callq	_iwl_scan_build_ssids
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	movl	-72(%rbp), %ecx
	movq	%r14, %rdi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_iwl_mvm_umac_scan_cfg_channels
	xorl	%r12d, %r12d
LBB0_30:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_15
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MAX_SCHED_SCAN_PLANS,4,2   ## @IWL_MAX_SCHED_SCAN_PLANS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED,4,2 ## @IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED
	.comm	_IWL_SCAN_NUM_OF_FRAGS,8,3      ## @IWL_SCAN_NUM_OF_FRAGS
	.comm	_SCAN_LB_LMAC_IDX,8,3           ## @SCAN_LB_LMAC_IDX
	.comm	_IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED,4,2 ## @IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED
	.comm	_SCAN_HB_LMAC_IDX,8,3           ## @SCAN_HB_LMAC_IDX
	.comm	_IWL_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER,4,2 ## @IWL_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER
	.comm	_IWL_MVM_SCAN_SCHED,4,2         ## @IWL_MVM_SCAN_SCHED
	.comm	_IWL_MVM_SCAN_NETDETECT,4,2     ## @IWL_MVM_SCAN_NETDETECT
	.comm	_IWL_UMAC_SCAN_FLAG_PREEMPTIVE,4,2 ## @IWL_UMAC_SCAN_FLAG_PREEMPTIVE
	.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_SCAN_CHANNEL_FLAG_EBS_FRAG,4,2 ## @IWL_SCAN_CHANNEL_FLAG_EBS_FRAG
	.no_dead_strip	_iwl_mvm_scan_umac
.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_umac
_iwl_mvm_scan_umac:                     ; @iwl_mvm_scan_umac
	.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	x25, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0, #24]
	bl	_iwl_mvm_get_scan_req_umac_data
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldrsw	x28, [x8]
	str	wzr, [sp, #12]
	mov	x0, x23
	bl	_iwl_mvm_vif_from_mac80211
	mov	x26, x0
	mov	x0, x19
	bl	_iwl_mvm_get_scan_req_umac_channel
	mov	x22, x0
	add	x0, x19, #8
	bl	_lockdep_assert_held
	ldr	w8, [x20]
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	w27, w8
	b	LBB0_29
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_iwl_mvm_scan_uid_by_status
	mov	x27, x0
	tbnz	w0, #31, LBB0_29
; %bb.3:
	mov	x0, x24
	bl	_ksize
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_iwl_mvm_scan_umac_dwell
	ldr	x8, [x19]
	str	w25, [x8, w27, uxtw #2]
	mov	x0, x27
	bl	_cpu_to_le32
	str	x0, [x24, #40]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_iwl_mvm_scan_umac_flags
	mov	x27, x0
	bl	_cpu_to_le16
	str	x0, [x24, #32]
	mov	x0, x19
	bl	_iwl_mvm_is_adaptive_dwell_v2_supported
Lloh6:
	adrp	x12, _IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED@GOTPAGE
Lloh7:
	ldr	x12, [x12, _IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.4:
Lloh8:
	adrp	x8, _IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
Lloh11:
	adrp	x8, _IWL_SCAN_NUM_OF_FRAGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_SCAN_NUM_OF_FRAGS@GOTPAGEOFF]
	tst	w9, w27
	b.eq	LBB0_6
; %bb.5:
	ldr	x9, [x8]
	ldr	x10, [x24, #24]
Lloh13:
	adrp	x11, _SCAN_LB_LMAC_IDX@GOTPAGE
Lloh14:
	ldr	x11, [x11, _SCAN_LB_LMAC_IDX@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	str	x9, [x10, x11, lsl #3]
LBB0_6:
	ldr	w9, [x12]
	tst	w9, w27
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x8]
	ldr	x9, [x24, #24]
Lloh16:
	adrp	x10, _SCAN_HB_LMAC_IDX@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SCAN_HB_LMAC_IDX@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
LBB0_8:
Lloh19:
	adrp	x8, _IWL_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IWL_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x24, #16]
LBB0_9:
	ldr	w8, [x26]
	str	w8, [x24, #8]
Lloh22:
	adrp	x8, _IWL_MVM_SCAN_SCHED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IWL_MVM_SCAN_SCHED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w25
	b.eq	LBB0_11
; %bb.10:
Lloh25:
	adrp	x8, _IWL_MVM_SCAN_NETDETECT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IWL_MVM_SCAN_NETDETECT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_12
LBB0_11:
Lloh28:
	adrp	x8, _IWL_UMAC_SCAN_FLAG_PREEMPTIVE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IWL_UMAC_SCAN_FLAG_PREEMPTIVE@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x24]
LBB0_12:
	add	x24, x21, x28, lsl #2
	mov	x0, x19
	mov	x1, x23
	bl	_iwl_mvm_scan_use_ebs
	cbz	x0, LBB0_16
; %bb.13:
Lloh31:
	adrp	x8, _IWL_SCAN_CHANNEL_FLAG_EBS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IWL_SCAN_CHANNEL_FLAG_EBS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _IWL_SCAN_CHANNEL_FLAG_EBS_ACCURATE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh37:
	adrp	x9, _IWL_SCAN_CHANNEL_FLAG_CACHE_ADD@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IWL_SCAN_CHANNEL_FLAG_CACHE_ADD@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w23, w8, w9
	mov	x0, x19
	bl	_iwl_mvm_is_frag_ebs_supported
	cbz	x0, LBB0_19
; %bb.14:
Lloh40:
	adrp	x8, _IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_17
LBB0_15:
Lloh43:
	adrp	x8, _IWL_SCAN_CHANNEL_FLAG_EBS_FRAG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IWL_SCAN_CHANNEL_FLAG_EBS_FRAG@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_19
LBB0_16:
	mov	w23, #0
	b	LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_iwl_mvm_is_cdb_supported
	cbnz	w0, LBB0_19
; %bb.18:
Lloh46:
	adrp	x8, _IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w27
	b.ne	LBB0_15
LBB0_19:
	ldr	w8, [x20, #8]
	stp	w23, w8, [x22]
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_22
; %bb.20:
	mov	x22, #0
	mov	x23, #0
	ldr	x8, [x24, #24]
	mov	x25, #-1
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	add	x9, x9, x22
	ldp	w10, w0, [x9]
	str	w10, [x8, x23]
	bl	_cpu_to_le16
	ldr	x8, [x24, #24]
	add	x9, x8, x23
	str	x0, [x9, #8]
	ldrsw	x10, [x20]
	add	x9, x25, #1
	add	x23, x23, #16
	add	x22, x22, #8
	add	x11, x25, #2
	mov	x25, x9
	cmp	x11, x10
	b.lt	LBB0_21
	b	LBB0_23
LBB0_22:
	ldr	x8, [x24, #24]
	mov	x9, #-1
LBB0_23:
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8]
	cbnz	w9, LBB0_25
; %bb.24:
	mov	w9, #255
	str	w9, [x8]
LBB0_25:
	ldr	w0, [x20, #4]
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	mov	x0, x19
	bl	_iwl_mvm_is_scan_ext_chan_supported
	cbz	x0, LBB0_27
; %bb.26:
	ldr	w8, [x20, #16]
	str	w8, [x24, #8]
	b	LBB0_28
LBB0_27:
	add	x0, x24, #8
	add	x1, x20, #16
	bl	_iwl_mvm_scan_set_legacy_probe_req
LBB0_28:
	ldr	x1, [x24]
	add	x2, sp, #12
	mov	x0, x20
	bl	_iwl_scan_build_ssids
	ldp	w2, w1, [x20, #8]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x4, x21
	bl	_iwl_mvm_umac_scan_cfg_channels
	mov	w27, #0
LBB0_29:
	mov	x0, x27
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MAX_SCHED_SCAN_PLANS,4,2   ; @IWL_MAX_SCHED_SCAN_PLANS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED,4,2 ; @IWL_UMAC_SCAN_GEN_FLAGS_FRAGMENTED
	.comm	_IWL_SCAN_NUM_OF_FRAGS,8,3      ; @IWL_SCAN_NUM_OF_FRAGS
	.comm	_SCAN_LB_LMAC_IDX,8,3           ; @SCAN_LB_LMAC_IDX
	.comm	_IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED,4,2 ; @IWL_UMAC_SCAN_GEN_FLAGS_LMAC2_FRAGMENTED
	.comm	_SCAN_HB_LMAC_IDX,8,3           ; @SCAN_HB_LMAC_IDX
	.comm	_IWL_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER,4,2 ; @IWL_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER
	.comm	_IWL_MVM_SCAN_SCHED,4,2         ; @IWL_MVM_SCAN_SCHED
	.comm	_IWL_MVM_SCAN_NETDETECT,4,2     ; @IWL_MVM_SCAN_NETDETECT
	.comm	_IWL_UMAC_SCAN_FLAG_PREEMPTIVE,4,2 ; @IWL_UMAC_SCAN_FLAG_PREEMPTIVE
	.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_SCAN_CHANNEL_FLAG_EBS_FRAG,4,2 ; @IWL_SCAN_CHANNEL_FLAG_EBS_FRAG
	.no_dead_strip	_iwl_mvm_scan_umac
.subsections_via_symbols
