	.file	"extr_vgic-its.c_vgic_mmio_write_its_ctlr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vgic_mmio_write_its_ctlr, @function
vgic_mmio_write_its_ctlr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 16[rsi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L2
	test	QWORD PTR GITS_CTLR_ENABLE[rip], rbx
	je	.L3
	mov	eax, DWORD PTR GITS_BASER_VALID[rip]
	test	DWORD PTR 4[rbp], eax
	je	.L4
	test	DWORD PTR 8[rbp], eax
	je	.L4
	mov	eax, DWORD PTR 12[rbp]
	test	DWORD PTR GITS_CBASER_VALID[rip], eax
	je	.L4
	mov	DWORD PTR 0[rbp], 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbp
	mov	rdi, r12
	call	vgic_its_process_commands@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	and	rbx, QWORD PTR GITS_CTLR_ENABLE[rip]
	setne	al
	mov	DWORD PTR 0[rbp], eax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r12
	call	vgic_its_invalidate_cache@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	vgic_mmio_write_its_ctlr, .-vgic_mmio_write_its_ctlr
	.comm	GITS_CTLR_ENABLE,8,8
	.comm	GITS_CBASER_VALID,4,4
	.comm	GITS_BASER_VALID,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_vgic-its.c_vgic_mmio_write_its_ctlr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vgic_mmio_write_its_ctlr, %function
vgic_mmio_write_its_ctlr:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	add	r7, r1, #16
	mov	r5, r0
	mov	r0, r7
	ldr	r6, [sp, #24]
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	ldr	r3, .L22
	ldr	r3, [r3]
	bne	.L2
	tst	r6, r3
	beq	.L3
	ldr	r3, .L22+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r3, r2
	beq	.L4
	ldr	r2, [r4, #8]
	tst	r3, r2
	beq	.L4
	ldr	r3, .L22+8
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r3, #1
	strne	r3, [r4]
	beq	.L4
.L6:
	mov	r1, r4
	mov	r0, r5
	bl	vgic_its_process_commands
.L4:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L2:
	and	r6, r6, r3
	cmp	r6, #0
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r4]
	bne	.L6
.L3:
	mov	r0, r5
	bl	vgic_its_invalidate_cache
	b	.L6
.L23:
	.align	2
.L22:
	.word	GITS_CTLR_ENABLE
	.word	GITS_BASER_VALID
	.word	GITS_CBASER_VALID
	.size	vgic_mmio_write_its_ctlr, .-vgic_mmio_write_its_ctlr
	.comm	GITS_CTLR_ENABLE,4,4
	.comm	GITS_CBASER_VALID,4,4
	.comm	GITS_BASER_VALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
