	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_mac_ctxt_recalc_tsf_id ## -- Begin function iwl_mvm_mac_ctxt_recalc_tsf_id
	.p2align	4, 0x90
_iwl_mvm_mac_ctxt_recalc_tsf_id:        ## @iwl_mvm_mac_ctxt_recalc_tsf_id
	.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, %r15
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r14
	movq	_NUM_TSF_IDS@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rcx, -64(%rbp)
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	notl	%eax
	movl	%eax, -56(%rbp)
	movq	%rbx, -48(%rbp)
	movq	%r15, -40(%rbp)
	movl	(%r15), %edi
	movq	_IEEE80211_IFACE_ITER_RESUME_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_mvm_mac_tsf_id_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movq	-64(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rdi
	movl	-56(%rbp), %esi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-56(%rbp), %edi
	movq	(%r12), %rsi
	callq	_find_first_bit
LBB0_3:
	movq	%rax, (%r14)
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TSF_IDS,8,3                ## @NUM_TSF_IDS
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ## @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_iwl_mvm_mac_tsf_id_iter,4,2    ## @iwl_mvm_mac_tsf_id_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_mac_ctxt_recalc_tsf_id ; -- Begin function iwl_mvm_mac_ctxt_recalc_tsf_id
	.p2align	2
_iwl_mvm_mac_ctxt_recalc_tsf_id:        ; @iwl_mvm_mac_ctxt_recalc_tsf_id
	.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	x21, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x19, x0
Lloh0:
	adrp	x22, _NUM_TSF_IDS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_TSF_IDS@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [sp, #8]
	stp	x20, x21, [sp, #16]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _iwl_mvm_mac_tsf_id_iter@GOTPAGE
Lloh6:
	ldr	x8, [x8, _iwl_mvm_mac_tsf_id_iter@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, sp
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	x0, [sp]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x19]
	ldr	w1, [sp, #8]
	bl	_test_bit
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [sp, #8]
	ldr	x1, [x22]
	bl	_find_first_bit
LBB0_3:
	str	x0, [x19]
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TSF_IDS,8,3                ; @NUM_TSF_IDS
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ; @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_iwl_mvm_mac_tsf_id_iter,4,2    ; @iwl_mvm_mac_tsf_id_iter
.subsections_via_symbols
