	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_set_key                 ## -- Begin function cw1200_set_key
	.p2align	4, 0x90
_cw1200_set_key:                        ## @cw1200_set_key
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movl	%esi, %r15d
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_SET_KEY@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rbx
	movq	_IEEE80211_KEY_FLAG_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	andl	(%r14), %r15d
	movq	%r12, %rdi
	callq	_cw1200_alloc_key
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	testq	%r13, %r13
	je	LBB0_8
## %bb.3:
	movq	(%r13), %r8
	jmp	LBB0_9
LBB0_4:
	movq	_DISABLE_KEY@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.5:
	movl	12(%r14), %esi
	movl	%esi, -88(%rbp)
	movq	_WSM_KEY_MAX_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_13
## %bb.6:
	movq	%r12, %rdi
	callq	_cw1200_free_key
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wsm_remove_key
	movl	%eax, %ebx
	jmp	LBB0_34
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_warn
	jmp	LBB0_34
LBB0_8:
	xorl	%r8d, %r8d
LBB0_9:
	movq	%rbx, %r14
	movq	_IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_KEY_FLAG_RESERVE_TAILROOM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r12
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	orl	%ecx, (%rdx)
	movl	4(%rdx), %esi
	leal	-128(%rsi), %edx
	cmpl	$4, %edx
	ja	LBB0_14
## %bb.10:
	movslq	%eax, %r13
	shlq	$7, %r13
	leaq	(%r12,%r13), %rsi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_11:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %edx
	cmpl	$17, %edx
	jl	LBB0_22
## %bb.12:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_cw1200_free_key
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_14:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %ebx
	callq	_pr_warn
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cw1200_free_key
	xorl	%ebx, %ebx
	subl	(%r14), %ebx
	jmp	LBB0_34
LBB0_15:
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-88(%rbp), %rdx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_get_key_rx_seq
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.16:
	movq	_WSM_KEY_TYPE_TKIP_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	100(%r12,%r13), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	96(%r12,%r13), %edi
	movq	24(%r14), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	92(%r12,%r13), %edi
	movq	24(%r14), %rsi
	addq	$64, %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	88(%r12,%r13), %edi
	movq	24(%r14), %rsi
	addq	$96, %rsi
	movl	$8, %edx
	jmp	LBB0_21
LBB0_17:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_25
## %bb.18:
	movq	_WSM_KEY_TYPE_WAPI_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	28(%r12,%r13), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r8, %rsi
	callq	_memcpy
	movl	24(%r12,%r13), %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	20(%r12,%r13), %edi
	movq	24(%r14), %rsi
	addq	$64, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	16(%r14), %eax
	movl	%eax, 16(%r12,%r13)
	jmp	LBB0_27
LBB0_19:
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-88(%rbp), %rdx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_get_key_rx_seq
	testl	%r15d, %r15d
	je	LBB0_26
## %bb.20:
	movq	_WSM_KEY_TYPE_AES_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	60(%r12,%r13), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	56(%r12,%r13), %edi
	movq	24(%r14), %rsi
	movl	$16, %edx
LBB0_21:
	callq	_memcpy
	jmp	LBB0_27
LBB0_22:
	movq	%rsi, %rbx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_29
## %bb.23:
	movq	_WSM_KEY_TYPE_WEP_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	124(%r12,%r13), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r8, %rsi
	callq	_memcpy
	movl	120(%r12,%r13), %edi
	movq	24(%r14), %rsi
	movl	8(%r14), %edx
	callq	_memcpy
	movl	8(%r14), %eax
	movl	%eax, 116(%r12,%r13)
	jmp	LBB0_30
LBB0_24:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %eax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	setne	%r14b
	shlq	$5, %r14
	movq	_WSM_KEY_TYPE_TKIP_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	80(%r12,%r13), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	76(%r12,%r13), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	leaq	(%r14,%rax), %rsi
	addq	$64, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	movzbl	-80(%rbp), %eax
	movq	64(%r12,%r13), %rcx
	movl	%eax, (%rcx)
	movzbl	-79(%rbp), %eax
	movl	%eax, 4(%rcx)
	movzbl	-76(%rbp), %eax
	movl	%eax, 8(%rcx)
	movzbl	-75(%rbp), %eax
	movl	%eax, 12(%rcx)
	movl	-76(%rbp), %eax
	movl	%eax, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movl	%edx, 16(%rcx)
	shrl	$24, %eax
	movl	%eax, 20(%rcx)
	movq	$0, 24(%rcx)
	movl	16(%r14), %eax
	movl	%eax, 72(%r12,%r13)
	movq	%r15, %r12
	jmp	LBB0_28
LBB0_25:
	movq	_WSM_KEY_TYPE_WAPI_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	8(%r12,%r13), %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	4(%r12,%r13), %edi
	movq	24(%r14), %rsi
	addq	$64, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	16(%r14), %eax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_26:
	movq	_WSM_KEY_TYPE_AES_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	48(%r12,%r13), %edi
	movq	24(%r14), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	-88(%rbp), %rax
	movl	20(%rax), %ecx
	movq	40(%r12,%r13), %rdx
	movl	%ecx, (%rdx)
	movl	16(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 16(%rdx)
	movl	(%rax), %eax
	movl	%eax, 20(%rdx)
	movq	$0, 24(%rdx)
	movl	16(%r14), %eax
	movl	%eax, 32(%r12,%r13)
LBB0_27:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_28:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_29:
	movq	_WSM_KEY_TYPE_WEP_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13)
	movl	112(%r12,%r13), %edi
	movq	24(%r14), %rsi
	callq	_memcpy
	movl	8(%r14), %eax
	movl	%eax, 104(%r12,%r13)
	movl	16(%r14), %eax
	movl	%eax, 108(%r12,%r13)
LBB0_30:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, %rsi
LBB0_31:
	movq	%r12, %rdi
	callq	_wsm_add_key
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_cw1200_free_key
	jmp	LBB0_34
LBB0_33:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	xorl	%ebx, %ebx
LBB0_34:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SET_KEY,4,2                    ## @SET_KEY
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ## @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ## @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.comm	_IEEE80211_KEY_FLAG_RESERVE_TAILROOM,4,2 ## @IEEE80211_KEY_FLAG_RESERVE_TAILROOM
	.comm	_WSM_KEY_TYPE_WEP_PAIRWISE,4,2  ## @WSM_KEY_TYPE_WEP_PAIRWISE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WSM_KEY_TYPE_WEP_DEFAULT,4,2   ## @WSM_KEY_TYPE_WEP_DEFAULT
	.comm	_WSM_KEY_TYPE_TKIP_PAIRWISE,4,2 ## @WSM_KEY_TYPE_TKIP_PAIRWISE
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_WSM_KEY_TYPE_TKIP_GROUP,4,2    ## @WSM_KEY_TYPE_TKIP_GROUP
	.comm	_WSM_KEY_TYPE_AES_PAIRWISE,4,2  ## @WSM_KEY_TYPE_AES_PAIRWISE
	.comm	_WSM_KEY_TYPE_AES_GROUP,4,2     ## @WSM_KEY_TYPE_AES_GROUP
	.comm	_WSM_KEY_TYPE_WAPI_PAIRWISE,4,2 ## @WSM_KEY_TYPE_WAPI_PAIRWISE
	.comm	_WSM_KEY_TYPE_WAPI_GROUP,4,2    ## @WSM_KEY_TYPE_WAPI_GROUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled key type %d\n"

	.comm	_DISABLE_KEY,4,2                ## @DISABLE_KEY
	.comm	_WSM_KEY_MAX_INDEX,4,2          ## @WSM_KEY_MAX_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled key command %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_set_key                 ; -- Begin function cw1200_set_key
	.p2align	2
_cw1200_set_key:                        ; @cw1200_set_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x22, x3
	mov	x21, x1
Lloh0:
	adrp	x25, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EOPNOTSUPP@GOTPAGEOFF]
	ldr	w23, [x25]
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x8, _SET_KEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SET_KEY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.1:
	ldr	w26, [x20]
Lloh5:
	adrp	x8, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
	mov	x0, x19
	bl	_cw1200_alloc_key
	tbnz	w0, #31, LBB0_13
; %bb.2:
	mov	x21, x0
	cbz	x22, LBB0_8
; %bb.3:
	ldr	x23, [x22]
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _DISABLE_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DISABLE_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.5:
	ldr	w1, [x20, #12]
	str	w1, [sp]
Lloh11:
	adrp	x8, _WSM_KEY_MAX_INDEX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WSM_KEY_MAX_INDEX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w1, w8
	b.gt	LBB0_13
; %bb.6:
	mov	x0, x19
	bl	_cw1200_free_key
	mov	x1, sp
	mov	x0, x19
	bl	_wsm_remove_key
	mov	x22, x0
	b	LBB0_30
LBB0_7:
	neg	w22, w23
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_warn
	b	LBB0_30
LBB0_8:
	mov	x23, #0
LBB0_9:
Lloh16:
	adrp	x8, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGEOFF]
	ldr	x24, [x19, #8]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _IEEE80211_KEY_FLAG_RESERVE_TAILROOM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_RESERVE_TAILROOM@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w1, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.10:
	sxtw	x25, w21
	add	x22, x24, x25, lsl #7
	and	w26, w27, w26
Lloh22:
	adrp	x9, lJTI0_0@PAGE
Lloh23:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	ldr	w2, [x20, #8]
	cmp	w2, #17
	b.lt	LBB0_21
; %bb.12:
	mov	x0, x19
	mov	x1, x21
	bl	_cw1200_free_key
LBB0_13:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_30
LBB0_14:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	mov	x0, x19
	mov	x1, x21
	bl	_cw1200_free_key
	ldr	w8, [x25]
	neg	w22, w8
	b	LBB0_30
LBB0_15:
	mov	x2, sp
	mov	x0, x20
	mov	w1, #0
	bl	_ieee80211_get_key_rx_seq
	cbz	w26, LBB0_23
; %bb.16:
Lloh29:
	adrp	x8, _WSM_KEY_TYPE_TKIP_PAIRWISE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WSM_KEY_TYPE_TKIP_PAIRWISE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	add	x24, x24, x25, lsl #7
	str	w8, [x24, #12]
	ldr	w0, [x24, #100]
Lloh32:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
	ldr	w0, [x24, #96]
	ldr	x1, [x20, #24]
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x24, #92]
	ldr	x8, [x20, #24]
	add	x1, x8, #64
	mov	w2, #8
	bl	_memcpy
	ldr	w0, [x24, #88]
	ldr	x8, [x20, #24]
	add	x1, x8, #96
	mov	w2, #8
	bl	_memcpy
	b	LBB0_27
LBB0_17:
	cbz	w26, LBB0_24
; %bb.18:
Lloh35:
	adrp	x8, _WSM_KEY_TYPE_WAPI_PAIRWISE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WSM_KEY_TYPE_WAPI_PAIRWISE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	add	x24, x24, x25, lsl #7
	str	w8, [x24, #12]
	ldr	w0, [x24, #28]
Lloh38:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
	ldr	w0, [x24, #24]
	ldr	x1, [x20, #24]
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x24, #20]
	ldr	x8, [x20, #24]
	add	x1, x8, #64
	mov	w2, #16
	bl	_memcpy
	ldr	w8, [x20, #16]
	str	w8, [x24, #16]
	b	LBB0_27
LBB0_19:
	mov	x2, sp
	mov	x0, x20
	mov	w1, #0
	bl	_ieee80211_get_key_rx_seq
	cbz	w26, LBB0_25
; %bb.20:
Lloh41:
	adrp	x8, _WSM_KEY_TYPE_AES_PAIRWISE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _WSM_KEY_TYPE_AES_PAIRWISE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	add	x24, x24, x25, lsl #7
	str	w8, [x24, #12]
	ldr	w0, [x24, #60]
Lloh44:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
	ldr	w0, [x24, #56]
	ldr	x1, [x20, #24]
	mov	w2, #16
	bl	_memcpy
	b	LBB0_27
LBB0_21:
	cbz	w26, LBB0_26
; %bb.22:
Lloh47:
	adrp	x8, _WSM_KEY_TYPE_WEP_PAIRWISE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WSM_KEY_TYPE_WEP_PAIRWISE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	add	x24, x24, x25, lsl #7
	str	w8, [x24, #12]
	ldr	w0, [x24, #124]
Lloh50:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
	ldr	w0, [x24, #120]
	ldr	x1, [x20, #24]
	ldr	w2, [x20, #8]
	bl	_memcpy
	ldr	w8, [x20, #8]
	str	w8, [x24, #116]
	b	LBB0_27
LBB0_23:
	ldr	w8, [x19, #4]
Lloh53:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh54:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #96
	mov	w9, #64
Lloh56:
	adrp	x10, _WSM_KEY_TYPE_TKIP_GROUP@GOTPAGE
Lloh57:
	ldr	x10, [x10, _WSM_KEY_TYPE_TKIP_GROUP@GOTPAGEOFF]
	csel	x23, x9, x8, eq
Lloh58:
	ldr	w8, [x10]
	add	x24, x24, x25, lsl #7
	str	w8, [x24, #12]
	ldr	w0, [x24, #80]
	ldr	x1, [x20, #24]
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x24, #76]
	ldr	x8, [x20, #24]
	add	x1, x8, x23
	mov	w2, #8
	bl	_memcpy
	ldrb	w8, [sp, #8]
	ldr	x9, [x24, #64]
	str	w8, [x9]
	ldrb	w8, [sp, #9]
	str	w8, [x9, #4]
	ldrb	w8, [sp, #12]
	str	w8, [x9, #8]
	ldrb	w8, [sp, #13]
	str	w8, [x9, #12]
	ldr	w8, [sp, #12]
	ubfx	w10, w8, #16, #8
	lsr	w8, w8, #24
	stp	w10, w8, [x9, #16]
	str	xzr, [x9, #24]
	ldr	w8, [x20, #16]
	str	w8, [x24, #72]
	b	LBB0_27
LBB0_24:
Lloh59:
	adrp	x8, _WSM_KEY_TYPE_WAPI_GROUP@GOTPAGE
Lloh60:
	ldr	x8, [x8, _WSM_KEY_TYPE_WAPI_GROUP@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	add	x23, x24, x25, lsl #7
	str	w8, [x23, #12]
	ldr	w0, [x23, #8]
	ldr	x1, [x20, #24]
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x23, #4]
	ldr	x8, [x20, #24]
	add	x1, x8, #64
	mov	w2, #16
	bl	_memcpy
	ldr	w8, [x20, #16]
	str	w8, [x22]
	b	LBB0_27
LBB0_25:
Lloh62:
	adrp	x8, _WSM_KEY_TYPE_AES_GROUP@GOTPAGE
Lloh63:
	ldr	x8, [x8, _WSM_KEY_TYPE_AES_GROUP@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	add	x23, x24, x25, lsl #7
	str	w8, [x23, #12]
	ldr	w0, [x23, #48]
	ldr	x1, [x20, #24]
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [sp]
	ldr	w9, [x8, #20]
	ldr	x10, [x23, #40]
	str	w9, [x10]
	ldr	w9, [x8, #16]
	str	w9, [x10, #4]
	ldr	w9, [x8, #12]
	str	w9, [x10, #8]
	ldr	w9, [x8, #8]
	str	w9, [x10, #12]
	ldr	w9, [x8, #4]
	str	w9, [x10, #16]
	ldr	w8, [x8]
	str	xzr, [x10, #24]
	str	w8, [x10, #20]
	ldr	w8, [x20, #16]
	str	w8, [x23, #32]
	b	LBB0_27
LBB0_26:
Lloh65:
	adrp	x8, _WSM_KEY_TYPE_WEP_DEFAULT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _WSM_KEY_TYPE_WEP_DEFAULT@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	add	x23, x24, x25, lsl #7
	str	w8, [x23, #12]
	ldr	w0, [x23, #112]
	ldr	x1, [x20, #24]
	bl	_memcpy
	ldr	w8, [x20, #8]
	str	w8, [x23, #104]
	ldr	w8, [x20, #16]
	str	w8, [x23, #108]
LBB0_27:
	mov	x0, x19
	mov	x1, x22
	bl	_wsm_add_key
	mov	x22, x0
	cbz	w0, LBB0_29
; %bb.28:
	mov	x0, x19
	mov	x1, x21
	bl	_cw1200_free_key
	b	LBB0_30
LBB0_29:
	str	w21, [x20, #12]
LBB0_30:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SET_KEY,4,2                    ; @SET_KEY
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ; @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ; @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.comm	_IEEE80211_KEY_FLAG_RESERVE_TAILROOM,4,2 ; @IEEE80211_KEY_FLAG_RESERVE_TAILROOM
	.comm	_WSM_KEY_TYPE_WEP_PAIRWISE,4,2  ; @WSM_KEY_TYPE_WEP_PAIRWISE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WSM_KEY_TYPE_WEP_DEFAULT,4,2   ; @WSM_KEY_TYPE_WEP_DEFAULT
	.comm	_WSM_KEY_TYPE_TKIP_PAIRWISE,4,2 ; @WSM_KEY_TYPE_TKIP_PAIRWISE
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_WSM_KEY_TYPE_TKIP_GROUP,4,2    ; @WSM_KEY_TYPE_TKIP_GROUP
	.comm	_WSM_KEY_TYPE_AES_PAIRWISE,4,2  ; @WSM_KEY_TYPE_AES_PAIRWISE
	.comm	_WSM_KEY_TYPE_AES_GROUP,4,2     ; @WSM_KEY_TYPE_AES_GROUP
	.comm	_WSM_KEY_TYPE_WAPI_PAIRWISE,4,2 ; @WSM_KEY_TYPE_WAPI_PAIRWISE
	.comm	_WSM_KEY_TYPE_WAPI_GROUP,4,2    ; @WSM_KEY_TYPE_WAPI_GROUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled key type %d\n"

	.comm	_DISABLE_KEY,4,2                ; @DISABLE_KEY
	.comm	_WSM_KEY_MAX_INDEX,4,2          ; @WSM_KEY_MAX_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled key command %d\n"

.subsections_via_symbols
