	.file	"extr_ip_carp.c_carp_destroy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vhid removed"
	.text
	.p2align 4
	.type	carp_destroy, @function
carp_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 32[rdi]
	mov	esi, DWORD PTR SA_XLOCKED[rip]
	lea	rdi, carp_sx[rip]
	mov	r12, QWORD PTR [rax]
	call	sx_assert@PLT
	cmp	QWORD PTR 24[rbp], 0
	jne	.L5
.L2:
	mov	rdi, rbp
	call	CARP_UNLOCK@PLT
	mov	rdi, r12
	call	CIF_LOCK@PLT
	mov	edx, DWORD PTR sc_list[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	TAILQ_REMOVE@PLT
	mov	rdi, r12
	call	CIF_UNLOCK@PLT
	lea	rdi, carp_mtx[rip]
	call	mtx_lock@PLT
	mov	esi, DWORD PTR sc_next[rip]
	mov	rdi, rbp
	call	LIST_REMOVE@PLT
	lea	rdi, carp_mtx[rip]
	call	mtx_unlock@PLT
	lea	rdi, 16[rbp]
	call	callout_drain@PLT
	mov	rdi, rbp
	call	CARP_LOCK_DESTROY@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR M_CARP[rip]
	call	free@PLT
	mov	esi, DWORD PTR M_CARP[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR V_carp_ifdown_adj[rip]
	lea	rsi, .LC0[rip]
	neg	edi
	call	carp_demote_adj@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	carp_destroy, .-carp_destroy
	.comm	sc_next,4,4
	.comm	sc_list,4,4
	.comm	carp_sx,4,4
	.comm	carp_mtx,4,4
	.comm	V_carp_ifdown_adj,4,4
	.comm	SA_XLOCKED,4,4
	.comm	M_CARP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ip_carp.c_carp_destroy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vhid removed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	carp_destroy, %function
carp_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r2, .L9
	ldr	r3, [r0, #20]
	ldr	r1, [r2]
	ldr	r0, .L9+4
	ldr	r5, [r3]
	bl	sx_assert
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L8
.L2:
	mov	r0, r4
	bl	CARP_UNLOCK
	mov	r0, r5
	bl	CIF_LOCK
	ldr	r3, .L9+8
	mov	r1, r4
	ldr	r2, [r3]
	mov	r0, r5
	bl	TAILQ_REMOVE
	mov	r0, r5
	bl	CIF_UNLOCK
	ldr	r0, .L9+12
	bl	mtx_lock
	ldr	r3, .L9+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	LIST_REMOVE
	ldr	r0, .L9+12
	bl	mtx_unlock
	ldr	r5, .L9+20
	add	r0, r4, #12
	bl	callout_drain
	mov	r0, r4
	bl	CARP_LOCK_DESTROY
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	free
	mov	r0, r4
	ldr	r1, [r5]
	pop	{r4, r5, r6, lr}
	b	free
.L8:
	ldr	r3, .L9+24
	ldr	r1, .L9+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	carp_demote_adj
	b	.L2
.L10:
	.align	2
.L9:
	.word	SA_XLOCKED
	.word	carp_sx
	.word	sc_list
	.word	carp_mtx
	.word	sc_next
	.word	M_CARP
	.word	V_carp_ifdown_adj
	.word	.LC0
	.size	carp_destroy, .-carp_destroy
	.comm	sc_next,4,4
	.comm	sc_list,4,4
	.comm	carp_sx,4,4
	.comm	carp_mtx,4,4
	.comm	V_carp_ifdown_adj,4,4
	.comm	SA_XLOCKED,4,4
	.comm	M_CARP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
