	.file	"extr_system.c___SYS_ReadROM.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__SYS_ReadROM
	.type	__SYS_ReadROM, @function
__SYS_ReadROM:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	jle	.L9
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, 256
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	r13d, 256
	mov	ebx, r14d
	cmovle	ebx, r13d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, r12d
	mov	esi, ebx
	mov	rdi, rbp
	call	__read_rom@PLT
	test	rax, rax
	je	.L3
	movsx	rax, ebx
	sub	r13d, ebx
	add	r12d, ebx
	add	rbp, rax
	test	r13d, r13d
	jg	.L4
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	__SYS_ReadROM, .-__SYS_ReadROM
	.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_system.c___SYS_ReadROM.c"
	.text
	.align	2
	.global	__SYS_ReadROM
	.syntax unified
	.arm
	.fpu softvfp
	.type	__SYS_ReadROM, %function
__SYS_ReadROM:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r7, r1, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r6, r0
	mov	r5, r2
.L4:
	cmp	r7, #256
	movlt	r4, r7
	movge	r4, #256
.L3:
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	__read_rom
	cmp	r0, #0
	beq	.L3
	sub	r7, r7, r4
	cmp	r7, #0
	add	r5, r5, r4
	add	r6, r6, r4
	bgt	.L4
	pop	{r4, r5, r6, r7, r8, pc}
	.size	__SYS_ReadROM, .-__SYS_ReadROM
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
