	.file	"extr_ieee80211_softmac_wx.c_ieee80211_wx_set_essid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ieee80211_wx_set_essid
	.type	ieee80211_wx_set_essid, @function
ieee80211_wx_set_essid:
.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
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 20[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	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, 8
	.cfi_def_cfa_offset 64
	mov	DWORD PTR [rdi], 1
	mov	rdi, r13
	call	down@PLT
	mov	eax, DWORD PTR IW_ESSID_MAX_SIZE[rip]
	cmp	DWORD PTR [r12], eax
	jg	.L19
	mov	rax, QWORD PTR IW_MODE_MONITOR[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L8
	movzx	ebx, WORD PTR 4[rbp]
	test	bx, bx
	jne	.L20
.L4:
	lea	r15, 24[rbp]
	xor	esi, esi
	mov	rdi, r15
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR 8[r12], 0
	jne	.L21
.L5:
	mov	rax, QWORD PTR 32[rbp]
	mov	DWORD PTR 16[rbp], 0
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR 40[rbp], 0
.L7:
	xor	esi, esi
	mov	rdi, r15
	xor	r12d, r12d
	call	spin_unlock_irqrestore@PLT
	test	bx, bx
	jne	.L22
.L3:
	mov	rdi, r13
	call	up@PLT
	add	rsp, 8
	.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
.L21:
	.cfi_restore_state
	mov	r12d, DWORD PTR [r12]
	test	r12d, r12d
	je	.L5
	mov	eax, DWORD PTR IW_ESSID_MAX_SIZE[rip]
	mov	rdi, QWORD PTR 32[rbp]
	mov	rsi, r14
	lea	edx, 1[rax]
	cmp	r12d, eax
	cmovg	r12d, edx
	mov	edx, r12d
	call	strncpy@PLT
	mov	DWORD PTR 40[rbp], r12d
	mov	DWORD PTR 16[rbp], 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	ieee80211_stop_protocol@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r12d, DWORD PTR E2BIG[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	ieee80211_start_protocol@PLT
	jmp	.L3
.L8:
	mov	r12d, -1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ieee80211_wx_set_essid, .-ieee80211_wx_set_essid
	.comm	IW_MODE_MONITOR,8,8
	.comm	IW_ESSID_MAX_SIZE,4,4
	.comm	E2BIG,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_ieee80211_softmac_wx.c_ieee80211_wx_set_essid.c"
	.text
	.align	2
	.global	ieee80211_wx_set_essid
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_wx_set_essid, %function
ieee80211_wx_set_essid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #1
	mov	r6, r0
	mov	r7, r2
	str	r1, [r6], #16
	ldr	r8, .L25
	mov	r4, r0
	mov	r0, r6
	mov	r9, r3
	bl	down
	ldr	r1, [r7]
	ldr	r2, [r8]
	cmp	r1, r2
	bgt	.L21
	ldr	r3, .L25+4
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
	ldrsh	r5, [r4, #4]
	cmp	r5, #0
	bne	.L22
.L4:
	add	r10, r4, #20
	mov	r0, r10
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r7, #4]
	cmp	r3, #0
	bne	.L23
.L5:
	mov	r3, #0
	ldr	r2, [r4, #24]
	str	r3, [r4, #12]
	strb	r3, [r2]
	str	r3, [r4, #28]
.L7:
	mov	r0, r10
	mov	r1, #0
	bl	spin_unlock_irqrestore
	cmp	r5, #0
	bne	.L24
.L3:
	mov	r0, r6
	bl	up
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	ldr	r7, [r7]
	cmp	r7, #0
	beq	.L5
	ldr	r3, [r8]
	mov	r1, r9
	cmp	r7, r3
	addgt	r7, r3, #1
	mov	r2, r7
	ldr	r0, [r4, #24]
	bl	strncpy
	mov	r3, #1
	str	r7, [r4, #28]
	str	r3, [r4, #12]
	b	.L7
.L22:
	mov	r0, r4
	bl	ieee80211_stop_protocol
	b	.L4
.L21:
	ldr	r3, .L25+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L24:
	mov	r0, r4
	bl	ieee80211_start_protocol
	mov	r5, #0
	b	.L3
.L8:
	mvn	r5, #0
	b	.L3
.L26:
	.align	2
.L25:
	.word	IW_ESSID_MAX_SIZE
	.word	IW_MODE_MONITOR
	.word	E2BIG
	.size	ieee80211_wx_set_essid, .-ieee80211_wx_set_essid
	.comm	IW_MODE_MONITOR,4,4
	.comm	IW_ESSID_MAX_SIZE,4,4
	.comm	E2BIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
