	.file	"extr_ipw2100.c_ipw2100_wx_set_auth.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipw2100_wx_set_auth, @function
ipw2100_wx_set_auth:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	libipw_priv@PLT
	mov	rcx, QWORD PTR [rbx]
	and	rcx, QWORD PTR IW_AUTH_INDEX[rip]
	add	rcx, -128
	mov	rsi, QWORD PTR [rax]
	cmp	rcx, 9
	ja	.L2
	lea	rdx, .L4[rip]
	mov	rdi, rax
	movsx	rax, DWORD PTR [rdx+rcx*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L17-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L17-.L4
	.long	.L6-.L4
	.long	.L17-.L4
	.long	.L17-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR SEC_ENABLED[rip]
	or	edx, DWORD PTR SEC_LEVEL[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	DWORD PTR 24[rsi], eax
	mov	DWORD PTR 16[rsp], edx
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR SEC_LEVEL_0[rip]
	mov	DWORD PTR 12[rsp], eax
.L14:
	mov	rax, QWORD PTR 16[rsi]
	test	rax, rax
	je	.L17
	lea	r8, 12[rsp]
	mov	edi, DWORD PTR 8[rsi]
	mov	rsi, r8
	call	rax
	.p2align 4,,10
	.p2align 3
.L17:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L28
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	call	ipw2100_wpa_set_auth_algs@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR 8[rbx]
	call	ipw2100_wpa_enable@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 40[rsi]
	mov	rdx, QWORD PTR 32[rsi]
	mov	rbp, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	test	rbp, rbp
	je	.L1
	mov	rdx, QWORD PTR 8[rbp]
	cmp	QWORD PTR 8[rdx], 0
	je	.L1
	mov	rdx, QWORD PTR [rdx]
	test	rdx, rdx
	je	.L1
	mov	edi, DWORD PTR 0[rbp]
	call	rdx
	mov	rdi, rax
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	je	.L11
	or	rdi, QWORD PTR IEEE80211_CRYPTO_TKIP_COUNTERMEASURES[rip]
.L12:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 0[rbp]
	call	[QWORD PTR 8[rax]]
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rsi], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR [rsi], eax
	xor	eax, eax
	jmp	.L1
.L2:
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR SEC_LEVEL_1[rip]
	mov	DWORD PTR 12[rsp], eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR IEEE80211_CRYPTO_TKIP_COUNTERMEASURES[rip]
	not	rax
	and	rdi, rax
	jmp	.L12
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ipw2100_wx_set_auth, .-ipw2100_wx_set_auth
	.comm	SEC_LEVEL_1,4,4
	.comm	SEC_LEVEL_0,4,4
	.comm	SEC_LEVEL,4,4
	.comm	SEC_ENABLED,4,4
	.comm	IW_AUTH_INDEX,8,8
	.comm	IEEE80211_CRYPTO_TKIP_COUNTERMEASURES,8,8
	.comm	EOPNOTSUPP,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_ipw2100.c_ipw2100_wx_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	ipw2100_wx_set_auth, %function
ipw2100_wx_set_auth:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r2
	ldr	r3, .L28
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	libipw_priv
	ldr	r2, .L28+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	ip, [r0]
	and	r3, r3, r2
	sub	r3, r3, #128
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L25
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L25
	.word	.L6
	.word	.L25
	.word	.L25
	.word	.L3
.L6:
	ldr	r2, .L28+8
	ldr	r1, .L28+12
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [r1]
	cmp	r3, #0
	str	r3, [sp, #8]
	str	r3, [ip, #16]
	orr	r2, r2, r1
	ldreq	r3, .L28+16
	ldrne	r3, .L28+20
	str	r2, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [ip, #12]
	cmp	r3, #0
	beq	.L25
	mov	r1, sp
	ldr	r0, [ip, #8]
	blx	r3
.L25:
	mov	r0, #0
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L3:
	ldr	r1, [r4, #4]
	bl	ipw2100_wpa_set_auth_algs
	b	.L1
.L10:
	ldr	r1, [r4, #4]
	bl	ipw2100_wpa_enable
	b	.L1
.L9:
	ldr	r2, [ip, #20]
	ldr	r3, [ip, #24]
	ldr	r5, [r3, r2, lsl #2]
	cmp	r5, #0
	beq	.L25
	ldr	r3, [r5, #4]
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r0, r3
	beq	.L1
	ldr	r0, [r5]
	blx	r3
	ldr	r3, [r4, #4]
	ldr	r1, [r5]
	cmp	r3, #0
	ldr	r3, .L28+24
	ldr	r3, [r3]
	orrne	r0, r0, r3
	biceq	r0, r0, r3
	ldr	r3, [r5, #4]
	ldr	r3, [r3, #4]
	blx	r3
	b	.L25
.L8:
	ldr	r3, [r4, #4]
	mov	r0, #0
	str	r3, [ip, #4]
	b	.L1
.L7:
	ldr	r3, [r4, #4]
	mov	r0, #0
	str	r3, [ip]
	b	.L1
.L27:
	bl	__stack_chk_fail
.L2:
	ldr	r3, .L28+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	IW_AUTH_INDEX
	.word	SEC_ENABLED
	.word	SEC_LEVEL
	.word	SEC_LEVEL_0
	.word	SEC_LEVEL_1
	.word	IEEE80211_CRYPTO_TKIP_COUNTERMEASURES
	.word	EOPNOTSUPP
	.size	ipw2100_wx_set_auth, .-ipw2100_wx_set_auth
	.comm	SEC_LEVEL_1,4,4
	.comm	SEC_LEVEL_0,4,4
	.comm	SEC_LEVEL,4,4
	.comm	SEC_ENABLED,4,4
	.comm	IW_AUTH_INDEX,4,4
	.comm	IEEE80211_CRYPTO_TKIP_COUNTERMEASURES,4,4
	.comm	EOPNOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
