	.file	"extr_rs.c_rs_tpc_allowed.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cam: %d sta_ps_disabled %d\n"
.LC1:
	.string	"check rate, table type: %d\n"
	.text
	.p2align 4
	.type	rs_tpc_allowed, @function
rs_tpc_allowed:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r15, QWORD PTR iwlmvm_mod_params[rip]
	mov	ebx, DWORD PTR [rdx]
	xor	edx, edx
	mov	r14, QWORD PTR IWL_POWER_SCHEME_CAM[rip]
	mov	rax, QWORD PTR NL80211_IFTYPE_STATION[rip]
	cmp	r15, r14
	sete	dl
	cmp	QWORD PTR [rsi], rax
	je	.L19
.L2:
	xor	ecx, ecx
	xor	eax, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	IWL_DEBUG_RATE@PLT
	cmp	r15, r14
	je	.L4
.L8:
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	IWL_DEBUG_RATE@PLT
	mov	rdi, rbp
	call	is_legacy@PLT
	test	rax, rax
	je	.L20
	xor	eax, eax
	cmp	DWORD PTR IWL_RATE_54M_INDEX[rip], ebx
	sete	al
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rsi]
	test	eax, eax
	jne	.L2
	mov	ecx, 1
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	IWL_DEBUG_RATE@PLT
.L4:
	mov	esi, r13d
	mov	rdi, r12
	call	iwl_mvm_bt_coex_is_tpc_allowed@PLT
	test	eax, eax
	jne	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	is_ht@PLT
	test	rax, rax
	je	.L9
	xor	eax, eax
	cmp	DWORD PTR IWL_RATE_MCS_7_INDEX[rip], ebx
	sete	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	is_vht@PLT
	test	rax, rax
	je	.L10
	cmp	DWORD PTR IWL_RATE_MCS_7_INDEX[rip], ebx
	mov	eax, 1
	je	.L1
	cmp	DWORD PTR IWL_RATE_MCS_8_INDEX[rip], ebx
	je	.L1
	xor	eax, eax
	cmp	DWORD PTR IWL_RATE_MCS_9_INDEX[rip], ebx
	sete	al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, 1
	call	WARN_ON_ONCE@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rs_tpc_allowed, .-rs_tpc_allowed
	.comm	iwlmvm_mod_params,8,8
	.comm	NL80211_IFTYPE_STATION,8,8
	.comm	IWL_RATE_MCS_9_INDEX,4,4
	.comm	IWL_RATE_MCS_8_INDEX,4,4
	.comm	IWL_RATE_MCS_7_INDEX,4,4
	.comm	IWL_RATE_54M_INDEX,4,4
	.comm	IWL_POWER_SCHEME_CAM,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rs.c_rs_tpc_allowed.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cam: %d sta_ps_disabled %d\012\000"
	.align	2
.LC1:
	.ascii	"check rate, table type: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rs_tpc_allowed, %function
rs_tpc_allowed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	ip, .L21
	ldr	r5, .L21+4
	mov	r4, r2
	ldr	r9, [r5]
	ldr	r2, .L21+8
	ldr	r8, [ip]
	ldr	ip, [r2]
	sub	r2, r9, r8
	clz	r2, r2
	ldr	lr, [r1]
	mov	r5, r3
	cmp	lr, ip
	mov	r7, r0
	ldr	r6, [r4]
	lsr	r2, r2, #5
	beq	.L19
.L2:
	mov	r3, #0
	mov	r0, r7
	ldr	r1, .L21+12
	bl	IWL_DEBUG_RATE
	cmp	r9, r8
	beq	.L4
.L8:
	ldr	r2, [r4, #4]
	ldr	r1, .L21+16
	mov	r0, r7
	bl	IWL_DEBUG_RATE
	mov	r0, r4
	bl	is_legacy
	cmp	r0, #0
	beq	.L20
	ldr	r3, .L21+20
	ldr	r5, [r3]
	sub	r5, r5, r6
	clz	r5, r5
	lsr	r5, r5, #5
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, [r1, #4]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	ldr	r1, .L21+12
	bl	IWL_DEBUG_RATE
.L4:
	mov	r1, r5
	mov	r0, r7
	bl	iwl_mvm_bt_coex_is_tpc_allowed
	subs	r5, r0, #0
	bne	.L8
	b	.L1
.L20:
	mov	r0, r4
	bl	is_ht
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L21+24
	ldr	r5, [r3]
	sub	r5, r5, r6
	clz	r5, r5
	lsr	r5, r5, #5
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r0, r4
	bl	is_vht
	subs	r5, r0, #0
	beq	.L10
	ldr	r3, .L21+24
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L12
	ldr	r3, .L21+28
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L12
	ldr	r3, .L21+32
	ldr	r5, [r3]
	sub	r5, r5, r6
	clz	r5, r5
	lsr	r5, r5, #5
	b	.L1
.L12:
	mov	r5, #1
	b	.L1
.L10:
	mov	r0, #1
	bl	WARN_ON_ONCE
	b	.L1
.L22:
	.align	2
.L21:
	.word	IWL_POWER_SCHEME_CAM
	.word	iwlmvm_mod_params
	.word	NL80211_IFTYPE_STATION
	.word	.LC0
	.word	.LC1
	.word	IWL_RATE_54M_INDEX
	.word	IWL_RATE_MCS_7_INDEX
	.word	IWL_RATE_MCS_8_INDEX
	.word	IWL_RATE_MCS_9_INDEX
	.size	rs_tpc_allowed, .-rs_tpc_allowed
	.comm	iwlmvm_mod_params,4,4
	.comm	NL80211_IFTYPE_STATION,4,4
	.comm	IWL_RATE_MCS_9_INDEX,4,4
	.comm	IWL_RATE_MCS_8_INDEX,4,4
	.comm	IWL_RATE_MCS_7_INDEX,4,4
	.comm	IWL_RATE_54M_INDEX,4,4
	.comm	IWL_POWER_SCHEME_CAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
