	.file	"extr_dir.c_connect_wt_gitdir_in_nested.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"index file corrupt in repo %s"
.LC1:
	.string	"%s/%s"
.LC2:
	.string	"%s/modules/%s"
	.text
	.p2align 4
	.type	connect_wt_gitdir_in_nested, @function
connect_wt_gitdir_in_nested:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdx, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	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
	lea	r12, 32[rsp]
	mov	eax, DWORD PTR STRBUF_INIT[rip]
	mov	rdi, r12
	mov	DWORD PTR 24[rsp], eax
	mov	DWORD PTR 28[rsp], eax
	call	repo_init@PLT
	test	rax, rax
	je	.L25
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L25:
	.cfi_restore_state
	mov	rdi, r12
	call	repo_read_index@PLT
	test	rax, rax
	js	.L27
.L4:
	mov	rax, QWORD PTR 32[rsp]
	lea	rcx, 24[rsp]
	xor	r15d, r15d
	mov	QWORD PTR [rsp], rcx
	lea	rcx, 28[rsp]
	mov	edx, DWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rcx
	test	edx, edx
	jg	.L5
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	add	r15d, 1
.L7:
	mov	rax, QWORD PTR 32[rsp]
	cmp	DWORD PTR [rax], r15d
	jle	.L10
.L5:
	mov	rax, QWORD PTR 8[rax]
	movsx	rdx, r15d
	lea	rbx, 0[0+rdx*8]
	mov	rbp, QWORD PTR [rax+rdx*8]
	mov	edi, DWORD PTR 4[rbp]
	call	S_ISGITLINK@PLT
	test	eax, eax
	je	.L28
	add	rbx, 8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax+rbx]
	add	rbx, 8
	mov	esi, DWORD PTR [rax]
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
.L9:
	mov	rax, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR 0[rbp]
	add	r15d, 1
	cmp	r15d, DWORD PTR [rax]
	jl	.L30
.L8:
	mov	edx, edi
	lea	rsi, null_oid[rip]
	mov	rdi, r12
	call	submodule_from_path@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	call	is_submodule_active@PLT
	test	eax, eax
	je	.L7
	mov	rdi, QWORD PTR [rsp]
	call	strbuf_reset@PLT
	mov	rbp, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	strbuf_reset@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR [rsp]
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	call	strbuf_addf@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	rdx, r14
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	strbuf_addf@PLT
	mov	esi, DWORD PTR 28[rsp]
	mov	edi, DWORD PTR 24[rsp]
	mov	edx, 1
	call	connect_work_tree_and_git_dir@PLT
	mov	rax, QWORD PTR 32[rsp]
	cmp	DWORD PTR [rax], r15d
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR [rsp]
	call	strbuf_release@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	strbuf_release@PLT
	mov	rdi, r12
	call	repo_clear@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR 0[rbp]
	jmp	.L8
.L27:
	mov	ebp, DWORD PTR 40[rsp]
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	edi, eax
	mov	esi, ebp
	call	die@PLT
	jmp	.L4
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	connect_wt_gitdir_in_nested, .-connect_wt_gitdir_in_nested
	.comm	null_oid,4,4
	.comm	STRBUF_INIT,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_dir.c_connect_wt_gitdir_in_nested.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"index file corrupt in repo %s\000"
	.align	2
.LC1:
	.ascii	"%s/%s\000"
	.align	2
.LC2:
	.ascii	"%s/modules/%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_wt_gitdir_in_nested, %function
connect_wt_gitdir_in_nested:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L32
	sub	sp, sp, #28
	ldr	r3, [r3]
	ldr	ip, .L32+4
	mov	r2, r0
	mov	r7, r0
	add	r0, sp, #12
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	mov	r8, r1
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	repo_init
	subs	r4, r0, #0
	beq	.L27
.L1:
	ldr	r3, .L32+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	add	r0, sp, #12
	bl	repo_read_index
	cmp	r0, #0
	blt	.L29
.L4:
	ldr	r3, [sp, #12]
	add	r9, sp, #4
	ldr	r2, [r3]
	add	r10, sp, #8
	cmp	r2, #0
	ldrgt	fp, .L32+8
	bgt	.L5
	b	.L9
.L7:
	ldr	r3, [sp, #12]
	ldr	r2, [r3]
	cmp	r2, r4
	ble	.L9
.L5:
	ldr	r3, [r3, #4]
	ldr	r5, [r3, r4, lsl #2]
	ldr	r0, [r5, #4]
	bl	S_ISGITLINK
	cmp	r0, #0
	addeq	r4, r4, #1
	bne	.L6
	ldr	r3, [sp, #12]
	ldr	r2, [r3]
	cmp	r2, r4
	bgt	.L5
.L9:
	mov	r0, r9
	bl	strbuf_release
	mov	r0, r10
	bl	strbuf_release
	add	r0, sp, #12
	bl	repo_clear
	b	.L1
.L31:
	ldr	r3, [r3, #4]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	bne	.L30
.L6:
	ldr	r3, [sp, #12]
	add	r4, r4, #1
	ldr	r2, [r3]
	ldr	r0, [r5]
	cmp	r4, r2
	blt	.L31
.L8:
	mov	r2, r0
	mov	r1, fp
	add	r0, sp, #12
	bl	submodule_from_path
	subs	r6, r0, #0
	beq	.L7
	ldr	r1, [r5]
	add	r0, sp, #12
	bl	is_submodule_active
	cmp	r0, #0
	beq	.L7
	mov	r0, r9
	bl	strbuf_reset
	mov	r0, r10
	bl	strbuf_reset
	mov	r2, r7
	ldr	r3, [r6, #4]
	mov	r0, r9
	ldr	r1, .L32+12
	bl	strbuf_addf
	mov	r2, r8
	mov	r0, r10
	ldr	r3, [r6]
	ldr	r1, .L32+16
	bl	strbuf_addf
	ldmib	sp, {r0, r1}
	mov	r2, #1
	bl	connect_work_tree_and_git_dir
	b	.L7
.L30:
	ldr	r0, [r5]
	b	.L8
.L29:
	ldr	r0, .L32+20
	bl	_
	ldr	r1, [sp, #16]
	bl	die
	b	.L4
.L28:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	STRBUF_INIT
	.word	.LC3
	.word	null_oid
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	connect_wt_gitdir_in_nested, .-connect_wt_gitdir_in_nested
	.comm	null_oid,4,4
	.comm	STRBUF_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
