	.file	"extr_tree-cache.c_read_tree_recursive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	read_tree_recursive, @function
read_tree_recursive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	git_tree_owner@PLT
	mov	rdi, r12
	mov	QWORD PTR 16[rsp], rax
	call	git_tree_id@PLT
	lea	rdi, 24[rbp]
	mov	esi, eax
	call	git_oid_cpy@PLT
	mov	rdi, r12
	call	git_tree_entrycount@PLT
	test	rax, rax
	je	.L2
	mov	r14, rax
	xor	r13d, r13d
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rbx, rax
.L4:
	mov	rsi, rbx
	mov	rdi, r12
	call	git_tree_entry_byindex@PLT
	mov	rdi, rax
	call	git_tree_entry_filemode@PLT
	cmp	rax, QWORD PTR GIT_FILEMODE_TREE[rip]
	sete	al
	movzx	eax, al
	add	r13, rax
	lea	rax, 1[rbx]
	cmp	r14, rax
	jne	.L12
	mov	edx, 8
	lea	rdi, 40[rsp]
	mov	rsi, r13
	xor	r14d, r14d
	call	GIT_ERROR_CHECK_ALLOC_MULTIPLY@PLT
	mov	QWORD PTR 0[rbp], r13
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, r15
	call	git_pool_mallocz@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rdi, rax
	call	GIT_ERROR_CHECK_ALLOC@PLT
	lea	rax, 48[rsp]
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 24[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	add	QWORD PTR 8[rbp], 1
.L7:
	lea	rax, 1[r14]
	cmp	r14, rbx
	je	.L16
	mov	r14, rax
.L10:
	mov	rsi, r14
	mov	rdi, r12
	call	git_tree_entry_byindex@PLT
	mov	rdi, rax
	mov	r13, rax
	call	git_tree_entry_filemode@PLT
	cmp	rax, QWORD PTR GIT_FILEMODE_TREE[rip]
	jne	.L18
	mov	rdi, r13
	call	git_tree_entry_name@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	rdx, r15
	mov	esi, eax
	mov	rax, QWORD PTR [rsp]
	sal	rax, 3
	add	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	git_tree_cache_new@PLT
	mov	r9d, eax
	test	eax, eax
	js	.L1
	mov	rdi, r13
	call	git_tree_entry_id@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, eax
	call	git_tree_lookup@PLT
	mov	r9d, eax
	test	eax, eax
	js	.L1
	mov	r13, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, r15
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, QWORD PTR [rax+r13]
	call	read_tree_recursive
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR 8[rsp], eax
	call	git_tree_free@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	r9d, DWORD PTR 8[rsp]
	add	QWORD PTR [rsp], 1
	mov	rax, QWORD PTR [rax+r13]
	mov	rax, QWORD PTR 8[rax]
	add	QWORD PTR 8[rbp], rax
	test	r9d, r9d
	jns	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r9d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, 40[rsp]
	mov	edx, 8
	xor	esi, esi
	call	GIT_ERROR_CHECK_ALLOC_MULTIPLY@PLT
	mov	QWORD PTR 0[rbp], 0
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, r15
	call	git_pool_mallocz@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rdi, rax
	call	GIT_ERROR_CHECK_ALLOC@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	xor	r9d, r9d
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_tree_recursive, .-read_tree_recursive
	.comm	GIT_FILEMODE_TREE,8,8
	.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_tree-cache.c_read_tree_recursive.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_tree_recursive, %function
read_tree_recursive:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L20
	sub	sp, sp, #36
	str	r2, [sp, #4]
	mov	r6, r0
	mov	r0, r1
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	git_tree_owner
	mov	r3, r0
	mov	r0, r7
	str	r3, [sp, #12]
	bl	git_tree_id
	mov	r1, r0
	add	r0, r6, #12
	bl	git_oid_cpy
	mov	r0, r7
	bl	git_tree_entrycount
	subs	r4, r0, #0
	beq	.L2
	mov	r9, #0
	ldr	r8, .L20+4
	mov	r5, r9
	b	.L4
.L12:
	mov	r5, r3
.L4:
	mov	r1, r5
	mov	r0, r7
	bl	git_tree_entry_byindex
	bl	git_tree_entry_filemode
	ldr	r3, [r8]
	cmp	r0, r3
	add	r3, r5, #1
	addeq	r9, r9, #1
	cmp	r4, r3
	bne	.L12
	mov	r2, #4
	mov	r1, r9
	add	r0, sp, #20
	bl	GIT_ERROR_CHECK_ALLOC_MULTIPLY
	ldr	r1, [sp, #20]
	str	r9, [r6]
	ldr	r0, [sp, #4]
	bl	git_pool_mallocz
	mov	r9, #0
	str	r0, [r6, #8]
	bl	GIT_ERROR_CHECK_ALLOC
	mov	r10, r9
	b	.L10
.L18:
	ldr	r2, [r6, #4]
	add	r2, r2, #1
	str	r2, [r6, #4]
.L7:
	cmp	r10, r5
	add	r3, r10, #1
	beq	.L17
	mov	r10, r3
.L10:
	mov	r1, r10
	mov	r0, r7
	bl	git_tree_entry_byindex
	mov	r4, r0
	bl	git_tree_entry_filemode
	ldr	r2, [r8]
	cmp	r0, r2
	bne	.L18
	mov	r0, r4
	ldr	fp, [r6, #8]
	bl	git_tree_entry_name
	add	fp, fp, r9, lsl #2
	mov	r1, r0
	ldr	r2, [sp, #4]
	mov	r0, fp
	bl	git_tree_cache_new
	subs	r2, r0, #0
	lsl	fp, r9, #2
	blt	.L1
	mov	r0, r4
	bl	git_tree_entry_id
	ldr	r1, [sp, #12]
	mov	r2, r0
	add	r0, sp, #24
	bl	git_tree_lookup
	subs	r2, r0, #0
	blt	.L1
	ldr	r1, [r6, #8]
	ldr	r2, [sp, #4]
	ldr	r0, [r1, fp]
	ldr	r1, [sp, #24]
	bl	read_tree_recursive
	str	r0, [sp, #8]
	ldr	r0, [sp, #24]
	bl	git_tree_free
	ldr	r0, [r6, #8]
	ldr	r1, [r6, #4]
	ldr	r0, [r0, fp]
	ldr	r2, [sp, #8]
	ldr	r0, [r0, #4]
	cmp	r2, #0
	add	r1, r1, r0
	add	r9, r9, #1
	str	r1, [r6, #4]
	bge	.L7
.L1:
	ldr	r3, .L20
	ldr	r1, [r3]
	ldr	r3, [sp, #28]
	eors	r1, r3, r1
	mov	r3, #0
	bne	.L19
	mov	r0, r2
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r2, #0
	b	.L1
.L2:
	mov	r2, #4
	mov	r1, r4
	add	r0, sp, #20
	bl	GIT_ERROR_CHECK_ALLOC_MULTIPLY
	ldr	r1, [sp, #20]
	ldr	r0, [sp, #4]
	str	r4, [r6]
	bl	git_pool_mallocz
	str	r0, [r6, #8]
	str	r4, [sp, #4]
	bl	GIT_ERROR_CHECK_ALLOC
	ldr	r2, [sp, #4]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	GIT_FILEMODE_TREE
	.size	read_tree_recursive, .-read_tree_recursive
	.comm	GIT_FILEMODE_TREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
