	.file	"extr_hv_utils_transport.c_hvutil_transport_destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hvutil_transport_destroy
	.type	hvutil_transport_destroy, @function
hvutil_transport_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 28[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	mutex_lock@PLT
	mov	eax, DWORD PTR HVUTIL_TRANSPORT_DESTROY[rip]
	mov	ebx, DWORD PTR 0[rbp]
	lea	rdi, 32[rbp]
	mov	DWORD PTR 0[rbp], eax
	call	wake_up_interruptible@PLT
	mov	rdi, r12
	call	mutex_unlock@PLT
	lea	rdi, hvt_list_lock[rip]
	call	spin_lock@PLT
	lea	rdi, 24[rbp]
	call	list_del@PLT
	lea	rdi, hvt_list_lock[rip]
	call	spin_unlock@PLT
	cmp	QWORD PTR 8[rbp], 0
	jle	.L2
	cmp	QWORD PTR 16[rbp], 0
	jg	.L6
.L2:
	cmp	DWORD PTR HVUTIL_TRANSPORT_CHARDEV[rip], ebx
	je	.L7
.L3:
	pop	rbx
	.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	hvt_transport_free@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, 8[rbp]
	call	cn_del_callback@PLT
	cmp	DWORD PTR HVUTIL_TRANSPORT_CHARDEV[rip], ebx
	jne	.L3
.L7:
	lea	rdi, 4[rbp]
	call	wait_for_completion@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	hvt_transport_free@PLT
	.cfi_endproc
.LFE0:
	.size	hvutil_transport_destroy, .-hvutil_transport_destroy
	.comm	hvt_list_lock,4,4
	.comm	HVUTIL_TRANSPORT_DESTROY,4,4
	.comm	HVUTIL_TRANSPORT_CHARDEV,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_hv_utils_transport.c_hvutil_transport_destroy.c"
	.text
	.align	2
	.global	hvutil_transport_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	hvutil_transport_destroy, %function
hvutil_transport_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r5, r0, #20
	mov	r0, r5
	bl	mutex_lock
	mov	r0, r4
	ldr	r3, .L8
	ldr	r6, [r4]
	ldr	r3, [r3]
	str	r3, [r0], #24
	bl	wake_up_interruptible
	mov	r0, r5
	bl	mutex_unlock
	ldr	r0, .L8+4
	bl	spin_lock
	add	r0, r4, #16
	bl	list_del
	ldr	r0, .L8+4
	bl	spin_unlock
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bgt	.L6
.L2:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L7
.L3:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	hvt_transport_free
.L6:
	add	r0, r4, #8
	bl	cn_del_callback
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, r6
	bne	.L3
.L7:
	add	r0, r4, #4
	bl	wait_for_completion
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	hvt_transport_free
.L9:
	.align	2
.L8:
	.word	HVUTIL_TRANSPORT_DESTROY
	.word	hvt_list_lock
	.word	HVUTIL_TRANSPORT_CHARDEV
	.size	hvutil_transport_destroy, .-hvutil_transport_destroy
	.comm	hvt_list_lock,4,4
	.comm	HVUTIL_TRANSPORT_DESTROY,4,4
	.comm	HVUTIL_TRANSPORT_CHARDEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
