	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_recalc_tcm             ## -- Begin function iwl_mvm_recalc_tcm
	.p2align	4, 0x90
_iwl_mvm_recalc_tcm:                    ## @iwl_mvm_recalc_tcm
	.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	%rdi, %r13
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	24(%rdi), %rbx
	movq	_IWL_MVM_UAPSD_NONAGG_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_after
	movl	%eax, %r12d
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	cmpq	$0, 16(%r13)
	je	LBB0_1
LBB0_11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	movq	_MVM_TCM_PERIOD@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	callq	_iwl_mvm_has_new_rx_api
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	32(%r13), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_iwl_mvm_request_statistics
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %r12d
	movq	%rbx, %rdi
	movq	_MVM_TCM_PERIOD@GOTPCREL(%rip), %rbx
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_3:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_lock
	cmpq	$0, 16(%r13)
	jne	LBB0_10
## %bb.7:
	movq	(%rbx), %rsi
	addq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_iwl_mvm_calc_tcm_stats
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r14, (%r13)
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	leaq	12(%r13), %rdi
	movq	%r12, %rsi
	callq	_schedule_delayed_work
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_tcm_results            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IWL_MVM_UAPSD_NONAGG_PERIOD,4,2 ## @IWL_MVM_UAPSD_NONAGG_PERIOD
	.comm	_MVM_TCM_PERIOD,8,3             ## @MVM_TCM_PERIOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_recalc_tcm             ; -- Begin function iwl_mvm_recalc_tcm
	.p2align	2
_iwl_mvm_recalc_tcm:                    ; @iwl_mvm_recalc_tcm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x21, [x0, #24]
Lloh3:
	adrp	x8, _IWL_MVM_UAPSD_NONAGG_PERIOD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_UAPSD_NONAGG_PERIOD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x20
	bl	_time_after
	mov	x22, x0
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_2:
	ldr	x8, [x19]
Lloh6:
	adrp	x24, _MVM_TCM_PERIOD@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MVM_TCM_PERIOD@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_time_after
	cbz	w0, LBB0_1
; %bb.3:
	mov	x0, x21
	bl	_spin_unlock
	cbz	w22, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_iwl_mvm_has_new_rx_api
	cbz	x0, LBB0_6
; %bb.5:
	add	x23, x19, #32
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #1
	bl	_iwl_mvm_request_statistics
	cmp	x0, #0
	csel	w22, w22, wzr, eq
	mov	x0, x23
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_time_after
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_iwl_mvm_calc_tcm_stats
	mov	x22, x0
	bl	_smp_mb
	str	x20, [x19]
	cbz	x22, LBB0_10
; %bb.9:
	add	x0, x19, #12
	mov	x1, x22
	bl	_schedule_delayed_work
LBB0_10:
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_iwl_mvm_tcm_results
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IWL_MVM_UAPSD_NONAGG_PERIOD,4,2 ; @IWL_MVM_UAPSD_NONAGG_PERIOD
	.comm	_MVM_TCM_PERIOD,8,3             ; @MVM_TCM_PERIOD
.subsections_via_symbols
