	.file	"extr_zip_source_crc.c_crc_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crc_read, @function
crc_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	add	r8d, -128
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	cmp	r8d, 5
	ja	.L28
	mov	r12, rdx
	lea	rdx, .L4[rip]
	mov	rbp, rsi
	movsx	rax, DWORD PTR [rdx+r8*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L20-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR [rsi]
	test	esi, esi
	jne	.L20
	test	ecx, ecx
	jne	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	xor	r14d, r14d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rsi]
	mov	edx, 8
	mov	rdi, r12
	xor	r14d, r14d
	call	memcpy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR 16[rsi]
	mov	rdx, QWORD PTR 24[rsi]
	xor	r14d, r14d
	mov	DWORD PTR 24[r12], eax
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR ZIP_CM_STORE[rip]
	mov	QWORD PTR 16[r12], rdx
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR ZIP_EM_NONE[rip]
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR ZIP_STAT_SIZE[rip]
	or	eax, DWORD PTR ZIP_STAT_CRC[rip]
	or	eax, DWORD PTR ZIP_STAT_COMP_SIZE[rip]
	or	eax, DWORD PTR ZIP_STAT_COMP_METHOD[rip]
	or	eax, DWORD PTR ZIP_STAT_ENCRYPTION_METHOD[rip]
	or	DWORD PTR [r12], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rsi], 0
	xor	edx, edx
	xor	esi, esi
	xor	edi, edi
	xor	r14d, r14d
	call	crc32@PLT
	mov	DWORD PTR 16[rbp], 0
	cdqe
	mov	QWORD PTR 24[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rsi
	xor	r14d, r14d
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, ecx
	mov	rsi, r12
	mov	QWORD PTR 8[rsp], rdi
	call	zip_source_read@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r14d, eax
	js	.L29
	jne	.L13
	mov	edx, DWORD PTR 32[rbp]
	mov	DWORD PTR 0[rbp], 1
	test	edx, edx
	je	.L20
	lea	rsi, 16[rsp]
	call	zip_source_stat@PLT
	test	eax, eax
	js	.L29
	mov	eax, DWORD PTR 16[rsp]
	test	DWORD PTR ZIP_STAT_CRC[rip], eax
	je	.L17
	mov	rsi, QWORD PTR 24[rbp]
	cmp	QWORD PTR 32[rsp], rsi
	je	.L17
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR ZIP_ER_CRC[rip]
	mov	DWORD PTR 4[rax], 0
	mov	DWORD PTR [rax], edx
.L28:
	mov	r14d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	r14d, DWORD PTR ZIP_SOURCE_ERR_LOWER[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	add	DWORD PTR 16[rbp], eax
	mov	rdi, QWORD PTR 24[rbp]
	mov	edx, eax
	mov	rsi, r12
	call	crc32@PLT
	cdqe
	mov	QWORD PTR 24[rbp], rax
	jmp	.L1
.L17:
	test	DWORD PTR ZIP_STAT_SIZE[rip], eax
	je	.L1
	mov	eax, DWORD PTR 16[rbp]
	cmp	DWORD PTR 40[rsp], eax
	je	.L1
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR ZIP_ER_INCONS[rip]
	mov	r14d, -1
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR 4[rax], 0
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	crc_read, .-crc_read
	.comm	ZIP_STAT_SIZE,4,4
	.comm	ZIP_STAT_ENCRYPTION_METHOD,4,4
	.comm	ZIP_STAT_CRC,4,4
	.comm	ZIP_STAT_COMP_SIZE,4,4
	.comm	ZIP_STAT_COMP_METHOD,4,4
	.comm	ZIP_SOURCE_ERR_LOWER,4,4
	.comm	ZIP_ER_INCONS,4,4
	.comm	ZIP_ER_CRC,4,4
	.comm	ZIP_EM_NONE,4,4
	.comm	ZIP_CM_STORE,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_zip_source_crc.c_crc_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc_read, %function
crc_read:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #36
	ldr	ip, [sp, #56]
	mov	r6, r2
	ldr	r2, .L37
	sub	ip, ip, #128
	mov	r4, r1
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	cmp	ip, #5
	ldrls	pc, [pc, ip, asl #2]
	b	.L33
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L19
.L8:
	clz	r2, r3
	ldr	r1, [r1]
	lsr	r2, r2, #5
	cmp	r1, #0
	movne	r2, #1
	cmp	r2, #0
	beq	.L10
.L19:
	mov	r5, #0
.L1:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	r0, r6
	mov	r2, #4
	ldr	r1, [r1, #4]
	bl	memcpy
	mov	r5, #0
	b	.L1
.L9:
	ldr	r3, [r1]
	cmp	r3, #0
	beq	.L19
	ldr	r2, .L37+4
	ldr	r3, .L37+8
	ldr	r1, .L37+12
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, .L37+16
	ldr	r0, [r1]
	ldr	r1, .L37+20
	ldr	r2, [r2]
	orr	r3, r3, ip
	orr	r3, r3, r0
	ldr	ip, [r1]
	ldr	r0, .L37+24
	ldr	r1, .L37+28
	orr	r3, r3, r2
	ldr	r2, [r6]
	ldr	lr, [r0]
	orr	r3, r3, ip
	ldr	r0, [r4, #12]
	ldr	ip, [r1]
	ldr	r1, [r4, #8]
	orr	r3, r2, r3
	mov	r5, #0
	stm	r6, {r3, ip, lr}
	str	r1, [r6, #20]
	str	r0, [r6, #16]
	str	r1, [r6, #12]
	b	.L1
.L7:
	mov	r5, #0
	str	r5, [r1]
	mov	r2, r5
	mov	r1, r5
	mov	r0, r5
	bl	crc32
	str	r5, [r4, #8]
	str	r0, [r4, #12]
	b	.L1
.L6:
	mov	r0, r1
	bl	free
	mov	r5, #0
	b	.L1
.L10:
	mov	r2, r3
	mov	r1, r6
	mov	r7, r0
	bl	zip_source_read
	subs	r5, r0, #0
	blt	.L34
	bne	.L12
	mov	r2, #1
	ldr	r3, [r4, #16]
	str	r2, [r4]
	cmp	r3, #0
	beq	.L19
	mov	r0, r7
	add	r1, sp, #4
	bl	zip_source_stat
	cmp	r0, #0
	blt	.L34
	ldr	r2, .L37+4
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L16
	ldr	r1, [sp, #20]
	ldr	r2, [r4, #12]
	cmp	r1, r2
	beq	.L16
	ldr	r2, .L37+32
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	stm	r3, {r2, r5}
.L33:
	mvn	r5, #0
	b	.L1
.L34:
	ldr	r3, .L37+36
	ldr	r5, [r3]
	b	.L1
.L12:
	ldr	r3, [r4, #8]
	mov	r1, r6
	add	r3, r3, r5
	mov	r2, r5
	ldr	r0, [r4, #12]
	str	r3, [r4, #8]
	bl	crc32
	str	r0, [r4, #12]
	b	.L1
.L16:
	ldr	r2, .L37+8
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L1
	ldr	r2, [sp, #24]
	ldr	r3, [r4, #8]
	cmp	r2, r3
	beq	.L1
	mov	r1, #0
	ldr	r2, .L37+40
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mvn	r5, #0
	str	r1, [r3, #4]
	str	r2, [r3]
	b	.L1
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	ZIP_STAT_CRC
	.word	ZIP_STAT_SIZE
	.word	ZIP_STAT_COMP_SIZE
	.word	ZIP_STAT_COMP_METHOD
	.word	ZIP_STAT_ENCRYPTION_METHOD
	.word	ZIP_CM_STORE
	.word	ZIP_EM_NONE
	.word	ZIP_ER_CRC
	.word	ZIP_SOURCE_ERR_LOWER
	.word	ZIP_ER_INCONS
	.size	crc_read, .-crc_read
	.comm	ZIP_STAT_SIZE,4,4
	.comm	ZIP_STAT_ENCRYPTION_METHOD,4,4
	.comm	ZIP_STAT_CRC,4,4
	.comm	ZIP_STAT_COMP_SIZE,4,4
	.comm	ZIP_STAT_COMP_METHOD,4,4
	.comm	ZIP_SOURCE_ERR_LOWER,4,4
	.comm	ZIP_ER_INCONS,4,4
	.comm	ZIP_ER_CRC,4,4
	.comm	ZIP_EM_NONE,4,4
	.comm	ZIP_CM_STORE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
