	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_set_key
_nl80211_set_key:                       ## @nl80211_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	movq	(%rsi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r14
	leaq	-64(%rbp), %rsi
	callq	_nl80211_parse_key
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	cmpq	$0, -64(%rbp)
	js	LBB0_2
## %bb.3:
	cmpq	$0, -40(%rbp)
	jne	LBB0_5
## %bb.4:
	cmpl	$0, -32(%rbp)
	jne	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movq	(%r14), %rdi
	callq	_wdev_lock
	cmpq	$0, -40(%rbp)
	je	LBB0_11
## %bb.6:
	movq	8(%r15), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_7
## %bb.9:
	movq	(%r14), %rdi
	callq	_nl80211_key_allowed
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	movq	-64(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movl	-56(%rbp), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rdev_set_default_key
	jmp	LBB0_17
LBB0_11:
	cmpq	$0, -48(%rbp)
	jne	LBB0_13
## %bb.12:
	cmpl	$0, -56(%rbp)
	je	LBB0_13
## %bb.14:
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.15:
	movq	(%r14), %rdi
	callq	_nl80211_key_allowed
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:
	movq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rdev_set_default_mgmt_key
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movq	(%r14), %rdi
	callq	_wdev_unlock
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_nl80211_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_set_key
_nl80211_set_key:                       ; @nl80211_set_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x0, x1
	ldr	x8, [x1]
	ldp	x20, x19, [x8]
	add	x1, sp, #8
	bl	_nl80211_parse_key
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.1:
	ldr	x8, [sp, #8]
	tbnz	x8, #63, LBB0_4
; %bb.2:
	ldr	x8, [sp, #32]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	w8, [sp, #40]
	cbnz	w8, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_5:
	ldr	x0, [x19]
	bl	_wdev_lock
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_15
; %bb.7:
	ldr	x0, [x19]
	bl	_nl80211_key_allowed
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.8:
	ldr	x2, [sp, #8]
	ldr	x3, [sp, #24]
	ldr	w4, [sp, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_rdev_set_default_key
	b	LBB0_14
LBB0_9:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_16
; %bb.10:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_16
; %bb.11:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.12:
	ldr	x0, [x19]
	bl	_nl80211_key_allowed
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.13:
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_rdev_set_default_mgmt_key
LBB0_14:
	mov	x21, x0
	b	LBB0_18
LBB0_15:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	ldr	x0, [x19]
	bl	_wdev_unlock
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_nl80211_set_key
.subsections_via_symbols
