	.file	"extr_submodule--helper.c_ensure_core_worktree.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"submodule--helper ensure-core-worktree <path>"
	.align 8
.LC1:
	.string	"We could get the submodule handle before?"
	.align 8
.LC2:
	.string	"could not get a repository handle for submodule '%s'"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"core.worktree"
.LC4:
	.string	"config"
	.text
	.p2align 4
	.type	ensure_core_worktree, @function
ensure_core_worktree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	edi, 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	BUG@PLT
.L2:
	mov	r12, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR the_repository[rip]
	lea	rsi, null_oid[rip]
	mov	rdx, r12
	call	submodule_from_path@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L15
.L3:
	lea	rbp, 24[rsp]
	mov	esi, DWORD PTR the_repository[rip]
	mov	rdi, rbp
	call	repo_submodule_init@PLT
	test	rax, rax
	jne	.L16
.L4:
	lea	rdx, 32[rsp]
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	repo_config_get_string@PLT
	test	eax, eax
	je	.L17
.L5:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	_@PLT
	mov	rsi, r12
	mov	edi, eax
	call	die@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR STRBUF_INIT[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	mov	DWORD PTR 28[rsp], eax
	call	repo_git_path@PLT
	mov	rdi, r12
	lea	r12, 28[rsp]
	mov	r13, rax
	call	absolute_pathdup@PLT
	mov	esi, DWORD PTR 24[rsp]
	mov	rdx, r12
	mov	rdi, rax
	mov	rbp, rax
	call	relative_path@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	mov	rdx, rax
	call	git_config_set_in_file@PLT
	mov	rdi, r13
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	rdi, r12
	call	strbuf_release@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 8[rsp], rax
	call	BUG@PLT
	mov	rdx, QWORD PTR 8[rsp]
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ensure_core_worktree, .-ensure_core_worktree
	.comm	the_repository,4,4
	.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_submodule--helper.c_ensure_core_worktree.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"submodule--helper ensure-core-worktree <path>\000"
	.align	2
.LC1:
	.ascii	"We could get the submodule handle before?\000"
	.align	2
.LC2:
	.ascii	"could not get a repository handle for submodule '%s"
	.ascii	"'\000"
	.align	2
.LC3:
	.ascii	"core.worktree\000"
	.align	2
.LC4:
	.ascii	"config\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ensure_core_worktree, %function
ensure_core_worktree:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L19
	sub	sp, sp, #28
	cmp	r0, #2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L2
	ldr	r0, .L19+4
	bl	BUG
.L2:
	ldr	r5, [r4, #4]
	ldr	r4, .L19+8
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L19+12
	bl	submodule_from_path
	subs	r2, r0, #0
	beq	.L15
.L3:
	ldr	r1, [r4]
	add	r0, sp, #12
	bl	repo_submodule_init
	cmp	r0, #0
	bne	.L16
.L4:
	ldr	r1, .L19+16
	add	r2, sp, #8
	add	r0, sp, #12
	bl	repo_config_get_string
	cmp	r0, #0
	beq	.L17
.L5:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L16:
	ldr	r0, .L19+20
	bl	_
	mov	r1, r5
	bl	die
	b	.L4
.L17:
	ldr	r3, .L19+24
	ldr	r1, .L19+28
	ldr	r3, [r3]
	add	r0, sp, #12
	str	r3, [sp, #16]
	bl	repo_git_path
	mov	r4, r0
	mov	r0, r5
	bl	absolute_pathdup
	ldr	r1, [sp, #12]
	add	r2, sp, #16
	mov	r5, r0
	bl	relative_path
	ldr	r1, .L19+16
	mov	r2, r0
	mov	r0, r4
	bl	git_config_set_in_file
	mov	r0, r4
	bl	free
	mov	r0, r5
	bl	free
	add	r0, sp, #16
	bl	strbuf_release
	b	.L5
.L15:
	ldr	r0, .L19+32
	str	r2, [sp, #4]
	bl	BUG
	ldr	r2, [sp, #4]
	b	.L3
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	.LC0
	.word	the_repository
	.word	null_oid
	.word	.LC3
	.word	.LC2
	.word	STRBUF_INIT
	.word	.LC4
	.word	.LC1
	.size	ensure_core_worktree, .-ensure_core_worktree
	.comm	the_repository,4,4
	.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
