	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bstp_destroy                   ## -- Begin function bstp_destroy
	.p2align	4, 0x90
_bstp_destroy:                          ## @bstp_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_taskqueue_swi@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	24(%rbx), %rsi
	callq	_taskqueue_drain
	movl	(%r14), %edi
	leaq	20(%rbx), %rsi
	callq	_taskqueue_drain
	movl	(%r14), %edi
	leaq	16(%rbx), %rsi
	callq	_taskqueue_drain
	movq	8(%rbx), %rdi
	cmpq	%rbx, (%rdi)
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bstp_assign_roles              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port is still attached"

	.comm	_taskqueue_swi,4,2              ## @taskqueue_swi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bstp_destroy                   ; -- Begin function bstp_destroy
	.p2align	2
_bstp_destroy:                          ; @bstp_destroy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh2:
	adrp	x20, _taskqueue_swi@GOTPAGE
Lloh3:
	ldr	x20, [x20, _taskqueue_swi@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, x19, #24
	bl	_taskqueue_drain
	ldr	w0, [x20]
	add	x1, x19, #20
	bl	_taskqueue_drain
	ldr	w0, [x20]
	add	x1, x19, #16
	bl	_taskqueue_drain
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cmp	x8, x19
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bstp_assign_roles
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port is still attached"

	.comm	_taskqueue_swi,4,2              ; @taskqueue_swi
.subsections_via_symbols
