	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_get_rate_action
_rs_get_rate_action:                    ## @rs_get_rate_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_RS_ACTION_STAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IWL_MVM_RS_SR_FORCE_DECREASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RS_PERCENT
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	cmpq	%r13, %rax
	jge	LBB0_6
## %bb.2:
	movl	24(%rbp), %esi
	movl	16(%rbp), %ecx
	movq	_IWL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IWL_RATE_INVALID@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	cmpl	%ecx, %edx
	jne	LBB0_7
## %bb.3:
	cmpl	%esi, %edx
	jne	LBB0_7
## %bb.4:
	cmpl	%r15d, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movq	_RS_ACTION_DOWNSCALE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	cmpl	%ebx, %ecx
	jge	LBB0_12
## %bb.8:
	cmpl	%ecx, %edx
	je	LBB0_12
## %bb.9:
	cmpl	%esi, %edx
	jne	LBB0_12
## %bb.10:
	cmpl	%r15d, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_12:
	cmpl	%ebx, %esi
	jle	LBB0_18
## %bb.13:
	cmpl	%esi, %edx
	je	LBB0_18
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movq	_RS_ACTION_UPSCALE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	cmpl	%ebx, %esi
	jge	LBB0_24
## %bb.19:
	cmpl	%ebx, %ecx
	jge	LBB0_24
## %bb.20:
	cmpl	%ecx, %edx
	je	LBB0_24
## %bb.21:
	cmpl	%esi, %edx
	je	LBB0_24
## %bb.22:
	leaq	L_.str.4(%rip), %rsi
LBB0_23:
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movq	_RS_ACTION_STAY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_24:
	cmpl	%ebx, %ecx
	jle	LBB0_27
## %bb.25:
	cmpl	%ecx, %edx
	je	LBB0_27
## %bb.26:
	leaq	L_.str.5(%rip), %rsi
	movq	%rdi, %r15
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movq	%r15, %rcx
	movq	_RS_ACTION_DOWNSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %r12d
	jmp	LBB0_32
LBB0_27:
	cmpl	%ecx, %edx
	jne	LBB0_30
## %bb.28:
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_30
## %bb.29:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movq	_RS_ACTION_DOWNSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %r12d
	jmp	LBB0_31
LBB0_30:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movq	_RS_ACTION_DOWNSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_31:
	movq	_IWL_RATE_INVALID@GOTPCREL(%rip), %rcx
LBB0_32:
	cmpl	%r15d, %r12d
	jne	LBB0_17
## %bb.33:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rcx)
	je	LBB0_17
## %bb.34:
	movq	_IWL_MVM_RS_SR_NO_DECREASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RS_PERCENT
	cmpq	%r13, %rax
	jle	LBB0_37
## %bb.35:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	imull	$100, (%rax,%rcx,4), %eax
	cmpl	%ebx, %eax
	jge	LBB0_38
## %bb.36:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_23
LBB0_37:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_23
LBB0_38:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movl	%r15d, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_ACTION_STAY,4,2             ## @RS_ACTION_STAY
	.comm	_IWL_MVM_RS_SR_FORCE_DECREASE,4,2 ## @IWL_MVM_RS_SR_FORCE_DECREASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decrease rate because of low SR\n"

	.comm	_RS_ACTION_DOWNSCALE,4,2        ## @RS_ACTION_DOWNSCALE
	.comm	_IWL_INVALID_VALUE,4,2          ## @IWL_INVALID_VALUE
	.comm	_IWL_RATE_INVALID,4,2           ## @IWL_RATE_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"No data about high/low rates. Increase rate\n"

	.comm	_RS_ACTION_UPSCALE,4,2          ## @RS_ACTION_UPSCALE
L_.str.2:                               ## @.str.2
	.asciz	"No data about high rate and low rate is worse. Increase rate\n"

L_.str.3:                               ## @.str.3
	.asciz	"Higher rate is better. Increate rate\n"

L_.str.4:                               ## @.str.4
	.asciz	"Both high and low are worse. Maintain rate\n"

L_.str.5:                               ## @.str.5
	.asciz	"Lower rate is better\n"

L_.str.6:                               ## @.str.6
	.asciz	"No data about lower rate\n"

L_.str.7:                               ## @.str.7
	.asciz	"Maintain rate\n"

	.comm	_IWL_MVM_RS_SR_NO_DECREASE,4,2  ## @IWL_MVM_RS_SR_NO_DECREASE
L_.str.8:                               ## @.str.8
	.asciz	"SR is above NO DECREASE. Avoid downscale\n"

L_.str.9:                               ## @.str.9
	.asciz	"Current TPT is higher than max expected in low rate. Avoid downscale\n"

L_.str.10:                              ## @.str.10
	.asciz	"Decrease rate\n"

	.no_dead_strip	_rs_get_rate_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_rate_action
_rs_get_rate_action:                    ; @rs_get_rate_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	x26, x7
	mov	x25, x6
	mov	x20, x5
	mov	x27, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x28, _RS_ACTION_STAY@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RS_ACTION_STAY@GOTPAGEOFF]
	ldr	w24, [x28]
Lloh2:
	adrp	x8, _IWL_MVM_RS_SR_FORCE_DECREASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_MVM_RS_SR_FORCE_DECREASE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_RS_PERCENT
	cbz	w20, LBB0_6
; %bb.1:
	cmp	x0, x23
	b.ge	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _IWL_INVALID_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_INVALID_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _IWL_RATE_INVALID@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IWL_RATE_INVALID@GOTPAGEOFF]
	ldr	w9, [x10]
	cmp	w8, w25
	ccmp	w8, w26, #0, eq
	ccmp	w9, w27, #4, eq
	b.ne	LBB0_7
; %bb.3:
	cmp	w25, w20
	b.ge	LBB0_8
; %bb.4:
	cmp	w8, w25
	ccmp	w8, w26, #0, ne
	ccmp	w9, w27, #4, eq
	b.eq	LBB0_8
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RATE
Lloh14:
	adrp	x8, _RS_ACTION_DOWNSCALE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RS_ACTION_DOWNSCALE@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	cmp	w26, w20
	b.le	LBB0_14
; %bb.9:
	cmp	w8, w26
	b.eq	LBB0_14
; %bb.10:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_IWL_DEBUG_RATE
Lloh20:
	adrp	x8, _RS_ACTION_UPSCALE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RS_ACTION_UPSCALE@GOTPAGEOFF]
LBB0_12:
	ldr	w24, [x8]
LBB0_13:
	mov	x0, x24
	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_14:
	cmp	w26, w20
	b.ge	LBB0_19
; %bb.15:
	cmp	w25, w20
	b.ge	LBB0_19
; %bb.16:
	cmp	w8, w25
	ccmp	w8, w26, #4, ne
	b.eq	LBB0_19
; %bb.17:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_IWL_DEBUG_RATE
	ldr	w24, [x28]
	b	LBB0_13
LBB0_19:
	cmp	w25, w20
	b.le	LBB0_22
; %bb.20:
	cmp	w8, w25
	b.eq	LBB0_22
; %bb.21:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x26, x10
	b	LBB0_25
LBB0_22:
	mov	x26, x10
	cmp	w8, w25
	ccmp	w9, w21, #4, eq
	b.ne	LBB0_24
; %bb.23:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RATE
Lloh28:
	adrp	x8, _RS_ACTION_DOWNSCALE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RS_ACTION_DOWNSCALE@GOTPAGEOFF]
Lloh30:
	ldr	w25, [x8]
	b	LBB0_26
LBB0_24:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
LBB0_25:
	bl	_IWL_DEBUG_RATE
Lloh33:
	adrp	x8, _RS_ACTION_DOWNSCALE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RS_ACTION_DOWNSCALE@GOTPAGEOFF]
Lloh35:
	ldr	w25, [x8]
	mov	x24, x25
LBB0_26:
	cmp	w24, w25
	b.ne	LBB0_13
; %bb.27:
	ldr	w8, [x26]
	cmp	w8, w21
	b.eq	LBB0_13
; %bb.28:
Lloh36:
	adrp	x8, _IWL_MVM_RS_SR_NO_DECREASE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IWL_MVM_RS_SR_NO_DECREASE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_RS_PERCENT
	cmp	x0, x23
	b.le	LBB0_31
; %bb.29:
	ldr	x8, [x22]
	ldr	w8, [x8, w21, sxtw #2]
	mov	w9, #100
	mul	w8, w8, w9
	cmp	w8, w20
	b.ge	LBB0_32
; %bb.30:
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_18
LBB0_31:
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_18
LBB0_32:
Lloh43:
	adrp	x1, l_.str.10@PAGE
Lloh44:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RATE
	mov	x24, x25
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_ACTION_STAY,4,2             ; @RS_ACTION_STAY
	.comm	_IWL_MVM_RS_SR_FORCE_DECREASE,4,2 ; @IWL_MVM_RS_SR_FORCE_DECREASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decrease rate because of low SR\n"

	.comm	_RS_ACTION_DOWNSCALE,4,2        ; @RS_ACTION_DOWNSCALE
	.comm	_IWL_INVALID_VALUE,4,2          ; @IWL_INVALID_VALUE
	.comm	_IWL_RATE_INVALID,4,2           ; @IWL_RATE_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"No data about high/low rates. Increase rate\n"

	.comm	_RS_ACTION_UPSCALE,4,2          ; @RS_ACTION_UPSCALE
l_.str.2:                               ; @.str.2
	.asciz	"No data about high rate and low rate is worse. Increase rate\n"

l_.str.3:                               ; @.str.3
	.asciz	"Higher rate is better. Increate rate\n"

l_.str.4:                               ; @.str.4
	.asciz	"Both high and low are worse. Maintain rate\n"

l_.str.5:                               ; @.str.5
	.asciz	"Lower rate is better\n"

l_.str.6:                               ; @.str.6
	.asciz	"No data about lower rate\n"

l_.str.7:                               ; @.str.7
	.asciz	"Maintain rate\n"

	.comm	_IWL_MVM_RS_SR_NO_DECREASE,4,2  ; @IWL_MVM_RS_SR_NO_DECREASE
l_.str.8:                               ; @.str.8
	.asciz	"SR is above NO DECREASE. Avoid downscale\n"

l_.str.9:                               ; @.str.9
	.asciz	"Current TPT is higher than max expected in low rate. Avoid downscale\n"

l_.str.10:                              ; @.str.10
	.asciz	"Decrease rate\n"

	.no_dead_strip	_rs_get_rate_action
.subsections_via_symbols
