	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_getstavlan
_ieee80211_ioctl_getstavlan:            ## @ieee80211_ioctl_getstavlan
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$8, (%rsi)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%rsi), %edi
	leaq	-32(%rbp), %rsi
	movl	$8, %edx
	callq	_copyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	-28(%rbp), %edi
	movq	_zerobssid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IEEE80211_ADDR_EQ
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	(%r14), %edi
	callq	_ieee80211_ref_node
	movq	%rax, %r14
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	8(%r14), %rdi
	movl	-28(%rbp), %edx
	movq	%r14, %rsi
	callq	_ieee80211_find_vap_node
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movl	(%r14), %eax
	movl	%eax, -32(%rbp)
	movl	4(%r15), %esi
	leaq	-32(%rbp), %rdi
	movl	$8, %edx
	callq	_copyout
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ieee80211_free_node
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_zerobssid,4,2                  ## @zerobssid
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ieee80211_ioctl_getstavlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_getstavlan
_ieee80211_ioctl_getstavlan:            ; @ieee80211_ioctl_getstavlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w8, [x1]
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #4]
	add	x1, sp, #8
	mov	w2, #8
	bl	_copyin
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x8, _zerobssid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zerobssid@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IEEE80211_ADDR_EQ
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	bl	_ieee80211_ref_node
	mov	x20, x0
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_5:
	ldr	x0, [x20, #8]
	ldr	w2, [sp, #12]
	mov	x1, x20
	bl	_ieee80211_find_vap_node
	mov	x20, x0
	cbz	x0, LBB0_8
LBB0_6:
	ldr	w8, [x20]
	str	w8, [sp, #8]
	ldr	w1, [x19, #4]
	add	x0, sp, #8
	mov	w2, #8
	bl	_copyout
	mov	x21, x0
	mov	x0, x20
	bl	_ieee80211_free_node
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_8:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_zerobssid,4,2                  ; @zerobssid
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ieee80211_ioctl_getstavlan
.subsections_via_symbols
