	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_del_key
_ieee80211_del_key:                     ## @ieee80211_del_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r14
	movq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	4(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sta_info_get_bss
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	addq	$8, %rax
	jmp	LBB0_7
LBB0_5:
	shlq	$2, %r13
	addq	(%r14), %r13
	jmp	LBB0_6
LBB0_4:
	shlq	$2, %r13
	addq	(%rax), %r13
LBB0_6:
	movq	%r13, %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_key_mtx_dereference
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_ieee80211_key_free
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ieee80211_del_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_del_key
_ieee80211_del_key:                     ; @ieee80211_del_key
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x0, x1
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x24, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_mutex_lock
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	cbz	x23, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	mov	x0, x24
	mov	x1, x23
	bl	_sta_info_get_bss
	cbz	x0, LBB0_5
; %bb.2:
	cbz	w22, LBB0_6
; %bb.3:
	add	x8, x0, #8
	b	LBB0_8
LBB0_4:
	ldr	x8, [x24]
	b	LBB0_7
LBB0_5:
	neg	w21, w25
	b	LBB0_11
LBB0_6:
	ldr	x8, [x0]
LBB0_7:
	add	x8, x8, x21, lsl #2
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_key_mtx_dereference
	cbz	x0, LBB0_10
; %bb.9:
	mov	w1, #1
	bl	_ieee80211_key_free
	mov	w21, #0
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ieee80211_del_key
.subsections_via_symbols
