	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_tpc_allowed
_rs_tpc_allowed:                        ## @rs_tpc_allowed
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	_iwlmvm_mod_params@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_IWL_POWER_SCHEME_CAM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%edx, %edx
	cmpq	%r12, %rbx
	sete	%dl
	movq	(%rsi), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	cmpl	$0, 8(%rsi)
	sete	%r15b
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movzbl	%r15b, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_RATE
	cmpq	%r12, %rbx
	je	LBB0_5
## %bb.4:
	testb	%r15b, %r15b
	je	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_iwl_mvm_bt_coex_is_tpc_allowed
	testl	%eax, %eax
	je	LBB0_16
LBB0_6:
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_RATE
	movq	%r14, %rdi
	callq	_is_legacy
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_IWL_RATE_54M_INDEX@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_is_ht
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_IWL_RATE_MCS_7_INDEX@GOTPCREL(%rip), %rax
LBB0_8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	sete	%al
	jmp	LBB0_17
LBB0_11:
	movq	%r14, %rdi
	callq	_is_vht
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	_IWL_RATE_MCS_7_INDEX@GOTPCREL(%rip), %rcx
	movb	$1, %al
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rcx), %edx
	je	LBB0_17
## %bb.13:
	movq	_IWL_RATE_MCS_8_INDEX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	je	LBB0_17
## %bb.14:
	movq	_IWL_RATE_MCS_9_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	sete	%al
	jmp	LBB0_17
LBB0_15:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iwlmvm_mod_params,8,3          ## @iwlmvm_mod_params
	.comm	_IWL_POWER_SCHEME_CAM,8,3       ## @IWL_POWER_SCHEME_CAM
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cam: %d sta_ps_disabled %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"check rate, table type: %d\n"

	.comm	_IWL_RATE_54M_INDEX,4,2         ## @IWL_RATE_54M_INDEX
	.comm	_IWL_RATE_MCS_7_INDEX,4,2       ## @IWL_RATE_MCS_7_INDEX
	.comm	_IWL_RATE_MCS_8_INDEX,4,2       ## @IWL_RATE_MCS_8_INDEX
	.comm	_IWL_RATE_MCS_9_INDEX,4,2       ## @IWL_RATE_MCS_9_INDEX
	.no_dead_strip	_rs_tpc_allowed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_tpc_allowed
_rs_tpc_allowed:                        ; @rs_tpc_allowed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _iwlmvm_mod_params@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iwlmvm_mod_params@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _IWL_POWER_SCHEME_CAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_POWER_SCHEME_CAM@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	cmp	x23, x24
	cset	w2, eq
	ldr	x8, [x1]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x1, #8]
	cmp	w8, #0
	cset	w25, eq
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	ldr	w22, [x19]
	mov	w8, w25
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_RATE
	cmp	x23, x24
	ccmp	w25, #0, #0, ne
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_mvm_bt_coex_is_tpc_allowed
	cbz	w0, LBB0_10
LBB0_5:
	ldr	w2, [x19, #4]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_RATE
	mov	x0, x19
	bl	_is_legacy
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _IWL_RATE_54M_INDEX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IWL_RATE_54M_INDEX@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_is_ht
	cbz	x0, LBB0_11
; %bb.8:
Lloh15:
	adrp	x8, _IWL_RATE_MCS_7_INDEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IWL_RATE_MCS_7_INDEX@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, eq
LBB0_10:
	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
	add	sp, sp, #96
	ret
LBB0_11:
	mov	x0, x19
	bl	_is_vht
	cbz	x0, LBB0_14
; %bb.12:
Lloh17:
	adrp	x8, _IWL_RATE_MCS_7_INDEX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IWL_RATE_MCS_7_INDEX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _IWL_RATE_MCS_8_INDEX@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IWL_RATE_MCS_8_INDEX@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.ne	LBB0_15
; %bb.13:
	mov	w0, #1
	b	LBB0_10
LBB0_14:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	mov	w0, #0
	b	LBB0_10
LBB0_15:
Lloh23:
	adrp	x8, _IWL_RATE_MCS_9_INDEX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IWL_RATE_MCS_9_INDEX@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_iwlmvm_mod_params,8,3          ; @iwlmvm_mod_params
	.comm	_IWL_POWER_SCHEME_CAM,8,3       ; @IWL_POWER_SCHEME_CAM
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cam: %d sta_ps_disabled %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"check rate, table type: %d\n"

	.comm	_IWL_RATE_54M_INDEX,4,2         ; @IWL_RATE_54M_INDEX
	.comm	_IWL_RATE_MCS_7_INDEX,4,2       ; @IWL_RATE_MCS_7_INDEX
	.comm	_IWL_RATE_MCS_8_INDEX,4,2       ; @IWL_RATE_MCS_8_INDEX
	.comm	_IWL_RATE_MCS_9_INDEX,4,2       ; @IWL_RATE_MCS_9_INDEX
	.no_dead_strip	_rs_tpc_allowed
.subsections_via_symbols
