	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_get_tpc_action
_rs_get_tpc_action:                     ## @rs_get_tpc_action
	.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, %r15
	movq	_IWL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movq	_TPC_ACTION_STAY@GOTPCREL(%rip), %r12
	cmpl	%r8d, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_21:
	movq	%r15, %rdi
	callq	_IWL_DEBUG_RATE
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r8d, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	_IWL_MVM_RS_TPC_SR_FORCE_INCREASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RS_PERCENT
	movq	_TPC_ACTION_NO_RESTIRCTION@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %rsi
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.3:
	cmpq	%r13, %rax
	jge	LBB0_21
## %bb.4:
	movq	_IWL_MVM_RS_TPC_SR_NO_INCREASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RS_PERCENT
	movq	_TPC_INVALID@GOTPCREL(%rip), %r12
	cmpq	%r13, %rax
	jg	LBB0_11
## %bb.5:
	cmpl	%r14d, (%r12)
	je	LBB0_11
## %bb.6:
	movq	%r12, %rdx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_IWL_INVALID_VALUE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_9
## %bb.7:
	movq	_TPC_ACTION_DECREASE@GOTPCREL(%rip), %r12
	leaq	L_.str.2(%rip), %rsi
	movl	16(%rbp), %eax
	cmpl	%eax, %ebx
	jge	LBB0_21
## %bb.8:
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_21
LBB0_9:
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	movq	%rdx, %r12
	jle	LBB0_11
## %bb.10:
	movq	_TPC_ACTION_DECREASE@GOTPCREL(%rip), %r12
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_21
LBB0_11:
	movq	_IWL_MVM_RS_TPC_SR_NO_INCREASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RS_PERCENT
	cmpq	%r13, %rax
	jle	LBB0_20
## %bb.12:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r12)
	je	LBB0_20
## %bb.13:
	movq	_IWL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TPC_ACTION_INCREASE@GOTPCREL(%rip), %r12
	movl	16(%rbp), %esi
	cmpl	%esi, %ebx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jge	LBB0_17
## %bb.14:
	cmpl	%edx, %eax
	jne	LBB0_17
## %bb.15:
	cmpl	%esi, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_21
LBB0_17:
	cmpl	%esi, %ebx
	setl	%cl
	cmpl	%esi, %eax
	sete	%al
	cmpl	%ebx, %edx
	jge	LBB0_20
## %bb.18:
	orb	%al, %cl
	je	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.6(%rip), %rsi
	movq	_TPC_ACTION_STAY@GOTPCREL(%rip), %r12
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_INVALID_VALUE,4,2          ## @IWL_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no current tpt. stay.\n"

	.comm	_TPC_ACTION_STAY,4,2            ## @TPC_ACTION_STAY
	.comm	_IWL_MVM_RS_TPC_SR_FORCE_INCREASE,4,2 ## @IWL_MVM_RS_TPC_SR_FORCE_INCREASE
L_.str.1:                               ## @.str.1
	.asciz	"increase txp because of weak SR\n"

	.comm	_TPC_ACTION_NO_RESTIRCTION,4,2  ## @TPC_ACTION_NO_RESTIRCTION
	.comm	_IWL_MVM_RS_TPC_SR_NO_INCREASE,4,2 ## @IWL_MVM_RS_TPC_SR_NO_INCREASE
	.comm	_TPC_INVALID,4,2                ## @TPC_INVALID
L_.str.2:                               ## @.str.2
	.asciz	"no weak txp measurement. decrease txp\n"

	.comm	_TPC_ACTION_DECREASE,4,2        ## @TPC_ACTION_DECREASE
L_.str.3:                               ## @.str.3
	.asciz	"lower txp has better tpt. decrease txp\n"

L_.str.4:                               ## @.str.4
	.asciz	"higher txp has better tpt. increase txp\n"

	.comm	_TPC_ACTION_INCREASE,4,2        ## @TPC_ACTION_INCREASE
L_.str.5:                               ## @.str.5
	.asciz	"lower txp has worse tpt. increase txp\n"

L_.str.6:                               ## @.str.6
	.asciz	"no need to increase or decrease txp - stay\n"

	.no_dead_strip	_rs_get_tpc_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_get_tpc_action
_rs_get_tpc_action:                     ; @rs_get_tpc_action
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x27, _IWL_INVALID_VALUE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IWL_INVALID_VALUE@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w4
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x26, _TPC_ACTION_STAY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TPC_ACTION_STAY@GOTPAGEOFF]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_IWL_DEBUG_RATE
	ldr	w0, [x26]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, x6
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x25, x2
	mov	x24, x1
Lloh6:
	adrp	x8, _IWL_MVM_RS_TPC_SR_FORCE_INCREASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_MVM_RS_TPC_SR_FORCE_INCREASE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_RS_PERCENT
Lloh9:
	adrp	x26, _TPC_ACTION_NO_RESTIRCTION@GOTPAGE
Lloh10:
	ldr	x26, [x26, _TPC_ACTION_NO_RESTIRCTION@GOTPAGEOFF]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	cbz	w21, LBB0_2
; %bb.4:
	cmp	x0, x24
	b.ge	LBB0_2
; %bb.5:
Lloh13:
	adrp	x26, _IWL_MVM_RS_TPC_SR_NO_INCREASE@GOTPAGE
Lloh14:
	ldr	x26, [x26, _IWL_MVM_RS_TPC_SR_NO_INCREASE@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_RS_PERCENT
Lloh15:
	adrp	x28, _TPC_INVALID@GOTPAGE
Lloh16:
	ldr	x28, [x28, _TPC_INVALID@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	x0, x24
	ccmp	w8, w25, #4, le
	b.eq	LBB0_11
; %bb.6:
	mov	x9, x26
	ldr	w8, [x27]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.7:
Lloh17:
	adrp	x26, _TPC_ACTION_DECREASE@GOTPAGE
Lloh18:
	ldr	x26, [x26, _TPC_ACTION_DECREASE@GOTPAGEOFF]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	cmp	w21, w22
	b.ge	LBB0_2
; %bb.8:
	cmp	w20, w22
	b.eq	LBB0_2
LBB0_9:
	cmp	w20, w21
	mov	x26, x9
	b.le	LBB0_11
; %bb.10:
Lloh21:
	adrp	x26, _TPC_ACTION_DECREASE@GOTPAGE
Lloh22:
	ldr	x26, [x26, _TPC_ACTION_DECREASE@GOTPAGEOFF]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_11:
	ldr	w0, [x26]
	bl	_RS_PERCENT
	ldr	w8, [x28]
	cmp	x0, x24
	ccmp	w8, w23, #4, gt
	b.ne	LBB0_13
LBB0_12:
Lloh25:
	adrp	x26, _TPC_ACTION_STAY@GOTPAGE
Lloh26:
	ldr	x26, [x26, _TPC_ACTION_STAY@GOTPAGEOFF]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_13:
	ldr	w8, [x27]
	cmp	w21, w22
	b.ge	LBB0_17
; %bb.14:
	cmp	w8, w20
	b.ne	LBB0_17
; %bb.15:
	cmp	w8, w22
	b.eq	LBB0_17
; %bb.16:
Lloh29:
	adrp	x26, _TPC_ACTION_INCREASE@GOTPAGE
Lloh30:
	ldr	x26, [x26, _TPC_ACTION_INCREASE@GOTPAGEOFF]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_17:
	cmp	w21, w22
	ccmp	w8, w22, #4, ge
	cset	w8, eq
	cmp	w20, w21
	b.ge	LBB0_12
; %bb.18:
	tbz	w8, #0, LBB0_12
; %bb.19:
Lloh33:
	adrp	x26, _TPC_ACTION_INCREASE@GOTPAGE
Lloh34:
	ldr	x26, [x26, _TPC_ACTION_INCREASE@GOTPAGEOFF]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_INVALID_VALUE,4,2          ; @IWL_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no current tpt. stay.\n"

	.comm	_TPC_ACTION_STAY,4,2            ; @TPC_ACTION_STAY
	.comm	_IWL_MVM_RS_TPC_SR_FORCE_INCREASE,4,2 ; @IWL_MVM_RS_TPC_SR_FORCE_INCREASE
l_.str.1:                               ; @.str.1
	.asciz	"increase txp because of weak SR\n"

	.comm	_TPC_ACTION_NO_RESTIRCTION,4,2  ; @TPC_ACTION_NO_RESTIRCTION
	.comm	_IWL_MVM_RS_TPC_SR_NO_INCREASE,4,2 ; @IWL_MVM_RS_TPC_SR_NO_INCREASE
	.comm	_TPC_INVALID,4,2                ; @TPC_INVALID
l_.str.2:                               ; @.str.2
	.asciz	"no weak txp measurement. decrease txp\n"

	.comm	_TPC_ACTION_DECREASE,4,2        ; @TPC_ACTION_DECREASE
l_.str.3:                               ; @.str.3
	.asciz	"lower txp has better tpt. decrease txp\n"

l_.str.4:                               ; @.str.4
	.asciz	"higher txp has better tpt. increase txp\n"

	.comm	_TPC_ACTION_INCREASE,4,2        ; @TPC_ACTION_INCREASE
l_.str.5:                               ; @.str.5
	.asciz	"lower txp has worse tpt. increase txp\n"

l_.str.6:                               ; @.str.6
	.asciz	"no need to increase or decrease txp - stay\n"

	.no_dead_strip	_rs_get_tpc_action
.subsections_via_symbols
