	.file	"extr_hyperv_transport.c_hvs_do_close_lock_held.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hvs_do_close_lock_held, @function
hvs_do_close_lock_held:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	sk_vsock@PLT
	mov	esi, DWORD PTR SOCK_DONE[rip]
	mov	rdi, rax
	mov	r12, rax
	call	sock_set_flag@PLT
	mov	eax, DWORD PTR SHUTDOWN_MASK[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	vsock_stream_has_data@PLT
	test	rax, rax
	jg	.L2
	mov	eax, DWORD PTR TCP_CLOSING[rip]
	mov	DWORD PTR 8[r12], eax
.L2:
	mov	rdi, r12
	call	[QWORD PTR [r12]]
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L1
	test	ebx, ebx
	jne	.L5
.L6:
	mov	DWORD PTR 0[rbp], 0
	mov	rdi, rbp
	call	vsock_remove_sock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	sock_put@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, 4[rbp]
	call	cancel_delayed_work@PLT
	test	rax, rax
	jne	.L6
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hvs_do_close_lock_held, .-hvs_do_close_lock_held
	.comm	TCP_CLOSING,4,4
	.comm	SOCK_DONE,4,4
	.comm	SHUTDOWN_MASK,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_hyperv_transport.c_hvs_do_close_lock_held.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hvs_do_close_lock_held, %function
hvs_do_close_lock_held:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, r1
	bl	sk_vsock
	ldr	r3, .L10
	mov	r5, r0
	ldr	r1, [r3]
	bl	sock_set_flag
	ldr	r3, .L10+4
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	vsock_stream_has_data
	cmp	r0, #0
	ldrle	r3, .L10+8
	mov	r0, r5
	ldrle	r3, [r3]
	strle	r3, [r5, #4]
	ldr	r3, [r5]
	blx	r3
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	cmp	r6, #0
	bne	.L5
.L6:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4]
	bl	vsock_remove_sock
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	sock_put
.L5:
	add	r0, r4, #4
	bl	cancel_delayed_work
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	b	.L6
.L11:
	.align	2
.L10:
	.word	SOCK_DONE
	.word	SHUTDOWN_MASK
	.word	TCP_CLOSING
	.size	hvs_do_close_lock_held, .-hvs_do_close_lock_held
	.comm	TCP_CLOSING,4,4
	.comm	SOCK_DONE,4,4
	.comm	SHUTDOWN_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
