	.file	"638587.c"
	.intel_syntax noprefix
	.text
	.globl	UART0DR
	.section	.rodata
	.align 8
	.type	UART0DR, @object
	.size	UART0DR, 8
UART0DR:
	.quad	268472320
	.text
	.globl	_read_r
	.type	_read_r, @function
_read_r:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], ecx
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, -1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_read_r, .-_read_r
	.globl	_lseek_r
	.type	_lseek_r, @function
_lseek_r:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_lseek_r, .-_lseek_r
	.globl	gem5_print
	.type	gem5_print, @function
gem5_print:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	edx, 268472320
	movsx	eax, al
	mov	DWORD PTR [rdx], eax
	add	QWORD PTR -8[rbp], 1
.L6:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gem5_print, .-gem5_print
	.globl	_write_r
	.type	_write_r, @function
_write_r:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	gem5_print
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_write_r, .-_write_r
	.globl	_close_r
	.type	_close_r, @function
_close_r:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	_close_r, .-_close_r
	.local	heap_end.0
	.comm	heap_end.0,8,8
	.globl	_sbrk_r
	.type	_sbrk_r, @function
_sbrk_r:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR heap_end.0[rip]
	test	rax, rax
	jne	.L13
	lea	rax, end[rip]
	mov	QWORD PTR heap_end.0[rip], rax
.L13:
	mov	rax, QWORD PTR heap_end.0[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR heap_end.0[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	rdx, rsp
	cmp	rax, rdx
	jbe	.L14
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 12
	mov	rax, -1
	jmp	.L15
.L14:
	mov	rdx, QWORD PTR heap_end.0[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR heap_end.0[rip], rax
	mov	rax, QWORD PTR -8[rbp]
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_sbrk_r, .-_sbrk_r
	.globl	_fstat_r
	.type	_fstat_r, @function
_fstat_r:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 144
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 8192
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	_fstat_r, .-_fstat_r
	.globl	_isatty_r
	.type	_isatty_r, @function
_isatty_r:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	_isatty_r, .-_isatty_r
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"638587.c"
	.text
	.global	UART0DR
	.section	.rodata
	.align	2
	.type	UART0DR, %object
	.size	UART0DR, 4
UART0DR:
	.word	268472320
	.text
	.align	2
	.global	_read_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_read_r, %function
_read_r:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mvn	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_read_r, .-_read_r
	.align	2
	.global	_lseek_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_lseek_r, %function
_lseek_r:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_lseek_r, .-_lseek_r
	.align	2
	.global	gem5_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	gem5_print, %function
gem5_print:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L8
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	268472320
	.size	gem5_print, .-gem5_print
	.align	2
	.global	_write_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_write_r, %function
_write_r:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	gem5_print
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_write_r, .-_write_r
	.align	2
	.global	_close_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_close_r, %function
_close_r:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_close_r, .-_close_r
	.local	heap_end.5105
	.comm	heap_end.5105,4,4
	.align	2
	.global	_sbrk_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sbrk_r, %function
_sbrk_r:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L18
	ldr	r2, .L18+4
	str	r2, [r3]
.L15:
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, sp
	cmp	r3, r2
	bls	.L16
	bl	__errno_location
	mov	r3, r0
	mov	r2, #12
	str	r2, [r3]
	mvn	r3, #0
	b	.L17
.L16:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, .L18
	str	r3, [r2]
	ldr	r3, [fp, #-8]
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	heap_end.5105
	.word	end
	.size	_sbrk_r, .-_sbrk_r
	.align	2
	.global	_fstat_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_fstat_r, %function
_fstat_r:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r2, #88
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	memset
	ldr	r3, [fp, #-16]
	mov	r2, #8192
	str	r2, [r3, #16]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_fstat_r, .-_fstat_r
	.align	2
	.global	_isatty_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_isatty_r, %function
_isatty_r:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_isatty_r, .-_isatty_r
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
