	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_fill_scan_config_v2
_iwl_mvm_fill_scan_config_v2:           ## @iwl_mvm_fill_scan_config_v2
	.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
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	%edx, %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%rbx)
	movq	%r12, %rdi
	callq	_iwl_mvm_get_valid_tx_ant
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%rbx)
	movq	%r12, %rdi
	callq	_iwl_mvm_scan_rx_ant
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%rbx)
	movq	%r12, %rdi
	callq	_iwl_mvm_scan_config_rates
	movl	%eax, 40(%rbx)
	movq	%r12, %rdi
	callq	_iwl_mvm_is_cdb_supported
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_get_scan_type_band
	movl	%eax, %r13d
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_get_scan_type_band
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_scan_timing@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%r13d, %r13d
	movl	4(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	movq	32(%rbx), %rcx
	movq	_SCAN_LB_LMAC_IDX@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rax
	movl	(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	(%r14), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	4(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	movq	32(%rbx), %rcx
	movq	_SCAN_HB_LMAC_IDX@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_get_scan_type
	movq	_scan_timing@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, %r13d
	movl	4(%rcx,%r13,8), %edi
	callq	_cpu_to_le32
	movq	32(%rbx), %rcx
	movq	_SCAN_LB_LMAC_IDX@GOTPCREL(%rip), %r14
LBB0_3:
	movq	(%r14), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rax
	movl	(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	(%r14), %rdx
	movq	%rax, (%rcx,%rdx,8)
	leaq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_iwl_mvm_fill_scan_dwell
	leaq	12(%rbx), %rdi
	movq	8(%r12), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_fill_channels          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_scan_timing,8,3                ## @scan_timing
	.comm	_SCAN_LB_LMAC_IDX,8,3           ## @SCAN_LB_LMAC_IDX
	.comm	_SCAN_HB_LMAC_IDX,8,3           ## @SCAN_HB_LMAC_IDX
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_iwl_mvm_fill_scan_config_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_fill_scan_config_v2
_iwl_mvm_fill_scan_config_v2:           ; @iwl_mvm_fill_scan_config_v2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
	mov	x21, x0
	mov	x0, x2
	bl	_cpu_to_le32
	str	x0, [x22, #64]
	mov	x0, x21
	bl	_iwl_mvm_get_valid_tx_ant
	bl	_cpu_to_le32
	str	x0, [x22, #56]
	mov	x0, x21
	bl	_iwl_mvm_scan_rx_ant
	bl	_cpu_to_le32
	str	x0, [x22, #48]
	mov	x0, x21
	bl	_iwl_mvm_scan_config_rates
	str	w0, [x22, #40]
	mov	x0, x21
	bl	_iwl_mvm_is_cdb_supported
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	bl	_iwl_mvm_get_scan_type_band
	mov	x23, x0
Lloh3:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	bl	_iwl_mvm_get_scan_type_band
	mov	x24, x0
Lloh6:
	adrp	x25, _scan_timing@GOTPAGE
Lloh7:
	ldr	x25, [x25, _scan_timing@GOTPAGEOFF]
	ldr	x8, [x25]
	mov	w9, w23
	lsl	x23, x9, #3
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	bl	_cpu_to_le32
	ldr	x8, [x22, #32]
Lloh8:
	adrp	x26, _SCAN_LB_LMAC_IDX@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SCAN_LB_LMAC_IDX@GOTPAGEOFF]
	ldr	x9, [x26]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x25]
	ldr	w0, [x8, x23]
	bl	_cpu_to_le32
	ldr	x8, [x22, #24]
	ldr	x9, [x26]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x25]
	mov	w9, w24
	lsl	x24, x9, #3
	add	x8, x8, x24
	ldr	w0, [x8, #4]
	bl	_cpu_to_le32
	ldr	x8, [x22, #32]
Lloh10:
	adrp	x23, _SCAN_HB_LMAC_IDX@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SCAN_HB_LMAC_IDX@GOTPAGEOFF]
	ldr	x9, [x23]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x25]
	ldr	w0, [x8, x24]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	x1, #0
	bl	_iwl_mvm_get_scan_type
Lloh12:
	adrp	x24, _scan_timing@GOTPAGE
Lloh13:
	ldr	x24, [x24, _scan_timing@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, w0
	lsl	x25, x9, #3
	add	x8, x8, x25
	ldr	w0, [x8, #4]
	bl	_cpu_to_le32
	ldr	x8, [x22, #32]
Lloh14:
	adrp	x23, _SCAN_LB_LMAC_IDX@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SCAN_LB_LMAC_IDX@GOTPAGEOFF]
	ldr	x9, [x23]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x24]
	ldr	w0, [x8, x25]
LBB0_3:
	bl	_cpu_to_le32
	ldr	x8, [x22, #24]
	ldr	x9, [x23]
	str	x0, [x8, x9, lsl #3]
	add	x1, x22, #16
	mov	x0, x21
	bl	_iwl_mvm_fill_scan_dwell
	add	x0, x22, #12
	ldr	x1, [x21, #8]
Lloh16:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x21]
	stp	w20, w8, [x22, #4]
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_iwl_mvm_fill_channels
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_scan_timing,8,3                ; @scan_timing
	.comm	_SCAN_LB_LMAC_IDX,8,3           ; @SCAN_LB_LMAC_IDX
	.comm	_SCAN_HB_LMAC_IDX,8,3           ; @SCAN_HB_LMAC_IDX
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_iwl_mvm_fill_scan_config_v2
.subsections_via_symbols
