	.file	"extr_mz_strm.c_mz_stream_read_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mz_stream_read_value, @function
mz_stream_read_value:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 88
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsi], 0
	mov	rbx, rsp
	mov	rsi, rbx
	call	mz_stream_read@PLT
	cmp	rax, rbp
	jne	.L2
	test	rax, rax
	jle	.L3
	mov	rsi, QWORD PTR [r12]
	lea	rdx, 0[0+rax*8]
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [rbx+rcx]
	sal	rax, cl
	add	rcx, 8
	add	rsi, rax
	cmp	rcx, rdx
	jne	.L4
	mov	QWORD PTR [r12], rsi
.L3:
	mov	rax, QWORD PTR MZ_OK[rip]
.L1:
	mov	rdi, QWORD PTR 72[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L13
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	mz_stream_error@PLT
	test	rax, rax
	mov	rax, QWORD PTR MZ_STREAM_ERROR[rip]
	cmove	rax, QWORD PTR MZ_END_OF_STREAM[rip]
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mz_stream_read_value, .-mz_stream_read_value
	.comm	MZ_STREAM_ERROR,8,8
	.comm	MZ_OK,8,8
	.comm	MZ_END_OF_STREAM,8,8
	.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_mz_strm.c_mz_stream_read_value.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mz_stream_read_value, %function
mz_stream_read_value:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r1
	mov	r4, #0
	ldr	r3, .L14
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	add	r1, sp, #4
	str	r4, [r5]
	mov	r6, r2
	mov	r7, r0
	bl	mz_stream_read
	cmp	r0, r6
	bne	.L2
	cmp	r0, r4
	ble	.L3
	mov	r3, r4
	ldr	ip, [r5]
	add	r2, sp, #4
	lsl	r0, r0, #3
.L4:
	ldr	lr, [r2], #4
	add	ip, ip, lr, lsl r3
	add	r3, r3, #8
	cmp	r3, r0
	bne	.L4
	str	ip, [r5]
.L3:
	ldr	r3, .L14+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r7
	bl	mz_stream_error
	cmp	r0, #0
	ldrne	r3, .L14+8
	ldreq	r3, .L14+12
	ldr	r0, [r3]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	MZ_OK
	.word	MZ_STREAM_ERROR
	.word	MZ_END_OF_STREAM
	.size	mz_stream_read_value, .-mz_stream_read_value
	.comm	MZ_STREAM_ERROR,4,4
	.comm	MZ_OK,4,4
	.comm	MZ_END_OF_STREAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
