	.file	"extr_test_write_format_zip_large.c_memory_read_seek.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"\n\n\nInternal failure: negative seek\n\n\n"
	.align 8
.LC1:
	.string	"\n\n\nInternal failure: over-sized seek\n\n\n"
	.text
	.p2align 4
	.type	memory_read_seek, @function
memory_read_seek:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR SEEK_END[rip], ecx
	je	.L19
	cmp	DWORD PTR SEEK_CUR[rip], ecx
	je	.L20
.L3:
	test	rbx, rbx
	js	.L21
.L4:
	mov	rax, QWORD PTR 40[rbp]
	mov	QWORD PTR 8[rbp], rbx
	mov	QWORD PTR 32[rbp], rax
	test	rax, rax
	je	.L5
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR 8[rax]
	cmp	rdx, rbx
	jg	.L12
	lea	rcx, [rdx+rsi]
	cmp	rbx, rcx
	jge	.L8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR 8[rax]
	add	rdx, rcx
	cmp	rdx, rbx
	jg	.L22
	lea	rcx, [rdx+rsi]
	cmp	rcx, rbx
	jg	.L23
.L8:
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L11
	mov	QWORD PTR 32[rbp], 0
.L5:
	cmp	QWORD PTR 0[rbp], rbx
	je	.L10
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	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
.L20:
	.cfi_restore_state
	add	rbx, QWORD PTR 8[rsi]
	test	rbx, rbx
	jns	.L4
.L21:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	QWORD PTR 32[rbp], rax
.L6:
	mov	rdx, rbx
	sub	rdx, rcx
	add	rdx, QWORD PTR 24[rax]
	mov	QWORD PTR 24[rbp], rsi
	mov	QWORD PTR 16[rbp], rdx
.L10:
	mov	rax, rbx
.L24:
	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
.L19:
	.cfi_restore_state
	add	rbx, QWORD PTR [rsi]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	QWORD PTR 32[rbp], rax
.L7:
	mov	rax, rbx
	mov	QWORD PTR 16[rbp], 0
	sub	rax, rdx
	sub	rsi, rax
	mov	rax, rbx
	mov	QWORD PTR 24[rbp], rsi
	jmp	.L24
.L12:
	xor	ecx, ecx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	memory_read_seek, .-memory_read_seek
	.comm	stderr,4,4
	.comm	SEEK_END,4,4
	.comm	SEEK_CUR,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_test_write_format_zip_large.c_memory_read_seek.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\012\012Internal failure: negative seek\012\012"
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"\012\012\012Internal failure: over-sized seek\012\012"
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memory_read_seek, %function
memory_read_seek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, .L23
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, [r0]
	mov	r4, r2
	cmp	r1, r3
	beq	.L19
	ldr	r2, .L23+4
	ldr	r2, [r2]
	cmp	r2, r3
	ldreq	r3, [r5, #4]
	addeq	r4, r4, r3
	cmp	r4, #0
	blt	.L20
.L4:
	ldr	r3, [r5, #20]
	str	r4, [r5, #4]
	cmp	r3, #0
	str	r3, [r5, #16]
	beq	.L5
	ldm	r3, {r0, r2}
	cmp	r0, r4
	bgt	.L12
	add	ip, r0, r2
	cmp	r4, ip
	bge	.L8
	b	.L7
.L11:
	ldm	r3, {r0, r2}
	add	r0, ip, r0
	cmp	r0, r4
	bgt	.L21
	add	ip, r0, r2
	cmp	ip, r4
	bgt	.L22
.L8:
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L11
	str	r3, [r5, #16]
.L5:
	ldr	r3, [r5]
	cmp	r3, r4
	beq	.L10
	ldr	r3, .L23+8
	ldr	r1, .L23+12
	ldr	r0, [r3]
	bl	fprintf
	pop	{r4, r5, r6, lr}
	mov	r0, #1
	b	exit
.L21:
	str	r3, [r5, #16]
.L6:
	ldr	r3, [r3, #12]
	sub	ip, r4, ip
	add	ip, r3, ip
	str	ip, [r5, #8]
	str	r2, [r5, #12]
.L10:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L19:
	ldr	r3, [r5]
	add	r4, r2, r3
	cmp	r4, #0
	bge	.L4
.L20:
	ldr	r3, .L23+8
	ldr	r1, .L23+16
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #1
	bl	exit
	b	.L4
.L22:
	str	r3, [r5, #16]
.L7:
	mov	r3, #0
	sub	r0, r4, r0
	sub	r0, r2, r0
	str	r0, [r5, #12]
	str	r3, [r5, #8]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	mov	ip, #0
	b	.L6
.L24:
	.align	2
.L23:
	.word	SEEK_END
	.word	SEEK_CUR
	.word	stderr
	.word	.LC1
	.word	.LC0
	.size	memory_read_seek, .-memory_read_seek
	.comm	stderr,4,4
	.comm	SEEK_END,4,4
	.comm	SEEK_CUR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
