	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getstainfo_common
_getstainfo_common:                     ## @getstainfo_common
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	$0, -56(%rbp)
	testq	%rdx, %rdx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_get_sta_space
	jmp	LBB0_3
LBB0_1:
	movq	_get_sta_space@GOTPCREL(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_ieee80211_iterate_nodes_vap
LBB0_3:
	movq	-56(%rbp), %r13
	movq	(%r15), %rax
	cmpq	%rax, %r13
	jbe	LBB0_5
## %bb.4:
	movq	%rax, -56(%rbp)
	movq	%rax, %r13
LBB0_5:
	testq	%r13, %r13
	je	LBB0_12
## %bb.6:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	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
	movq	%r13, %rdi
	callq	_IEEE80211_MALLOC
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, -48(%rbp)
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_get_sta_info
	jmp	LBB0_11
LBB0_12:
	movq	$0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_9:
	movq	_get_sta_info@GOTPCREL(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ieee80211_iterate_nodes_vap
LBB0_11:
	subq	-56(%rbp), %r13
	movq	%r13, (%r15)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_copyout
	movl	%eax, %ebx
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IEEE80211_FREE
LBB0_13:
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_ieee80211_free_node
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_getstainfo_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getstainfo_common
_getstainfo_common:                     ; @getstainfo_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0]
	str	xzr, [sp]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, sp
	mov	x1, x19
	bl	_get_sta_space
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x2, _get_sta_space@GOTPAGE
Lloh1:
	ldr	x2, [x2, _get_sta_space@GOTPAGEOFF]
	mov	x3, sp
	mov	x0, x23
	mov	x1, x22
	bl	_ieee80211_iterate_nodes_vap
LBB0_3:
	ldr	x24, [sp]
	ldr	x8, [x21]
	cmp	x24, x8
	b.ls	LBB0_5
; %bb.4:
	str	x8, [sp]
	mov	x24, x8
LBB0_5:
	cbz	x24, LBB0_9
; %bb.6:
Lloh2:
	adrp	x26, _M_TEMP@GOTPAGE
Lloh3:
	ldr	x26, [x26, _M_TEMP@GOTPAGEOFF]
Lloh4:
	adrp	x8, _IEEE80211_M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IEEE80211_M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _IEEE80211_M_ZERO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_M_ZERO@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x24
	bl	_IEEE80211_MALLOC
	cbz	x0, LBB0_10
; %bb.7:
	mov	x25, x0
	str	x0, [sp, #8]
	cbz	x19, LBB0_11
; %bb.8:
	mov	x0, sp
	mov	x1, x19
	bl	_get_sta_info
	b	LBB0_12
LBB0_9:
	mov	w20, #0
	str	xzr, [x21]
	b	LBB0_13
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x2, _get_sta_info@GOTPAGE
Lloh14:
	ldr	x2, [x2, _get_sta_info@GOTPAGEOFF]
	mov	x3, sp
	mov	x0, x23
	mov	x1, x22
	bl	_ieee80211_iterate_nodes_vap
LBB0_12:
	ldr	x8, [sp]
	sub	x2, x24, x8
	str	x2, [x21]
	ldr	x8, [x21, #8]
	add	x1, x8, x20, lsl #2
	mov	x0, x25
	bl	_copyout
	mov	x20, x0
	ldr	w1, [x26]
	mov	x0, x25
	bl	_IEEE80211_FREE
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_ieee80211_free_node
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_getstainfo_common
.subsections_via_symbols
