	.file	"extr_ieee80211_softmac_wx.c_ieee80211_wx_set_wap_rsl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ieee80211_wx_set_wap
	.type	ieee80211_wx_set_wap, @function
ieee80211_wx_set_wap:
.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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, 20[rdi]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	movzx	ebx, WORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rdi], 1
	mov	rdi, r12
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	call	down@PLT
	mov	rax, QWORD PTR IW_MODE_MASTER[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L6
	mov	rax, QWORD PTR ARPHRD_ETHER[rip]
	cmp	QWORD PTR 0[r13], rax
	jne	.L10
	lea	r14, 24[rbp]
	test	bx, bx
	jne	.L11
	xor	r15d, r15d
	mov	rdi, r14
	mov	rsi, r15
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	edi, DWORD PTR 28[rbp]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	call	memcpy@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, rsp
	call	memcmp@PLT
	mov	rsi, r15
	mov	rdi, r14
	test	rax, rax
	setne	al
	xor	r13d, r13d
	movzx	eax, al
	mov	DWORD PTR 16[rbp], eax
	call	spin_unlock_irqrestore@PLT
.L2:
	mov	rdi, r12
	call	up@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r15d, r15d
	mov	rdi, rbp
	call	ieee80211_stop_protocol@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	edi, DWORD PTR 28[rbp]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	call	memcpy@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, rsp
	call	memcmp@PLT
	mov	rsi, r15
	mov	rdi, r14
	test	rax, rax
	setne	al
	xor	r13d, r13d
	movzx	eax, al
	mov	DWORD PTR 16[rbp], eax
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	ieee80211_start_protocol@PLT
	jmp	.L2
.L6:
	mov	r13d, -1
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ieee80211_wx_set_wap, .-ieee80211_wx_set_wap
	.comm	IW_MODE_MASTER,8,8
	.comm	ETH_ALEN,4,4
	.comm	EINVAL,4,4
	.comm	ARPHRD_ETHER,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_ieee80211_softmac_wx.c_ieee80211_wx_set_wap_rsl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ieee80211_wx_set_wap
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_wx_set_wap, %function
ieee80211_wx_set_wap:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #1
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, #0
	mov	r4, r0
	str	r3, [r0, #4]
	add	r8, r0, #16
	ldr	r3, .L13
	sub	sp, sp, #32
	mov	r0, r8
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r2
	ldrsh	r7, [r4]
	str	r5, [sp, #4]
	str	r5, [sp, #8]
	str	r5, [sp, #12]
	str	r5, [sp, #16]
	str	r5, [sp, #20]
	str	r5, [sp, #24]
	bl	down
	ldr	r3, .L13+4
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
	ldr	r3, .L13+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L10
	cmp	r7, #0
	mov	r10, #0
	add	r9, r4, #20
	bne	.L11
	ldr	r5, .L13+12
	mov	r1, r10
	mov	r0, r9
	bl	spin_lock_irqsave
	ldr	r2, [r5]
	ldr	r1, [r6, #4]
	ldr	r0, [r4, #24]
	bl	memcpy
	add	r1, sp, #4
	ldr	r2, [r5]
	ldr	r0, [r6, #4]
	bl	memcmp
	subs	r0, r0, r10
	movne	r0, #1
	mov	r1, r10
	str	r0, [r4, #12]
	mov	r0, r9
	bl	spin_unlock_irqrestore
.L2:
	mov	r0, r8
	bl	up
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r7
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L13+16
	ldr	r5, [r3]
	rsb	r7, r5, #0
	b	.L2
.L11:
	ldr	r7, .L13+12
	mov	r0, r4
	bl	ieee80211_stop_protocol
	mov	r1, r10
	mov	r0, r9
	bl	spin_lock_irqsave
	ldr	r2, [r7]
	ldr	r1, [r6, #4]
	ldr	r0, [r4, #24]
	bl	memcpy
	ldr	r2, [r7]
	add	r1, sp, #4
	ldr	r0, [r6, #4]
	bl	memcmp
	subs	r0, r0, r10
	movne	r0, #1
	mov	r1, r10
	str	r0, [r4, #12]
	mov	r0, r9
	bl	spin_unlock_irqrestore
	mov	r0, r4
	mov	r7, r5
	bl	ieee80211_start_protocol
	b	.L2
.L6:
	mvn	r7, #0
	b	.L2
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	IW_MODE_MASTER
	.word	ARPHRD_ETHER
	.word	ETH_ALEN
	.word	EINVAL
	.size	ieee80211_wx_set_wap, .-ieee80211_wx_set_wap
	.comm	IW_MODE_MASTER,4,4
	.comm	ETH_ALEN,4,4
	.comm	EINVAL,4,4
	.comm	ARPHRD_ETHER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
