	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_new_key
_nl80211_new_key:                       ## @nl80211_new_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	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %r13
	movq	8(%rax), %r14
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nl80211_parse_key
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	cmpl	$0, -52(%rbp)
	je	LBB0_2
## %bb.4:
	movq	(%rbx), %rax
	movq	_NL80211_ATTR_MAC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	callq	_nla_data
	movq	%rax, %r15
	movl	-56(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.6:
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	movq	_NL80211_KEYTYPE_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	jmp	LBB0_11
LBB0_8:
	movl	-56(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_10
LBB0_9:
	movq	_NL80211_KEYTYPE_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_NL80211_KEYTYPE_PAIRWISE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	cmpl	%edx, %eax
	je	LBB0_13
## %bb.12:
	movq	_NL80211_KEYTYPE_GROUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_13:
	movq	8(%r13), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_14
## %bb.15:
	leaq	-52(%rbp), %rsi
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	sete	%cl
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movq	%r15, %r8
	callq	_cfg80211_validate_key_settings
	testq	%rax, %rax
	je	LBB0_16
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	movl	(%r14), %edi
	callq	_wdev_lock
	movl	(%r14), %edi
	callq	_nl80211_key_allowed
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	-56(%rbp), %eax
	movl	-48(%rbp), %edx
	xorl	%ecx, %ecx
	cmpl	(%rbx), %eax
	sete	%cl
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %r8
	leaq	-52(%rbp), %r9
	callq	_rdev_add_key
	movl	%eax, %r12d
LBB0_18:
	movl	(%r14), %edi
	callq	_wdev_unlock
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_nl80211_new_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_new_key
_nl80211_new_key:                       ; @nl80211_new_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]
	mov	x22, sp
	mov	x1, sp
	mov	x0, x21
	bl	_nl80211_parse_key
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_13
; %bb.2:
	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	x24, _NL80211_KEYTYPE_PAIRWISE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NL80211_KEYTYPE_PAIRWISE@GOTPAGEOFF]
Lloh5:
	adrp	x23, _NL80211_KEYTYPE_GROUP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NL80211_KEYTYPE_GROUP@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_nla_data
	mov	x21, x0
	ldr	w8, [sp]
	cmn	w8, #1
	b.ne	LBB0_10
; %bb.4:
	cbz	x21, LBB0_8
; %bb.5:
	ldr	w8, [x24]
	b	LBB0_9
LBB0_6:
	ldr	w8, [sp]
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.7:
	mov	x21, #0
	b	LBB0_10
LBB0_8:
	mov	x21, #0
	ldr	w8, [x23]
LBB0_9:
	str	w8, [sp]
LBB0_10:
	ldr	w9, [x24]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_13
; %bb.11:
	ldr	x10, [x20, #8]
	ldr	w10, [x10]
	cbz	w10, LBB0_16
; %bb.12:
	orr	x22, x22, #0x4
	cmp	w8, w9
	cset	w3, eq
	ldr	w2, [sp, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	bl	_cfg80211_validate_key_settings
	cbz	x0, LBB0_17
LBB0_13:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	mov	x0, x23
	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
LBB0_16:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_14
LBB0_17:
	ldr	w0, [x19]
	bl	_wdev_lock
	ldr	w0, [x19]
	bl	_nl80211_key_allowed
	mov	x23, x0
	cbnz	w0, LBB0_19
; %bb.18:
	ldr	w2, [sp, #8]
	ldr	w8, [sp]
	ldr	w9, [x24]
	cmp	w8, w9
	cset	w3, eq
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	mov	x5, x22
	bl	_rdev_add_key
	mov	x23, x0
LBB0_19:
	ldr	w0, [x19]
	bl	_wdev_unlock
	b	LBB0_15
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_nl80211_new_key
.subsections_via_symbols
