	.file	"extr_setup.c_setup_git_directory_gently_1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"GIT_DISCOVERY_ACROSS_FILESYSTEM"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"."
	.text
	.p2align 4
	.type	setup_git_directory_gently_1, @function
setup_git_directory_gently_1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR CEILING_DIRECTORIES_ENVIRONMENT[rip]
	mov	QWORD PTR 24[rsp], rsi
	mov	DWORD PTR 4[rsp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	getenv@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	r13, rax
	mov	eax, DWORD PTR STRING_LIST_INIT_DUP[rip]
	mov	DWORD PTR 32[rsp], eax
	call	offset_1st_component@PLT
	mov	edi, DWORD PTR GIT_DIR_ENVIRONMENT[rip]
	mov	ebp, eax
	call	getenv@PLT
	test	rax, rax
	jne	.L44
	test	r13, r13
	je	.L6
	lea	r14, 32[rsp]
	mov	edx, DWORD PTR PATH_SEP[rip]
	mov	ecx, -1
	mov	rsi, r13
	mov	rdi, r14
	mov	DWORD PTR 36[rsp], 0
	call	string_list_split@PLT
	mov	edx, DWORD PTR canonicalize_ceiling_entry[rip]
	xor	esi, esi
	mov	rdi, r14
	lea	rcx, 36[rsp]
	call	filter_string_list@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, r14
	call	longest_ancestor_length@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	ebx, eax
	call	string_list_clear@PLT
	test	ebx, ebx
	jns	.L5
.L6:
	lea	ebx, -2[rbp]
.L5:
	test	ebp, ebp
	je	.L7
	cmp	DWORD PTR [r12], ebp
	je	.L45
.L7:
	xor	esi, esi
	lea	rdi, .LC0[rip]
	call	git_env_bool@PLT
	mov	QWORD PTR 16[rsp], 0
	mov	r13d, eax
	test	eax, eax
	je	.L46
.L8:
	lea	rax, 36[rsp]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r15d, DWORD PTR [r12]
	mov	DWORD PTR 36[rsp], 0
	cmp	ebp, r15d
	jl	.L47
.L9:
	mov	rsi, QWORD PTR DEFAULT_GIT_DIR_ENVIRONMENT[rip]
	mov	rdi, r12
	call	strbuf_addstr@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jne	.L48
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, QWORD PTR 8[rsp]
	call	read_gitfile_gently@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L27
	mov	eax, DWORD PTR 36[rsp]
	cmp	eax, DWORD PTR READ_GITFILE_ERR_NOT_A_FILE[rip]
	je	.L26
	cmp	eax, DWORD PTR READ_GITFILE_ERR_STAT_FAILED[rip]
	jne	.L49
.L13:
	mov	rdi, r12
	mov	esi, r15d
	call	strbuf_setlen@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	is_git_directory@PLT
	test	rax, rax
	jne	.L50
.L18:
	cmp	ebp, r15d
	jge	.L20
	movsx	rax, r15d
	lea	r14, -4[0+rax*4]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L52:
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [rax+r14]
	sub	r14, 4
	call	is_dir_sep@PLT
	test	eax, eax
	jne	.L51
.L21:
	sub	r15d, 1
	cmp	ebx, r15d
	jl	.L52
.L20:
	mov	eax, DWORD PTR GIT_DIR_HIT_CEILING[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L53
	add	rsp, 56
	.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
.L51:
	.cfi_restore_state
	cmp	ebp, r15d
	mov	esi, r15d
	mov	rdi, r12
	cmovge	esi, ebp
	call	strbuf_setlen@PLT
	test	r13d, r13d
	jne	.L24
	mov	rdi, QWORD PTR 8[r12]
	xor	esi, esi
	mov	edx, r15d
	call	get_device_or_die@PLT
	cmp	rax, QWORD PTR 16[rsp]
	je	.L24
	mov	eax, DWORD PTR GIT_DIR_HIT_MOUNT_POINT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, r15d
	mov	rdi, r12
	call	strbuf_setlen@PLT
.L14:
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	call	strbuf_addstr@PLT
	mov	eax, DWORD PTR GIT_DIR_DISCOVERED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rdi, QWORD PTR 8[r12]
	xor	esi, esi
	call	read_gitfile_gently@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L27
.L26:
	mov	rdi, QWORD PTR 8[r12]
	call	is_git_directory@PLT
	test	rax, rax
	je	.L13
	mov	r14, QWORD PTR DEFAULT_GIT_DIR_ENVIRONMENT[rip]
	mov	esi, r15d
	mov	rdi, r12
	call	strbuf_setlen@PLT
	test	r14, r14
	jne	.L14
	mov	rdi, QWORD PTR 8[r12]
	call	is_git_directory@PLT
	test	rax, rax
	je	.L18
.L50:
	mov	rdi, QWORD PTR 24[rsp]
	lea	rsi, .LC1[rip]
	call	strbuf_addstr@PLT
	mov	eax, DWORD PTR GIT_DIR_BARE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, 47
	mov	rdi, r12
	call	strbuf_addch@PLT
	jmp	.L9
.L44:
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, rax
	call	strbuf_addstr@PLT
	mov	eax, DWORD PTR GIT_DIR_EXPLICIT[rip]
	jmp	.L1
.L46:
	mov	rdi, QWORD PTR 8[r12]
	xor	edx, edx
	xor	esi, esi
	call	get_device_or_die@PLT
	mov	QWORD PTR 16[rsp], rax
	jmp	.L8
.L45:
	mov	rdx, QWORD PTR 8[r12]
	movsx	rax, ebp
	mov	edi, DWORD PTR -4[rdx+rax*4]
	call	is_dir_sep@PLT
	test	eax, eax
	jne	.L7
	mov	esi, 47
	mov	rdi, r12
	add	ebp, 1
	call	strbuf_addch@PLT
	jmp	.L7
.L49:
	mov	eax, DWORD PTR GIT_DIR_INVALID_GITFILE[rip]
	jmp	.L1
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setup_git_directory_gently_1, .-setup_git_directory_gently_1
	.comm	canonicalize_ceiling_entry,4,4
	.comm	STRING_LIST_INIT_DUP,4,4
	.comm	READ_GITFILE_ERR_STAT_FAILED,4,4
	.comm	READ_GITFILE_ERR_NOT_A_FILE,4,4
	.comm	PATH_SEP,4,4
	.comm	GIT_DIR_INVALID_GITFILE,4,4
	.comm	GIT_DIR_HIT_MOUNT_POINT,4,4
	.comm	GIT_DIR_HIT_CEILING,4,4
	.comm	GIT_DIR_EXPLICIT,4,4
	.comm	GIT_DIR_ENVIRONMENT,4,4
	.comm	GIT_DIR_DISCOVERED,4,4
	.comm	GIT_DIR_BARE,4,4
	.comm	DEFAULT_GIT_DIR_ENVIRONMENT,8,8
	.comm	CEILING_DIRECTORIES_ENVIRONMENT,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_setup.c_setup_git_directory_gently_1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GIT_DISCOVERY_ACROSS_FILESYSTEM\000"
	.align	2
.LC1:
	.ascii	".\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_git_directory_gently_1, %function
setup_git_directory_gently_1:
	@ 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, .L56
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r3, .L56+4
	str	r1, [sp, #4]
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	getenv
	ldr	r3, .L56+8
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	str	r3, [sp, #12]
	bl	offset_1st_component
	ldr	r3, .L56+12
	mov	r7, r0
	ldr	r0, [r3]
	bl	getenv
	subs	r6, r0, #0
	bne	.L46
	cmp	r5, #0
	beq	.L6
	ldr	r3, .L56+16
	mov	r1, r5
	ldr	r2, [r3]
	add	r0, sp, #12
	mvn	r3, #0
	str	r6, [sp, #16]
	bl	string_list_split
	ldr	r3, .L56+20
	mov	r1, r6
	ldr	r2, [r3]
	add	r0, sp, #12
	add	r3, sp, #16
	bl	filter_string_list
	add	r1, sp, #12
	ldr	r0, [r4, #4]
	bl	longest_ancestor_length
	mov	r5, r0
	mov	r1, r6
	add	r0, sp, #12
	bl	string_list_clear
	cmp	r5, #0
	bge	.L5
.L6:
	sub	r5, r7, #2
.L5:
	cmp	r7, #0
	beq	.L7
	ldr	r3, [r4]
	cmp	r3, r7
	beq	.L47
.L7:
	mov	r1, #0
	ldr	r0, .L56+24
	bl	git_env_bool
	subs	r9, r0, #0
	movne	r3, #0
	strne	r3, [sp]
	beq	.L48
.L8:
	ldr	r8, .L56+28
.L23:
	mov	r3, #0
	ldr	fp, [r4]
	str	r3, [sp, #16]
	cmp	r7, fp
	blt	.L49
.L9:
	mov	r0, r4
	ldr	r1, [r8]
	bl	strbuf_addstr
	cmp	r10, #0
	ldr	r0, [r4, #4]
	bne	.L50
	add	r1, sp, #16
	bl	read_gitfile_gently
	subs	r6, r0, #0
	bne	.L26
	ldr	r2, .L56+32
	ldr	r3, [sp, #16]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L25
	ldr	r2, .L56+36
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L51
.L13:
	mov	r1, fp
	mov	r0, r4
	bl	strbuf_setlen
	ldr	r0, [r4, #4]
	bl	is_git_directory
	cmp	r0, #0
	bne	.L52
.L18:
	cmp	r7, fp
	blt	.L19
	b	.L20
.L54:
	ldr	r3, [r4, #4]
	ldr	r0, [r3, fp, lsl #2]
	bl	is_dir_sep
	cmp	r0, #0
	bne	.L53
.L19:
	sub	fp, fp, #1
	cmp	r5, fp
	blt	.L54
.L20:
	ldr	r3, .L56+40
	ldr	r0, [r3]
.L1:
	ldr	r3, .L56+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L55
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L53:
	cmp	r7, fp
	movge	r1, r7
	movlt	r1, fp
	mov	r0, r4
	bl	strbuf_setlen
	cmp	r9, #0
	bne	.L23
	mov	r2, fp
	mov	r1, r9
	ldr	r0, [r4, #4]
	bl	get_device_or_die
	ldr	r3, [sp]
	cmp	r0, r3
	beq	.L23
	ldr	r3, .L56+44
	ldr	r0, [r3]
	b	.L1
.L26:
	mov	r1, fp
	mov	r0, r4
	bl	strbuf_setlen
.L14:
	mov	r1, r6
	ldr	r0, [sp, #4]
	bl	strbuf_addstr
	ldr	r3, .L56+48
	ldr	r0, [r3]
	b	.L1
.L50:
	mov	r1, #0
	bl	read_gitfile_gently
	subs	r6, r0, #0
	bne	.L26
.L25:
	ldr	r0, [r4, #4]
	bl	is_git_directory
	cmp	r0, #0
	beq	.L13
	ldr	r6, [r8]
	mov	r1, fp
	mov	r0, r4
	bl	strbuf_setlen
	cmp	r6, #0
	bne	.L14
	ldr	r0, [r4, #4]
	bl	is_git_directory
	cmp	r0, #0
	beq	.L18
.L52:
	ldr	r0, [sp, #4]
	ldr	r1, .L56+52
	bl	strbuf_addstr
	ldr	r3, .L56+56
	ldr	r0, [r3]
	b	.L1
.L49:
	mov	r1, #47
	mov	r0, r4
	bl	strbuf_addch
	b	.L9
.L46:
	mov	r1, r6
	ldr	r0, [sp, #4]
	bl	strbuf_addstr
	ldr	r3, .L56+60
	ldr	r0, [r3]
	b	.L1
.L48:
	mov	r2, r9
	mov	r1, r9
	ldr	r0, [r4, #4]
	bl	get_device_or_die
	str	r0, [sp]
	b	.L8
.L47:
	ldr	r3, [r4, #4]
	sub	r2, r7, #-1073741823
	ldr	r0, [r3, r2, lsl #2]
	bl	is_dir_sep
	cmp	r0, #0
	bne	.L7
	mov	r1, #47
	mov	r0, r4
	bl	strbuf_addch
	add	r7, r7, #1
	b	.L7
.L51:
	ldr	r3, .L56+64
	ldr	r0, [r3]
	b	.L1
.L55:
	bl	__stack_chk_fail
.L57:
	.align	2
.L56:
	.word	CEILING_DIRECTORIES_ENVIRONMENT
	.word	.LC2
	.word	STRING_LIST_INIT_DUP
	.word	GIT_DIR_ENVIRONMENT
	.word	PATH_SEP
	.word	canonicalize_ceiling_entry
	.word	.LC0
	.word	DEFAULT_GIT_DIR_ENVIRONMENT
	.word	READ_GITFILE_ERR_NOT_A_FILE
	.word	READ_GITFILE_ERR_STAT_FAILED
	.word	GIT_DIR_HIT_CEILING
	.word	GIT_DIR_HIT_MOUNT_POINT
	.word	GIT_DIR_DISCOVERED
	.word	.LC1
	.word	GIT_DIR_BARE
	.word	GIT_DIR_EXPLICIT
	.word	GIT_DIR_INVALID_GITFILE
	.size	setup_git_directory_gently_1, .-setup_git_directory_gently_1
	.comm	canonicalize_ceiling_entry,4,4
	.comm	STRING_LIST_INIT_DUP,4,4
	.comm	READ_GITFILE_ERR_STAT_FAILED,4,4
	.comm	READ_GITFILE_ERR_NOT_A_FILE,4,4
	.comm	PATH_SEP,4,4
	.comm	GIT_DIR_INVALID_GITFILE,4,4
	.comm	GIT_DIR_HIT_MOUNT_POINT,4,4
	.comm	GIT_DIR_HIT_CEILING,4,4
	.comm	GIT_DIR_EXPLICIT,4,4
	.comm	GIT_DIR_ENVIRONMENT,4,4
	.comm	GIT_DIR_DISCOVERED,4,4
	.comm	GIT_DIR_BARE,4,4
	.comm	DEFAULT_GIT_DIR_ENVIRONMENT,4,4
	.comm	CEILING_DIRECTORIES_ENVIRONMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
