	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_umac_scan_cfg_channels
_iwl_mvm_umac_scan_cfg_channels:        ## @iwl_mvm_umac_scan_cfg_channels
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	%edx, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	48(%rax), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, -8(%r14)
	movl	$1, -24(%r14)
	imulq	$56, %r15, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	addq	$32, %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax)
	incq	%r15
	addq	$56, %r14
	cmpq	%r15, %r13
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, (%r14)
	movq	(%rbx,%r15,8), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%r14)
	movq	%r12, %rdi
	callq	_iwl_mvm_is_scan_ext_chan_supported
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r15,8), %rax
	movq	(%rax), %rcx
	movq	_IWL_SCAN_BAND_2_4@GOTPCREL(%rip), %rax
	movq	_IWL_SCAN_LAST_2_4_CHN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IWL_SCAN_BAND_5_2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -40(%r14)
	leaq	-32(%r14), %rax
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_SCAN_LAST_2_4_CHN,8,3      ## @IWL_SCAN_LAST_2_4_CHN
	.comm	_IWL_SCAN_BAND_2_4,4,2          ## @IWL_SCAN_BAND_2_4
	.comm	_IWL_SCAN_BAND_5_2,4,2          ## @IWL_SCAN_BAND_5_2
	.no_dead_strip	_iwl_mvm_umac_scan_cfg_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_umac_scan_cfg_channels
_iwl_mvm_umac_scan_cfg_channels:        ; @iwl_mvm_umac_scan_cfg_channels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	mov	x23, #0
	add	x24, x4, #24
	mov	w25, #1
Lloh0:
	adrp	x28, _IWL_SCAN_BAND_5_2@GOTPAGE
Lloh1:
	ldr	x28, [x28, _IWL_SCAN_BAND_5_2@GOTPAGEOFF]
	mov	w26, #56
	mov	w27, w2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	stur	w25, [x24, #-16]
	sub	x8, x24, #8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x8]
	add	x23, x23, #1
	add	x21, x21, #8
	add	x24, x24, #56
	subs	x27, x27, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [x24, #24]
	ldr	x8, [x21]
	ldr	x8, [x8]
	stur	x8, [x24, #-24]
	mov	x0, x22
	bl	_iwl_mvm_is_scan_ext_chan_supported
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _IWL_SCAN_LAST_2_4_CHN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IWL_SCAN_LAST_2_4_CHN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh5:
	adrp	x8, _IWL_SCAN_BAND_2_4@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_SCAN_BAND_2_4@GOTPAGEOFF]
	csel	x8, x28, x8, gt
	ldr	w8, [x8]
	str	w8, [x24, #16]
	str	w25, [x24]
	madd	x8, x23, x26, x19
	add	x8, x8, #32
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_SCAN_LAST_2_4_CHN,8,3      ; @IWL_SCAN_LAST_2_4_CHN
	.comm	_IWL_SCAN_BAND_2_4,4,2          ; @IWL_SCAN_BAND_2_4
	.comm	_IWL_SCAN_BAND_5_2,4,2          ; @IWL_SCAN_BAND_5_2
	.no_dead_strip	_iwl_mvm_umac_scan_cfg_channels
.subsections_via_symbols
