	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_ftm_restart            ## -- Begin function iwl_mvm_ftm_restart
	.p2align	4, 0x90
_iwl_mvm_ftm_restart:                   ## @iwl_mvm_ftm_restart
	.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	%rdi, %r15
	movq	$1, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	_NL80211_PMSR_TYPE_FTM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	xorl	%eax, %eax
	callq	_ktime_get_boottime_ns
	movl	%eax, -48(%rbp)
	movq	_NL80211_PMSR_STATUS_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	24(%r15), %rdi
	callq	_lockdep_assert_held
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%rsi)
	jle	LBB0_5
## %bb.2:
	xorl	%edi, %edi
	movl	$1, %ebx
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rax
	movl	-4(%rax,%rbx,4), %esi
	movl	(%r12), %edx
	callq	_memcpy
	movq	16(%r15), %rax
	movl	-4(%rax,%rbx,4), %eax
	movl	%eax, -60(%rbp)
	movl	8(%r15), %edi
	movq	(%r15), %rsi
	movl	(%r13), %ecx
	movq	%r14, %rdx
	callq	_cfg80211_pmsr_report
	movq	(%r15), %rsi
	movslq	(%rsi), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %edi
	incq	%rbx
	jmp	LBB0_3
LBB0_5:
	movl	8(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cfg80211_pmsr_complete
	movq	%r15, %rdi
	callq	_iwl_mvm_ftm_reset
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_PMSR_TYPE_FTM,4,2      ## @NL80211_PMSR_TYPE_FTM
	.comm	_NL80211_PMSR_STATUS_FAILURE,4,2 ## @NL80211_PMSR_STATUS_FAILURE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function iwl_mvm_ftm_restart
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_iwl_mvm_ftm_restart
	.p2align	2
_iwl_mvm_ftm_restart:                   ; @iwl_mvm_ftm_restart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh2:
	adrp	x8, _NL80211_PMSR_TYPE_FTM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_PMSR_TYPE_FTM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #16]
	bl	_ktime_get_boottime_ns
Lloh5:
	adrp	x8, _NL80211_PMSR_STATUS_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_PMSR_STATUS_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #24]
	add	x0, x19, #24
	bl	_lockdep_assert_held
	ldr	x1, [x19]
	cbz	x1, LBB0_6
; %bb.1:
	ldr	w8, [x1]
Lloh8:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w0, #0
	mov	x21, #0
Lloh10:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh11:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x1, #8]
	lsl	x23, x21, #2
	ldr	w1, [x8, x23]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x23]
	str	w8, [sp, #12]
	ldr	w0, [x19, #8]
	ldr	x1, [x19]
	ldr	w3, [x20]
	add	x2, sp, #8
	bl	_cfg80211_pmsr_report
	add	x21, x21, #1
	ldr	x1, [x19]
	ldrsw	x8, [x1]
	cmp	x21, x8
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #16]
	b	LBB0_3
LBB0_5:
	ldr	w0, [x19, #8]
	ldr	w2, [x20]
	bl	_cfg80211_pmsr_complete
	mov	x0, x19
	bl	_iwl_mvm_ftm_reset
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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_PMSR_TYPE_FTM,4,2      ; @NL80211_PMSR_TYPE_FTM
	.comm	_NL80211_PMSR_STATUS_FAILURE,4,2 ; @NL80211_PMSR_STATUS_FAILURE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
