	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_update_tid_tpt_stats
_rs_update_tid_tpt_stats:               ## @rs_update_tid_tpt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_6
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	(%rsi), %r15
	shlq	$5, %rbx
	movq	(%r15,%rbx), %rax
	movq	_IWL_AGG_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r15,%rbx), %rdi
	callq	_time_is_before_jiffies
	leaq	(%r15,%rbx), %rcx
	addq	$8, %rcx
	movq	8(%r15,%rbx), %rdx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_IWL_MVM_RS_AGG_START_THRESHOLD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_4
## %bb.5:
	movslq	%r14d, %rax
	addq	%rax, %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_6
LBB0_4:
	leaq	(%r15,%rbx), %rax
	addq	$24, %rax
	movq	%rdx, 16(%r15,%rbx)
	movq	$0, (%rcx)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MAX_TID_COUNT,8,3          ## @IWL_MAX_TID_COUNT
	.comm	_IWL_AGG_OFF,8,3                ## @IWL_AGG_OFF
	.comm	_HZ,8,3                         ## @HZ
	.comm	_IWL_MVM_RS_AGG_START_THRESHOLD,8,3 ## @IWL_MVM_RS_AGG_START_THRESHOLD
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_rs_update_tid_tpt_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_update_tid_tpt_stats
_rs_update_tid_tpt_stats:               ; @rs_update_tid_tpt_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
Lloh0:
	adrp	x8, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ls	LBB0_5
; %bb.1:
	ldr	x8, [x1]
	lsl	x9, x2, #5
	ldr	x9, [x8, x9]
Lloh3:
	adrp	x10, _IWL_AGG_OFF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IWL_AGG_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	mov	x19, x3
	add	x21, x8, x2, lsl #5
	mov	x20, x21
	ldr	x8, [x20, #24]!
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_time_is_before_jiffies
	mov	x8, x21
	ldr	x9, [x8, #8]!
Lloh9:
	adrp	x10, _IWL_MVM_RS_AGG_START_THRESHOLD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IWL_MVM_RS_AGG_START_THRESHOLD@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x0, #0
	ccmp	x9, x10, #0, eq
	b.lt	LBB0_4
; %bb.3:
	str	x9, [x21, #16]
	str	xzr, [x8]
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_5
LBB0_4:
	add	x9, x9, w19, sxtw
	str	x9, [x8]
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MAX_TID_COUNT,8,3          ; @IWL_MAX_TID_COUNT
	.comm	_IWL_AGG_OFF,8,3                ; @IWL_AGG_OFF
	.comm	_HZ,8,3                         ; @HZ
	.comm	_IWL_MVM_RS_AGG_START_THRESHOLD,8,3 ; @IWL_MVM_RS_AGG_START_THRESHOLD
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_rs_update_tid_tpt_stats
.subsections_via_symbols
