	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libipw_wx_set_encodeext        ## -- Begin function libipw_wx_set_encodeext
	.p2align	4, 0x90
_libipw_wx_set_encodeext:               ## @libipw_wx_set_encodeext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %r12
	movq	64(%rdi), %rsi
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movl	(%rdx), %eax
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	je	LBB0_5
## %bb.1:
	jle	LBB0_3
## %bb.2:
	movq	_WEP_KEYS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jg	LBB0_3
## %bb.4:
	decl	%ebx
	jmp	LBB0_6
LBB0_5:
	movl	16(%r12), %ebx
LBB0_6:
	movq	_IW_ENCODE_EXT_GROUP_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%r15), %edi
	je	LBB0_7
LBB0_10:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r8
	leaq	(,%r8,8), %r13
	addq	24(%r12), %r13
	movq	_SEC_ENABLED@GOTPCREL(%rip), %rcx
	movq	_SEC_ENCRYPT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	orl	(%rcx), %r14d
	movl	%r14d, -128(%rbp)
	movq	_IW_ENCODE_DISABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.11:
	movl	4(%r15), %edx
	movq	_IW_ENCODE_ALG_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_20
LBB0_12:
	cmpq	$0, (%r13)
	je	LBB0_14
## %bb.13:
	leaq	16(%r12), %rdi
	movq	%r13, %rsi
	callq	_lib80211_crypt_delayed_deinit
LBB0_14:
	movq	_WEP_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	movl	$0, %ecx
	testl	%eax, %eax
	jle	LBB0_18
## %bb.15:
	movq	24(%r12), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_16
	jmp	LBB0_19
LBB0_18:
	cmpl	%eax, %ecx
	jne	LBB0_61
LBB0_19:
	movq	$0, -124(%rbp)
	movq	_SEC_LEVEL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_SEC_LEVEL@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_60:
	movl	%r14d, -128(%rbp)
LBB0_61:
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_63
## %bb.62:
	leaq	-128(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	*%rcx
	jmp	LBB0_63
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	cmpl	$128, 4(%r15)
	jne	LBB0_3
LBB0_9:
	movq	(%r12), %rcx
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_63:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -124(%rbp)
	testl	%edi, %edi
	je	LBB0_29
## %bb.21:
	cmpl	$0, 56(%r12)
	jne	LBB0_32
	jmp	LBB0_22
LBB0_29:
	cmpq	$0, 48(%r12)
	jne	LBB0_32
## %bb.30:
	cmpq	$0, 40(%r12)
	jne	LBB0_32
## %bb.31:
	cmpq	$0, 32(%r12)
	je	LBB0_22
LBB0_32:
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_33
## %bb.36:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rcx
	leaq	l_switch.table.libipw_wx_set_encodeext(%rip), %rax
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	(%rax,%rcx,8), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_lib80211_get_crypto_ops
	testq	%rax, %rax
	jne	LBB0_39
## %bb.37:
	leaq	l_reltable.libipw_wx_set_encodeext(%rip), %rax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rdi
	addq	%rax, %rdi
	callq	_request_module
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_lib80211_get_crypto_ops
	testq	%rax, %rax
	je	LBB0_38
LBB0_39:
	movq	(%r13), %r9
	testq	%r9, %r9
	je	LBB0_41
## %bb.40:
	cmpq	%rax, 8(%r9)
	je	LBB0_50
LBB0_41:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %rdi
	movq	%r13, %rsi
	callq	_lib80211_crypt_delayed_deinit
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_42
## %bb.44:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movl	16(%rcx), %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_try_module_get
	testq	%rax, %rax
	je	LBB0_45
## %bb.46:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%ebx, %edi
	callq	*8(%rax)
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	%rax, (%r9)
	jmp	LBB0_47
LBB0_33:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%r13d, %r13d
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_34:
	xorl	%eax, %eax
	callq	_LIBIPW_DEBUG_WX
LBB0_35:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_61
LBB0_42:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_45:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	(%r9), %rax
LBB0_47:
	testq	%rax, %rax
	je	LBB0_48
## %bb.49:
	movq	%r9, (%r13)
LBB0_50:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	_IW_ENCODE_ALG_NONE@GOTPCREL(%rip), %rcx
	jle	LBB0_22
## %bb.51:
	movq	8(%r9), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.52:
	movl	16(%r15), %edi
	movl	20(%r15), %edx
	movq	(%r9), %rcx
	callq	*%rax
	movq	_IW_ENCODE_ALG_NONE@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testq	%rax, %rax
	js	LBB0_53
LBB0_22:
	movq	_IW_ENCODE_EXT_SET_TX_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_24
## %bb.23:
	movl	%ebx, 16(%r12)
	movl	%ebx, -116(%rbp)
	movq	_SEC_ACTIVE_KEY@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, -128(%rbp)
LBB0_24:
	movl	4(%r15), %eax
	xorl	%r13d, %r13d
	cmpl	(%rcx), %eax
	je	LBB0_61
## %bb.25:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax
	movl	(%rax,%r8,4), %edi
	movl	16(%r15), %esi
	movq	8(%r15), %rdx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	callq	_memcpy
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	-112(%rbp), %rcx
	movq	%rax, (%rcx,%rsi,8)
	btsl	%ebx, %r14d
	movl	%r14d, -128(%rbp)
	movl	4(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_55
## %bb.26:
	cmpl	$129, %eax
	je	LBB0_54
## %bb.27:
	cmpl	$128, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_58
## %bb.28:
	movq	_SEC_ALG_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rcx
	movl	%eax, (%rcx,%rsi,4)
	movq	_SEC_LEVEL@GOTPCREL(%rip), %rax
	movl	-128(%rbp), %r14d
	orl	(%rax), %r14d
	movl	%r14d, -128(%rbp)
	movq	_SEC_LEVEL_1@GOTPCREL(%rip), %rax
	jmp	LBB0_57
LBB0_48:
	movq	%r9, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_43:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_61
LBB0_38:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	4(%r15), %edx
	leaq	L_.str.6(%rip), %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_55:
	movq	_SEC_ALG_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rcx
	movl	%eax, (%rcx,%rsi,4)
	movq	_SEC_LEVEL@GOTPCREL(%rip), %rax
	movl	-128(%rbp), %r14d
	orl	(%rax), %r14d
	movl	%r14d, -128(%rbp)
	movq	_SEC_LEVEL_3@GOTPCREL(%rip), %rax
	jmp	LBB0_56
LBB0_54:
	movq	_SEC_ALG_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rcx
	movl	%eax, (%rcx,%rsi,4)
	movq	_SEC_LEVEL@GOTPCREL(%rip), %rax
	movl	-128(%rbp), %r14d
	orl	(%rax), %r14d
	movl	%r14d, -128(%rbp)
	movq	_SEC_LEVEL_2@GOTPCREL(%rip), %rax
LBB0_56:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_57:
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
LBB0_58:
	testl	%edx, %edx
	je	LBB0_61
## %bb.59:
	movq	_SEC_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	jmp	LBB0_60
LBB0_53:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_LIBIPW_DEBUG_WX
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ## @IW_ENCODE_INDEX
	.comm	_WEP_KEYS,4,2                   ## @WEP_KEYS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ## @IW_ENCODE_EXT_GROUP_KEY
	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_SEC_ENABLED,4,2                ## @SEC_ENABLED
	.comm	_SEC_ENCRYPT,4,2                ## @SEC_ENCRYPT
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_ALG_NONE,4,2         ## @IW_ENCODE_ALG_NONE
	.comm	_SEC_LEVEL_0,4,2                ## @SEC_LEVEL_0
	.comm	_SEC_LEVEL,4,2                  ## @SEC_LEVEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WEP"

L_.str.1:                               ## @.str.1
	.asciz	"lib80211_crypt_wep"

L_.str.2:                               ## @.str.2
	.asciz	"TKIP"

L_.str.3:                               ## @.str.3
	.asciz	"lib80211_crypt_tkip"

L_.str.4:                               ## @.str.4
	.asciz	"CCMP"

L_.str.5:                               ## @.str.5
	.asciz	"lib80211_crypt_ccmp"

L_.str.6:                               ## @.str.6
	.asciz	"%s: unknown crypto alg %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.7:                               ## @.str.7
	.asciz	"%s: key setting failed\n"

	.comm	_IW_ENCODE_EXT_SET_TX_KEY,4,2   ## @IW_ENCODE_EXT_SET_TX_KEY
	.comm	_SEC_ACTIVE_KEY,4,2             ## @SEC_ACTIVE_KEY
	.comm	_SEC_ALG_WEP,4,2                ## @SEC_ALG_WEP
	.comm	_SEC_LEVEL_1,4,2                ## @SEC_LEVEL_1
	.comm	_SEC_ALG_TKIP,4,2               ## @SEC_ALG_TKIP
	.comm	_SEC_LEVEL_2,4,2                ## @SEC_LEVEL_2
	.comm	_SEC_ALG_CCMP,4,2               ## @SEC_ALG_CCMP
	.comm	_SEC_LEVEL_3,4,2                ## @SEC_LEVEL_3
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.libipw_wx_set_encodeext
l_switch.table.libipw_wx_set_encodeext:
	.quad	L_.str
	.quad	L_.str.2
	.quad	L_.str.4

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.libipw_wx_set_encodeext
l_reltable.libipw_wx_set_encodeext:
	.long	L_.str.1-l_reltable.libipw_wx_set_encodeext
	.long	L_.str.3-l_reltable.libipw_wx_set_encodeext
	.long	L_.str.5-l_reltable.libipw_wx_set_encodeext

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libipw_wx_set_encodeext        ; -- Begin function libipw_wx_set_encodeext
	.p2align	2
_libipw_wx_set_encodeext:               ; @libipw_wx_set_encodeext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x20, x0
	ldr	x19, [x0, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _IW_ENCODE_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_ENCODE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x24, _WEP_KEYS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _WEP_KEYS@GOTPAGEOFF]
	ands	w9, w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [x24]
	subs	w22, w9, #1
	ccmp	w9, w10, #0, ge
	b.le	LBB0_3
	b	LBB0_15
LBB0_2:
	ldr	w22, [x20, #16]
LBB0_3:
	ldr	w9, [x21]
Lloh5:
	adrp	x10, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	ands	w26, w10, w9
	b.eq	LBB0_12
LBB0_4:
	ldr	x9, [x20, #24]
	add	x23, x9, w22, sxtw #3
Lloh8:
	adrp	x9, _SEC_ENABLED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEC_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SEC_ENCRYPT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SEC_ENCRYPT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w27, w10, w9
	str	w27, [sp, #16]
Lloh14:
	adrp	x9, _IW_ENCODE_DISABLED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IW_ENCODE_DISABLED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x21, #4]
Lloh17:
	adrp	x25, _IW_ENCODE_ALG_NONE@GOTPAGE
Lloh18:
	ldr	x25, [x25, _IW_ENCODE_ALG_NONE@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_20
LBB0_6:
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, x20, #16
	mov	x1, x23
	bl	_lib80211_crypt_delayed_deinit
LBB0_8:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x9, #0
	ldr	x10, [x20, #24]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbnz	x11, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_10
	b	LBB0_18
LBB0_12:
	cbz	w22, LBB0_14
; %bb.13:
	ldr	w9, [x21, #4]
	cmp	w9, #128
	b.ne	LBB0_15
LBB0_14:
	ldr	x9, [x20]
Lloh19:
	adrp	x10, _IW_MODE_INFRA@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
LBB0_15:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_51
LBB0_16:
	mov	w9, #0
LBB0_17:
	cmp	w9, w8
	b.ne	LBB0_48
LBB0_18:
	mov	w21, #0
Lloh25:
	adrp	x8, _SEC_LEVEL_0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SEC_LEVEL_0@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	wzr, [sp, #24]
	str	w8, [sp, #40]
Lloh28:
	adrp	x8, _SEC_LEVEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SEC_LEVEL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w8, w27, w8
	str	wzr, [sp, #20]
LBB0_19:
	str	w8, [sp, #16]
	b	LBB0_49
LBB0_20:
	movi.2s	v0, #1
	stur	d0, [sp, #20]
	cbz	w26, LBB0_22
; %bb.21:
	ldr	w9, [x20, #56]
	cbnz	w9, LBB0_25
	b	LBB0_45
LBB0_22:
	ldr	x9, [x20, #48]
	cbnz	x9, LBB0_25
; %bb.23:
	ldr	x9, [x20, #40]
	cbnz	x9, LBB0_25
; %bb.24:
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_45
LBB0_25:
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_33
; %bb.26:
	sbfiz	x28, x9, #3, #32
Lloh31:
	adrp	x8, l_switch.table.libipw_wx_set_encodeext@PAGE
Lloh32:
	add	x8, x8, l_switch.table.libipw_wx_set_encodeext@PAGEOFF
	ldr	x24, [x8, x28]
	mov	x0, x24
	bl	_lib80211_get_crypto_ops
	mov	x25, x0
	cbnz	x0, LBB0_28
; %bb.27:
Lloh33:
	adrp	x8, l_switch.table.libipw_wx_set_encodeext.8@PAGE
Lloh34:
	add	x8, x8, l_switch.table.libipw_wx_set_encodeext.8@PAGEOFF
	ldr	x0, [x8, x28]
	bl	_request_module
	mov	x0, x24
	bl	_lib80211_get_crypto_ops
	mov	x25, x0
	cbz	x0, LBB0_57
LBB0_28:
	ldr	x24, [x23]
	cbz	x24, LBB0_30
; %bb.29:
	ldr	x8, [x24, #8]
	cmp	x8, x25
	b.eq	LBB0_42
LBB0_30:
	add	x0, x20, #16
	mov	x1, x23
	bl	_lib80211_crypt_delayed_deinit
Lloh35:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_38
; %bb.31:
	mov	x24, x0
	str	x25, [x0, #8]
	ldr	w0, [x25, #16]
	bl	_try_module_get
	cbz	x0, LBB0_39
; %bb.32:
	ldr	x8, [x24, #8]
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
	str	x0, [x24]
	b	LBB0_40
LBB0_33:
	ldr	w1, [x19]
LBB0_34:
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_35:
	bl	_LIBIPW_DEBUG_WX
LBB0_36:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_37:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_49
LBB0_38:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_37
LBB0_39:
	ldr	x0, [x24]
LBB0_40:
	cbz	x0, LBB0_56
; %bb.41:
	str	x24, [x23]
LBB0_42:
	ldr	x1, [x21, #8]
	cmp	x1, #1
Lloh44:
	adrp	x25, _IW_ENCODE_ALG_NONE@GOTPAGE
Lloh45:
	ldr	x25, [x25, _IW_ENCODE_ALG_NONE@GOTPAGEOFF]
	b.lt	LBB0_45
; %bb.43:
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_45
; %bb.44:
	ldp	w0, w2, [x21, #16]
	ldr	x3, [x24]
	blr	x8
	tbnz	x0, #63, LBB0_63
LBB0_45:
	ldr	w8, [x21]
Lloh46:
	adrp	x9, _IW_ENCODE_EXT_SET_TX_KEY@GOTPAGE
Lloh47:
	ldr	x9, [x9, _IW_ENCODE_EXT_SET_TX_KEY@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_47
; %bb.46:
	str	w22, [x20, #16]
Lloh49:
	adrp	x8, _SEC_ACTIVE_KEY@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SEC_ACTIVE_KEY@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	orr	w27, w27, w8
	str	w22, [sp, #28]
	str	w27, [sp, #16]
LBB0_47:
	ldr	w8, [x21, #4]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_52
LBB0_48:
	mov	w21, #0
LBB0_49:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_51
; %bb.50:
	add	x1, sp, #16
	mov	x0, x19
	blr	x8
LBB0_51:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_52:
	sxtw	x23, w22
	ldr	x8, [sp, #56]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x21, #16]
	ldr	x2, [x21, #8]
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #32]
	str	x8, [x9, x23, lsl #3]
	mov	w8, #1
	lsl	w8, w8, w22
	orr	w8, w27, w8
	str	w8, [sp, #16]
	ldr	w9, [x21, #4]
	cmp	w9, #130
	b.eq	LBB0_58
; %bb.53:
	cmp	w9, #129
	b.eq	LBB0_59
; %bb.54:
	cmp	w9, #128
	b.ne	LBB0_61
; %bb.55:
Lloh52:
	adrp	x8, _SEC_ALG_WEP@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SEC_ALG_WEP@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	ldr	x9, [sp, #48]
	str	w8, [x9, x23, lsl #2]
Lloh55:
	adrp	x8, _SEC_LEVEL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SEC_LEVEL@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
Lloh58:
	adrp	x9, _SEC_LEVEL_1@GOTPAGE
Lloh59:
	ldr	x9, [x9, _SEC_LEVEL_1@GOTPAGEOFF]
	b	LBB0_60
LBB0_56:
	mov	x0, x24
	bl	_kfree
	b	LBB0_36
LBB0_57:
	ldr	w1, [x19]
	ldr	w8, [x21, #4]
	b	LBB0_34
LBB0_58:
Lloh60:
	adrp	x8, _SEC_ALG_CCMP@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SEC_ALG_CCMP@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	ldr	x9, [sp, #48]
	str	w8, [x9, x23, lsl #2]
Lloh63:
	adrp	x8, _SEC_LEVEL@GOTPAGE
Lloh64:
	ldr	x8, [x8, _SEC_LEVEL@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
Lloh66:
	adrp	x9, _SEC_LEVEL_3@GOTPAGE
Lloh67:
	ldr	x9, [x9, _SEC_LEVEL_3@GOTPAGEOFF]
	b	LBB0_60
LBB0_59:
Lloh68:
	adrp	x8, _SEC_ALG_TKIP@GOTPAGE
Lloh69:
	ldr	x8, [x8, _SEC_ALG_TKIP@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	ldr	x9, [sp, #48]
	str	w8, [x9, x23, lsl #2]
Lloh71:
	adrp	x8, _SEC_LEVEL@GOTPAGE
Lloh72:
	ldr	x8, [x8, _SEC_LEVEL@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
Lloh74:
	adrp	x9, _SEC_LEVEL_2@GOTPAGE
Lloh75:
	ldr	x9, [x9, _SEC_LEVEL_2@GOTPAGEOFF]
LBB0_60:
	ldr	w9, [x9]
	str	w9, [sp, #40]
LBB0_61:
	mov	w21, #0
	cbz	w26, LBB0_49
; %bb.62:
Lloh76:
	adrp	x9, _SEC_LEVEL@GOTPAGE
Lloh77:
	ldr	x9, [x9, _SEC_LEVEL@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	bic	w8, w8, w9
	b	LBB0_19
LBB0_63:
	ldr	w1, [x19]
Lloh79:
	adrp	x0, l_.str.7@PAGE
Lloh80:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_35
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.comm	_WEP_KEYS,4,2                   ; @WEP_KEYS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ; @IW_ENCODE_EXT_GROUP_KEY
	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_SEC_ENABLED,4,2                ; @SEC_ENABLED
	.comm	_SEC_ENCRYPT,4,2                ; @SEC_ENCRYPT
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_ALG_NONE,4,2         ; @IW_ENCODE_ALG_NONE
	.comm	_SEC_LEVEL_0,4,2                ; @SEC_LEVEL_0
	.comm	_SEC_LEVEL,4,2                  ; @SEC_LEVEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WEP"

l_.str.1:                               ; @.str.1
	.asciz	"lib80211_crypt_wep"

l_.str.2:                               ; @.str.2
	.asciz	"TKIP"

l_.str.3:                               ; @.str.3
	.asciz	"lib80211_crypt_tkip"

l_.str.4:                               ; @.str.4
	.asciz	"CCMP"

l_.str.5:                               ; @.str.5
	.asciz	"lib80211_crypt_ccmp"

l_.str.6:                               ; @.str.6
	.asciz	"%s: unknown crypto alg %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.7:                               ; @.str.7
	.asciz	"%s: key setting failed\n"

	.comm	_IW_ENCODE_EXT_SET_TX_KEY,4,2   ; @IW_ENCODE_EXT_SET_TX_KEY
	.comm	_SEC_ACTIVE_KEY,4,2             ; @SEC_ACTIVE_KEY
	.comm	_SEC_ALG_WEP,4,2                ; @SEC_ALG_WEP
	.comm	_SEC_LEVEL_1,4,2                ; @SEC_LEVEL_1
	.comm	_SEC_ALG_TKIP,4,2               ; @SEC_ALG_TKIP
	.comm	_SEC_LEVEL_2,4,2                ; @SEC_LEVEL_2
	.comm	_SEC_ALG_CCMP,4,2               ; @SEC_ALG_CCMP
	.comm	_SEC_LEVEL_3,4,2                ; @SEC_LEVEL_3
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.libipw_wx_set_encodeext
l_switch.table.libipw_wx_set_encodeext:
	.quad	l_.str
	.quad	l_.str.2
	.quad	l_.str.4

	.p2align	3                               ; @switch.table.libipw_wx_set_encodeext.8
l_switch.table.libipw_wx_set_encodeext.8:
	.quad	l_.str.1
	.quad	l_.str.3
	.quad	l_.str.5

.subsections_via_symbols
