	.file	"extr_vt_core.c_finish_vt_rel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	finish_vt_rel, @function
finish_vt_rel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR [rdi]
	mov	eax, DWORD PTR VWF_SWWAIT_REL[rip]
	mov	r12d, DWORD PTR EINVAL[rip]
	test	edx, eax
	jne	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	not	eax
	mov	rbx, rdi
	xor	r12d, r12d
	and	eax, edx
	mov	DWORD PTR [rdi], eax
	test	esi, esi
	je	.L1
	lea	rdi, 8[rdi]
	call	callout_drain@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	vt_late_window_switch@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	finish_vt_rel, .-finish_vt_rel
	.comm	VWF_SWWAIT_REL,4,4
	.comm	EINVAL,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_vt_core.c_finish_vt_rel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	finish_vt_rel, %function
finish_vt_rel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L13
	ldr	r3, [r0]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L11
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bx	lr
.L11:
	bic	r3, r3, r2
	cmp	r1, #0
	push	{r4, lr}
	mov	r4, r0
	str	r3, [r0]
	bne	.L12
	mov	r0, #0
	pop	{r4, pc}
.L12:
	add	r0, r0, #8
	bl	callout_drain
	ldr	r0, [r4, #4]
	bl	vt_late_window_switch
	mov	r0, #0
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	VWF_SWWAIT_REL
	.word	EINVAL
	.size	finish_vt_rel, .-finish_vt_rel
	.comm	VWF_SWWAIT_REL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
