	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_delkey
_ieee80211_ioctl_delkey:                ## @ieee80211_ioctl_delkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$8, (%rsi)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rsi), %edi
	leaq	-16(%rbp), %rsi
	movl	$8, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movslq	-16(%rbp), %rsi
	movq	_IEEE80211_KEYIX_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movl	24(%rbx), %edi
	callq	_ieee80211_ref_node
	movq	%rax, %rbx
	movl	-12(%rbp), %edi
	movl	(%rax), %esi
	callq	_IEEE80211_ADDR_EQ
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%rbx, %rdi
	callq	_ieee80211_free_node
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_IEEE80211_WEP_NKID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_8
## %bb.7:
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ieee80211_crypto_delkey
	jmp	LBB0_13
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	movq	16(%rbx), %rdi
	movl	-12(%rbp), %edx
	movq	%rbx, %rsi
	callq	_ieee80211_find_vap_node
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_ieee80211_node_delucastkey
	movq	%rbx, %rdi
	callq	_ieee80211_free_node
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_14:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_KEYIX_NONE,8,3       ## @IEEE80211_KEYIX_NONE
	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_WEP_NKID,4,2         ## @IEEE80211_WEP_NKID
	.no_dead_strip	_ieee80211_ioctl_delkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_delkey
_ieee80211_ioctl_delkey:                ; @ieee80211_ioctl_delkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	cmp	w8, #8
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w0, [x1, #4]
	add	x1, sp, #8
	mov	w2, #8
	bl	_copyin
	cbnz	w0, LBB0_10
; %bb.2:
	ldrsw	x8, [sp, #8]
Lloh0:
	adrp	x9, _IEEE80211_KEYIX_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_KEYIX_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IEEE80211_M_STA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
	ldr	w0, [x19, #24]
	bl	_ieee80211_ref_node
	mov	x19, x0
	ldr	w0, [sp, #12]
	ldr	w1, [x19]
	bl	_IEEE80211_ADDR_EQ
	cbnz	w0, LBB0_12
; %bb.5:
	mov	x0, x19
	bl	_ieee80211_free_node
Lloh6:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x9, _IEEE80211_WEP_NKID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_WEP_NKID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.7:
	ldr	x9, [x19, #8]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	bl	_ieee80211_crypto_delkey
	b	LBB0_13
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	ldr	x0, [x19, #16]
	ldr	w2, [sp, #12]
	mov	x1, x19
	bl	_ieee80211_find_vap_node
	mov	x19, x0
	cbz	x0, LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_ieee80211_node_delucastkey
	mov	x0, x19
	bl	_ieee80211_free_node
LBB0_13:
	mov	w0, #0
	b	LBB0_10
LBB0_14:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_KEYIX_NONE,8,3       ; @IEEE80211_KEYIX_NONE
	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_WEP_NKID,4,2         ; @IEEE80211_WEP_NKID
	.no_dead_strip	_ieee80211_ioctl_delkey
.subsections_via_symbols
