	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_getwpaie
_ieee80211_ioctl_getwpaie:              ## @ieee80211_ioctl_getwpaie
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_2:
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_IEEE80211_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$12, %edi
	callq	_IEEE80211_MALLOC
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	4(%r13), %edi
	movl	8(%rax), %esi
	movl	(%rbx), %edx
	callq	_copyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:
	movq	(%r15), %rdi
	movl	8(%r14), %edx
	movq	%r15, %rsi
	callq	_ieee80211_find_vap_node
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	4(%rsi), %eax
	addl	$2, %eax
	cmpl	$4, %eax
	movl	$4, %edx
	cmovbl	%eax, %edx
	movl	(%r14), %edi
	callq	_memcpy
LBB0_9:
	movq	_IEEE80211_IOC_WPAIE2@GOTPCREL(%rip), %rax
	movq	8(%r15), %rsi
	cmpl	%r12d, (%rax)
	jne	LBB0_13
## %bb.10:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	movl	4(%rsi), %eax
	addl	$2, %eax
	cmpl	$4, %eax
	movl	$4, %edx
	cmovbl	%eax, %edx
	movl	4(%r14), %edi
	callq	_memcpy
LBB0_12:
	movl	$12, %eax
	cmpl	$12, (%r13)
	ja	LBB0_16
	jmp	LBB0_17
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_13:
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movl	4(%rsi), %eax
	addl	$2, %eax
	cmpl	$4, %eax
	movl	$4, %edx
	cmovbl	%eax, %edx
	movl	(%r14), %edi
	callq	_memcpy
LBB0_15:
	movl	$4, %eax
	cmpl	$5, (%r13)
	jb	LBB0_17
LBB0_16:
	movl	%eax, (%r13)
LBB0_17:
	movq	%r15, %rdi
	callq	_ieee80211_free_node
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%r14, %rdi
	callq	_copyout
	movl	%eax, %ebx
LBB0_18:
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IEEE80211_FREE
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDR_LEN,4,2         ## @IEEE80211_ADDR_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_IEEE80211_M_NOWAIT,4,2         ## @IEEE80211_M_NOWAIT
	.comm	_IEEE80211_M_ZERO,4,2           ## @IEEE80211_M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_IOC_WPAIE2,4,2       ## @IEEE80211_IOC_WPAIE2
	.no_dead_strip	_ieee80211_ioctl_getwpaie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_getwpaie
_ieee80211_ioctl_getwpaie:              ; @ieee80211_ioctl_getwpaie
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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]
Lloh0:
	adrp	x23, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	b	LBB0_21
LBB0_2:
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh5:
	adrp	x24, _M_TEMP@GOTPAGE
Lloh6:
	ldr	x24, [x24, _M_TEMP@GOTPAGEOFF]
Lloh7:
	adrp	x8, _IEEE80211_M_NOWAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE80211_M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IEEE80211_M_ZERO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_M_ZERO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #12
	bl	_IEEE80211_MALLOC
	cbz	x0, LBB0_12
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	bl	_copyin
	mov	x23, x0
	cbnz	w0, LBB0_20
; %bb.4:
	ldr	x0, [x21]
	ldr	w2, [x20, #8]
	mov	x1, x21
	bl	_ieee80211_find_vap_node
	cbz	x0, LBB0_13
; %bb.5:
	mov	x21, x0
	ldr	x1, [x0]
	cbz	x1, LBB0_7
; %bb.6:
	ldr	w8, [x1, #4]
	add	w8, w8, #2
	mov	w9, #4
	cmp	w8, #4
	csel	w2, w8, w9, lo
	ldr	w0, [x20]
	bl	_memcpy
LBB0_7:
Lloh13:
	adrp	x8, _IEEE80211_IOC_WPAIE2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_IOC_WPAIE2@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x1, [x21, #8]
	cmp	w8, w22
	b.ne	LBB0_14
; %bb.8:
	cbz	x1, LBB0_10
; %bb.9:
	ldr	w8, [x1, #4]
	add	w8, w8, #2
	mov	w9, #4
	cmp	w8, #4
	csel	w2, w8, w9, lo
	ldr	w0, [x20, #4]
	bl	_memcpy
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #12
	b.ls	LBB0_19
; %bb.11:
	mov	w8, #12
	b	LBB0_18
LBB0_12:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	b	LBB0_21
LBB0_13:
Lloh19:
	adrp	x8, _ENOENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
	b	LBB0_20
LBB0_14:
	cbz	x1, LBB0_16
; %bb.15:
	ldr	w8, [x1, #4]
	add	w8, w8, #2
	mov	w9, #4
	cmp	w8, #4
	csel	w2, w8, w9, lo
	ldr	w0, [x20]
	bl	_memcpy
LBB0_16:
	ldr	w8, [x19]
	cmp	w8, #5
	b.lo	LBB0_19
; %bb.17:
	mov	w8, #4
LBB0_18:
	str	w8, [x19]
LBB0_19:
	mov	x0, x21
	bl	_ieee80211_free_node
	ldp	w2, w1, [x19]
	mov	x0, x20
	bl	_copyout
	mov	x23, x0
LBB0_20:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_IEEE80211_FREE
LBB0_21:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDR_LEN,4,2         ; @IEEE80211_ADDR_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_IEEE80211_M_NOWAIT,4,2         ; @IEEE80211_M_NOWAIT
	.comm	_IEEE80211_M_ZERO,4,2           ; @IEEE80211_M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_IOC_WPAIE2,4,2       ; @IEEE80211_IOC_WPAIE2
	.no_dead_strip	_ieee80211_ioctl_getwpaie
.subsections_via_symbols
