	.file	"extr_worktree.c_add_worktree.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid reference: %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"How come '%s' becomes empty after sanitization?"
	.section	.rodata.str1.1
.LC2:
	.string	"worktrees/%s"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"could not create leading directories of '%s'"
	.align 8
.LC4:
	.string	"could not create directory of '%s'"
	.section	.rodata.str1.1
.LC5:
	.string	"%d"
.LC6:
	.string	"%s/locked"
.LC7:
	.string	"initializing"
.LC8:
	.string	"added with --lock"
.LC9:
	.string	"%s/.git"
.LC10:
	.string	"%s/gitdir"
.LC11:
	.string	"%s"
.LC12:
	.string	"gitdir: %s/worktrees/%s"
.LC13:
	.string	"%s/HEAD"
.LC14:
	.string	"%s/commondir"
.LC15:
	.string	"../.."
.LC16:
	.string	"%s=%s"
.LC17:
	.string	"HEAD"
.LC18:
	.string	"update-ref"
.LC19:
	.string	"symbolic-ref"
.LC20:
	.string	"--quiet"
.LC21:
	.string	"--hard"
.LC22:
	.string	"reset"
.LC23:
	.string	"post-checkout"
.LC24:
	.string	"GIT_DIR"
.LC25:
	.string	"GIT_WORK_TREE"
.LC26:
	.string	"1"
	.text
	.p2align 4
	.type	add_worktree, @function
add_worktree:
.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
	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
	mov	rbp, rsi
	mov	rsi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 264
	.cfi_def_cfa_offset 320
	movdqu	xmm0, XMMWORD PTR STRBUF_INIT[rip]
	movdqu	xmm1, XMMWORD PTR CHILD_PROCESS_INIT[rip]
	mov	QWORD PTR 8[rsp], rdx
	movdqu	xmm2, XMMWORD PTR CHILD_PROCESS_INIT[rip+16]
	movdqu	xmm3, XMMWORD PTR CHILD_PROCESS_INIT[rip+32]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 248[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR CHILD_PROCESS_INIT[rip+48]
	movaps	XMMWORD PTR 80[rsp], xmm0
	movaps	XMMWORD PTR 96[rsp], xmm0
	mov	QWORD PTR 208[rsp], rax
	mov	rax, QWORD PTR ARGV_ARRAY_INIT[rip]
	movaps	XMMWORD PTR 112[rsp], xmm0
	mov	QWORD PTR 72[rsp], rax
	movaps	XMMWORD PTR 160[rsp], xmm1
	movaps	XMMWORD PTR 176[rsp], xmm2
	movaps	XMMWORD PTR 192[rsp], xmm3
	movaps	XMMWORD PTR 128[rsp], xmm0
	movaps	XMMWORD PTR 144[rsp], xmm0
	call	validate_worktree_add@PLT
	mov	r8d, DWORD PTR 28[rbx]
	lea	rax, 128[rsp]
	mov	QWORD PTR 40[rsp], rax
	test	r8d, r8d
	je	.L2
.L4:
	mov	DWORD PTR 20[rsp], 0
.L3:
	mov	rdi, rbp
	call	lookup_commit_reference_by_name@PLT
	mov	QWORD PTR 48[rsp], rax
	test	rax, rax
	je	.L49
.L5:
	lea	rsi, 68[rsp]
	mov	rdi, r13
	lea	r12, 112[rsp]
	call	worktree_basename@PLT
	movsx	rdx, DWORD PTR 68[rsp]
	mov	rdi, r12
	mov	rsi, rax
	add	rdx, r13
	sub	rdx, rax
	call	strbuf_add@PLT
	lea	rax, 144[rsp]
	mov	rdi, QWORD PTR 112[rsp]
	mov	rsi, rax
	mov	QWORD PTR 24[rsp], rax
	call	sanitize_refname_component@PLT
	mov	esi, DWORD PTR 152[rsp]
	test	esi, esi
	je	.L50
.L6:
	mov	rdi, r12
	lea	rbp, 96[rsp]
	call	strbuf_reset@PLT
	mov	rdx, QWORD PTR 144[rsp]
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	git_path_buf@PLT
	mov	eax, DWORD PTR 104[rsp]
	mov	rdi, QWORD PTR 96[rsp]
	mov	DWORD PTR 68[rsp], eax
	call	safe_create_leading_directories_const@PLT
	test	rax, rax
	jne	.L51
.L7:
	xor	ebx, ebx
	lea	r14, .LC4[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR EEXIST[rip]
	add	ebx, 1
	cmp	QWORD PTR errno[rip], rax
	jne	.L29
	test	ebx, ebx
	jne	.L9
.L29:
	mov	r15, QWORD PTR 96[rsp]
	mov	rdi, r14
	call	_@PLT
	mov	edi, eax
	mov	rsi, r15
	call	die_errno@PLT
.L9:
	mov	esi, DWORD PTR 68[rsp]
	mov	rdi, rbp
	call	strbuf_setlen@PLT
	mov	edx, ebx
	lea	rsi, .LC5[rip]
	xor	eax, eax
	mov	rdi, rbp
	call	strbuf_addf@PLT
.L8:
	mov	rdi, QWORD PTR 96[rsp]
	mov	esi, 511
	call	mkdir@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, QWORD PTR 96[rsp]
	mov	esi, 47
	call	strrchr@PLT
	lea	r14, 1[rax]
	xor	eax, eax
	call	getpid@PLT
	mov	edi, DWORD PTR remove_junk[rip]
	mov	DWORD PTR junk_pid[rip], eax
	call	atexit@PLT
	mov	edi, DWORD PTR remove_junk_on_signal[rip]
	call	sigchain_push_common@PLT
	mov	rdi, QWORD PTR 96[rsp]
	call	xstrdup@PLT
	mov	rdx, QWORD PTR 96[rsp]
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	mov	DWORD PTR junk_git_dir[rip], eax
	xor	eax, eax
	mov	DWORD PTR is_junk[rip], 1
	call	strbuf_addf@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 8[rax]
	test	ecx, ecx
	jne	.L12
	mov	rdi, QWORD PTR 112[rsp]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	write_file@PLT
.L13:
	lea	rax, 80[rsp]
	mov	rdx, r13
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	QWORD PTR 32[rsp], rax
	xor	eax, eax
	call	strbuf_addf@PLT
	mov	rdi, QWORD PTR 80[rsp]
	call	safe_create_leading_directories_const@PLT
	test	rax, rax
	jne	.L52
.L14:
	mov	rdi, r13
	call	xstrdup@PLT
	mov	rdi, r12
	mov	DWORD PTR junk_work_tree[rip], eax
	call	strbuf_reset@PLT
	mov	rdx, QWORD PTR 96[rsp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC10[rip]
	call	strbuf_addf@PLT
	mov	rdi, QWORD PTR 80[rsp]
	call	real_path@PLT
	mov	rdi, QWORD PTR 112[rsp]
	lea	rsi, .LC11[rip]
	mov	edx, eax
	xor	eax, eax
	call	write_file@PLT
	xor	eax, eax
	call	get_git_common_dir@PLT
	mov	rdi, rax
	call	real_path@PLT
	mov	rdi, QWORD PTR 80[rsp]
	mov	rcx, r14
	lea	rsi, .LC12[rip]
	mov	edx, eax
	xor	eax, eax
	lea	r14, 72[rsp]
	call	write_file@PLT
	mov	rdi, r12
	call	strbuf_reset@PLT
	mov	rdx, QWORD PTR 96[rsp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC13[rip]
	call	strbuf_addf@PLT
	lea	rdi, null_oid[rip]
	call	oid_to_hex@PLT
	mov	rdi, QWORD PTR 112[rsp]
	lea	rsi, .LC11[rip]
	mov	edx, eax
	xor	eax, eax
	call	write_file@PLT
	mov	rdi, r12
	call	strbuf_reset@PLT
	mov	rdx, QWORD PTR 96[rsp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC14[rip]
	call	strbuf_addf@PLT
	mov	rdi, QWORD PTR 112[rsp]
	lea	rsi, .LC15[rip]
	xor	eax, eax
	call	write_file@PLT
	mov	rcx, QWORD PTR 80[rsp]
	mov	edx, DWORD PTR GIT_DIR_ENVIRONMENT[rip]
	mov	rdi, r14
	lea	rsi, .LC16[rip]
	call	argv_array_pushf@PLT
	mov	edx, DWORD PTR GIT_WORK_TREE_ENVIRONMENT[rip]
	mov	rcx, r13
	mov	rdi, r14
	lea	rsi, .LC16[rip]
	call	argv_array_pushf@PLT
	mov	edx, DWORD PTR 20[rsp]
	mov	DWORD PTR 160[rsp], 1
	test	edx, edx
	jne	.L15
	mov	rdi, QWORD PTR 48[rsp]
	lea	rbx, 200[rsp]
	call	oid_to_hex@PLT
	xor	r8d, r8d
	lea	rdx, .LC17[rip]
	mov	rdi, rbx
	movsx	rcx, eax
	lea	rsi, .LC18[rip]
	xor	eax, eax
	call	argv_array_pushl@PLT
.L16:
	mov	rax, QWORD PTR 72[rsp]
	mov	QWORD PTR 168[rsp], rax
	lea	rax, 160[rsp]
	mov	rdi, rax
	mov	QWORD PTR 56[rsp], rax
	call	run_command@PLT
	mov	DWORD PTR 20[rsp], eax
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rax], 0
	je	.L47
	mov	QWORD PTR 208[rsp], 0
	mov	rdi, rbx
	call	argv_array_clear@PLT
	xor	ecx, ecx
	xor	eax, eax
	lea	rdx, .LC21[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rbx
	call	argv_array_pushl@PLT
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 16[rax], 0
	jne	.L53
.L20:
	mov	rax, QWORD PTR 72[rsp]
	mov	rdi, QWORD PTR 56[rsp]
	mov	QWORD PTR 168[rsp], rax
	call	run_command@PLT
	test	eax, eax
	jne	.L28
.L47:
	mov	DWORD PTR is_junk[rip], 0
	mov	edi, DWORD PTR junk_work_tree[rip]
	call	FREE_AND_NULL@PLT
	mov	edi, DWORD PTR junk_git_dir[rip]
	call	FREE_AND_NULL@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L25
	mov	rdi, r12
	call	strbuf_reset@PLT
	mov	rdx, QWORD PTR 96[rsp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC6[rip]
	call	strbuf_addf@PLT
	mov	rdi, QWORD PTR 112[rsp]
	call	unlink_or_warn@PLT
.L25:
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rax], 0
	jne	.L54
.L23:
	mov	rdi, r14
	call	argv_array_clear@PLT
	mov	rdi, r12
	call	strbuf_release@PLT
	mov	rdi, QWORD PTR 40[rsp]
	call	strbuf_release@PLT
	mov	rdi, rbp
	call	strbuf_release@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	strbuf_release@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	strbuf_release@PLT
	mov	rax, QWORD PTR 248[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L55
	mov	eax, DWORD PTR 20[rsp]
	add	rsp, 264
	.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
.L15:
	.cfi_restore_state
	mov	rcx, QWORD PTR 128[rsp]
	lea	rbx, 200[rsp]
	xor	r8d, r8d
	xor	eax, eax
	lea	rdx, .LC17[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rbx
	call	argv_array_pushl@PLT
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 16[rax], 0
	je	.L16
	lea	rsi, .LC20[rip]
	mov	rdi, rbx
	call	argv_array_push@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 112[rsp]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	write_file@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	mov	DWORD PTR 20[rsp], eax
.L17:
	mov	rdi, r12
	call	strbuf_reset@PLT
	mov	rdx, QWORD PTR 96[rsp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC6[rip]
	call	strbuf_addf@PLT
	mov	rdi, QWORD PTR 112[rsp]
	call	unlink_or_warn@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L52:
	mov	r15, QWORD PTR 80[rsp]
	lea	rdi, .LC3[rip]
	call	_@PLT
	mov	edi, eax
	mov	rsi, r15
	call	die_errno@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L51:
	mov	r14, QWORD PTR 96[rsp]
	lea	rdi, .LC3[rip]
	call	_@PLT
	mov	edi, eax
	mov	rsi, r14
	call	die_errno@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L50:
	mov	rsi, QWORD PTR 112[rsp]
	lea	rdi, .LC1[rip]
	call	BUG@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rbp
	mov	rdi, rax
	call	strbuf_check_branch_ref@PLT
	test	eax, eax
	jne	.L4
	mov	rdi, QWORD PTR 128[rsp]
	call	ref_exists@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 20[rsp], 1
	mov	edi, DWORD PTR 24[rax]
	test	edi, edi
	jne	.L3
	mov	rdi, QWORD PTR 128[rsp]
	xor	esi, esi
	call	die_if_checked_out@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L54:
	lea	rdi, .LC23[rip]
	call	find_hook@PLT
	mov	r15, rax
	test	rax, rax
	je	.L23
	lea	rax, .LC24[rip]
	mov	rdi, QWORD PTR 48[rsp]
	mov	QWORD PTR 184[rsp], r13
	mov	QWORD PTR 224[rsp], rax
	lea	rax, .LC25[rip]
	mov	QWORD PTR 232[rsp], rax
	movabs	rax, 4294967297
	mov	QWORD PTR 176[rsp], rax
	lea	rax, 224[rsp]
	mov	QWORD PTR 168[rsp], rax
	lea	rax, .LC23[rip]
	mov	QWORD PTR 240[rsp], 0
	mov	DWORD PTR 160[rsp], 0
	mov	QWORD PTR 208[rsp], 0
	mov	QWORD PTR 192[rsp], rax
	call	oid_to_hex@PLT
	lea	rdi, null_oid[rip]
	mov	r13d, eax
	call	oid_to_hex@PLT
	mov	rdi, r15
	mov	DWORD PTR 8[rsp], eax
	call	absolute_path@PLT
	movsx	rdx, DWORD PTR 8[rsp]
	movsx	rcx, r13d
	xor	r9d, r9d
	movsx	rsi, eax
	lea	r8, .LC26[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	argv_array_pushl@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	run_command@PLT
	mov	DWORD PTR 20[rsp], eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L49:
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	die@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L53:
	lea	rsi, .LC20[rip]
	mov	rdi, rbx
	call	argv_array_push@PLT
	jmp	.L20
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_worktree, .-add_worktree
	.comm	remove_junk_on_signal,4,4
	.comm	remove_junk,4,4
	.comm	null_oid,4,4
	.comm	junk_work_tree,4,4
	.comm	junk_pid,4,4
	.comm	junk_git_dir,4,4
	.comm	is_junk,4,4
	.comm	errno,8,8
	.comm	STRBUF_INIT,16,16
	.comm	GIT_WORK_TREE_ENVIRONMENT,4,4
	.comm	GIT_DIR_ENVIRONMENT,4,4
	.comm	EEXIST,8,8
	.comm	CHILD_PROCESS_INIT,56,32
	.comm	ARGV_ARRAY_INIT,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_worktree.c_add_worktree.c"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GIT_DIR\000"
	.align	2
.LC1:
	.ascii	"GIT_WORK_TREE\000"
	.text
	.section	.rodata.str1.4
	.align	2
.LC3:
	.ascii	"invalid reference: %s\000"
	.align	2
.LC4:
	.ascii	"How come '%s' becomes empty after sanitization?\000"
	.align	2
.LC5:
	.ascii	"worktrees/%s\000"
	.align	2
.LC6:
	.ascii	"could not create leading directories of '%s'\000"
	.align	2
.LC7:
	.ascii	"could not create directory of '%s'\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"%s/locked\000"
	.align	2
.LC10:
	.ascii	"initializing\000"
	.align	2
.LC11:
	.ascii	"added with --lock\000"
	.align	2
.LC12:
	.ascii	"%s/.git\000"
	.align	2
.LC13:
	.ascii	"%s/gitdir\000"
	.align	2
.LC14:
	.ascii	"%s\000"
	.align	2
.LC15:
	.ascii	"gitdir: %s/worktrees/%s\000"
	.align	2
.LC16:
	.ascii	"%s/HEAD\000"
	.align	2
.LC17:
	.ascii	"%s/commondir\000"
	.align	2
.LC18:
	.ascii	"../..\000"
	.align	2
.LC19:
	.ascii	"%s=%s\000"
	.align	2
.LC20:
	.ascii	"HEAD\000"
	.align	2
.LC21:
	.ascii	"update-ref\000"
	.align	2
.LC22:
	.ascii	"symbolic-ref\000"
	.align	2
.LC23:
	.ascii	"--quiet\000"
	.align	2
.LC24:
	.ascii	"--hard\000"
	.align	2
.LC25:
	.ascii	"reset\000"
	.align	2
.LC26:
	.ascii	"post-checkout\000"
	.align	2
.LC28:
	.ascii	"1\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_worktree, %function
add_worktree:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r2
	mov	r9, r0
	sub	sp, sp, #124
	ldr	ip, .L59
	ldr	lr, .L59+4
	add	r3, sp, #32
	add	r7, sp, #72
	add	r5, sp, #40
	add	r6, sp, #48
	str	r0, [sp, #12]
	str	r2, [sp, #8]
	mov	r4, r1
	ldm	ip, {r0, r1}
	stm	r3, {r0, r1}
	stm	r5, {r0, r1}
	stm	r6, {r0, r1}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	r7!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	ldr	lr, .L59+8
	ldr	r10, .L59+12
	ldr	lr, [lr]
	ldr	r10, [r10]
	str	r10, [sp, #116]
	mov	r10,#0
	stm	r7, {r0, r1, r2, r3}
	add	r3, sp, #56
	str	lr, [sp, #24]
	ldm	ip, {r0, r1}
	stm	r3, {r0, r1}
	add	r3, sp, #64
	stm	r3, {r0, r1}
	mov	r1, r8
	mov	r0, r9
	bl	validate_worktree_add
	ldr	r3, [r8, #16]
	cmp	r3, #0
	beq	.L2
.L4:
	mov	r3, #0
	str	r3, [sp, #16]
.L3:
	mov	r0, r4
	bl	lookup_commit_reference_by_name
	subs	r3, r0, #0
	str	r3, [sp, #20]
	beq	.L52
.L5:
	ldr	r4, [sp, #12]
	add	r1, sp, #28
	mov	r0, r4
	bl	worktree_basename
	ldr	r2, [sp, #28]
	mov	r1, r0
	add	r2, r4, r2
	sub	r2, r2, r0
	mov	r0, r6
	bl	strbuf_add
	ldr	r0, [sp, #48]
	add	r1, sp, #64
	bl	sanitize_refname_component
	ldr	r3, [sp, #68]
	cmp	r3, #0
	beq	.L53
.L6:
	mov	r0, r6
	bl	strbuf_reset
	ldr	r2, [sp, #64]
	ldr	r1, .L59+16
	mov	r0, r5
	bl	git_path_buf
	ldr	r3, [sp, #44]
	ldr	r0, [sp, #40]
	str	r3, [sp, #28]
	bl	safe_create_leading_directories_const
	cmp	r0, #0
	bne	.L54
.L7:
	mov	r4, #0
	ldr	r7, .L59+20
	ldr	r10, .L59+24
	ldr	r9, .L59+28
	ldr	fp, .L59+32
	ldr	r8, .L59+36
	b	.L8
.L10:
	adds	r4, r4, #1
	moveq	r3, #1
	movne	r3, #0
	ldr	r1, [r10]
	ldr	r2, [r9]
	cmp	r1, r2
	orrne	r3, r3, #1
	cmp	r3, #0
	beq	.L9
	mov	r0, fp
	bl	_
	ldr	r1, [sp, #40]
	bl	die_errno
.L9:
	ldr	r1, [sp, #28]
	mov	r0, r5
	bl	strbuf_setlen
	mov	r2, r4
	mov	r1, r8
	mov	r0, r5
	bl	strbuf_addf
.L8:
	mov	r1, r7
	ldr	r0, [sp, #40]
	bl	mkdir
	cmp	r0, #0
	bne	.L10
	mov	r1, #47
	ldr	r0, [sp, #40]
	bl	strrchr
	add	r4, r0, #1
	bl	getpid
	mov	r2, r0
	ldr	r1, .L59+40
	ldr	r3, .L59+44
	ldr	r0, [r1]
	str	r2, [r3]
	bl	atexit
	ldr	r3, .L59+48
	ldr	r10, .L59+52
	ldr	r0, [r3]
	bl	sigchain_push_common
	ldr	r0, [sp, #40]
	bl	xstrdup
	mov	r3, #1
	ldr	r9, .L59+56
	ldr	r1, .L59+60
	ldr	r2, [sp, #40]
	str	r0, [r10]
	mov	r0, r6
	str	r3, [r9]
	bl	strbuf_addf
	ldr	r3, [sp, #8]
	ldr	r0, [sp, #48]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	ldreq	r1, .L59+64
	ldrne	r1, .L59+68
	bl	write_file
	ldr	r2, [sp, #12]
	ldr	r1, .L59+72
	add	r0, sp, #32
	bl	strbuf_addf
	ldr	r0, [sp, #32]
	bl	safe_create_leading_directories_const
	cmp	r0, #0
	bne	.L55
.L13:
	ldr	fp, [sp, #12]
	ldr	r8, .L59+76
	mov	r0, fp
	bl	xstrdup
	mov	r3, r0
	mov	r0, r6
	str	r3, [r8]
	bl	strbuf_reset
	ldr	r2, [sp, #40]
	ldr	r1, .L59+80
	mov	r0, r6
	bl	strbuf_addf
	ldr	r0, [sp, #32]
	ldr	r7, [sp, #48]
	bl	real_path
	ldr	r1, .L59+84
	mov	r2, r0
	mov	r0, r7
	bl	write_file
	ldr	r7, [sp, #32]
	bl	get_git_common_dir
	bl	real_path
	mov	r3, r4
	mov	r2, r0
	ldr	r1, .L59+88
	mov	r0, r7
	bl	write_file
	mov	r0, r6
	bl	strbuf_reset
	ldr	r2, [sp, #40]
	ldr	r1, .L59+92
	mov	r0, r6
	bl	strbuf_addf
	ldr	r0, .L59+96
	ldr	r4, [sp, #48]
	bl	oid_to_hex
	ldr	r1, .L59+84
	mov	r2, r0
	mov	r0, r4
	bl	write_file
	mov	r0, r6
	bl	strbuf_reset
	ldr	r2, [sp, #40]
	ldr	r1, .L59+100
	mov	r0, r6
	bl	strbuf_addf
	ldr	r1, .L59+104
	ldr	r0, [sp, #48]
	bl	write_file
	ldr	r3, .L59+108
	ldr	r1, .L59+112
	ldr	r2, [r3]
	add	r0, sp, #24
	ldr	r3, [sp, #32]
	bl	argv_array_pushf
	ldr	r3, .L59+116
	ldr	r1, .L59+112
	ldr	r2, [r3]
	add	r0, sp, #24
	mov	r3, fp
	bl	argv_array_pushf
	mov	r3, #1
	ldr	r4, [sp, #16]
	str	r3, [sp, #72]
	cmp	r4, #0
	bne	.L14
	ldr	r0, [sp, #20]
	bl	oid_to_hex
	add	r7, sp, #96
	mov	r3, r0
	ldr	r2, .L59+120
	mov	r0, r7
	ldr	r1, .L59+124
	str	r4, [sp]
	bl	argv_array_pushl
.L15:
	ldr	r3, [sp, #24]
	add	r0, sp, #72
	str	r3, [sp, #76]
	bl	run_command
	subs	r4, r0, #0
	bne	.L16
	ldr	r3, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r0, [r8]
	str	r4, [r9]
	bl	FREE_AND_NULL
	ldr	r0, [r10]
	bl	FREE_AND_NULL
.L18:
	ldr	r3, [sp, #8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L24
	mov	r0, r6
	bl	strbuf_reset
	mov	r0, r6
	ldr	r2, [sp, #40]
	ldr	r1, .L59+60
	bl	strbuf_addf
	ldr	r0, [sp, #48]
	bl	unlink_or_warn
.L24:
	ldr	r3, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L56
.L22:
	add	r0, sp, #24
	bl	argv_array_clear
	mov	r0, r6
	bl	strbuf_release
	add	r0, sp, #56
	bl	strbuf_release
	mov	r0, r5
	bl	strbuf_release
	add	r0, sp, #32
	bl	strbuf_release
	add	r0, sp, #64
	bl	strbuf_release
	ldr	r3, .L59+12
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L57
	mov	r0, r4
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r3, #0
	add	r7, sp, #96
	str	r3, [sp]
	mov	r0, r7
	ldr	r3, [sp, #56]
	ldr	r2, .L59+120
	ldr	r1, .L59+128
	bl	argv_array_pushl
	ldr	r3, [sp, #8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L15
	mov	r0, r7
	ldr	r1, .L59+132
	bl	argv_array_push
	b	.L15
.L17:
	mov	r0, r7
	str	r4, [sp, #100]
	bl	argv_array_clear
	mov	r3, r4
	mov	r0, r7
	ldr	r2, .L59+136
	ldr	r1, .L59+140
	bl	argv_array_pushl
	ldr	r3, [sp, #8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L58
.L19:
	ldr	r3, [sp, #24]
	add	r0, sp, #72
	str	r3, [sp, #76]
	bl	run_command
	subs	r3, r0, #0
	bne	.L27
	ldr	r0, [r8]
	str	r3, [r9]
	bl	FREE_AND_NULL
	ldr	r0, [r10]
	bl	FREE_AND_NULL
	b	.L18
.L27:
	mov	r4, r3
.L16:
	mov	r0, r6
	bl	strbuf_reset
	mov	r0, r6
	ldr	r2, [sp, #40]
	ldr	r1, .L59+60
	bl	strbuf_addf
	ldr	r0, [sp, #48]
	bl	unlink_or_warn
	b	.L22
.L2:
	mov	r1, r4
	add	r0, sp, #56
	bl	strbuf_check_branch_ref
	cmp	r0, #0
	bne	.L4
	ldr	r0, [sp, #56]
	bl	ref_exists
	cmp	r0, #0
	beq	.L4
	ldr	r3, [sp, #8]
	ldr	r1, [r3, #12]
	cmp	r1, #0
	movne	r3, #1
	strne	r3, [sp, #16]
	bne	.L3
	ldr	r0, [sp, #56]
	bl	die_if_checked_out
	mov	r3, #1
	str	r3, [sp, #16]
	b	.L3
.L55:
	ldr	r0, .L59+144
	bl	_
	ldr	r1, [sp, #32]
	bl	die_errno
	b	.L13
.L54:
	ldr	r0, .L59+144
	bl	_
	ldr	r1, [sp, #40]
	bl	die_errno
	b	.L7
.L53:
	ldr	r1, [sp, #48]
	ldr	r0, .L59+148
	bl	BUG
	b	.L6
.L52:
	ldr	r0, .L59+152
	bl	_
	mov	r1, r4
	bl	die
	b	.L5
.L56:
	ldr	r8, .L59+156
	mov	r0, r8
	bl	find_hook
	subs	r3, r0, #0
	beq	.L22
	mov	lr, #1
	mov	r4, #0
	ldr	r1, [sp, #12]
	ldr	r2, .L59+160
	add	ip, sp, #104
	str	r1, [sp, #88]
	ldm	r2, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r0, r3
	str	lr, [sp, #80]
	str	lr, [sp, #84]
	str	ip, [sp, #76]
	str	r8, [sp, #92]
	str	r4, [sp, #72]
	str	r4, [sp, #100]
	bl	absolute_path
	mov	r8, r0
	ldr	r0, .L59+96
	bl	oid_to_hex
	mov	r9, r0
	ldr	r0, [sp, #20]
	bl	oid_to_hex
	ldr	ip, .L59+164
	mov	r3, r0
	mov	r2, r9
	mov	r1, r8
	str	r4, [sp, #4]
	str	ip, [sp]
	mov	r0, r7
	bl	argv_array_pushl
	add	r0, sp, #72
	bl	run_command
	mov	r4, r0
	b	.L22
.L58:
	mov	r0, r7
	ldr	r1, .L59+132
	bl	argv_array_push
	b	.L19
.L57:
	bl	__stack_chk_fail
.L60:
	.align	2
.L59:
	.word	STRBUF_INIT
	.word	CHILD_PROCESS_INIT
	.word	ARGV_ARRAY_INIT
	.word	.LC29
	.word	.LC5
	.word	511
	.word	errno
	.word	EEXIST
	.word	.LC7
	.word	.LC8
	.word	remove_junk
	.word	junk_pid
	.word	remove_junk_on_signal
	.word	junk_git_dir
	.word	is_junk
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	junk_work_tree
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	null_oid
	.word	.LC17
	.word	.LC18
	.word	GIT_DIR_ENVIRONMENT
	.word	.LC19
	.word	GIT_WORK_TREE_ENVIRONMENT
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC6
	.word	.LC4
	.word	.LC3
	.word	.LC26
	.word	.LANCHOR0
	.word	.LC28
	.size	add_worktree, .-add_worktree
	.comm	remove_junk_on_signal,4,4
	.comm	remove_junk,4,4
	.comm	null_oid,4,4
	.comm	junk_work_tree,4,4
	.comm	junk_pid,4,4
	.comm	junk_git_dir,4,4
	.comm	is_junk,4,4
	.comm	errno,4,4
	.comm	STRBUF_INIT,8,4
	.comm	GIT_WORK_TREE_ENVIRONMENT,4,4
	.comm	GIT_DIR_ENVIRONMENT,4,4
	.comm	EEXIST,4,4
	.comm	CHILD_PROCESS_INIT,32,4
	.comm	ARGV_ARRAY_INIT,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC27:
	.word	.LC0
	.word	.LC1
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
