	.file	"extr_mmio.c_MMIO_GrabNextBuffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bo=%x do=%x of=%lx\n"
	.text
	.p2align 4
	.type	MMIO_GrabNextBuffer, @function
MMIO_GrabNextBuffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	xor	ecx, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	mov	rsi, r13
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR MMIOM_SEEK[rip]
	mov	edi, DWORD PTR 56[rdi]
	mov	r9d, DWORD PTR FALSE[rip]
	mov	r8, QWORD PTR SEEK_CUR[rip]
	call	send_message@PLT
	mov	edx, DWORD PTR 48[rbx]
	mov	esi, DWORD PTR 52[rbx]
	lea	rdi, .LC0[rip]
	mov	rcx, rax
	call	TRACE@PLT
	mov	eax, DWORD PTR 48[rbx]
	mov	rcx, QWORD PTR 24[rbx]
	mov	DWORD PTR 52[rbx], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbx], rcx
	add	rax, rcx
	mov	QWORD PTR 32[rbx], rcx
	mov	QWORD PTR 40[rbx], rax
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR [rbx], eax
	test	ebp, ebp
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 56[rbx]
	mov	r9d, DWORD PTR FALSE[rip]
	mov	r8, r12
	mov	rsi, r13
	mov	edx, DWORD PTR MMIOM_READ[rip]
	call	send_message@PLT
	mov	r12, rax
	test	rax, rax
	jle	.L3
	add	QWORD PTR 32[rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	ret
	.cfi_endproc
.LFE0:
	.size	MMIO_GrabNextBuffer, .-MMIO_GrabNextBuffer
	.comm	TRUE,4,4
	.comm	SEEK_CUR,8,8
	.comm	MMIOM_SEEK,4,4
	.comm	MMIOM_READ,4,4
	.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_GrabNextBuffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bo=%x do=%x of=%lx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MMIO_GrabNextBuffer, %function
MMIO_GrabNextBuffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r3, .L10
	ldr	r7, .L10+4
	ldr	r2, [r3]
	ldr	ip, [r7]
	sub	sp, sp, #8
	ldr	r9, [r0, #28]
	ldr	r10, [r0, #24]
	add	r8, r0, #4
	ldr	r0, [r0, #32]
	stm	sp, {r2, ip}
	ldr	r3, .L10+8
	mov	r5, r1
	ldr	r2, [r3]
	mov	r1, r8
	mov	r3, #0
	ldr	r6, [r4, #4]
	bl	send_message
	mov	r2, r10
	mov	r3, r0
	mov	r1, r9
	ldr	r0, .L10+12
	bl	TRACE
	ldr	r1, .L10+16
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #24]
	ldr	r1, [r1]
	add	r2, r2, r3
	cmp	r5, #0
	str	r0, [r4, #28]
	str	r3, [r4, #8]
	str	r3, [r4, #16]
	str	r2, [r4, #20]
	str	r1, [r4]
	bne	.L9
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r0, [r7]
	ldr	r2, .L10+20
	str	r6, [sp]
	ldr	r2, [r2]
	str	r0, [sp, #4]
	mov	r1, r8
	ldr	r0, [r4, #32]
	bl	send_message
	subs	r6, r0, #0
	mov	r0, r6
	ldrgt	r3, [r4, #16]
	ldrle	r3, [r7]
	addgt	r3, r3, r6
	strgt	r3, [r4, #16]
	strle	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	SEEK_CUR
	.word	FALSE
	.word	MMIOM_SEEK
	.word	.LC0
	.word	TRUE
	.word	MMIOM_READ
	.size	MMIO_GrabNextBuffer, .-MMIO_GrabNextBuffer
	.comm	TRUE,4,4
	.comm	SEEK_CUR,4,4
	.comm	MMIOM_SEEK,4,4
	.comm	MMIOM_READ,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
