	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_getkey
_ieee80211_ioctl_getkey:                ## @ieee80211_ioctl_getkey
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$64, (%rsi)
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	4(%rsi), %edi
	leaq	-104(%rbp), %rsi
	movl	$64, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	-104(%rbp), %rax
	movq	_IEEE80211_KEYIX_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_find_vap_node
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %r14
	jmp	LBB0_7
LBB0_5:
	movq	_IEEE80211_WEP_NKID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_11
## %bb.6:
	imulq	$56, %rax, %r15
	addq	16(%rbx), %r15
	leaq	-48(%rbp), %rdi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_IEEE80211_ADDR_COPY
	xorl	%r14d, %r14d
LBB0_7:
	movq	48(%r15), %r13
	movq	(%r13), %rax
	movq	%rax, -96(%rbp)
	movq	24(%r15), %rax
	movq	%rax, -56(%rbp)
	movq	_IEEE80211_KEY_XMIT@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_KEY_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	andl	(%r15), %eax
	movl	%eax, -88(%rbp)
	movq	8(%r15), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_9
## %bb.8:
	movq	_IEEE80211_KEY_DEFAULT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -88(%rbp)
LBB0_9:
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PRIV_NET80211_GETKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_16
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	40(%r15), %rax
	movq	_IEEE80211_NONQOS_TID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)
	movq	32(%r15), %rax
	movq	%rax, -72(%rbp)
	movq	-80(%rbp), %rdi
	movq	16(%r15), %rsi
	movq	24(%r15), %rdx
	callq	_memcpy
	movq	(%r13), %rax
	movq	_IEEE80211_CIPHER_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	24(%r15), %rdi
	addq	-80(%rbp), %rdi
	movq	_IEEE80211_KEYBUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	movq	_IEEE80211_MICBUF_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_memcpy
	movq	(%rbx), %rax
	addq	%rax, -56(%rbp)
LBB0_16:
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_ieee80211_free_node
LBB0_18:
	movl	4(%r12), %esi
	leaq	-104(%rbp), %rdi
	movl	$64, %edx
	callq	_copyout
	jmp	LBB0_13
LBB0_19:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_KEYIX_NONE,8,3       ## @IEEE80211_KEYIX_NONE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_WEP_NKID,8,3         ## @IEEE80211_WEP_NKID
	.comm	_IEEE80211_KEY_XMIT,4,2         ## @IEEE80211_KEY_XMIT
	.comm	_IEEE80211_KEY_RECV,4,2         ## @IEEE80211_KEY_RECV
	.comm	_IEEE80211_KEY_DEFAULT,4,2      ## @IEEE80211_KEY_DEFAULT
	.comm	_curthread,4,2                  ## @curthread
	.comm	_PRIV_NET80211_GETKEY,4,2       ## @PRIV_NET80211_GETKEY
	.comm	_IEEE80211_NONQOS_TID,8,3       ## @IEEE80211_NONQOS_TID
	.comm	_IEEE80211_CIPHER_TKIP,8,3      ## @IEEE80211_CIPHER_TKIP
	.comm	_IEEE80211_KEYBUF_SIZE,8,3      ## @IEEE80211_KEYBUF_SIZE
	.comm	_IEEE80211_MICBUF_SIZE,8,3      ## @IEEE80211_MICBUF_SIZE
	.no_dead_strip	_ieee80211_ioctl_getkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_getkey
_ieee80211_ioctl_getkey:                ; @ieee80211_ioctl_getkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w8, [x1]
	cmp	w8, #64
	b.ne	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #24]
	ldr	w0, [x1, #4]
	mov	x1, sp
	mov	w2, #64
	bl	_copyin
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	x8, [sp]
Lloh0:
	adrp	x9, _IEEE80211_KEYIX_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_KEYIX_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w2, [sp, #56]
	mov	x0, x20
	mov	x1, x21
	bl	_ieee80211_find_vap_node
	cbz	x0, LBB0_19
; %bb.4:
	mov	x22, x0
	mov	x20, x0
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x9, _IEEE80211_WEP_NKID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_WEP_NKID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_11
; %bb.6:
	mov	w9, #56
	ldp	x11, x10, [x21, #8]
	madd	x22, x8, x9, x10
	mov	x8, sp
	add	x0, x8, #56
	ldr	w1, [x11]
	bl	_IEEE80211_ADDR_COPY
	mov	x20, #0
LBB0_7:
	ldr	x23, [x22, #48]
	ldr	x8, [x23]
	ldr	x9, [x22, #24]
	str	x8, [sp, #8]
	str	x9, [sp, #48]
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _IEEE80211_KEY_XMIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_KEY_XMIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _IEEE80211_KEY_RECV@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_KEY_RECV@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	str	w8, [sp, #16]
	ldr	x9, [x22, #8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x9, _IEEE80211_KEY_DEFAULT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_KEY_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_9:
Lloh15:
	adrp	x8, _curthread@GOTPAGE
Lloh16:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _PRIV_NET80211_GETKEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PRIV_NET80211_GETKEY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_priv_check
	cbz	x0, LBB0_14
; %bb.10:
	stp	xzr, xzr, [sp, #32]
	ldr	x0, [sp, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	b	LBB0_16
LBB0_11:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	ldr	x8, [x22, #40]
Lloh23:
	adrp	x9, _IEEE80211_NONQOS_TID@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IEEE80211_NONQOS_TID@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp, #40]
	ldr	x8, [x22, #32]
	str	x8, [sp, #32]
	ldr	x0, [sp, #24]
	ldp	x1, x2, [x22, #16]
	bl	_memcpy
	ldr	x8, [x23]
Lloh26:
	adrp	x9, _IEEE80211_CIPHER_TKIP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IEEE80211_CIPHER_TKIP@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	x8, [sp, #24]
	ldp	x10, x9, [x22, #16]
Lloh29:
	adrp	x11, _IEEE80211_KEYBUF_SIZE@GOTPAGE
Lloh30:
	ldr	x11, [x11, _IEEE80211_KEYBUF_SIZE@GOTPAGEOFF]
	add	x0, x9, x8
Lloh31:
	ldr	x8, [x11]
	add	x1, x8, x10
Lloh32:
	adrp	x21, _IEEE80211_MICBUF_SIZE@GOTPAGE
Lloh33:
	ldr	x21, [x21, _IEEE80211_MICBUF_SIZE@GOTPAGEOFF]
	ldr	x2, [x21]
	bl	_memcpy
	ldr	x8, [x21]
	ldr	x9, [sp, #48]
	add	x8, x9, x8
	str	x8, [sp, #48]
LBB0_16:
	cbz	x20, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_ieee80211_free_node
LBB0_18:
	ldr	w1, [x19, #4]
	mov	x0, sp
	mov	w2, #64
	bl	_copyout
	b	LBB0_13
LBB0_19:
Lloh34:
	adrp	x8, _ENOENT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_KEYIX_NONE,8,3       ; @IEEE80211_KEYIX_NONE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_WEP_NKID,8,3         ; @IEEE80211_WEP_NKID
	.comm	_IEEE80211_KEY_XMIT,4,2         ; @IEEE80211_KEY_XMIT
	.comm	_IEEE80211_KEY_RECV,4,2         ; @IEEE80211_KEY_RECV
	.comm	_IEEE80211_KEY_DEFAULT,4,2      ; @IEEE80211_KEY_DEFAULT
	.comm	_curthread,4,2                  ; @curthread
	.comm	_PRIV_NET80211_GETKEY,4,2       ; @PRIV_NET80211_GETKEY
	.comm	_IEEE80211_NONQOS_TID,8,3       ; @IEEE80211_NONQOS_TID
	.comm	_IEEE80211_CIPHER_TKIP,8,3      ; @IEEE80211_CIPHER_TKIP
	.comm	_IEEE80211_KEYBUF_SIZE,8,3      ; @IEEE80211_KEYBUF_SIZE
	.comm	_IEEE80211_MICBUF_SIZE,8,3      ; @IEEE80211_MICBUF_SIZE
	.no_dead_strip	_ieee80211_ioctl_getkey
.subsections_via_symbols
