	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lacp_detach                    ## -- Begin function lacp_detach
	.p2align	4, 0x90
_lacp_detach:                           ## @lacp_detach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_TAILQ_EMPTY
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	leaq	4(%rbx), %rdi
	callq	_callout_drain
	movq	%rbx, %rdi
	callq	_callout_drain
	movq	%rbx, %rdi
	callq	_LACP_LOCK_DESTROY
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aggregators still active"

L_.str.1:                               ## @.str.1
	.asciz	"aggregator still attached"

	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lacp_detach                    ; -- Begin function lacp_detach
	.p2align	2
_lacp_detach:                           ; @lacp_detach
	.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
	add	x0, x0, #16
	bl	_TAILQ_EMPTY
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	add	x0, x19, #4
	bl	_callout_drain
	mov	x0, x19
	bl	_callout_drain
	mov	x0, x19
	bl	_LACP_LOCK_DESTROY
Lloh4:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aggregators still active"

l_.str.1:                               ; @.str.1
	.asciz	"aggregator still attached"

	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
.subsections_via_symbols
