	.file	"extr_vgic-mmio.c_vgic_mmio_read_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vgic_mmio_read_config
	.type	vgic_mmio_read_config, @function
vgic_mmio_read_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, esi
	mov	esi, 2
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	VGIC_ADDR_TO_INTID@PLT
	sal	ebp, 2
	je	.L5
	lea	r13d, [rax+rax]
	mov	r15d, eax
	add	ebp, eax
	xor	r12d, r12d
	neg	r13d
	mov	r14d, 2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbx
	mov	edx, r15d
	call	vgic_get_irq@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR VGIC_CONFIG_EDGE[rip]
	cmp	QWORD PTR [rsi], rax
	jne	.L3
	lea	ecx, 0[r13+r15*2]
	mov	eax, r14d
	sal	eax, cl
	or	r12d, eax
.L3:
	mov	edi, DWORD PTR [rbx]
	add	r15d, 1
	call	vgic_put_irq@PLT
	cmp	ebp, r15d
	jne	.L4
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vgic_mmio_read_config, .-vgic_mmio_read_config
	.comm	VGIC_CONFIG_EDGE,8,8
	.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.c_vgic_mmio_read_config.c"
	.text
	.align	2
	.global	vgic_mmio_read_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	vgic_mmio_read_config, %function
vgic_mmio_read_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	mov	r5, r0
	mov	r0, r1
	mov	r1, #2
	bl	VGIC_ADDR_TO_INTID
	lsls	r6, r6, #2
	beq	.L1
	add	r8, r0, r6
	mov	r4, r0
	mov	r10, #2
	mov	r6, #0
	rsb	r9, r0, r0, lsl #31
	ldr	r7, .L11
	lsl	r9, r9, #1
.L4:
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r5]
	bl	vgic_get_irq
	ldr	r3, [r7]
	ldr	r2, [r0]
	mov	r1, r0
	cmp	r2, r3
	addeq	r3, r9, r4, lsl #1
	ldr	r0, [r5]
	add	r4, r4, #1
	orreq	r6, r6, r10, lsl r3
	bl	vgic_put_irq
	cmp	r8, r4
	bne	.L4
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	VGIC_CONFIG_EDGE
	.size	vgic_mmio_read_config, .-vgic_mmio_read_config
	.comm	VGIC_CONFIG_EDGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
