	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_ops_set_key
_rtw_ops_set_key:                       ## @rtw_ops_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%r8), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_12
## %bb.1:
	movq	%r8, %rbx
	movq	%rcx, %r13
	movl	%esi, %r12d
	movq	(%rdi), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_12:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_RTW_CAM_WEP40@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_RTW_CAM_WEP104@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_5:
	movq	_RTW_CAM_TKIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_RTW_CAM_AES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_KEY_FLAG_SW_MGMT_TX@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_7:
	leaq	8(%r14), %r15
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_IEEE80211_KEY_FLAG_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_13
## %bb.8:
	movq	%r15, %rdi
	callq	_rtw_sec_get_free_cam
	cmpq	(%r15), %rax
	jle	LBB0_16
LBB0_15:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_13:
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jg	LBB0_15
LBB0_16:
	movq	%r13, %rdx
	xorl	%r13d, %r13d
	cmpl	$137, %r12d
	je	LBB0_19
## %bb.17:
	cmpl	$136, %r12d
	jne	LBB0_20
## %bb.18:
	movq	_IEEE80211_KEY_FLAG_GENERATE_IV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rbx)
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, %r9
	callq	_rtw_sec_write_cam
	jmp	LBB0_20
LBB0_19:
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rtw_sec_clear_cam
LBB0_20:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %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_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_RTW_CAM_WEP40,8,3              ## @RTW_CAM_WEP40
	.comm	_RTW_CAM_WEP104,8,3             ## @RTW_CAM_WEP104
	.comm	_RTW_CAM_TKIP,8,3               ## @RTW_CAM_TKIP
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_RTW_CAM_AES,8,3                ## @RTW_CAM_AES
	.comm	_IEEE80211_KEY_FLAG_SW_MGMT_TX,4,2 ## @IEEE80211_KEY_FLAG_SW_MGMT_TX
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ## @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_IV
	.no_dead_strip	_rtw_ops_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_ops_set_key
_rtw_ops_set_key:                       ; @rtw_ops_set_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x4]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_4:
Lloh4:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_3
LBB0_5:
Lloh6:
	adrp	x8, _RTW_CAM_WEP40@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTW_CAM_WEP40@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _RTW_CAM_WEP104@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTW_CAM_WEP104@GOTPAGEOFF]
LBB0_7:
	ldr	x23, [x8]
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _RTW_CAM_TKIP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RTW_CAM_TKIP@GOTPAGEOFF]
Lloh12:
	ldr	x23, [x8]
Lloh13:
	adrp	x8, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _RTW_CAM_AES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTW_CAM_AES@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x8]
Lloh18:
	adrp	x8, _IEEE80211_KEY_FLAG_SW_MGMT_TX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_KEY_FLAG_SW_MGMT_TX@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_11:
	add	x24, x19, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20, #4]
Lloh20:
	adrp	x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x24
	bl	_rtw_sec_get_free_cam
	mov	x5, x0
	b	LBB0_14
LBB0_13:
	ldr	x5, [x20, #8]
LBB0_14:
	ldr	x8, [x24]
	cmp	x5, x8
	b.le	LBB0_16
; %bb.15:
Lloh23:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_21
LBB0_16:
	cmp	w22, #137
	b.eq	LBB0_19
; %bb.17:
	cmp	w22, #136
	b.ne	LBB0_20
; %bb.18:
Lloh26:
	adrp	x8, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	str	x5, [x20, #16]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_rtw_sec_write_cam
	b	LBB0_20
LBB0_19:
	ldr	x2, [x20, #16]
	mov	x0, x19
	mov	x1, x24
	bl	_rtw_sec_clear_cam
LBB0_20:
	mov	w20, #0
LBB0_21:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_RTW_CAM_WEP40,8,3              ; @RTW_CAM_WEP40
	.comm	_RTW_CAM_WEP104,8,3             ; @RTW_CAM_WEP104
	.comm	_RTW_CAM_TKIP,8,3               ; @RTW_CAM_TKIP
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_RTW_CAM_AES,8,3                ; @RTW_CAM_AES
	.comm	_IEEE80211_KEY_FLAG_SW_MGMT_TX,4,2 ; @IEEE80211_KEY_FLAG_SW_MGMT_TX
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ; @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_IV
	.no_dead_strip	_rtw_ops_set_key
.subsections_via_symbols
