	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_parse_key_old
_nl80211_parse_key_old:                 ## @nl80211_parse_key_old
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_NL80211_ATTR_KEY_DATA@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_nla_data
	movq	%rax, 56(%rbx)
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_len
	movq	%rax, 48(%rbx)
	movq	(%r14), %rax
LBB0_2:
	movq	_NL80211_ATTR_KEY_SEQ@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_nla_data
	movq	%rax, 40(%rbx)
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_len
	movq	%rax, 32(%rbx)
	movq	(%r14), %rax
LBB0_4:
	movq	_NL80211_ATTR_KEY_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_nla_get_u8
	movl	%eax, 64(%rbx)
	movq	(%r14), %rax
LBB0_6:
	movq	_NL80211_ATTR_KEY_CIPHER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_nla_get_u32
	movq	%rax, 24(%rbx)
	movq	(%r14), %rax
LBB0_8:
	movq	_NL80211_ATTR_KEY_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdx
	xorl	%ecx, %ecx
	testq	%rdx, %rdx
	setne	%cl
	movl	%ecx, (%rbx)
	movq	_NL80211_ATTR_KEY_DEFAULT_MGMT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	xorl	%esi, %esi
	testq	%rcx, %rcx
	setne	%sil
	movl	%esi, 4(%rbx)
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movabsq	$4294967297, %rdx               ## imm = 0x100000001
	movq	%rdx, 8(%rbx)
LBB0_10:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movl	$1, 12(%rbx)
LBB0_12:
	movq	_NL80211_ATTR_KEY_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.13:
	callq	_nla_get_u32
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	js	LBB0_22
## %bb.14:
	movq	_NUM_NL80211_KEYTYPES@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jle	LBB0_22
## %bb.15:
	movq	(%r14), %rax
LBB0_16:
	movq	_NL80211_ATTR_KEY_DEFAULT_TYPES@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	xorl	%r15d, %r15d
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_20
## %bb.17:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_NUM_NL80211_KEY_DEFAULT_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_NUM_NL80211_KEY_DEFAULT_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	_nl80211_key_default_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_nla_parse_nested
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_18:
	movq	_NL80211_KEY_DEFAULT_TYPE_UNICAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,8), %eax
	movl	%eax, 8(%rbx)
	movq	_NL80211_KEY_DEFAULT_TYPE_MULTICAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,8), %eax
	movl	%eax, 12(%rbx)
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_KEY_DATA,8,3      ## @NL80211_ATTR_KEY_DATA
	.comm	_NL80211_ATTR_KEY_SEQ,8,3       ## @NL80211_ATTR_KEY_SEQ
	.comm	_NL80211_ATTR_KEY_IDX,8,3       ## @NL80211_ATTR_KEY_IDX
	.comm	_NL80211_ATTR_KEY_CIPHER,8,3    ## @NL80211_ATTR_KEY_CIPHER
	.comm	_NL80211_ATTR_KEY_DEFAULT,8,3   ## @NL80211_ATTR_KEY_DEFAULT
	.comm	_NL80211_ATTR_KEY_DEFAULT_MGMT,8,3 ## @NL80211_ATTR_KEY_DEFAULT_MGMT
	.comm	_NL80211_ATTR_KEY_TYPE,8,3      ## @NL80211_ATTR_KEY_TYPE
	.comm	_NUM_NL80211_KEYTYPES,8,3       ## @NUM_NL80211_KEYTYPES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_ATTR_KEY_DEFAULT_TYPES,8,3 ## @NL80211_ATTR_KEY_DEFAULT_TYPES
	.comm	_NUM_NL80211_KEY_DEFAULT_TYPES,4,2 ## @NUM_NL80211_KEY_DEFAULT_TYPES
	.comm	_nl80211_key_default_policy,4,2 ## @nl80211_key_default_policy
	.comm	_NL80211_KEY_DEFAULT_TYPE_UNICAST,8,3 ## @NL80211_KEY_DEFAULT_TYPE_UNICAST
	.comm	_NL80211_KEY_DEFAULT_TYPE_MULTICAST,8,3 ## @NL80211_KEY_DEFAULT_TYPE_MULTICAST
	.no_dead_strip	_nl80211_parse_key_old
.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_old
_nl80211_parse_key_old:                 ; @nl80211_parse_key_old
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _NL80211_ATTR_KEY_DATA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NL80211_ATTR_KEY_DATA@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_nla_data
	str	x0, [x19, #56]
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_len
	str	x0, [x19, #48]
	ldr	x8, [x20]
LBB0_2:
Lloh5:
	adrp	x21, _NL80211_ATTR_KEY_SEQ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _NL80211_ATTR_KEY_SEQ@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_nla_data
	str	x0, [x19, #40]
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_len
	str	x0, [x19, #32]
	ldr	x8, [x20]
LBB0_4:
Lloh7:
	adrp	x9, _NL80211_ATTR_KEY_IDX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_ATTR_KEY_IDX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_nla_get_u8
	str	w0, [x19, #64]
	ldr	x8, [x20]
LBB0_6:
Lloh10:
	adrp	x9, _NL80211_ATTR_KEY_CIPHER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NL80211_ATTR_KEY_CIPHER@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_nla_get_u32
	str	x0, [x19, #24]
	ldr	x8, [x20]
LBB0_8:
Lloh13:
	adrp	x9, _NL80211_ATTR_KEY_DEFAULT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NL80211_ATTR_KEY_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x10, [x8, x9, lsl #3]
	cmp	x10, #0
	cset	w11, ne
Lloh16:
	adrp	x9, _NL80211_ATTR_KEY_DEFAULT_MGMT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NL80211_ATTR_KEY_DEFAULT_MGMT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #0
	cset	w12, ne
	stp	w11, w12, [x19]
	cbz	x10, LBB0_10
; %bb.9:
	movi.2s	v0, #1
	str	d0, [x19, #8]
LBB0_10:
	cbz	x9, LBB0_12
; %bb.11:
	mov	w9, #1
	str	w9, [x19, #12]
LBB0_12:
Lloh19:
	adrp	x9, _NL80211_ATTR_KEY_TYPE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NL80211_ATTR_KEY_TYPE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_16
; %bb.13:
	bl	_nla_get_u32
	str	x0, [x19, #16]
	tbnz	x0, #63, LBB0_20
; %bb.14:
Lloh22:
	adrp	x8, _NUM_NL80211_KEYTYPES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NUM_NL80211_KEYTYPES@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_20
; %bb.15:
	ldr	x8, [x20]
LBB0_16:
Lloh25:
	adrp	x12, _NL80211_ATTR_KEY_DEFAULT_TYPES@GOTPAGE
Lloh26:
	ldr	x12, [x12, _NL80211_ATTR_KEY_DEFAULT_TYPES@GOTPAGEOFF]
	ldr	x9, [x12]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_21
; %bb.17:
	mov	x22, sp
Lloh27:
	adrp	x13, _NUM_NL80211_KEY_DEFAULT_TYPES@GOTPAGE
Lloh28:
	ldr	x13, [x13, _NUM_NL80211_KEY_DEFAULT_TYPES@GOTPAGEOFF]
	ldr	w8, [x13]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh29:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh30:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x13]
	sub	w1, w8, #1
	ldr	x8, [x20]
	ldr	x9, [x12]
	ldr	x2, [x8, x9, lsl #3]
Lloh31:
	adrp	x8, _nl80211_key_default_policy@GOTPAGE
Lloh32:
	ldr	x8, [x8, _nl80211_key_default_policy@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_nla_parse_nested
	cbnz	w0, LBB0_19
; %bb.18:
Lloh34:
	adrp	x8, _NL80211_KEY_DEFAULT_TYPE_UNICAST@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NL80211_KEY_DEFAULT_TYPE_UNICAST@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
Lloh37:
	adrp	x9, _NL80211_KEY_DEFAULT_TYPE_MULTICAST@GOTPAGE
Lloh38:
	ldr	x9, [x9, _NL80211_KEY_DEFAULT_TYPE_MULTICAST@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	ldr	x9, [x21, x9, lsl #3]
	stp	w8, w9, [x19, #8]
LBB0_19:
	mov	sp, x22
	b	LBB0_22
LBB0_20:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldur	x8, [x29, #-40]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_KEY_DATA,8,3      ; @NL80211_ATTR_KEY_DATA
	.comm	_NL80211_ATTR_KEY_SEQ,8,3       ; @NL80211_ATTR_KEY_SEQ
	.comm	_NL80211_ATTR_KEY_IDX,8,3       ; @NL80211_ATTR_KEY_IDX
	.comm	_NL80211_ATTR_KEY_CIPHER,8,3    ; @NL80211_ATTR_KEY_CIPHER
	.comm	_NL80211_ATTR_KEY_DEFAULT,8,3   ; @NL80211_ATTR_KEY_DEFAULT
	.comm	_NL80211_ATTR_KEY_DEFAULT_MGMT,8,3 ; @NL80211_ATTR_KEY_DEFAULT_MGMT
	.comm	_NL80211_ATTR_KEY_TYPE,8,3      ; @NL80211_ATTR_KEY_TYPE
	.comm	_NUM_NL80211_KEYTYPES,8,3       ; @NUM_NL80211_KEYTYPES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_ATTR_KEY_DEFAULT_TYPES,8,3 ; @NL80211_ATTR_KEY_DEFAULT_TYPES
	.comm	_NUM_NL80211_KEY_DEFAULT_TYPES,4,2 ; @NUM_NL80211_KEY_DEFAULT_TYPES
	.comm	_nl80211_key_default_policy,4,2 ; @nl80211_key_default_policy
	.comm	_NL80211_KEY_DEFAULT_TYPE_UNICAST,8,3 ; @NL80211_KEY_DEFAULT_TYPE_UNICAST
	.comm	_NL80211_KEY_DEFAULT_TYPE_MULTICAST,8,3 ; @NL80211_KEY_DEFAULT_TYPE_MULTICAST
	.no_dead_strip	_nl80211_parse_key_old
.subsections_via_symbols
