	.file	"extr_rerere.c_find_rerere_dir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_rerere_dir, @function
find_rerere_dir:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR GIT_MAX_RAWSZ[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L16
.L4:
	mov	rsi, rsp
	call	get_sha1_hex@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L1
	mov	ecx, DWORD PTR rerere_dir_hash[rip]
	mov	edx, DWORD PTR rerere_dir_nr[rip]
	mov	rdi, rsp
	mov	rsi, QWORD PTR rerere_dir[rip]
	call	sha1_pos@PLT
	movsx	rbx, eax
	test	ebx, ebx
	js	.L6
	lea	r12, 0[0+rbx*8]
.L7:
	mov	rax, QWORD PTR rerere_dir[rip]
	mov	rax, QWORD PTR [rax+r12]
.L1:
	mov	rsi, QWORD PTR -40[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L17
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, 32
	not	ebx
	call	xmalloc@PLT
	mov	rsi, rsp
	movsx	r14, ebx
	mov	edi, DWORD PTR 24[rax]
	mov	r13, rax
	lea	r12, 0[0+r14*8]
	call	hashcpy@PLT
	mov	QWORD PTR 16[r13], 0
	mov	eax, DWORD PTR rerere_dir_nr[rip]
	mov	QWORD PTR 8[r13], 0
	mov	edx, DWORD PTR rerere_dir_alloc[rip]
	mov	QWORD PTR 0[r13], 0
	mov	rdi, QWORD PTR rerere_dir[rip]
	lea	esi, 1[rax]
	call	ALLOC_GROW@PLT
	mov	eax, DWORD PTR rerere_dir_nr[rip]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR rerere_dir[rip]
	mov	DWORD PTR rerere_dir_nr[rip], edx
	sub	edx, ebx
	lea	rdi, 8[rax+r12]
	sub	edx, 1
	lea	rsi, [rax+r12]
	call	MOVE_ARRAY@PLT
	mov	rax, QWORD PTR rerere_dir[rip]
	mov	rdi, r13
	mov	QWORD PTR [rax+r14*8], r13
	call	scan_rerere_dir@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	find_rerere_dir, .-find_rerere_dir
	.comm	rerere_dir_nr,4,4
	.comm	rerere_dir_hash,4,4
	.comm	rerere_dir_alloc,4,4
	.comm	rerere_dir,8,8
	.comm	GIT_MAX_RAWSZ,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_rerere.c_find_rerere_dir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_rerere_dir, %function
find_rerere_dir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	r3, .L11
	ldr	r2, .L11+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r2, [fp, #-32]
	mov	r2,#0
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r1, sp
	bl	get_sha1_hex
	subs	r5, r0, #0
	movne	r0, #0
	bne	.L1
	ldr	r3, .L11+8
	ldr	r7, .L11+12
	ldr	r6, .L11+16
	mov	r0, sp
	ldr	r3, [r3]
	ldr	r2, [r7]
	ldr	r1, [r6]
	bl	sha1_pos
	subs	r4, r0, #0
	lslge	r4, r4, #2
	blt	.L9
.L4:
	ldr	r3, [r6]
	ldr	r0, [r3, r4]
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L9:
	mov	r0, #16
	bl	xmalloc
	mov	r8, r0
	mvn	r9, r4
	mov	r1, sp
	ldr	r0, [r0, #12]
	bl	hashcpy
	ldr	r1, [r7]
	ldr	r3, .L11+20
	ldr	r0, [r6]
	ldr	r2, [r3]
	str	r5, [r8, #8]
	str	r5, [r8, #4]
	str	r5, [r8]
	add	r1, r1, #1
	bl	ALLOC_GROW
	ldr	r3, [r7]
	ldr	r1, [r6]
	add	r3, r3, #1
	sub	r2, r3, r9
	rsb	r4, r4, r4, lsl #30
	add	r0, r1, r4, lsl #2
	sub	r2, r2, #1
	add	r1, r1, r9, lsl #2
	str	r3, [r7]
	bl	MOVE_ARRAY
	ldr	r3, [r6]
	mov	r0, r8
	str	r8, [r3, r9, lsl #2]
	lsl	r4, r9, #2
	bl	scan_rerere_dir
	b	.L4
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	GIT_MAX_RAWSZ
	.word	.LC0
	.word	rerere_dir_hash
	.word	rerere_dir_nr
	.word	rerere_dir
	.word	rerere_dir_alloc
	.size	find_rerere_dir, .-find_rerere_dir
	.comm	rerere_dir_nr,4,4
	.comm	rerere_dir_hash,4,4
	.comm	rerere_dir_alloc,4,4
	.comm	rerere_dir,4,4
	.comm	GIT_MAX_RAWSZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
