	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_build_scan_probe
_iwl_mvm_build_scan_probe:              ## @iwl_mvm_build_scan_probe
	.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	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	24(%rcx), %rbx
	movq	_NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	64(%r13), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	32(%rbx), %rdi
	movl	56(%r13), %edx
	movq	%rax, %rsi
	callq	_get_random_mask_addr
	jmp	LBB0_4
LBB0_3:
	movq	32(%rbx), %rdi
	movl	(%rsi), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_4:
	movq	_IEEE80211_STYPE_PROBE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movl	20(%rbx), %edi
	callq	_eth_broadcast_addr
	movl	16(%rbx), %edi
	callq	_eth_broadcast_addr
	movq	$0, 8(%rbx)
	movq	(%rbx), %rbx
	movq	_WLAN_EID_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$0, 4(%rbx)
	addq	$8, %rbx
	movq	$0, 48(%r13)
	movl	$26, %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r13)
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %esi
	movl	(%rax,%rdx,4), %edx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_iwl_mvm_copy_and_insert_ds_elem
	movq	%rax, %r12
	movq	%rbx, %rdi
	subq	24(%r13), %rdi
	shrq	$2, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	32(%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	%r12, %rdi
	subq	%rbx, %rdi
	shrq	$2, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	32(%r13), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movl	(%rcx,%rdx,4), %esi
	movl	(%rax,%rdx,4), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	%r12, %rdi
	subq	24(%r13), %rdi
	shrq	$2, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	32(%r13), %rcx
	movq	%rax, 24(%rcx)
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_cpu_to_le16
	movq	32(%r13), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movslq	(%rax,%rcx,4), %rax
	leaq	(%r12,%rax,4), %r12
	movl	12(%r14), %esi
	movl	8(%r14), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	%r12, %rdi
	subq	24(%r13), %rdi
	shrq	$2, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movq	%r15, %rdi
	callq	_iwl_mvm_rrm_scan_needed
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rdi
	movq	_IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movl	8(%r14), %edi
	jmp	LBB0_8
LBB0_6:
	movslq	8(%r14), %rax
	leaq	(%r12,%rax,4), %rdi
	callq	_iwl_mvm_add_tpc_report_ie
	movq	_WFA_TPC_IE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	8(%r14), %edi
LBB0_8:
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ## @NL80211_SCAN_FLAG_RANDOM_ADDR
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_IEEE80211_STYPE_PROBE_REQ,4,2  ## @IEEE80211_STYPE_PROBE_REQ
	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT,4,2 ## @IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT
	.comm	_WFA_TPC_IE_LEN,4,2             ## @WFA_TPC_IE_LEN
	.no_dead_strip	_iwl_mvm_build_scan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_build_scan_probe
_iwl_mvm_build_scan_probe:              ; @iwl_mvm_build_scan_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x22, [x3, #24]
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x22, #32]
	ldr	w2, [x19, #56]
	mov	x1, x8
	bl	_get_random_mask_addr
	b	LBB0_4
LBB0_3:
	ldr	x0, [x22, #32]
	ldr	w1, [x1]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_4:
Lloh6:
	adrp	x8, _IEEE80211_STYPE_PROBE_REQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_STYPE_PROBE_REQ@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #24]
	ldr	w0, [x22, #20]
	bl	_eth_broadcast_addr
	ldr	w0, [x22, #16]
	bl	_eth_broadcast_addr
	str	xzr, [x22, #8]
Lloh9:
	adrp	x8, _WLAN_EID_SSID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_EID_SSID@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh11:
	ldr	w8, [x8]
	add	x23, x9, #8
	stp	w8, wzr, [x9]
	str	xzr, [x19, #48]
	mov	w0, #26
	bl	_cpu_to_le16
	str	x0, [x19, #40]
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x20]
	ldr	w2, [x8, x9]
	mov	x0, x21
	mov	x3, x23
	bl	_iwl_mvm_copy_and_insert_ds_elem
	mov	x22, x0
	ldr	x8, [x19, #24]
	sub	x8, x23, x8
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_le16
	ldr	x8, [x19, #32]
	str	x0, [x8, #8]
	sub	x8, x22, x23
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_le16
	ldr	x8, [x19, #32]
	str	x0, [x8]
	ldr	x8, [x20, #16]
Lloh15:
	adrp	x23, _NL80211_BAND_5GHZ@GOTPAGE
Lloh16:
	ldr	x23, [x23, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	x9, [x23]
	lsl	x9, x9, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x20]
	ldr	w2, [x8, x9]
	mov	x0, x22
	bl	_memcpy
	ldr	x8, [x19, #24]
	sub	x8, x22, x8
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_le16
	ldr	x8, [x19, #32]
	str	x0, [x8, #24]
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	bl	_cpu_to_le16
	ldr	x8, [x19, #32]
	str	x0, [x8, #16]
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldrsw	x8, [x8, x9, lsl #2]
	add	x22, x22, x8, lsl #2
	ldp	w2, w1, [x20, #8]
	mov	x0, x22
	bl	_memcpy
	ldr	x8, [x19, #24]
	sub	x8, x22, x8
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	mov	x0, x21
	bl	_iwl_mvm_rrm_scan_needed
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x21]
Lloh17:
	adrp	x8, _IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	w0, LBB0_7
LBB0_6:
	ldr	w0, [x20, #8]
	b	LBB0_8
LBB0_7:
	ldrsw	x8, [x20, #8]
	add	x0, x22, x8, lsl #2
	bl	_iwl_mvm_add_tpc_report_ie
	ldr	w8, [x20, #8]
Lloh20:
	adrp	x9, _WFA_TPC_IE_LEN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WFA_TPC_IE_LEN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	add	w0, w9, w8
LBB0_8:
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ; @NL80211_SCAN_FLAG_RANDOM_ADDR
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_IEEE80211_STYPE_PROBE_REQ,4,2  ; @IEEE80211_STYPE_PROBE_REQ
	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT,4,2 ; @IWL_UCODE_TLV_CAPA_WFA_TPC_REP_IE_SUPPORT
	.comm	_WFA_TPC_IE_LEN,4,2             ; @WFA_TPC_IE_LEN
	.no_dead_strip	_iwl_mvm_build_scan_probe
.subsections_via_symbols
