	.file	"extr_odb_loose.c_fn_locate_object_short_oid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fn_locate_object_short_oid, @function
fn_locate_object_short_oid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rsi
	call	git_buf_len@PLT
	mov	ecx, DWORD PTR GIT_OID_HEXSZ[rip]
	sub	eax, DWORD PTR [rbx]
	lea	edx, -2[rcx]
	cmp	eax, edx
	je	.L2
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	git_path_isdir@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR 24[rbx]
	mov	r12, QWORD PTR 16[rbx]
	movsx	rsi, DWORD PTR [rbx]
	lea	rdx, -2[rax]
	movsx	rax, DWORD PTR 0[rbp]
	lea	rdi, 8[r12]
	add	rsi, rax
	call	memcmp@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR 4[rbx]
	test	r8d, r8d
	jne	.L5
	test	eax, eax
	je	.L11
.L6:
	add	eax, 1
	mov	DWORD PTR 4[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 4[rbx]
.L5:
	cmp	eax, 1
	jle	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR GIT_EAMBIGUOUS[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR [rdi], eax
	mov	eax, DWORD PTR 4[r12]
	add	rdi, 8
	mov	DWORD PTR -4[rdi], eax
	mov	eax, DWORD PTR GIT_OID_HEXSZ[rip]
	mov	esi, DWORD PTR [rbx]
	add	esi, DWORD PTR 0[rbp]
	lea	edx, -2[rax]
	call	memcpy@PLT
	mov	eax, DWORD PTR 4[rbx]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	fn_locate_object_short_oid, .-fn_locate_object_short_oid
	.comm	GIT_OID_HEXSZ,4,4
	.comm	GIT_EAMBIGUOUS,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_odb_loose.c_fn_locate_object_short_oid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fn_locate_object_short_oid, %function
fn_locate_object_short_oid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	bl	git_buf_len
	ldr	r6, .L12
	ldr	r2, [r4]
	ldr	r3, [r6]
	sub	r0, r0, r2
	sub	r3, r3, #2
	cmp	r0, r3
	beq	.L2
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r5]
	bl	git_path_isdir
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r5]
	ldr	r7, [r4, #12]
	ldr	r2, [r4, #16]
	ldr	r1, [r4]
	add	r0, r7, #8
	add	r1, r1, r3
	sub	r2, r2, #2
	bl	memcmp
	cmp	r0, #0
	ldr	r3, [r4, #4]
	bne	.L5
	cmp	r3, #0
	beq	.L11
.L6:
	add	r3, r3, #1
	str	r3, [r4, #4]
	b	.L5
.L10:
	ldr	r3, [r4, #4]
.L5:
	cmp	r3, #1
	ble	.L7
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, [r4, #8]
	ldr	r2, [r7]
	add	r0, r3, #8
	str	r2, [r3]
	ldr	r1, [r7, #4]
	ldr	r2, [r6]
	str	r1, [r3, #4]
	ldr	r3, [r4]
	ldr	r1, [r5]
	sub	r2, r2, #2
	add	r1, r1, r3
	bl	memcpy
	ldr	r3, [r4, #4]
	b	.L6
.L13:
	.align	2
.L12:
	.word	GIT_OID_HEXSZ
	.word	GIT_EAMBIGUOUS
	.size	fn_locate_object_short_oid, .-fn_locate_object_short_oid
	.comm	GIT_OID_HEXSZ,4,4
	.comm	GIT_EAMBIGUOUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
