	.file	"extr_r8192E_core.c_CamRestoreAllEntry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CamRestoreAllEntry: \n"
	.text
	.p2align 4
	.type	CamRestoreAllEntry, @function
CamRestoreAllEntry:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ieee80211_priv@PLT
	mov	edi, DWORD PTR COMP_SEC[rip]
	lea	rsi, .LC0[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR 24[rax]
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR [rax]
	cmp	rcx, QWORD PTR KEY_TYPE_WEP40[rip]
	je	.L2
	cmp	rcx, QWORD PTR KEY_TYPE_WEP104[rip]
	je	.L2
	mov	r10, QWORD PTR KEY_TYPE_TKIP[rip]
	cmp	rcx, r10
	je	.L23
	cmp	rcx, QWORD PTR KEY_TYPE_CCMP[rip]
	jne	.L5
	mov	rdx, QWORD PTR IW_MODE_ADHOC[rip]
	cmp	QWORD PTR 8[rax], rdx
	je	.L24
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	r9d, r9d
	mov	r8, rbx
	push	0
	.cfi_def_cfa_offset 64
.L19:
	xor	edx, edx
	mov	esi, 4
	mov	rdi, r12
	call	setKey@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	r10, QWORD PTR KEY_TYPE_TKIP[rip]
	pop	r9
	.cfi_def_cfa_offset 56
	pop	r11
	.cfi_def_cfa_offset 48
	mov	rcx, QWORD PTR 16[rax]
	cmp	rcx, r10
	jne	.L10
.L26:
	mov	ebx, 1
	lea	r13, CAM_CONST_BROAD.1955[rip]
.L12:
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r8, r13
	mov	edx, ebx
	mov	esi, ebx
	push	0
	.cfi_def_cfa_offset 64
	mov	rdi, r12
	xor	r9d, r9d
	add	ebx, 1
	call	setKey@PLT
	pop	rdi
	.cfi_def_cfa_offset 56
	mov	rax, QWORD PTR 0[rbp]
	pop	r8
	.cfi_def_cfa_offset 48
	cmp	ebx, 4
	je	.L16
	mov	rcx, QWORD PTR 16[rax]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	lea	r13, CAM_CONST_ADDR.1954[rip]
	xor	ebx, ebx
.L6:
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edx, ebx
	mov	r8, r13
	mov	esi, ebx
	push	0
	.cfi_def_cfa_offset 64
	xor	r9d, r9d
	mov	rdi, r12
	add	ebx, 1
	add	r13, 24
	call	setKey@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	mov	rax, QWORD PTR 0[rbp]
	pop	rdx
	.cfi_def_cfa_offset 48
	cmp	ebx, 4
	je	.L25
	mov	rcx, QWORD PTR [rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r10, QWORD PTR KEY_TYPE_TKIP[rip]
.L5:
	mov	rcx, QWORD PTR 16[rax]
	cmp	rcx, r10
	je	.L26
.L10:
	cmp	rcx, QWORD PTR KEY_TYPE_CCMP[rip]
	je	.L27
.L1:
	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
.L27:
	.cfi_restore_state
	mov	ebx, 1
	lea	r13, CAM_CONST_BROAD.1955[rip]
.L17:
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, ebx
	mov	edx, ebx
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 64
	mov	r8, r13
	mov	rdi, r12
	add	ebx, 1
	call	setKey@PLT
	pop	rcx
	.cfi_def_cfa_offset 56
	mov	rax, QWORD PTR 0[rbp]
	pop	rsi
	.cfi_def_cfa_offset 48
	cmp	ebx, 4
	je	.L16
	mov	rcx, QWORD PTR 16[rax]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdx, QWORD PTR IW_MODE_ADHOC[rip]
	cmp	QWORD PTR 8[rax], rdx
	jne	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rcx, QWORD PTR 16[rax]
	xor	edx, edx
	mov	rdi, r12
	push	0
	.cfi_def_cfa_offset 64
	xor	r9d, r9d
	lea	r8, CAM_CONST_ADDR.1954[rip]
	xor	esi, esi
	call	setKey@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	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
.L23:
	.cfi_restore_state
	mov	rsi, QWORD PTR IW_MODE_ADHOC[rip]
	cmp	QWORD PTR 8[rax], rsi
	je	.L28
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	r9d, r9d
	mov	r8, rbx
	mov	rcx, r10
	push	0
	.cfi_def_cfa_offset 64
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8, QWORD PTR [r12]
	xor	r9d, r9d
	mov	rcx, r10
	push	0
	.cfi_def_cfa_offset 64
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r8, QWORD PTR [r12]
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 64
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	CamRestoreAllEntry, .-CamRestoreAllEntry
	.data
	.align 16
	.type	CAM_CONST_BROAD.1955, @object
	.size	CAM_CONST_BROAD.1955, 24
CAM_CONST_BROAD.1955:
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.align 32
	.type	CAM_CONST_ADDR.1954, @object
	.size	CAM_CONST_ADDR.1954, 96
CAM_CONST_ADDR.1954:
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	2
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	3
	.comm	KEY_TYPE_WEP40,8,8
	.comm	KEY_TYPE_WEP104,8,8
	.comm	KEY_TYPE_TKIP,8,8
	.comm	KEY_TYPE_CCMP,8,8
	.comm	IW_MODE_ADHOC,8,8
	.comm	COMP_SEC,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_r8192E_core.c_CamRestoreAllEntry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CamRestoreAllEntry: \012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CamRestoreAllEntry, %function
CamRestoreAllEntry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #20
	mov	r6, r0
	bl	ieee80211_priv
	mov	r5, r0
	ldr	r2, .L29
	ldr	r3, [r0]
	ldr	r1, .L29+4
	ldr	r0, [r2]
	ldr	r4, [r3, #12]
	bl	RT_TRACE
	ldr	r2, [r5]
	ldr	r1, .L29+8
	ldr	r3, [r2]
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L2
	ldr	r1, .L29+12
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L2
	ldr	r7, .L29+16
	ldr	r1, [r7]
	cmp	r3, r1
	beq	.L24
	ldr	r0, .L29+20
	ldr	r0, [r0]
	cmp	r3, r0
	bne	.L5
	ldr	r0, .L29+24
	ldr	r1, [r2, #4]
	ldr	r2, [r0]
	cmp	r1, r2
	strne	r4, [sp]
	mov	r2, #0
	beq	.L25
.L20:
	str	r2, [sp, #8]
	str	r2, [sp, #4]
.L19:
	mov	r1, #4
	mov	r0, r6
	bl	setKey
	ldr	r2, [r5]
	ldr	r1, [r7]
	ldr	r3, [r2, #8]
	cmp	r3, r1
	bne	.L10
.L27:
	mov	r4, #1
	mov	r7, #0
	ldr	r9, .L29+28
	add	r8, r9, #96
.L12:
	mov	r2, r4
	mov	r1, r4
	mov	r0, r6
	str	r7, [sp, #8]
	str	r7, [sp, #4]
	str	r8, [sp]
	add	r4, r4, #1
	bl	setKey
	cmp	r4, #4
	ldr	r3, [r5]
	beq	.L16
	ldr	r3, [r3, #8]
	b	.L12
.L2:
	mov	r4, #0
	mov	r8, r4
	ldr	r7, .L29+28
.L6:
	mov	r2, r4
	mov	r1, r4
	stm	sp, {r7, r8}
	mov	r0, r6
	str	r8, [sp, #8]
	add	r4, r4, #1
	bl	setKey
	cmp	r4, #4
	add	r7, r7, #24
	ldrne	r3, [r5]
	ldrne	r3, [r3]
	bne	.L6
.L26:
	ldr	r3, .L29+16
	ldr	r2, [r5]
	ldr	r1, [r3]
.L5:
	ldr	r3, [r2, #8]
	cmp	r3, r1
	beq	.L27
.L10:
	ldr	r2, .L29+20
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L28
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L28:
	mov	r4, #1
	mov	r7, #0
	ldr	r9, .L29+28
	add	r8, r9, #96
.L17:
	mov	r2, r4
	mov	r1, r4
	mov	r0, r6
	str	r7, [sp, #8]
	str	r7, [sp, #4]
	str	r8, [sp]
	add	r4, r4, #1
	bl	setKey
	cmp	r4, #4
	ldr	r3, [r5]
	ldrne	r3, [r3, #8]
	bne	.L17
.L16:
	ldr	r2, .L29+24
	ldr	r1, [r3, #4]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L1
	mov	r2, #0
	ldr	r3, [r3, #8]
	mov	r0, r6
	mov	r1, r2
	str	r7, [sp, #8]
	str	r7, [sp, #4]
	str	r9, [sp]
	bl	setKey
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L24:
	ldr	r3, .L29+24
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r3, r1
	mov	r2, #0
	strne	r4, [sp]
	bne	.L20
	ldr	r0, [r6]
	mov	r3, r1
	stm	sp, {r0, r2}
	str	r2, [sp, #8]
	b	.L19
.L25:
	ldr	r1, [r6]
	str	r2, [sp, #8]
	stm	sp, {r1, r2}
	b	.L19
.L30:
	.align	2
.L29:
	.word	COMP_SEC
	.word	.LC0
	.word	KEY_TYPE_WEP40
	.word	KEY_TYPE_WEP104
	.word	KEY_TYPE_TKIP
	.word	KEY_TYPE_CCMP
	.word	IW_MODE_ADHOC
	.word	.LANCHOR0
	.size	CamRestoreAllEntry, .-CamRestoreAllEntry
	.comm	KEY_TYPE_WEP40,4,4
	.comm	KEY_TYPE_WEP104,4,4
	.comm	KEY_TYPE_TKIP,4,4
	.comm	KEY_TYPE_CCMP,4,4
	.comm	IW_MODE_ADHOC,4,4
	.comm	COMP_SEC,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CAM_CONST_ADDR.4238, %object
	.size	CAM_CONST_ADDR.4238, 96
CAM_CONST_ADDR.4238:
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	2
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	3
	.type	CAM_CONST_BROAD.4239, %object
	.size	CAM_CONST_BROAD.4239, 24
CAM_CONST_BROAD.4239:
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
