	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_ftm_start_responder    ## -- Begin function iwl_mvm_ftm_start_responder
	.p2align	4, 0x90
_iwl_mvm_ftm_start_responder:           ## @iwl_mvm_ftm_start_responder
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r12
	movq	32(%rbx), %r15
	leaq	8(%r14), %rdi
	callq	_lockdep_assert_held
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.7:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%rbx), %edi
	callq	_rcu_dereference
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	16(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movq	16(%rax), %r12
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	(%r12), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movl	-60(%rbp), %r8d
	movl	-56(%rbp), %ecx
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_iwl_mvm_phy_ctxt_changed
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iwl_mvm_ftm_responder_cmd
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	testq	%r15, %r15
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_iwl_mvm_ftm_responder_dyn_cfg_cmd
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_ERR
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot start responder, not in AP mode\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_ftm_start_responder    ; -- Begin function iwl_mvm_ftm_start_responder
	.p2align	2
_iwl_mvm_ftm_start_responder:           ; @iwl_mvm_ftm_start_responder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x22, x0
	ldr	x21, [x20, #32]
	add	x0, x19, #8
	bl	_lockdep_assert_held
	ldr	w8, [x20, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.5:
	bl	_rcu_read_lock
	ldr	w0, [x20, #8]
	bl	_rcu_dereference
	ldr	q0, [x0]
	ldr	x8, [x0, #16]
	str	x8, [sp, #16]
	str	q0, [sp]
	ldr	x22, [x0, #16]
	bl	_rcu_read_unlock
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x8, x9, lsl #2
	ldp	w4, w3, [sp, #4]
	mov	x2, sp
	mov	x0, x19
	bl	_iwl_mvm_phy_ctxt_changed
	cbnz	w0, LBB0_11
; %bb.6:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_ftm_responder_cmd
	cbnz	w0, LBB0_11
; %bb.7:
	cbz	x21, LBB0_12
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_iwl_mvm_ftm_responder_dyn_cfg_cmd
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot start responder, not in AP mode\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
