	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carp_destroy
_carp_destroy:                          ## @carp_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
	movq	32(%rdi), %rax
	movq	(%rax), %r14
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_carp_sx@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_V_carp_ifdown_adj@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_carp_demote_adj
LBB0_2:
	movq	%rbx, %rdi
	callq	_CARP_UNLOCK
	movq	%r14, %rdi
	callq	_CIF_LOCK
	movq	_sc_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%r14, %rdi
	callq	_CIF_UNLOCK
	movq	_carp_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_sc_next@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	%r14, %rdi
	callq	_mtx_unlock
	leaq	16(%rbx), %rdi
	callq	_callout_drain
	movq	%rbx, %rdi
	callq	_CARP_LOCK_DESTROY
	movq	(%rbx), %rdi
	movq	_M_CARP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_free
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_carp_sx,4,2                    ## @carp_sx
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_V_carp_ifdown_adj,4,2          ## @V_carp_ifdown_adj
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vhid removed"

	.comm	_sc_list,4,2                    ## @sc_list
	.comm	_carp_mtx,4,2                   ## @carp_mtx
	.comm	_sc_next,4,2                    ## @sc_next
	.comm	_M_CARP,4,2                     ## @M_CARP
	.no_dead_strip	_carp_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carp_destroy
_carp_destroy:                          ; @carp_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, #32]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _SA_XLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_XLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _carp_sx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _carp_sx@GOTPAGEOFF]
	bl	_sx_assert
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _V_carp_ifdown_adj@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V_carp_ifdown_adj@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_carp_demote_adj
LBB0_2:
	mov	x0, x19
	bl	_CARP_UNLOCK
	mov	x0, x20
	bl	_CIF_LOCK
Lloh10:
	adrp	x8, _sc_list@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sc_list@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_CIF_UNLOCK
Lloh13:
	adrp	x20, _carp_mtx@GOTPAGE
Lloh14:
	ldr	x20, [x20, _carp_mtx@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh15:
	adrp	x8, _sc_next@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sc_next@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LIST_REMOVE
	mov	x0, x20
	bl	_mtx_unlock
	add	x0, x19, #16
	bl	_callout_drain
	mov	x0, x19
	bl	_CARP_LOCK_DESTROY
	ldr	x0, [x19]
Lloh18:
	adrp	x20, _M_CARP@GOTPAGE
Lloh19:
	ldr	x20, [x20, _M_CARP@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_free
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_carp_sx,4,2                    ; @carp_sx
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_V_carp_ifdown_adj,4,2          ; @V_carp_ifdown_adj
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vhid removed"

	.comm	_sc_list,4,2                    ; @sc_list
	.comm	_carp_mtx,4,2                   ; @carp_mtx
	.comm	_sc_next,4,2                    ; @sc_next
	.comm	_M_CARP,4,2                     ; @M_CARP
	.no_dead_strip	_carp_destroy
.subsections_via_symbols
