	.file	"extr_iwctl.c_iwctl_siwencodeext.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SIOCSIWENCODEEXT...... \n"
.LC1:
	.string	"Unknown alg = %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"SIOCSIWENCODEEXT:Enable WPA WEXT SUPPORT!!!!!\n"
	.text
	.p2align 4
	.globl	iwctl_siwencodeext
	.type	iwctl_siwencodeext, @function
iwctl_siwencodeext:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rcx
	push	rbx
	sub	rsp, 616
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	rcx, rsp
	movsx	rbx, eax
	movsx	rax, DWORD PTR IW_ENCODE_SEQ_MAX_SIZE[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L55:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L55
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L56
.L4:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	mov	QWORD PTR -640[rbp], rsp
	call	PRINT_K@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 56
	call	kmalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L57
	xor	esi, esi
	mov	edx, 56
	mov	rdi, rax
	call	memset@PLT
	mov	esi, DWORD PTR [r12]
	cmp	esi, 130
	je	.L7
	jg	.L8
	cmp	esi, 128
	je	.L9
	cmp	esi, 129
	jne	.L11
	mov	eax, DWORD PTR WPA_ALG_TKIP[rip]
	mov	DWORD PTR -612[rbp], eax
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, QWORD PTR 32[r12]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	lea	r15, -608[rbp]
	mov	rdi, r15
	call	memcpy@PLT
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR IW_ENCODE_INDEX[rip]
	xor	ecx, ecx
	mov	QWORD PTR -624[rbp], 0
	sub	eax, 1
	mov	DWORD PTR -616[rbp], eax
	mov	eax, DWORD PTR 4[r12]
	test	DWORD PTR IW_ENCODE_EXT_SET_TX_KEY[rip], eax
	setne	cl
	mov	DWORD PTR -628[rbp], ecx
	test	DWORD PTR IW_ENCODE_EXT_RX_SEQ_VALID[rip], eax
	jne	.L58
.L15:
	mov	r13, QWORD PTR 8[r12]
	test	r13, r13
	jne	.L59
	lea	r12, -320[rbp]
	mov	edx, 64
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
.L16:
	mov	rdi, QWORD PTR 48[r14]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, r15
	call	memcpy@PLT
	mov	ecx, DWORD PTR -628[rbp]
	mov	eax, DWORD PTR -612[rbp]
	mov	QWORD PTR 16[r14], r13
	mov	rsi, QWORD PTR -624[rbp]
	cmp	eax, DWORD PTR WPA_ALG_NONE[rip]
	mov	QWORD PTR 40[r14], r12
	mov	DWORD PTR 4[r14], ecx
	mov	ecx, DWORD PTR -616[rbp]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 8[r14], ecx
	mov	rcx, QWORD PTR -640[rbp]
	mov	QWORD PTR 24[r14], rsi
	mov	QWORD PTR 32[r14], rcx
	je	.L60
.L19:
	cmp	eax, 4
	je	.L23
.L21:
	lea	r13, 4[rbx]
	mov	rdi, r13
	call	spin_lock_irq@PLT
	mov	edx, DWORD PTR TRUE[rip]
	mov	rdi, rbx
	mov	rsi, r14
	call	wpa_set_keys@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	spin_unlock_irq@PLT
.L14:
	mov	rdi, r14
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L61
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR WPA_ALG_CCMP[rip]
	mov	DWORD PTR -612[rbp], eax
	cmp	esi, 131
	je	.L13
.L11:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	PRINT_K@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L57:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L56:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L60:
	mov	edx, DWORD PTR -616[rbp]
	test	edx, edx
	jne	.L18
	add	eax, 1
	mov	DWORD PTR [rbx], eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L59:
	lea	r9, -576[rbp]
	mov	rsi, QWORD PTR 16[r12]
	mov	edx, r13d
	lea	r12, -320[rbp]
	mov	rdi, r9
	mov	QWORD PTR -648[rbp], r9
	call	memcpy@PLT
	xor	esi, esi
	mov	edx, 64
	mov	rdi, r12
	call	memset@PLT
	mov	r9, QWORD PTR -648[rbp]
	mov	edx, r13d
	mov	rdi, r12
	mov	rsi, r9
	call	memcpy@PLT
	cmp	r13, 32
	jne	.L16
	lea	rsi, -480[rbp]
	lea	rdi, -256[rbp]
	mov	edx, 8
	call	memcpy@PLT
	lea	rsi, -512[rbp]
	mov	edx, 8
	lea	rdi, -224[rbp]
	call	memcpy@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L58:
	movsx	rax, DWORD PTR IW_ENCODE_SEQ_MAX_SIZE[rip]
	mov	rsi, QWORD PTR 24[r12]
	mov	rdi, QWORD PTR -640[rbp]
	mov	rdx, rax
	mov	QWORD PTR -624[rbp], rax
	call	memcpy@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR WPA_ALG_WEP[rip]
	mov	DWORD PTR -612[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR WPA_ALG_NONE[rip]
	mov	DWORD PTR -612[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	eax, 1
	jne	.L20
	cmp	DWORD PTR -616[rbp], 1
	je	.L62
.L20:
	cmp	eax, 2
	je	.L63
.L22:
	cmp	DWORD PTR -616[rbp], 3
	jne	.L19
	cmp	eax, 3
	jne	.L19
	mov	DWORD PTR [rbx], 4
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printk@PLT
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR [rbx], 0
	mov	DWORD PTR 8[rbx], eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L63:
	cmp	DWORD PTR -616[rbp], 2
	jne	.L22
	mov	DWORD PTR [rbx], 3
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L62:
	mov	DWORD PTR [rbx], 2
	jmp	.L21
.L61:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iwctl_siwencodeext, .-iwctl_siwencodeext
	.comm	ii,8,8
	.comm	WPA_ALG_WEP,4,4
	.comm	WPA_ALG_TKIP,4,4
	.comm	WPA_ALG_NONE,4,4
	.comm	WPA_ALG_CCMP,4,4
	.comm	TRUE,4,4
	.comm	IW_ENCODE_SEQ_MAX_SIZE,4,4
	.comm	IW_ENCODE_INDEX,4,4
	.comm	IW_ENCODE_EXT_SET_TX_KEY,4,4
	.comm	IW_ENCODE_EXT_RX_SEQ_VALID,4,4
	.comm	GFP_KERNEL,8,8
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,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_iwctl.c_iwctl_siwencodeext.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SIOCSIWENCODEEXT...... \012\000"
	.align	2
.LC1:
	.ascii	"Unknown alg = %d\012\000"
	.align	2
.LC2:
	.ascii	"SIOCSIWENCODEEXT:Enable WPA WEXT SUPPORT!!!!!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iwctl_siwencodeext
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwctl_siwencodeext, %function
iwctl_siwencodeext:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #564
	mov	r4, r3
	ldr	r3, .L40
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	netdev_priv
	ldr	r7, .L40+4
	mov	r5, r0
	ldr	r3, [r7]
	ldr	r0, .L40+8
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	PRINT_K
	ldr	r3, .L40+12
	mov	r0, #32
	ldr	r1, [r3]
	bl	kmalloc
	subs	r9, r0, #0
	beq	.L33
	mov	r2, #32
	mov	r1, #0
	bl	memset
	ldr	r1, [r4]
	mov	r8, sp
	sub	r2, r1, #128
	cmp	r2, #3
	ldrls	pc, [pc, r2, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L33:
	ldr	r3, .L40+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L40+20
	ldr	r2, .L40+24
	str	r3, [fp, #-596]
	ldr	r3, [r2]
	str	r3, [fp, #-588]
.L10:
	ldr	r2, .L40+28
	ldr	r1, [r4, #20]
	ldr	r10, [r2]
	sub	r0, fp, #576
	mov	r2, r10
	bl	memcpy
	ldr	r2, .L40+32
	ldr	ip, .L40+36
	ldr	lr, [r2]
	ldr	r2, [r4, #4]
	ldr	r0, .L40+40
	tst	r2, lr
	movne	r3, #1
	moveq	r3, #0
	ldr	r1, [r6]
	ldr	ip, [ip]
	ldr	r0, [r0]
	and	r1, r1, ip
	str	r3, [fp, #-592]
	ands	r2, r2, r0
	sub	r3, r1, #1
	moveq	r7, r2
	str	r3, [fp, #-584]
	bne	.L35
.L12:
	ldr	r6, [r4, #8]
	cmp	r6, #0
	bne	.L36
	sub	r4, fp, #296
	mov	r0, r4
	mov	r2, #64
	mov	r1, r6
	bl	memset
.L13:
	mov	r2, r10
	ldr	r0, [r9, #28]
	sub	r1, fp, #576
	bl	memcpy
	ldr	r3, [fp, #-596]
	str	r6, [r9, #12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-588]
	str	r4, [r9, #24]
	cmp	r3, r2
	str	r3, [r9]
	ldr	r3, [fp, #-592]
	ldrne	r2, [r5]
	str	r3, [r9, #4]
	ldr	r3, [fp, #-584]
	str	r8, [r9, #20]
	str	r3, [r9, #8]
	str	r7, [r9, #16]
	beq	.L37
.L16:
	cmp	r2, #4
	beq	.L20
	ldr	r4, .L40+44
.L18:
	add	r6, r5, #4
	mov	r0, r6
	bl	spin_lock_irq
	ldr	r2, [r4]
	mov	r0, r5
	mov	r1, r9
	bl	wpa_set_keys
	mov	r4, r0
	mov	r0, r6
	bl	spin_unlock_irq
.L11:
	mov	r0, r9
	bl	kfree
	b	.L1
.L9:
	ldr	r3, .L40+20
	ldr	r2, .L40+48
	str	r3, [fp, #-596]
	ldr	r3, [r2]
	str	r3, [fp, #-588]
	b	.L10
.L8:
	ldr	r3, .L40+20
	ldr	r2, .L40+52
	str	r3, [fp, #-596]
	ldr	r3, [r2]
	str	r3, [fp, #-588]
	b	.L10
.L7:
	ldr	r3, .L40+20
	str	r3, [fp, #-596]
	ldr	r3, [r3]
	str	r3, [fp, #-588]
	b	.L10
.L37:
	ldr	r2, [r5]
	cmp	r3, #0
	addeq	r2, r2, #1
	streq	r2, [r5]
	beq	.L16
	ldr	r3, [fp, #-584]
	cmp	r2, #1
	cmpeq	r3, #1
	beq	.L38
	ldr	r3, [fp, #-584]
	cmp	r2, #2
	cmpeq	r3, #2
	beq	.L39
	ldr	r3, [fp, #-584]
	cmp	r3, #3
	cmpeq	r2, #3
	moveq	r2, #4
	streq	r2, [r5]
	bne	.L16
.L20:
	ldr	r0, .L40+56
	bl	printk
	mov	r2, #0
	ldr	r4, .L40+44
	str	r2, [r5]
	ldr	r2, [r4]
	str	r2, [r5, #8]
	b	.L18
.L36:
	ldr	r1, [r4, #12]
	mov	r2, r6
	sub	r4, fp, #296
	sub	r0, fp, #552
	bl	memcpy
	mov	r2, #64
	mov	r1, #0
	mov	r0, r4
	bl	memset
	mov	r2, r6
	mov	r0, r4
	sub	r1, fp, #552
	bl	memcpy
	cmp	r6, #32
	bne	.L13
	ldr	r1, [fp, #-452]
	ldr	r0, [fp, #-456]
	sub	r2, fp, #232
	stm	r2, {r0, r1}
	ldr	r1, [fp, #-484]
	ldr	r0, [fp, #-488]
	sub	r2, fp, #200
	stm	r2, {r0, r1}
	b	.L13
.L35:
	ldr	r7, [r7]
	mov	r0, r8
	mov	r2, r7
	ldr	r1, [r4, #16]
	bl	memcpy
	b	.L12
.L39:
	mov	r2, #3
	ldr	r4, .L40+44
	str	r2, [r5]
	b	.L18
.L38:
	mov	r2, #2
	ldr	r4, .L40+44
	str	r2, [r5]
	b	.L18
.L34:
	bl	__stack_chk_fail
.L4:
	ldr	r0, .L40+60
	bl	PRINT_K
	ldr	r2, .L40+16
	ldr	r4, [r2]
	rsb	r4, r4, #0
	b	.L11
.L41:
	.align	2
.L40:
	.word	.LC3
	.word	IW_ENCODE_SEQ_MAX_SIZE
	.word	.LC0
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	WPA_ALG_NONE
	.word	WPA_ALG_CCMP
	.word	ETH_ALEN
	.word	IW_ENCODE_EXT_SET_TX_KEY
	.word	IW_ENCODE_INDEX
	.word	IW_ENCODE_EXT_RX_SEQ_VALID
	.word	TRUE
	.word	WPA_ALG_WEP
	.word	WPA_ALG_TKIP
	.word	.LC2
	.word	.LC1
	.size	iwctl_siwencodeext, .-iwctl_siwencodeext
	.comm	ii,4,4
	.comm	WPA_ALG_WEP,4,4
	.comm	WPA_ALG_TKIP,4,4
	.comm	WPA_ALG_NONE,4,4
	.comm	WPA_ALG_CCMP,4,4
	.comm	TRUE,4,4
	.comm	IW_ENCODE_SEQ_MAX_SIZE,4,4
	.comm	IW_ENCODE_INDEX,4,4
	.comm	IW_ENCODE_EXT_SET_TX_KEY,4,4
	.comm	IW_ENCODE_EXT_RX_SEQ_VALID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
