	.file	"extr_uipc_usrreq.c_uipc_disconnect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"uipc_disconnect: unp == NULL"
	.text
	.p2align 4
	.type	uipc_disconnect, @function
uipc_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	sotounpcb@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	rax, rax
	mov	rbp, rax
	setne	dil
	call	KASSERT@PLT
	mov	rdi, rbp
	call	UNP_PCB_LOCK@PLT
	mov	r12, QWORD PTR 0[rbp]
	test	r12, r12
	je	.L13
	xor	edi, edi
	cmp	rbp, r12
	setne	dil
	call	__predict_true@PLT
	test	rax, rax
	je	.L4
	xor	r13d, r13d
	mov	rdi, rbp
	mov	rsi, r12
	mov	edx, r13d
	call	unp_pcb_owned_lock2@PLT
	mov	edi, r13d
	call	__predict_false@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, r12
	call	unp_pcb_hold@PLT
.L4:
	mov	rdi, rbp
	call	unp_pcb_hold@PLT
	mov	rdi, rbp
	mov	rsi, r12
	call	unp_disconnect@PLT
	mov	rdi, rbp
	call	unp_pcb_rele@PLT
	test	rax, rax
	je	.L15
	cmp	rbp, r12
	je	.L3
.L17:
	mov	rdi, r12
	call	unp_pcb_rele@PLT
	test	rax, rax
	je	.L16
.L3:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	UNP_PCB_UNLOCK@PLT
	cmp	rbp, r12
	jne	.L17
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	UNP_PCB_UNLOCK@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, r12
	call	UNP_PCB_UNLOCK@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	uipc_disconnect, .-uipc_disconnect
	.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_uipc_usrreq.c_uipc_disconnect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"uipc_disconnect: unp == NULL\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uipc_disconnect, %function
uipc_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	sotounpcb
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L18
	bl	KASSERT
	mov	r0, r4
	bl	UNP_PCB_LOCK
	ldr	r5, [r4]
	cmp	r5, #0
	beq	.L13
	subs	r0, r4, r5
	movne	r0, #1
	bl	__predict_true
	cmp	r0, #0
	beq	.L4
	mov	r6, #0
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	bl	unp_pcb_owned_lock2
	mov	r0, r6
	bl	__predict_false
	cmp	r0, r6
	bne	.L13
	mov	r0, r5
	bl	unp_pcb_hold
.L4:
	mov	r0, r4
	bl	unp_pcb_hold
	mov	r1, r5
	mov	r0, r4
	bl	unp_disconnect
	mov	r0, r4
	bl	unp_pcb_rele
	cmp	r0, #0
	beq	.L15
	cmp	r4, r5
	beq	.L3
.L17:
	mov	r0, r5
	bl	unp_pcb_rele
	cmp	r0, #0
	beq	.L16
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	mov	r0, r4
	bl	UNP_PCB_UNLOCK
	cmp	r4, r5
	bne	.L17
	b	.L3
.L13:
	mov	r0, r4
	bl	UNP_PCB_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r5
	bl	UNP_PCB_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	uipc_disconnect, .-uipc_disconnect
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
