	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_get_ftm_responder_stats
_iwl_mvm_mac_get_ftm_responder_stats:   ## @iwl_mvm_mac_get_ftm_responder_stats
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	(%rbx), %rcx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 8(%rbx)
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%r15), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_NL80211_FTM_STATS_SUCCESS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_NL80211_FTM_STATS_PARTIAL_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_NL80211_FTM_STATS_FAILED_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_NL80211_FTM_STATS_ASAP_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	orl	%r12d, %r13d
	orl	%r15d, %r13d
	movq	_NL80211_FTM_STATS_NON_ASAP_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_NL80211_FTM_STATS_TOTAL_DURATION_MSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	movq	_NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r15d, %eax
	orl	%ebx, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_FTM_STATS_SUCCESS_NUM,4,2 ## @NL80211_FTM_STATS_SUCCESS_NUM
	.comm	_NL80211_FTM_STATS_PARTIAL_NUM,4,2 ## @NL80211_FTM_STATS_PARTIAL_NUM
	.comm	_NL80211_FTM_STATS_FAILED_NUM,4,2 ## @NL80211_FTM_STATS_FAILED_NUM
	.comm	_NL80211_FTM_STATS_ASAP_NUM,4,2 ## @NL80211_FTM_STATS_ASAP_NUM
	.comm	_NL80211_FTM_STATS_NON_ASAP_NUM,4,2 ## @NL80211_FTM_STATS_NON_ASAP_NUM
	.comm	_NL80211_FTM_STATS_TOTAL_DURATION_MSEC,4,2 ## @NL80211_FTM_STATS_TOTAL_DURATION_MSEC
	.comm	_NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM,4,2 ## @NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM
	.comm	_NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM,4,2 ## @NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM
	.comm	_NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM,4,2 ## @NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM
	.no_dead_strip	_iwl_mvm_mac_get_ftm_responder_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_get_ftm_responder_stats
_iwl_mvm_mac_get_ftm_responder_stats:   ; @iwl_mvm_mac_get_ftm_responder_stats
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x20, x0
	mov	x0, x21
	bl	_iwl_mvm_vif_from_mac80211
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x20, #4]
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _NL80211_FTM_STATS_SUCCESS_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_FTM_STATS_SUCCESS_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh6:
	adrp	x8, _NL80211_FTM_STATS_PARTIAL_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_FTM_STATS_PARTIAL_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w0, w20
Lloh9:
	adrp	x8, _NL80211_FTM_STATS_FAILED_NUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_FTM_STATS_FAILED_NUM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w20, w0
Lloh12:
	adrp	x8, _NL80211_FTM_STATS_ASAP_NUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_FTM_STATS_ASAP_NUM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w20, w0
Lloh15:
	adrp	x8, _NL80211_FTM_STATS_NON_ASAP_NUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NL80211_FTM_STATS_NON_ASAP_NUM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w20, w0
Lloh18:
	adrp	x8, _NL80211_FTM_STATS_TOTAL_DURATION_MSEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NL80211_FTM_STATS_TOTAL_DURATION_MSEC@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w20, w0
Lloh21:
	adrp	x8, _NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w20, w0
Lloh24:
	adrp	x8, _NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w20, w0
Lloh27:
	adrp	x8, _NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	orr	w8, w20, w8
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_FTM_STATS_SUCCESS_NUM,4,2 ; @NL80211_FTM_STATS_SUCCESS_NUM
	.comm	_NL80211_FTM_STATS_PARTIAL_NUM,4,2 ; @NL80211_FTM_STATS_PARTIAL_NUM
	.comm	_NL80211_FTM_STATS_FAILED_NUM,4,2 ; @NL80211_FTM_STATS_FAILED_NUM
	.comm	_NL80211_FTM_STATS_ASAP_NUM,4,2 ; @NL80211_FTM_STATS_ASAP_NUM
	.comm	_NL80211_FTM_STATS_NON_ASAP_NUM,4,2 ; @NL80211_FTM_STATS_NON_ASAP_NUM
	.comm	_NL80211_FTM_STATS_TOTAL_DURATION_MSEC,4,2 ; @NL80211_FTM_STATS_TOTAL_DURATION_MSEC
	.comm	_NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM,4,2 ; @NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM
	.comm	_NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM,4,2 ; @NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM
	.comm	_NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM,4,2 ; @NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM
	.no_dead_strip	_iwl_mvm_mac_get_ftm_responder_stats
.subsections_via_symbols
