	.file	"extr_vgic-its.c_vgic_mmio_write_its_cwriter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vgic_mmio_write_its_cwriter, @function
vgic_mmio_write_its_cwriter:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L1
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	and	ebx, 7
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, ebx
	mov	rcx, r13
	mov	edx, r12d
	call	update_64bit_reg@PLT
	mov	rdi, rax
	call	ITS_CMD_OFFSET@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	rbx, rax
	call	ITS_CMD_BUFFER_SIZE@PLT
	cmp	rax, rbx
	jle	.L7
	mov	QWORD PTR 8[rbp], rbx
	mov	rsi, rbp
	mov	rdi, r14
	call	vgic_its_process_commands@PLT
.L7:
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	vgic_mmio_write_its_cwriter, .-vgic_mmio_write_its_cwriter
	.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_cwriter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vgic_mmio_write_its_cwriter, %function
vgic_mmio_write_its_cwriter:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r1, #0
	ldr	r8, [sp, #24]
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r5, r2
	mov	r6, r3
	mov	r7, r0
	mov	r0, r4
	bl	mutex_lock
	and	r1, r5, #7
	mov	r3, r8
	mov	r2, r6
	ldr	r0, [r4, #4]
	bl	update_64bit_reg
	bl	ITS_CMD_OFFSET
	mov	r5, r0
	ldr	r0, [r4, #8]
	bl	ITS_CMD_BUFFER_SIZE
	cmp	r0, r5
	ble	.L5
	mov	r0, r7
	mov	r1, r4
	str	r5, [r4, #4]
	bl	vgic_its_process_commands
.L5:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
	.size	vgic_mmio_write_its_cwriter, .-vgic_mmio_write_its_cwriter
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
