	.file	"extr_nl80211.c_nl80211_remain_on_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nl80211_remain_on_channel, @function
nl80211_remain_on_channel:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rdx, QWORD PTR NL80211_ATTR_WIPHY_FREQ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rsi]
	mov	edx, DWORD PTR [rax+rdx*4]
	test	edx, edx
	je	.L7
	mov	rdx, QWORD PTR NL80211_ATTR_DURATION[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	test	edi, edi
	jne	.L3
.L7:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsi]
	mov	rbp, rsi
	mov	r14, QWORD PTR [rax]
	mov	r13, QWORD PTR 8[rax]
	call	nla_get_u32@PLT
	mov	r15, rax
	mov	rax, QWORD PTR 24[r14]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR 8[r14]
	test	DWORD PTR WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL[rip], eax
	je	.L5
	cmp	QWORD PTR NL80211_MIN_REMAIN_ON_CHANNEL_TIME[rip], r15
	jg	.L7
	cmp	QWORD PTR 16[r14], r15
	jl	.L7
	lea	rbx, 16[rsp]
	mov	rsi, rbp
	mov	rdi, r14
	mov	rdx, rbx
	call	nl80211_parse_chandef@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, r13
	call	wdev_lock@PLT
	mov	rdi, r13
	call	cfg80211_off_channel_oper_allowed@PLT
	test	eax, eax
	jne	.L9
	mov	rsi, rbx
	mov	rdi, r13
	call	cfg80211_chandef_identical@PLT
	test	eax, eax
	je	.L19
.L9:
	mov	rdi, r13
	call	wdev_unlock@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR NLMSG_DEFAULT_SIZE[rip]
	call	nlmsg_new@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbx, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR 4[rbp]
	mov	r8d, DWORD PTR NL80211_CMD_REMAIN_ON_CHANNEL[rip]
	xor	ecx, ecx
	mov	rdi, rax
	mov	edx, DWORD PTR 0[rbp]
	call	nl80211hdr_put@PLT
	test	rax, rax
	je	.L16
	mov	edx, DWORD PTR 16[rsp]
	lea	r8, 20[rsp]
	mov	rcx, r15
	mov	rsi, r13
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	rdev_remain_on_channel@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	ecx, DWORD PTR NL80211_ATTR_PAD[rip]
	mov	edx, DWORD PTR 20[rsp]
	mov	rdi, rbx
	mov	esi, DWORD PTR NL80211_ATTR_COOKIE[rip]
	call	nla_put_u64_64bit@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L16
	mov	rsi, r9
	mov	rdi, rbx
	call	genlmsg_end@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	genlmsg_reply@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
	jmp	.L1
.L16:
	mov	r12d, DWORD PTR ENOBUFS[rip]
	neg	r12d
.L12:
	mov	rdi, rbx
	call	nlmsg_free@PLT
	jmp	.L1
.L19:
	mov	rsi, rbx
	mov	rdi, r13
	call	cfg80211_chandef_compatible@PLT
	cmp	rbx, rax
	je	.L9
	mov	rdi, r13
	call	wdev_unlock@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nl80211_remain_on_channel, .-nl80211_remain_on_channel
	.comm	WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL,4,4
	.comm	NLMSG_DEFAULT_SIZE,4,4
	.comm	NL80211_MIN_REMAIN_ON_CHANNEL_TIME,8,8
	.comm	NL80211_CMD_REMAIN_ON_CHANNEL,4,4
	.comm	NL80211_ATTR_WIPHY_FREQ,8,8
	.comm	NL80211_ATTR_PAD,4,4
	.comm	NL80211_ATTR_DURATION,8,8
	.comm	NL80211_ATTR_COOKIE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	ENOBUFS,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_remain_on_channel.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_remain_on_channel, %function
nl80211_remain_on_channel:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L27
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r1, #8]
	ldr	r2, [r2]
	mov	r4, r1
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, .L27+4
	sub	sp, sp, #24
	cmp	r2, #0
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	beq	.L7
	ldr	r2, .L27+8
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #2]
	cmp	r0, #0
	bne	.L3
.L7:
	ldr	r3, .L27+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r3, [r4, #12]
	ldm	r3, {r7, r9}
	bl	nla_get_u32
	ldr	r3, [r7, #12]
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L27+16
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L5
	ldr	r3, .L27+20
	ldr	r3, [r3]
	cmp	r3, r0
	bgt	.L7
	ldr	r3, [r7, #8]
	cmp	r3, r0
	blt	.L7
	add	r8, sp, #12
	mov	r2, r8
	mov	r1, r4
	mov	r0, r7
	bl	nl80211_parse_chandef
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r9
	bl	wdev_lock
	mov	r0, r9
	bl	cfg80211_off_channel_oper_allowed
	cmp	r0, #0
	bne	.L9
	mov	r1, r8
	mov	r0, r9
	bl	cfg80211_chandef_identical
	cmp	r0, #0
	beq	.L25
.L9:
	mov	r0, r9
	bl	wdev_unlock
	ldr	r2, .L27+24
	ldr	r3, .L27+28
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	nlmsg_new
	subs	r8, r0, #0
	beq	.L26
	ldr	r2, .L27+32
	mov	r3, #0
	ldr	r1, [r2]
	ldr	r2, [r4]
	str	r1, [sp]
	ldr	r1, [r4, #4]
	bl	nl80211hdr_put
	subs	r10, r0, #0
	beq	.L22
	add	r2, sp, #16
	str	r2, [sp]
	mov	r3, r6
	mov	r1, r9
	mov	r0, r7
	ldr	r2, [sp, #12]
	bl	rdev_remain_on_channel
	subs	r5, r0, #0
	bne	.L12
	ldr	r2, .L27+36
	ldr	r3, .L27+40
	ldr	r1, [r2]
	mov	r0, r8
	ldr	r3, [r3]
	ldr	r2, [sp, #16]
	bl	nla_put_u64_64bit
	cmp	r0, #0
	bne	.L22
	mov	r1, r10
	mov	r0, r8
	bl	genlmsg_end
	mov	r1, r4
	mov	r0, r8
	bl	genlmsg_reply
	mov	r5, r0
	b	.L1
.L5:
	ldr	r3, .L27+44
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L22:
	ldr	r3, .L27+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L12:
	mov	r0, r8
	bl	nlmsg_free
	b	.L1
.L26:
	ldr	r3, .L27+52
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L25:
	mov	r1, r8
	mov	r0, r9
	bl	cfg80211_chandef_compatible
	cmp	r8, r0
	beq	.L9
	mov	r0, r9
	bl	wdev_unlock
	ldr	r3, .L27+56
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	NL80211_ATTR_WIPHY_FREQ
	.word	.LC0
	.word	NL80211_ATTR_DURATION
	.word	EINVAL
	.word	WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL
	.word	NL80211_MIN_REMAIN_ON_CHANNEL_TIME
	.word	GFP_KERNEL
	.word	NLMSG_DEFAULT_SIZE
	.word	NL80211_CMD_REMAIN_ON_CHANNEL
	.word	NL80211_ATTR_COOKIE
	.word	NL80211_ATTR_PAD
	.word	EOPNOTSUPP
	.word	ENOBUFS
	.word	ENOMEM
	.word	EBUSY
	.size	nl80211_remain_on_channel, .-nl80211_remain_on_channel
	.comm	WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL,4,4
	.comm	NLMSG_DEFAULT_SIZE,4,4
	.comm	NL80211_MIN_REMAIN_ON_CHANNEL_TIME,4,4
	.comm	NL80211_CMD_REMAIN_ON_CHANNEL,4,4
	.comm	NL80211_ATTR_WIPHY_FREQ,4,4
	.comm	NL80211_ATTR_PAD,4,4
	.comm	NL80211_ATTR_DURATION,4,4
	.comm	NL80211_ATTR_COOKIE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	ENOBUFS,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
