	.file	"extr_mmio.c_MMIO_Flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	MMIO_Flush, @function
MMIO_Flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 48[rdi], 0
	mov	edx, DWORD PTR 8[rdi]
	mov	eax, DWORD PTR MMIO_DIRTY[rip]
	je	.L2
	mov	rcx, QWORD PTR FOURCC_MEM[rip]
	cmp	QWORD PTR [rdi], rcx
	je	.L2
	mov	ebp, esi
	test	edx, eax
	jne	.L12
.L3:
	test	DWORD PTR MMIO_EMPTYBUF[rip], ebp
	je	.L2
	mov	rcx, QWORD PTR 16[rbx]
	mov	QWORD PTR 24[rbx], rcx
	mov	QWORD PTR 32[rbx], rcx
.L2:
	not	eax
	and	eax, edx
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR MMSYSERR_NOERROR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	ecx, DWORD PTR 40[rdi]
	mov	r9d, DWORD PTR FALSE[rip]
	mov	rsi, rbx
	mov	edi, DWORD PTR 56[rdi]
	mov	r8, QWORD PTR SEEK_SET[rip]
	mov	edx, DWORD PTR MMIOM_SEEK[rip]
	call	send_message@PLT
	mov	rcx, QWORD PTR 16[rbx]
	mov	r8, QWORD PTR 32[rbx]
	mov	rsi, rbx
	mov	edx, DWORD PTR MMIOM_WRITE[rip]
	mov	edi, DWORD PTR 56[rbx]
	mov	r9d, DWORD PTR FALSE[rip]
	sub	r8, rcx
	call	send_message@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR MMIO_DIRTY[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	MMIO_Flush, .-MMIO_Flush
	.comm	SEEK_SET,8,8
	.comm	MMSYSERR_NOERROR,4,4
	.comm	MMIO_EMPTYBUF,4,4
	.comm	MMIO_DIRTY,4,4
	.comm	MMIOM_WRITE,4,4
	.comm	MMIOM_SEEK,4,4
	.comm	FOURCC_MEM,8,8
	.comm	FALSE,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_mmio.c_MMIO_Flush.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MMIO_Flush, %function
MMIO_Flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0, #24]
	ldr	r6, .L16
	cmp	r3, #0
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r2, [r6]
	sub	sp, sp, #12
	beq	.L2
	mov	r5, r1
	ldr	r1, .L16+4
	ldr	r0, [r0]
	ldr	r1, [r1]
	cmp	r0, r1
	beq	.L2
	tst	r3, r2
	bne	.L15
.L3:
	ldr	r1, .L16+8
	ldr	r1, [r1]
	tst	r5, r1
	ldrne	r1, [r4, #8]
	strne	r1, [r4, #12]
	strne	r1, [r4, #16]
.L2:
	ldr	r1, .L16+12
	bic	r3, r3, r2
	ldr	r0, [r1]
	str	r3, [r4, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldr	r7, .L16+16
	ldr	r3, .L16+20
	ldr	r1, [r7]
	ldr	r2, [r3]
	ldr	r3, .L16+24
	str	r1, [sp, #4]
	str	r2, [sp]
	ldr	r2, [r3]
	mov	r1, r4
	ldr	r3, [r4, #20]
	ldr	r0, [r4, #28]
	bl	send_message
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #16]
	ldr	r0, [r7]
	sub	r2, r2, r3
	ldr	r1, .L16+28
	str	r0, [sp, #4]
	str	r2, [sp]
	ldr	r2, [r1]
	ldr	r0, [r4, #28]
	mov	r1, r4
	bl	send_message
	ldr	r2, [r6]
	ldr	r3, [r4, #4]
	b	.L3
.L17:
	.align	2
.L16:
	.word	MMIO_DIRTY
	.word	FOURCC_MEM
	.word	MMIO_EMPTYBUF
	.word	MMSYSERR_NOERROR
	.word	FALSE
	.word	SEEK_SET
	.word	MMIOM_SEEK
	.word	MMIOM_WRITE
	.size	MMIO_Flush, .-MMIO_Flush
	.comm	SEEK_SET,4,4
	.comm	MMSYSERR_NOERROR,4,4
	.comm	MMIO_EMPTYBUF,4,4
	.comm	MMIO_DIRTY,4,4
	.comm	MMIOM_WRITE,4,4
	.comm	MMIOM_SEEK,4,4
	.comm	FOURCC_MEM,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
