	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_tsf_id_iter
_iwl_mvm_mac_tsf_id_iter:               ## @iwl_mvm_mac_tsf_id_iter
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r14
	movq	16(%r15), %rax
	cmpq	%rbx, %rax
	je	LBB0_12
## %bb.1:
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.3:
	cmpl	$129, (%rbx)
	je	LBB0_5
	jmp	LBB0_9
LBB0_4:
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_9
LBB0_5:
	movq	(%r15), %rax
	movq	_NUM_TSF_IDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rdi
	movl	8(%r15), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	movl	4(%rbx), %esi
	callq	_min
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ecx
	movq	16(%r15), %rax
	movl	4(%rax), %eax
	subl	4(%rbx), %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_11
LBB0_9:
	movq	(%r14), %rdi
	movl	8(%r15), %esi
	callq	___clear_bit
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_12
## %bb.10:
	movq	_NUM_TSF_IDS@GOTPCREL(%rip), %r14
LBB0_11:
	movq	(%r14), %rax
	movq	%rax, (%r15)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TSF_IDS,8,3                ## @NUM_TSF_IDS
	.no_dead_strip	_iwl_mvm_mac_tsf_id_iter
.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_tsf_id_iter
_iwl_mvm_mac_tsf_id_iter:               ; @iwl_mvm_mac_tsf_id_iter
	.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	x21, x2
	mov	x19, x0
	mov	x0, x2
	bl	_iwl_mvm_vif_from_mac80211
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_5
	b	LBB0_9
LBB0_4:
	ldr	w8, [x21]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_9
LBB0_5:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NUM_TSF_IDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUM_TSF_IDS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	x0, [x20]
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	ldr	w1, [x21, #4]
	bl	_min
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	ldr	w9, [x21, #4]
	sub	w8, w8, w9
	sdiv	w9, w8, w0
	msub	w8, w9, w0, w8
	cbz	w8, LBB0_11
LBB0_9:
	ldr	x0, [x20]
	ldr	w1, [x19, #8]
	bl	___clear_bit
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
Lloh3:
	adrp	x20, _NUM_TSF_IDS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NUM_TSF_IDS@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_12:
	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 AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TSF_IDS,8,3                ; @NUM_TSF_IDS
	.no_dead_strip	_iwl_mvm_mac_tsf_id_iter
.subsections_via_symbols
