	.file	"extr_ani.c_ath5k_ani_raise_immunity.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"beacon RSSI high"
.LC1:
	.string	"beacon RSSI mid"
.LC2:
	.string	"beacon RSSI low, 2GHz"
.LC3:
	.string	"CCK"
.LC4:
	.string	"raise immunity (%s)"
.LC5:
	.string	"ODFM"
	.text
	.p2align 4
	.type	ath5k_ani_raise_immunity, @function
ath5k_ani_raise_immunity:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	add	rdi, 24
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ewma_beacon_rssi_read@PLT
	mov	r13d, eax
	test	r12d, r12d
	je	.L34
	mov	esi, DWORD PTR ATH5K_DEBUG_ANI[rip]
	xor	eax, eax
	mov	rdi, rbp
	lea	rcx, .LC5[rip]
	lea	rdx, .LC4[rip]
	call	ATH5K_DBG_UNLIMIT@PLT
	mov	rsi, QWORD PTR [rbx]
	cmp	rsi, QWORD PTR ATH5K_ANI_MAX_NOISE_IMM_LVL[rip]
	jl	.L14
	mov	rsi, QWORD PTR 8[rbx]
	cmp	rsi, QWORD PTR 16[rbp]
	jl	.L35
.L4:
	mov	rax, QWORD PTR NL80211_IFTYPE_AP[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L12
	cmp	DWORD PTR ATH5K_ANI_RSSI_THR_HIGH[rip], r13d
	jl	.L36
	cmp	DWORD PTR ATH5K_ANI_RSSI_THR_LOW[rip], r13d
	jl	.L37
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR NL80211_BAND_2GHZ[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L38
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	mov	esi, DWORD PTR ATH5K_DEBUG_ANI[rip]
	xor	eax, eax
	mov	rdi, rbp
	lea	rcx, .LC3[rip]
	lea	rdx, .LC4[rip]
	call	ATH5K_DBG_UNLIMIT@PLT
	mov	rsi, QWORD PTR [rbx]
	cmp	rsi, QWORD PTR ATH5K_ANI_MAX_NOISE_IMM_LVL[rip]
	jge	.L4
.L14:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	add	rsi, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ath5k_ani_set_noise_immunity_level@PLT
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	mov	esi, DWORD PTR ATH5K_DEBUG_ANI[rip]
	xor	eax, eax
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	ATH5K_DBG_UNLIMIT@PLT
	test	r12d, r12d
	je	.L12
	cmp	QWORD PTR 24[rbx], 0
	jne	.L12
	mov	esi, 1
	mov	rdi, rbp
	call	ath5k_ani_set_ofdm_weak_signal_detection@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR 16[rbx]
	cmp	rsi, QWORD PTR ATH5K_ANI_MAX_FIRSTEP_LVL[rip]
	jge	.L1
	add	rsi, 1
.L29:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ath5k_ani_set_firstep_level@PLT
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	mov	esi, DWORD PTR ATH5K_DEBUG_ANI[rip]
	xor	eax, eax
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	ATH5K_DBG_UNLIMIT@PLT
	test	r12d, r12d
	je	.L12
	cmp	QWORD PTR 24[rbx], 0
	je	.L12
	xor	esi, esi
	mov	rdi, rbp
	call	ath5k_ani_set_ofdm_weak_signal_detection@PLT
	xor	esi, esi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L35:
	add	rsi, 1
.L28:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ath5k_ani_set_spur_immunity_level@PLT
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	mov	esi, DWORD PTR ATH5K_DEBUG_ANI[rip]
	xor	eax, eax
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	call	ATH5K_DBG_UNLIMIT@PLT
	test	r12d, r12d
	je	.L13
	cmp	QWORD PTR 24[rbx], 0
	jne	.L39
.L13:
	cmp	QWORD PTR 16[rbx], 0
	jle	.L1
	xor	esi, esi
	jmp	.L29
.L39:
	xor	esi, esi
	mov	rdi, rbp
	call	ath5k_ani_set_ofdm_weak_signal_detection@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	ath5k_ani_raise_immunity, .-ath5k_ani_raise_immunity
	.comm	NL80211_IFTYPE_AP,8,8
	.comm	NL80211_BAND_2GHZ,8,8
	.comm	ATH5K_DEBUG_ANI,4,4
	.comm	ATH5K_ANI_RSSI_THR_LOW,4,4
	.comm	ATH5K_ANI_RSSI_THR_HIGH,4,4
	.comm	ATH5K_ANI_MAX_NOISE_IMM_LVL,8,8
	.comm	ATH5K_ANI_MAX_FIRSTEP_LVL,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_ani.c_ath5k_ani_raise_immunity.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"beacon RSSI high\000"
	.align	2
.LC1:
	.ascii	"beacon RSSI mid\000"
	.align	2
.LC2:
	.ascii	"beacon RSSI low, 2GHz\000"
	.align	2
.LC3:
	.ascii	"CCK\000"
	.align	2
.LC4:
	.ascii	"raise immunity (%s)\000"
	.align	2
.LC5:
	.ascii	"ODFM\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath5k_ani_raise_immunity, %function
ath5k_ani_raise_immunity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r4, r0
	add	r0, r0, #12
	mov	r5, r1
	bl	ewma_beacon_rssi_read
	ldr	r8, .L44
	cmp	r7, #0
	mov	r6, r0
	ldr	r1, [r8]
	beq	.L39
	ldr	r3, .L44+4
	mov	r0, r4
	ldr	r2, .L44+8
	bl	ATH5K_DBG_UNLIMIT
	ldr	r3, .L44+12
	ldr	r1, [r5]
	ldr	r3, [r3]
	cmp	r1, r3
	blt	.L14
	ldr	r1, [r5, #4]
	ldr	r3, [r4, #8]
	cmp	r1, r3
	blt	.L40
.L4:
	ldr	r3, .L44+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L12
	ldr	r3, .L44+20
	ldr	r3, [r3]
	cmp	r3, r6
	blt	.L41
	ldr	r3, .L44+24
	ldr	r3, [r3]
	cmp	r3, r6
	blt	.L42
	ldr	r2, [r4, #4]
	ldr	r3, .L44+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	ldr	r1, [r8]
	ldr	r2, .L44+32
	bl	ATH5K_DBG_UNLIMIT
	cmp	r7, #0
	beq	.L13
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bne	.L43
.L13:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	ath5k_ani_set_firstep_level
.L39:
	ldr	r3, .L44+36
	mov	r0, r4
	ldr	r2, .L44+8
	bl	ATH5K_DBG_UNLIMIT
	ldr	r3, .L44+12
	ldr	r1, [r5]
	ldr	r3, [r3]
	cmp	r1, r3
	bge	.L4
.L14:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	add	r1, r1, #1
	b	ath5k_ani_set_noise_immunity_level
.L42:
	mov	r0, r4
	ldr	r1, [r8]
	ldr	r2, .L44+40
	bl	ATH5K_DBG_UNLIMIT
	cmp	r7, #0
	beq	.L12
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bne	.L12
	mov	r1, #1
	mov	r0, r4
	bl	ath5k_ani_set_ofdm_weak_signal_detection
.L12:
	ldr	r3, .L44+44
	ldr	r1, [r5, #8]
	ldr	r3, [r3]
	cmp	r1, r3
	popge	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	add	r1, r1, #1
	b	ath5k_ani_set_firstep_level
.L41:
	mov	r0, r4
	ldr	r1, [r8]
	ldr	r2, .L44+48
	bl	ATH5K_DBG_UNLIMIT
	cmp	r7, #0
	beq	.L12
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L12
	mov	r1, #0
	mov	r0, r4
	bl	ath5k_ani_set_ofdm_weak_signal_detection
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	ath5k_ani_set_spur_immunity_level
.L40:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	add	r1, r1, #1
	b	ath5k_ani_set_spur_immunity_level
.L43:
	mov	r1, #0
	mov	r0, r4
	bl	ath5k_ani_set_ofdm_weak_signal_detection
	b	.L13
.L45:
	.align	2
.L44:
	.word	ATH5K_DEBUG_ANI
	.word	.LC5
	.word	.LC4
	.word	ATH5K_ANI_MAX_NOISE_IMM_LVL
	.word	NL80211_IFTYPE_AP
	.word	ATH5K_ANI_RSSI_THR_HIGH
	.word	ATH5K_ANI_RSSI_THR_LOW
	.word	NL80211_BAND_2GHZ
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	ATH5K_ANI_MAX_FIRSTEP_LVL
	.word	.LC0
	.size	ath5k_ani_raise_immunity, .-ath5k_ani_raise_immunity
	.comm	NL80211_IFTYPE_AP,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	ATH5K_DEBUG_ANI,4,4
	.comm	ATH5K_ANI_RSSI_THR_LOW,4,4
	.comm	ATH5K_ANI_RSSI_THR_HIGH,4,4
	.comm	ATH5K_ANI_MAX_NOISE_IMM_LVL,4,4
	.comm	ATH5K_ANI_MAX_FIRSTEP_LVL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
