	.file	"extr_wmi.c_ath6kl_wmi_rssi_threshold_event_rx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"spurious upper rssi threshold event: %d\n"
	.align 8
.LC1:
	.string	"spurious lower rssi threshold event: %d %d\n"
	.align 8
.LC2:
	.string	"unable to configure rssi thresholds\n"
	.text
	.p2align 4
	.type	ath6kl_wmi_rssi_threshold_event_rx, @function
ath6kl_wmi_rssi_threshold_event_rx:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	edx, 15
	ja	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.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
.L2:
	.cfi_restore_state
	mov	r12, rdi
	mov	edi, DWORD PTR [rsi]
	mov	r13, QWORD PTR 8[rsi]
	call	a_sle16_to_cpu@PLT
	mov	rbx, QWORD PTR SIGNAL_QUALITY_METRICS_RSSI[rip]
	mov	rbp, rax
	sal	rbx, 5
	add	rbx, QWORD PTR [r12]
	test	r13d, r13d
	je	.L4
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [rax], rbp
	jg	.L13
.L5:
	mov	edx, DWORD PTR 28[rbx]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ath6kl_wmi_get_lower_threshold@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	rsi, rbx
	mov	rdi, rbp
	mov	r13d, eax
	call	ath6kl_wmi_get_upper_threshold@PLT
	mov	edi, eax
	call	a_cpu_to_sle16@PLT
	mov	edi, r13d
	mov	QWORD PTR 16[rsp], rax
	call	a_cpu_to_sle16@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 20[rbx]
	mov	DWORD PTR 4[rsp], eax
	call	cpu_to_le32@PLT
	mov	rsi, rsp
	mov	rdi, r12
	mov	DWORD PTR [rsp], eax
	call	ath6kl_wmi_send_rssi_threshold_params@PLT
	test	eax, eax
	je	.L1
	lea	rdi, .LC2[rip]
	call	ath6kl_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbx]
	mov	rcx, QWORD PTR [rax]
	cmp	rcx, rbp
	jge	.L5
	mov	edi, DWORD PTR ATH6KL_DBG_WMI[rip]
	mov	rdx, rbp
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ath6kl_dbg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR ATH6KL_DBG_WMI[rip]
	mov	rdx, rbp
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	ath6kl_dbg@PLT
	jmp	.L5
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath6kl_wmi_rssi_threshold_event_rx, .-ath6kl_wmi_rssi_threshold_event_rx
	.comm	WMI_RSSI_THRESHOLD6_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD6_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD5_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD5_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD4_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD4_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD3_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD3_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD2_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD2_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD1_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD1_ABOVE,4,4
	.comm	SIGNAL_QUALITY_METRICS_RSSI,8,8
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	ATH6KL_DBG_WMI,4,4
	.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_wmi.c_ath6kl_wmi_rssi_threshold_event_rx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"spurious upper rssi threshold event: %d\012\000"
	.align	2
.LC1:
	.ascii	"spurious lower rssi threshold event: %d %d\012\000"
	.align	2
.LC2:
	.ascii	"unable to configure rssi thresholds\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_wmi_rssi_threshold_event_rx, %function
ath6kl_wmi_rssi_threshold_event_rx:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L14
	sub	sp, sp, #24
	cmp	r2, #7
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bhi	.L2
	ldr	r3, .L14+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r6, r0
	ldm	r1, {r0, r5}
	bl	a_sle16_to_cpu
	ldr	r2, .L14+8
	ldr	r3, [r6]
	ldr	r4, [r2]
	cmp	r5, #0
	add	r4, r4, r4, lsl #1
	lsl	r2, r4, #3
	mov	r5, r0
	add	r4, r3, r4, lsl #3
	beq	.L4
	ldr	r3, [r3, r2]
	ldr	r3, [r3]
	cmp	r3, r0
	bgt	.L13
.L5:
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r4, #20]
	bl	ath6kl_wmi_get_lower_threshold
	mov	r3, r0
	mov	r1, r4
	ldr	r2, [r4, #16]
	mov	r0, r5
	mov	r5, r3
	bl	ath6kl_wmi_get_upper_threshold
	bl	a_cpu_to_sle16
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #16]
	bl	a_cpu_to_sle16
	mov	r2, r0
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #8]
	str	r3, [sp, #8]
	str	r2, [sp, #12]
	bl	cpu_to_le32
	mov	r3, r0
	add	r1, sp, #4
	mov	r0, r6
	str	r3, [sp, #4]
	bl	ath6kl_wmi_send_rssi_threshold_params
	cmp	r0, #0
	beq	.L1
	ldr	r0, .L14+12
	bl	ath6kl_err
	ldr	r3, .L14+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L4:
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, r0
	bge	.L5
	ldr	r2, .L14+20
	ldr	r1, .L14+24
	ldr	r0, [r2]
	mov	r2, r5
	bl	ath6kl_dbg
	b	.L5
.L13:
	ldr	r3, .L14+20
	mov	r2, r0
	ldr	r1, .L14+28
	ldr	r0, [r3]
	bl	ath6kl_dbg
	b	.L5
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	EINVAL
	.word	SIGNAL_QUALITY_METRICS_RSSI
	.word	.LC2
	.word	EIO
	.word	ATH6KL_DBG_WMI
	.word	.LC1
	.word	.LC0
	.size	ath6kl_wmi_rssi_threshold_event_rx, .-ath6kl_wmi_rssi_threshold_event_rx
	.comm	WMI_RSSI_THRESHOLD6_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD6_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD5_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD5_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD4_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD4_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD3_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD3_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD2_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD2_ABOVE,4,4
	.comm	WMI_RSSI_THRESHOLD1_BELOW,4,4
	.comm	WMI_RSSI_THRESHOLD1_ABOVE,4,4
	.comm	SIGNAL_QUALITY_METRICS_RSSI,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	ATH6KL_DBG_WMI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
