	.file	"extr_atmel.c_atmel_get_encodeext.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmel_get_encodeext, @function
atmel_get_encodeext:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	r12, rax
	mov	eax, DWORD PTR [rbx]
	sub	eax, 16
	js	.L8
	mov	eax, DWORD PTR 4[rbx]
	and	eax, DWORD PTR IW_ENCODE_INDEX[rip]
	jne	.L11
	mov	r13d, DWORD PTR [r12]
	lea	eax, 1[r13]
.L6:
	mov	DWORD PTR 4[rbx], eax
	mov	edx, 16
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	mov	eax, DWORD PTR 32[r12]
	test	eax, eax
	jne	.L7
	mov	edx, DWORD PTR IW_ENCODE_ALG_NONE[rip]
	mov	QWORD PTR 0[rbp], 0
	mov	DWORD PTR 12[rbp], edx
	mov	edx, DWORD PTR IW_ENCODE_DISABLED[rip]
	or	DWORD PTR 4[rbx], edx
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	QWORD PTR 8[r12], 0
	jg	.L12
.L8:
	mov	eax, DWORD PTR EINVAL[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	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	r13d, -1[rax]
	cmp	r13d, 3
	jbe	.L6
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR IW_ENCODE_ALG_WEP[rip]
	movsx	r13, r13d
	mov	edi, DWORD PTR 8[rbp]
	mov	DWORD PTR 12[rbp], eax
	mov	rax, QWORD PTR 24[r12]
	mov	rdx, QWORD PTR [rax+r13*8]
	mov	rax, QWORD PTR 16[r12]
	mov	QWORD PTR 0[rbp], rdx
	mov	esi, DWORD PTR [rax+r13*4]
	call	memcpy@PLT
	mov	eax, DWORD PTR IW_ENCODE_ENABLED[rip]
	or	DWORD PTR 4[rbx], eax
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	atmel_get_encodeext, .-atmel_get_encodeext
	.comm	IW_ENCODE_INDEX,4,4
	.comm	IW_ENCODE_ENABLED,4,4
	.comm	IW_ENCODE_DISABLED,4,4
	.comm	IW_ENCODE_ALG_WEP,4,4
	.comm	IW_ENCODE_ALG_NONE,4,4
	.comm	EINVAL,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_atmel.c_atmel_get_encodeext.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmel_get_encodeext, %function
atmel_get_encodeext:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r6, r3
	bl	netdev_priv
	ldr	r3, [r4]
	cmp	r3, #12
	bmi	.L8
	ldr	r2, .L13
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r5, r0
	ands	r3, r3, r2
	bne	.L11
	ldr	r7, [r0]
	add	r3, r7, #1
.L6:
	mov	r2, #12
	mov	r1, #0
	mov	r0, r6
	str	r3, [r4, #4]
	bl	memset
	ldr	r0, [r5, #16]
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	ldr	r1, [r3]
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r1
	str	r2, [r6, #8]
	str	r0, [r6]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bgt	.L12
.L8:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	sub	r7, r3, #1
	cmp	r7, #3
	bls	.L6
	b	.L8
.L12:
	ldr	r3, .L13+16
	ldr	r2, [r5, #12]
	ldr	r1, [r3]
	ldr	r2, [r2, r7, lsl #2]
	ldr	r3, [r5, #8]
	str	r1, [r6, #8]
	ldr	r1, [r3, r7, lsl #2]
	mov	r0, #0
	str	r2, [r6]
	bl	memcpy
	ldr	r2, .L13+20
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r0, #0
	orr	r3, r3, r2
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	IW_ENCODE_INDEX
	.word	IW_ENCODE_DISABLED
	.word	IW_ENCODE_ALG_NONE
	.word	EINVAL
	.word	IW_ENCODE_ALG_WEP
	.word	IW_ENCODE_ENABLED
	.size	atmel_get_encodeext, .-atmel_get_encodeext
	.comm	IW_ENCODE_INDEX,4,4
	.comm	IW_ENCODE_ENABLED,4,4
	.comm	IW_ENCODE_DISABLED,4,4
	.comm	IW_ENCODE_ALG_WEP,4,4
	.comm	IW_ENCODE_ALG_NONE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
