	.file	"extr_r8180_wx.c_r8180_wx_set_enc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Setting SW wep key"
	.text
	.p2align 4
	.type	r8180_wx_set_enc, @function
r8180_wx_set_enc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	ieee80211_priv@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR [rax], 0
	je	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	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
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	down@PLT
	cmp	QWORD PTR 16[rbp], 0
	je	.L3
	mov	rcx, r15
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, r12
	call	r8180_wx_set_key@PLT
	mov	ebx, eax
.L4:
	mov	rdi, rbp
	call	up@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC0[rip]
	call	DMESG@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rcx, r15
	mov	rdx, r14
	mov	rsi, r13
	call	ieee80211_wx_set_encode@PLT
	mov	ebx, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	r8180_wx_set_enc, .-r8180_wx_set_enc
	.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_r8180_wx.c_r8180_wx_set_enc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Setting SW wep key\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r8180_wx_set_enc, %function
r8180_wx_set_enc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r7, r3
	mov	r6, r2
	mov	r8, r0
	bl	ieee80211_priv
	ldr	r3, [r0, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r5, #0
	beq	.L8
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r4, r0
	bl	down
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L3
	mov	r1, r5
	mov	r3, r7
	mov	r2, r6
	mov	r0, r8
	bl	r8180_wx_set_key
	mov	r5, r0
.L4:
	mov	r0, r4
	bl	up
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r0, .L9
	bl	DMESG
	mov	r1, r5
	mov	r3, r7
	mov	r2, r6
	ldr	r0, [r4, #4]
	bl	ieee80211_wx_set_encode
	mov	r5, r0
	b	.L4
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	r8180_wx_set_enc, .-r8180_wx_set_enc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
