	.file	"extr_nl80211.c_nl80211_set_cqm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nl80211_set_cqm, @function
nl80211_set_cqm:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	esi, DWORD PTR NL80211_ATTR_CQM_MAX[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rcx, rsp
	lea	eax, 1[rsi]
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L22
.L4:
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR NL80211_ATTR_CQM[rip]
	mov	rbx, rsp
	mov	rdx, QWORD PTR [rax+rdx*8]
	test	rdx, rdx
	je	.L8
	mov	ecx, DWORD PTR nl80211_attr_cqm_policy[rip]
	mov	rdi, rbx
	call	nla_parse_nested@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR NL80211_ATTR_CQM_RSSI_THOLD[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L7
	mov	rax, QWORD PTR NL80211_ATTR_CQM_RSSI_HYST[rip]
	cmp	QWORD PTR [rbx+rax*8], 0
	je	.L7
	call	nla_get_u32@PLT
	mov	r13, rax
	mov	rax, QWORD PTR NL80211_ATTR_CQM_RSSI_HYST[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	call	nla_get_u32@PLT
	mov	rsi, r13
	mov	rdi, r12
	mov	rdx, rax
	call	nl80211_set_cqm_rssi@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR NL80211_ATTR_CQM_TXE_RATE[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L8
	mov	rax, QWORD PTR NL80211_ATTR_CQM_TXE_PKTS[rip]
	cmp	QWORD PTR [rbx+rax*8], 0
	je	.L8
	mov	rax, QWORD PTR NL80211_ATTR_CQM_TXE_INTVL[rip]
	cmp	QWORD PTR [rbx+rax*8], 0
	je	.L8
	call	nla_get_u32@PLT
	mov	r13, rax
	mov	rax, QWORD PTR NL80211_ATTR_CQM_TXE_PKTS[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	call	nla_get_u32@PLT
	mov	r14, rax
	mov	rax, QWORD PTR NL80211_ATTR_CQM_TXE_INTVL[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	call	nla_get_u32@PLT
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, r12
	mov	rcx, rax
	call	nl80211_set_cqm_txe@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L6:
	endbr64
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nl80211_set_cqm, .-nl80211_set_cqm
	.comm	nl80211_attr_cqm_policy,4,4
	.comm	NL80211_ATTR_CQM_TXE_RATE,8,8
	.comm	NL80211_ATTR_CQM_TXE_PKTS,8,8
	.comm	NL80211_ATTR_CQM_TXE_INTVL,8,8
	.comm	NL80211_ATTR_CQM_RSSI_THOLD,8,8
	.comm	NL80211_ATTR_CQM_RSSI_HYST,8,8
	.comm	NL80211_ATTR_CQM_MAX,4,4
	.comm	NL80211_ATTR_CQM,8,8
	.comm	EINVAL,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_nl80211.c_nl80211_set_cqm.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nl80211_set_cqm, %function
nl80211_set_cqm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	mov	r4, r1
	ldr	r2, .L26
	ldr	r3, .L26+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	r2, [r4]
	lsl	r3, r1, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	ldr	r2, [r2, r0, lsl #2]
	sub	sp, sp, r3
	ldr	r3, .L26+8
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	beq	.L5
	mov	r5, sp
	ldr	r3, .L26+12
	mov	r0, r5
	ldr	r3, [r3]
	bl	nla_parse_nested
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L26+16
	ldr	r3, [r3]
	ldr	r0, [r5, r3, lsl #2]
	cmp	r0, #0
	beq	.L4
	ldr	r6, .L26+20
	ldr	r3, [r6]
	ldr	r3, [r5, r3, lsl #2]
	cmp	r3, #0
	beq	.L4
	bl	nla_get_u32
	ldr	r3, [r6]
	mov	r6, r0
	ldr	r0, [r5, r3, lsl #2]
	bl	nla_get_u32
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	nl80211_set_cqm_rssi
.L1:
	ldr	r3, .L26+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L4:
	ldr	r3, .L26+24
	ldr	r3, [r3]
	ldr	r0, [r5, r3, lsl #2]
	cmp	r0, #0
	bne	.L25
.L5:
.L3:
	ldr	r3, .L26+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L25:
	ldr	r6, .L26+32
	ldr	r3, [r6]
	ldr	r3, [r5, r3, lsl #2]
	cmp	r3, #0
	beq	.L5
	ldr	r7, .L26+36
	ldr	r3, [r7]
	ldr	r3, [r5, r3, lsl #2]
	cmp	r3, #0
	beq	.L5
	bl	nla_get_u32
	ldr	r3, [r6]
	mov	r6, r0
	ldr	r0, [r5, r3, lsl #2]
	bl	nla_get_u32
	ldr	r3, [r7]
	mov	r7, r0
	ldr	r0, [r5, r3, lsl #2]
	bl	nla_get_u32
	mov	r2, r7
	mov	r3, r0
	mov	r1, r6
	mov	r0, r4
	bl	nl80211_set_cqm_txe
	b	.L1
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	NL80211_ATTR_CQM_MAX
	.word	NL80211_ATTR_CQM
	.word	.LC0
	.word	nl80211_attr_cqm_policy
	.word	NL80211_ATTR_CQM_RSSI_THOLD
	.word	NL80211_ATTR_CQM_RSSI_HYST
	.word	NL80211_ATTR_CQM_TXE_RATE
	.word	EINVAL
	.word	NL80211_ATTR_CQM_TXE_PKTS
	.word	NL80211_ATTR_CQM_TXE_INTVL
	.size	nl80211_set_cqm, .-nl80211_set_cqm
	.comm	nl80211_attr_cqm_policy,4,4
	.comm	NL80211_ATTR_CQM_TXE_RATE,4,4
	.comm	NL80211_ATTR_CQM_TXE_PKTS,4,4
	.comm	NL80211_ATTR_CQM_TXE_INTVL,4,4
	.comm	NL80211_ATTR_CQM_RSSI_THOLD,4,4
	.comm	NL80211_ATTR_CQM_RSSI_HYST,4,4
	.comm	NL80211_ATTR_CQM_MAX,4,4
	.comm	NL80211_ATTR_CQM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
