	.file	"extr_index.c_compare_checksum.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to seek to end of file"
	.text
	.p2align 4
	.type	compare_checksum, @function
compare_checksum:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdi]
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	call	p_open@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR SEEK_END[rip]
	mov	esi, -20
	mov	edi, eax
	call	p_lseek@PLT
	test	rax, rax
	js	.L8
	mov	edx, DWORD PTR GIT_OID_RAWSZ[rip]
	lea	r13, 4[rsp]
	mov	edi, r12d
	mov	rsi, r13
	call	p_read@PLT
	mov	edi, r12d
	mov	rbx, rax
	call	p_close@PLT
	test	rbx, rbx
	js	.L5
	mov	rsi, rbp
	mov	rdi, r13
	xor	r12d, r12d
	call	git_oid_cmp@PLT
	test	eax, eax
	setne	r12b
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	r12d, -1
	jmp	.L1
.L8:
	mov	edi, r12d
	mov	r12d, -1
	call	p_close@PLT
	mov	edi, DWORD PTR GIT_ERROR_OS[rip]
	lea	rsi, .LC0[rip]
	call	git_error_set@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	compare_checksum, .-compare_checksum
	.comm	SEEK_END,4,4
	.comm	O_RDONLY,4,4
	.comm	GIT_OID_RAWSZ,4,4
	.comm	GIT_ERROR_OS,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_index.c_compare_checksum.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to seek to end of file\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_checksum, %function
compare_checksum:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, .L10
	sub	sp, sp, #8
	ldr	r1, [r2]
	ldr	r2, .L10+4
	mov	r5, r0
	ldr	r0, [r0, #4]
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	p_open
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L10+8
	mvn	r1, #19
	ldr	r2, [r3]
	bl	p_lseek
	cmp	r0, #0
	blt	.L8
	ldr	r3, .L10+12
	mov	r1, sp
	ldr	r2, [r3]
	mov	r0, r4
	bl	p_read
	mov	r6, r0
	mov	r0, r4
	bl	p_close
	cmp	r6, #0
	blt	.L5
	mov	r1, r5
	mov	r0, sp
	bl	git_oid_cmp
	subs	r4, r0, #0
	movne	r4, #1
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	mvn	r4, #0
	b	.L1
.L8:
	mov	r0, r4
	bl	p_close
	ldr	r3, .L10+16
	ldr	r1, .L10+20
	ldr	r0, [r3]
	bl	git_error_set
	mvn	r4, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	O_RDONLY
	.word	.LC1
	.word	SEEK_END
	.word	GIT_OID_RAWSZ
	.word	GIT_ERROR_OS
	.word	.LC0
	.size	compare_checksum, .-compare_checksum
	.comm	SEEK_END,4,4
	.comm	O_RDONLY,4,4
	.comm	GIT_OID_RAWSZ,4,4
	.comm	GIT_ERROR_OS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
