	.file	"extr_virtio_console.c_vtcon_port_intr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vtcon_port_intr, @function
vtcon_port_intr:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	rdi, r12
	call	VTCON_LOCK@PLT
	mov	rbp, QWORD PTR [rbx]
	test	rbp, rbp
	je	.L6
	mov	rdi, rbp
	call	VTCON_PORT_LOCK@PLT
	mov	rdi, r12
	call	VTCON_UNLOCK@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR VTCON_PORT_FLAG_GONE[rip], eax
	je	.L7
	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	VTCON_PORT_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	vtcon_port_in@PLT
	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	VTCON_PORT_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	VTCON_UNLOCK@PLT
	.cfi_endproc
.LFE0:
	.size	vtcon_port_intr, .-vtcon_port_intr
	.comm	VTCON_PORT_FLAG_GONE,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_virtio_console.c_vtcon_port_intr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vtcon_port_intr, %function
vtcon_port_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, [r0, #4]
	mov	r0, r5
	bl	VTCON_LOCK
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L6
	mov	r0, r4
	bl	VTCON_PORT_LOCK
	mov	r0, r5
	bl	VTCON_UNLOCK
	ldr	r3, .L8
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	VTCON_PORT_UNLOCK
.L7:
	mov	r0, r4
	bl	vtcon_port_in
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	VTCON_PORT_UNLOCK
.L6:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	VTCON_UNLOCK
.L9:
	.align	2
.L8:
	.word	VTCON_PORT_FLAG_GONE
	.size	vtcon_port_intr, .-vtcon_port_intr
	.comm	VTCON_PORT_FLAG_GONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
