	.file	"extr_crc32.c_crc32.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	crc32
	.type	crc32, @function
crc32:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, edi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -80[rbp], rsi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BUFSIZ[rip]
	mov	r15, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	not	DWORD PTR crc32_total[rip]
	mov	r12, rsp
	mov	QWORD PTR -72[rbp], 0
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, r15d
	mov	rsi, r12
	mov	edi, r14d
	call	read@PLT
	test	eax, eax
	jle	.L19
	movsx	rdx, eax
	add	QWORD PTR -72[rbp], rdx
	sub	eax, 1
	mov	r13, r12
	lea	rbx, 1[r12+rax]
	.p2align 4,,10
	.p2align 3
.L6:
	movsx	esi, BYTE PTR 0[r13]
	mov	edi, -1
	add	r13, 1
	call	CRC@PLT
	movsx	esi, BYTE PTR -1[r13]
	mov	edi, DWORD PTR crc32_total[rip]
	call	CRC@PLT
	cmp	rbx, r13
	jne	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	jne	.L10
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rcx], rdx
	mov	rcx, QWORD PTR -80[rbp]
	mov	DWORD PTR [rcx], 0
	not	DWORD PTR crc32_total[rip]
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L10:
	.cfi_restore_state
	mov	eax, 1
	jmp	.L1
.L18:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	crc32, .-crc32
	.comm	crc32_total,4,4
	.comm	BUFSIZ,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_crc32.c_crc32.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	crc32
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc32, %function
crc32:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	ip, .L13
	ldr	r5, .L13+4
	ldr	r9, [ip]
	ldr	r3, [r5]
	str	r1, [fp, #-48]
	add	r1, r9, #7
	bic	r1, r1, #7
	mvn	r3, r3
	sub	sp, sp, r1
	mov	r8, r0
	mov	r6, sp
	mov	r7, #0
	str	r2, [fp, #-52]
	ldr	r2, .L13+8
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	str	r3, [r5]
.L2:
	mov	r2, r9
	mov	r1, r6
	mov	r0, r8
	bl	read
	cmp	r0, #0
	ble	.L11
	mov	r10, r6
	add	r7, r7, r0
	add	r4, r6, r0
.L3:
	ldrb	r1, [r10]	@ zero_extendqisi2
	mvn	r0, #0
	bl	CRC
	ldrb	r1, [r10], #1	@ zero_extendqisi2
	ldr	r0, [r5]
	bl	CRC
	cmp	r4, r10
	bne	.L3
	b	.L2
.L11:
	ldreq	r3, [fp, #-52]
	movne	r0, #1
	streq	r7, [r3]
	ldreq	r3, [fp, #-48]
	streq	r0, [r3]
	ldreq	r3, [r5]
	mvneq	r3, r3
	streq	r3, [r5]
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	BUFSIZ
	.word	crc32_total
	.word	.LC0
	.size	crc32, .-crc32
	.comm	crc32_total,4,4
	.comm	BUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
