	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_del_key
_nl80211_del_key:                       ## @nl80211_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %r14
	movq	8(%rax), %r12
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nl80211_parse_key
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.1:
	movq	(%rbx), %rax
	movq	_NL80211_ATTR_MAC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	callq	_nla_data
	movq	%rax, %r15
	movl	-48(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	_NL80211_KEYTYPE_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	jmp	LBB0_8
LBB0_5:
	movl	-48(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_7
LBB0_6:
	movq	_NL80211_KEYTYPE_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	_NL80211_KEYTYPE_PAIRWISE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	je	LBB0_12
## %bb.9:
	movq	_NL80211_KEYTYPE_GROUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movq	16(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.14:
	movq	(%r12), %rdi
	callq	_wdev_lock
	movq	(%r12), %rdi
	callq	_nl80211_key_allowed
	movl	%eax, %r13d
	movl	-48(%rbp), %eax
	movl	(%rbx), %edx
	cmpl	%edx, %eax
	jne	LBB0_18
## %bb.15:
	testq	%r15, %r15
	je	LBB0_18
## %bb.16:
	movq	_WIPHY_FLAG_IBSS_RSN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r14)
	jne	LBB0_18
## %bb.17:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
LBB0_18:
	testl	%r13d, %r13d
	jne	LBB0_20
## %bb.19:
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	sete	%cl
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	callq	_rdev_del_key
	movl	%eax, %r13d
LBB0_20:
	movq	(%r12), %rdi
	callq	_wdev_unlock
	jmp	LBB0_21
LBB0_13:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_MAC,8,3           ## @NL80211_ATTR_MAC
	.comm	_NL80211_KEYTYPE_PAIRWISE,4,2   ## @NL80211_KEYTYPE_PAIRWISE
	.comm	_NL80211_KEYTYPE_GROUP,4,2      ## @NL80211_KEYTYPE_GROUP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ## @WIPHY_FLAG_IBSS_RSN
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_nl80211_del_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_del_key
_nl80211_del_key:                       ; @nl80211_del_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	ldr	x8, [x1, #8]
	ldp	x20, x19, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_nl80211_parse_key
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_ATTR_MAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_MAC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
Lloh3:
	adrp	x23, _NL80211_KEYTYPE_PAIRWISE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NL80211_KEYTYPE_PAIRWISE@GOTPAGEOFF]
Lloh5:
	adrp	x22, _NL80211_KEYTYPE_GROUP@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NL80211_KEYTYPE_GROUP@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_nla_data
	mov	x21, x0
	ldr	w8, [sp, #8]
	cmn	w8, #1
	b.ne	LBB0_9
; %bb.3:
	cbz	x21, LBB0_7
; %bb.4:
	ldr	w8, [x23]
	b	LBB0_8
LBB0_5:
	ldr	w8, [sp, #8]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.6:
	mov	x21, #0
	b	LBB0_9
LBB0_7:
	mov	x21, #0
	ldr	w8, [x22]
LBB0_8:
	str	w8, [sp, #8]
LBB0_9:
	ldr	w9, [x23]
	ldr	w10, [x22]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_17
; %bb.10:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_18
; %bb.11:
	ldr	x0, [x19]
	bl	_wdev_lock
	ldr	x0, [x19]
	bl	_nl80211_key_allowed
	mov	x22, x0
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	cmp	w8, w9
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_14
; %bb.12:
	ldr	w10, [x20, #8]
Lloh7:
	adrp	x11, _WIPHY_FLAG_IBSS_RSN@GOTPAGE
Lloh8:
	ldr	x11, [x11, _WIPHY_FLAG_IBSS_RSN@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_14
; %bb.13:
Lloh10:
	adrp	x10, _ENOENT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	neg	w22, w10
LBB0_14:
	cbnz	w22, LBB0_16
; %bb.15:
	cmp	w8, w9
	cset	w3, eq
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_rdev_del_key
	mov	x22, x0
LBB0_16:
	ldr	x0, [x19]
	bl	_wdev_unlock
	b	LBB0_20
LBB0_17:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_20:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_MAC,8,3           ; @NL80211_ATTR_MAC
	.comm	_NL80211_KEYTYPE_PAIRWISE,4,2   ; @NL80211_KEYTYPE_PAIRWISE
	.comm	_NL80211_KEYTYPE_GROUP,4,2      ; @NL80211_KEYTYPE_GROUP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ; @WIPHY_FLAG_IBSS_RSN
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_nl80211_del_key
.subsections_via_symbols
