	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_parse_key
_nl80211_parse_key:                     ## @nl80211_parse_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	$-1, (%rbx)
	movq	(%r14), %rax
	movq	_NL80211_ATTR_KEY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rsi
	callq	_nl80211_parse_key_new
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nl80211_parse_key_old
	testl	%eax, %eax
	jne	LBB0_14
LBB0_4:
	cmpq	$0, 8(%rbx)
	movq	16(%rbx), %rax
	je	LBB0_7
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	movl	(%rbx), %ecx
	incl	%ecx
	xorl	%eax, %eax
	cmpl	$5, %ecx
	jae	LBB0_13
	jmp	LBB0_14
LBB0_7:
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpq	$0, 32(%rbx)
	jne	LBB0_13
## %bb.9:
	cmpl	$0, 24(%rbx)
	je	LBB0_13
## %bb.10:
	movl	(%rbx), %ecx
	incl	%ecx
	cmpl	$6, %ecx
	ja	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	movl	$97, %edx
	btl	%ecx, %edx
	jb	LBB0_14
	jmp	LBB0_13
LBB0_12:
	movl	(%rbx), %ecx
	incl	%ecx
	xorl	%eax, %eax
	cmpl	$7, %ecx
	jb	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_KEY,8,3           ## @NL80211_ATTR_KEY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nl80211_parse_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_parse_key
_nl80211_parse_key:                     ; @nl80211_parse_key
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NL80211_ATTR_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_KEY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_nl80211_parse_key_new
	cbnz	w0, LBB0_14
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_nl80211_parse_key_old
	cbnz	w0, LBB0_14
LBB0_3:
	ldp	x9, x8, [x19, #8]
	cbz	x9, LBB0_6
; %bb.4:
	cbnz	x8, LBB0_13
; %bb.5:
	ldr	w8, [x19]
	add	w8, w8, #1
	cmp	w8, #5
	b.hs	LBB0_13
	b	LBB0_11
LBB0_6:
	cbz	x8, LBB0_12
; %bb.7:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_13
; %bb.8:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_13
; %bb.9:
	ldr	w8, [x19]
	add	w8, w8, #1
	cmp	w8, #6
	b.hi	LBB0_13
; %bb.10:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #97
	tst	w8, w9
	b.eq	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	ldr	w8, [x19]
	add	w8, w8, #1
	cmp	w8, #7
	b.lo	LBB0_11
LBB0_13:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_KEY,8,3           ; @NL80211_ATTR_KEY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nl80211_parse_key
.subsections_via_symbols
