	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_reset_bss            ## -- Begin function ieee80211_reset_bss
	.p2align	4, 0x90
_ieee80211_reset_bss:                   ## @ieee80211_reset_bss
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_node_table_reset
	movq	%r14, %rdi
	callq	_ieee80211_reset_erp
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_alloc_node
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	8(%rbx), %r12
	movq	%r15, %rdi
	callq	_ieee80211_ref_node
	movq	%rax, 8(%rbx)
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_copy_bss
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_free_node            ## TAILCALL
LBB0_2:
	movl	(%r15), %edi
	movl	(%rbx), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_ADDR_COPY            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to setup initial BSS node"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_reset_bss            ; -- Begin function ieee80211_reset_bss
	.p2align	2
_ieee80211_reset_bss:                   ; @ieee80211_reset_bss
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	add	x21, x19, #4
	mov	x0, x21
	mov	x1, x20
	bl	_ieee80211_node_table_reset
	mov	x0, x19
	bl	_ieee80211_reset_erp
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_ieee80211_alloc_node
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x22, [x20, #8]
	mov	x0, x21
	bl	_ieee80211_ref_node
	str	x0, [x20, #8]
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_copy_bss
	ldr	w8, [x19]
	str	w8, [x21, #4]
	mov	x0, x22
	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
	b	_ieee80211_free_node
LBB0_2:
	ldr	w0, [x21]
	ldr	w1, [x20]
	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
	b	_IEEE80211_ADDR_COPY
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to setup initial BSS node"

.subsections_via_symbols
