	.file	"extr_cfg.c_ieee80211_add_nan_func.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ieee80211_add_nan_func, @function
ieee80211_add_nan_func:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rsi
	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
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	IEEE80211_WDEV_TO_SUB_IF@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR NL80211_IFTYPE_NAN[rip]
	cmp	QWORD PTR 16[rbp], rax
	je	.L2
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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	rdi, rbp
	call	ieee80211_sdata_running@PLT
	test	eax, eax
	jne	.L4
	mov	r12d, DWORD PTR ENETDOWN[rip]
	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
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	lea	r13, 4[rbp]
	call	spin_lock_bh@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r13
	mov	rsi, rbx
	mov	r8d, DWORD PTR GFP_ATOMIC[rip]
	mov	edx, 1
	mov	rcx, QWORD PTR [rax]
	add	rcx, 1
	call	idr_alloc@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock_bh@PLT
	test	r12d, r12d
	js	.L1
	mov	DWORD PTR [rbx], r12d
	sete	dil
	movzx	edi, dil
	call	WARN_ON@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rdx, rbx
	mov	rsi, rbp
	call	drv_add_nan_func@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	idr_remove@PLT
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ieee80211_add_nan_func, .-ieee80211_add_nan_func
	.comm	NL80211_IFTYPE_NAN,8,8
	.comm	GFP_ATOMIC,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENETDOWN,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_cfg.c_ieee80211_add_nan_func.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_add_nan_func, %function
ieee80211_add_nan_func:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r0, r1
	sub	sp, sp, #12
	mov	r6, r2
	bl	IEEE80211_WDEV_TO_SUB_IF
	ldr	r3, .L10
	ldr	r2, [r0, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L10+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r4, r0
	bl	ieee80211_sdata_running
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L10+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r0, r4
	bl	spin_lock_bh
	ldr	r3, [r4, #8]
	ldr	r2, .L10+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r7, r4, #4
	mov	r1, r6
	add	r3, r3, #1
	str	r2, [sp]
	mov	r0, r7
	mov	r2, #1
	bl	idr_alloc
	mov	r5, r0
	mov	r0, r4
	bl	spin_unlock_bh
	cmp	r5, #0
	blt	.L1
	moveq	r0, #1
	movne	r0, #0
	str	r5, [r6]
	bl	WARN_ON
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [r4, #8]
	bl	drv_add_nan_func
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r4
	bl	spin_lock_bh
	mov	r0, r7
	ldr	r1, [r6]
	bl	idr_remove
	mov	r0, r4
	bl	spin_unlock_bh
	b	.L1
.L11:
	.align	2
.L10:
	.word	NL80211_IFTYPE_NAN
	.word	EOPNOTSUPP
	.word	ENETDOWN
	.word	GFP_ATOMIC
	.size	ieee80211_add_nan_func, .-ieee80211_add_nan_func
	.comm	NL80211_IFTYPE_NAN,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENETDOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
