	.file	"extr_vgic-mmio-v3.c_vgic_mmio_read_irouter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vgic_mmio_read_irouter, @function
vgic_mmio_read_irouter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	esi, 64
	mov	edi, ebx
	call	VGIC_ADDR_TO_INTID@PLT
	mov	edi, DWORD PTR [r12]
	xor	esi, esi
	mov	edx, eax
	call	vgic_get_irq@PLT
	test	rax, rax
	je	.L4
	mov	rbp, rax
	xor	r14d, r14d
	test	bl, 4
	je	.L8
.L3:
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbp
	call	vgic_put_irq@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rax]
	and	ebx, 7
	call	READ_ONCE@PLT
	mov	esi, ebx
	mov	edx, r13d
	mov	edi, eax
	call	extract_bytes@PLT
	mov	r14, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r14d, r14d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vgic_mmio_read_irouter, .-vgic_mmio_read_irouter
	.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_vgic-mmio-v3.c_vgic_mmio_read_irouter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vgic_mmio_read_irouter, %function
vgic_mmio_read_irouter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	mov	r0, r1
	mov	r1, #64
	mov	r7, r2
	bl	VGIC_ADDR_TO_INTID
	mov	r1, #0
	mov	r2, r0
	ldr	r0, [r6]
	bl	vgic_get_irq
	subs	r4, r0, #0
	moveq	r5, r4
	beq	.L1
	tst	r5, #4
	movne	r5, #0
	beq	.L8
.L3:
	mov	r1, r4
	ldr	r0, [r6]
	bl	vgic_put_irq
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, [r4]
	bl	READ_ONCE
	and	r1, r5, #7
	mov	r2, r7
	bl	extract_bytes
	mov	r5, r0
	b	.L3
	.size	vgic_mmio_read_irouter, .-vgic_mmio_read_irouter
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
