	.file	"extr_isl_ioctl.c_prism54_set_auth.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prism54_set_auth, @function
prism54_set_auth:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	DWORD PTR [rsp], 0
	mov	rdi, rax
	mov	DWORD PTR 4[rsp], 0
	mov	rbp, rax
	mov	DWORD PTR 8[rsp], 0
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 16[rsp], 0
	call	islpci_get_state@PLT
	cmp	rax, QWORD PTR PRV_STATE_INIT[rip]
	jge	.L27
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	lea	r14, 4[rbp]
	lea	r12, 20[rsp]
	mov	rdi, r14
	call	down_write@PLT
	mov	rdi, r14
	mov	r13d, DWORD PTR 0[rbp]
	call	up_write@PLT
	mov	esi, DWORD PTR DOT11_OID_AUTHENABLE[rip]
	mov	r8, r12
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	call	mgt_get_request@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	r8, r12
	xor	ecx, ecx
	mov	esi, DWORD PTR DOT11_OID_PRIVACYINVOKED[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	mgt_get_request@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	r8, r12
	xor	ecx, ecx
	mov	esi, DWORD PTR DOT11_OID_EXUNENCRYPTED[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], eax
	call	mgt_get_request@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	r8, r12
	xor	ecx, ecx
	mov	esi, DWORD PTR DOT11_OID_DOT1XENABLE[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	mgt_get_request@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	r8, r12
	xor	ecx, ecx
	mov	esi, DWORD PTR DOT11_OID_MLMEAUTOLEVEL[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], eax
	call	mgt_get_request@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR [rsp], eax
	test	r12d, r12d
	js	.L1
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR IW_AUTH_INDEX[rip]
	add	eax, -128
	cmp	eax, 8
	ja	.L3
	lea	rdx, .L5[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L6-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR IW_AUTH_WPA_VERSION_DISABLED[rip], eax
	jne	.L12
	test	DWORD PTR IW_AUTH_WPA_VERSION_WPA[rip], eax
	jne	.L19
	test	DWORD PTR IW_AUTH_WPA_VERSION_WPA2[rip], eax
	mov	eax, 2
	cmovne	r13d, eax
.L13:
	mov	eax, DWORD PTR DOT11_MLME_EXTENDED[rip]
	mov	DWORD PTR 16[rsp], 1
	mov	DWORD PTR 12[rsp], 1
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR DOT11_AUTH_OS[rip]
	mov	DWORD PTR 8[rsp], 1
	mov	DWORD PTR 4[rsp], eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r14
	call	down_write@PLT
	mov	DWORD PTR 0[rbp], r13d
	mov	rdi, r14
	call	up_write@PLT
	mov	esi, DWORD PTR DOT11_OID_AUTHENABLE[rip]
	xor	edx, edx
	mov	rdi, rbp
	lea	rcx, 4[rsp]
	call	mgt_set_request@PLT
	mov	esi, DWORD PTR DOT11_OID_PRIVACYINVOKED[rip]
	xor	edx, edx
	mov	rdi, rbp
	lea	rcx, 16[rsp]
	call	mgt_set_request@PLT
	mov	esi, DWORD PTR DOT11_OID_EXUNENCRYPTED[rip]
	xor	edx, edx
	mov	rdi, rbp
	lea	rcx, 12[rsp]
	call	mgt_set_request@PLT
	mov	esi, DWORD PTR DOT11_OID_DOT1XENABLE[rip]
	xor	edx, edx
	mov	rdi, rbp
	lea	rcx, 8[rsp]
	call	mgt_set_request@PLT
	mov	esi, DWORD PTR DOT11_OID_MLMEAUTOLEVEL[rip]
	mov	rcx, rsp
	xor	edx, edx
	mov	rdi, rbp
	call	mgt_set_request@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR 4[rbx]
	xor	eax, eax
	test	edx, edx
	setne	al
	mov	DWORD PTR 12[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR IW_AUTH_ALG_SHARED_KEY[rip], eax
	je	.L14
	test	r13d, r13d
	jg	.L16
	mov	eax, DWORD PTR DOT11_AUTH_SK[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 4[rbx]
	test	edi, edi
	je	.L12
	mov	eax, DWORD PTR DOT11_MLME_EXTENDED[rip]
	mov	DWORD PTR 16[rsp], 1
	mov	r13d, 1
	mov	DWORD PTR 12[rsp], 1
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR DOT11_AUTH_OS[rip]
	mov	DWORD PTR 8[rsp], 1
	mov	DWORD PTR 4[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 4[rbx]
	xor	eax, eax
	test	esi, esi
	sete	al
	mov	DWORD PTR 8[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, DWORD PTR 4[rbx]
	xor	eax, eax
	test	ecx, ecx
	setne	al
	mov	DWORD PTR 16[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR DOT11_MLME_AUTO[rip]
	mov	DWORD PTR 16[rsp], 0
	xor	r13d, r13d
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 8[rsp], 0
	mov	DWORD PTR [rsp], eax
	jmp	.L6
.L3:
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	test	DWORD PTR IW_AUTH_ALG_OPEN_SYSTEM[rip], eax
	je	.L16
	mov	eax, DWORD PTR DOT11_AUTH_OS[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r13d, 1
	jmp	.L13
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	prism54_set_auth, .-prism54_set_auth
	.comm	PRV_STATE_INIT,8,8
	.comm	IW_AUTH_WPA_VERSION_WPA2,4,4
	.comm	IW_AUTH_WPA_VERSION_WPA,4,4
	.comm	IW_AUTH_WPA_VERSION_DISABLED,4,4
	.comm	IW_AUTH_INDEX,4,4
	.comm	IW_AUTH_ALG_SHARED_KEY,4,4
	.comm	IW_AUTH_ALG_OPEN_SYSTEM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	DOT11_OID_PRIVACYINVOKED,4,4
	.comm	DOT11_OID_MLMEAUTOLEVEL,4,4
	.comm	DOT11_OID_EXUNENCRYPTED,4,4
	.comm	DOT11_OID_DOT1XENABLE,4,4
	.comm	DOT11_OID_AUTHENABLE,4,4
	.comm	DOT11_MLME_EXTENDED,4,4
	.comm	DOT11_MLME_AUTO,4,4
	.comm	DOT11_AUTH_SK,4,4
	.comm	DOT11_AUTH_OS,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_isl_ioctl.c_prism54_set_auth.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prism54_set_auth, %function
prism54_set_auth:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L32
	sub	sp, sp, #52
	mov	r8, #0
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	netdev_priv
	str	r8, [sp, #20]
	mov	r5, r0
	str	r8, [sp, #24]
	str	r8, [sp, #28]
	str	r8, [sp, #32]
	str	r8, [sp, #36]
	bl	islpci_get_state
	ldr	r2, .L32+4
	ldr	r2, [r2]
	cmp	r0, r2
	movlt	r4, r8
	bge	.L30
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	add	r7, r5, #4
	mov	r0, r7
	bl	down_write
	ldr	fp, .L32+8
	ldr	r3, [r5]
	add	r4, sp, #40
	mov	r0, r7
	str	r3, [sp, #12]
	ldr	r10, .L32+12
	bl	up_write
	mov	r3, r8
	mov	r2, r8
	ldr	r1, [fp]
	str	r4, [sp]
	mov	r0, r5
	bl	mgt_get_request
	ldr	ip, [sp, #40]
	mov	r3, r8
	mov	r2, r8
	ldr	r1, [r10]
	str	r4, [sp]
	mov	r0, r5
	str	ip, [sp, #24]
	bl	mgt_get_request
	ldr	r3, .L32+16
	ldr	ip, [sp, #40]
	str	r4, [sp]
	ldr	r1, [r3]
	mov	r2, r8
	mov	r3, r8
	mov	r0, r5
	ldr	r9, .L32+20
	str	ip, [sp, #36]
	bl	mgt_get_request
	ldr	ip, [sp, #40]
	mov	r3, r8
	mov	r2, r8
	ldr	r1, [r9]
	str	r4, [sp]
	mov	r0, r5
	str	ip, [sp, #32]
	bl	mgt_get_request
	ldr	r3, .L32+24
	str	r4, [sp]
	ldr	ip, [sp, #40]
	ldr	r1, [r3]
	mov	r2, r8
	mov	r3, r8
	mov	r0, r5
	str	ip, [sp, #28]
	bl	mgt_get_request
	ldr	r3, [sp, #40]
	subs	r4, r0, #0
	str	r3, [sp, #20]
	blt	.L1
	ldr	r2, .L32+28
	ldr	r3, [r6]
	ldr	r2, [r2]
	and	r3, r3, r2
	sub	r3, r3, #128
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
	.word	.L7
	.word	.L6
	.word	.L6
	.word	.L4
.L11:
	ldr	r2, .L32+32
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L12
	ldr	r2, .L32+36
	ldr	r2, [r2]
	tst	r3, r2
	movne	r3, #1
	strne	r3, [sp, #12]
	bne	.L13
	ldr	r2, .L32+40
	ldr	r2, [r2]
	tst	r3, r2
	ldr	r3, [sp, #12]
	movne	r3, #2
	str	r3, [sp, #12]
.L13:
	mov	r3, #1
	ldr	r1, .L32+44
	ldr	r2, .L32+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [sp, #20]
	str	r2, [sp, #24]
	str	r3, [sp, #36]
	str	r3, [sp, #32]
	str	r3, [sp, #28]
.L6:
	mov	r0, r7
	bl	down_write
	ldr	r3, [sp, #12]
	mov	r0, r7
	str	r3, [r5]
	bl	up_write
	ldr	r1, [fp]
	add	r3, sp, #24
	mov	r2, #0
	mov	r0, r5
	bl	mgt_set_request
	ldr	r1, [r10]
	add	r3, sp, #36
	mov	r2, #0
	mov	r0, r5
	bl	mgt_set_request
	ldr	r3, .L32+16
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	add	r3, sp, #32
	bl	mgt_set_request
	ldr	r1, [r9]
	add	r3, sp, #28
	mov	r2, #0
	mov	r0, r5
	bl	mgt_set_request
	ldr	r3, .L32+24
	mov	r0, r5
	ldr	r1, [r3]
	mov	r2, #0
	add	r3, sp, #20
	bl	mgt_set_request
	b	.L1
.L4:
	ldr	r2, .L32+52
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L14
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bgt	.L16
	ldr	r3, .L32+56
	ldr	r3, [r3]
	str	r3, [sp, #24]
	b	.L6
.L10:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L12
	mov	r3, #1
	ldr	r1, .L32+44
	ldr	r2, .L32+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [sp, #20]
	str	r2, [sp, #24]
	str	r3, [sp, #36]
	str	r3, [sp, #32]
	str	r3, [sp, #28]
	str	r3, [sp, #12]
	b	.L6
.L9:
	ldr	r3, [r6, #4]
	clz	r3, r3
	lsr	r3, r3, #5
	str	r3, [sp, #28]
	b	.L6
.L8:
	ldr	r3, [r6, #4]
	subs	r3, r3, #0
	movne	r3, #1
	str	r3, [sp, #36]
	b	.L6
.L7:
	ldr	r3, [r6, #4]
	subs	r3, r3, #0
	movne	r3, #1
	str	r3, [sp, #32]
	b	.L6
.L12:
	mov	r3, #0
	ldr	r2, .L32+60
	str	r3, [sp, #36]
	ldr	r2, [r2]
	str	r3, [sp, #32]
	str	r2, [sp, #20]
	str	r3, [sp, #28]
	str	r3, [sp, #12]
	b	.L6
.L14:
	ldr	r2, .L32+64
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, .L32+48
	ldrne	r3, [r3]
	strne	r3, [sp, #24]
	bne	.L6
.L16:
	ldr	r3, .L32+68
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L31:
	bl	__stack_chk_fail
.L3:
	ldr	r3, .L32+72
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	PRV_STATE_INIT
	.word	DOT11_OID_AUTHENABLE
	.word	DOT11_OID_PRIVACYINVOKED
	.word	DOT11_OID_EXUNENCRYPTED
	.word	DOT11_OID_DOT1XENABLE
	.word	DOT11_OID_MLMEAUTOLEVEL
	.word	IW_AUTH_INDEX
	.word	IW_AUTH_WPA_VERSION_DISABLED
	.word	IW_AUTH_WPA_VERSION_WPA
	.word	IW_AUTH_WPA_VERSION_WPA2
	.word	DOT11_MLME_EXTENDED
	.word	DOT11_AUTH_OS
	.word	IW_AUTH_ALG_SHARED_KEY
	.word	DOT11_AUTH_SK
	.word	DOT11_MLME_AUTO
	.word	IW_AUTH_ALG_OPEN_SYSTEM
	.word	EINVAL
	.word	EOPNOTSUPP
	.size	prism54_set_auth, .-prism54_set_auth
	.comm	PRV_STATE_INIT,4,4
	.comm	IW_AUTH_WPA_VERSION_WPA2,4,4
	.comm	IW_AUTH_WPA_VERSION_WPA,4,4
	.comm	IW_AUTH_WPA_VERSION_DISABLED,4,4
	.comm	IW_AUTH_INDEX,4,4
	.comm	IW_AUTH_ALG_SHARED_KEY,4,4
	.comm	IW_AUTH_ALG_OPEN_SYSTEM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	DOT11_OID_PRIVACYINVOKED,4,4
	.comm	DOT11_OID_MLMEAUTOLEVEL,4,4
	.comm	DOT11_OID_EXUNENCRYPTED,4,4
	.comm	DOT11_OID_DOT1XENABLE,4,4
	.comm	DOT11_OID_AUTHENABLE,4,4
	.comm	DOT11_MLME_EXTENDED,4,4
	.comm	DOT11_MLME_AUTO,4,4
	.comm	DOT11_AUTH_SK,4,4
	.comm	DOT11_AUTH_OS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
