	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_default_files
_create_default_files:                  ## @create_default_files
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%eax, -80(%rbp)
	movq	_init_db_template_dir@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_git_init_db_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	movq	%rbx, %rdi
	callq	_copy_templates
	xorl	%eax, %eax
	callq	_git_config_clear
	xorl	%eax, %eax
	callq	_reset_shared_repository
	movq	_git_default_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	movq	_init_is_bare_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_is_bare_repository_cfg@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_init_shared_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	callq	_set_shared_repository
LBB0_2:
	xorl	%eax, %eax
	callq	_get_shared_repository
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_get_git_dir
	movl	%eax, %edi
	callq	_adjust_shared_perm
LBB0_4:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_git_path
	movl	%eax, %edi
	movl	$1, %esi
	callq	_safe_create_dir
	movq	%rbx, %rdi
	callq	_git_path
	movl	%eax, %edi
	callq	_adjust_shared_perm
	leaq	-80(%rbp), %rdi
	callq	_refs_init_db
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	-80(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_die
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_git_path_buf
	movq	%rax, %rbx
	movq	_R_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_access
	movb	$1, %r13b
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	-90(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_readlink
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_create_symref
	testq	%rax, %rax
	js	LBB0_38
LBB0_9:
	movq	_GIT_REPO_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rdx
	leaq	-58(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_xsnprintf
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_git_config_set
	leaq	L_.str.6(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_git_path_buf
	movq	%rax, %rbx
	movq	_TEST_FILEMODE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.10:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	leaq	L_.str.8(%rip), %r15
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movl	-72(%rbp), %r12d
	movq	_S_IXUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %esi
	movq	%rbx, %rdi
	callq	_chmod
	testl	%eax, %eax
	je	LBB0_12
LBB0_17:
	leaq	L_.str.9(%rip), %r15
LBB0_18:
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rsi
	callq	_git_config_set
	xorl	%eax, %eax
	callq	_is_bare_repository
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.10(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_24
LBB0_20:
	xorl	%eax, %eax
	callq	_get_git_work_tree
	movq	%rax, %rbx
	leaq	L_.str.10(%rip), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_git_config_set
	movq	_log_all_ref_updates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LOG_REFS_UNSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_git_config_set
LBB0_22:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_needs_work_tree_config
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	leaq	L_.str.12(%rip), %rdi
	movq	%rbx, %rsi
LBB0_24:
	callq	_git_config_set
LBB0_25:
	testb	%r13b, %r13b
	jne	LBB0_36
## %bb.26:
	leaq	L_.str.13(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_git_path_buf
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_xmkstemp
	movl	%eax, %edi
	callq	_close
	testl	%eax, %eax
	jne	LBB0_32
## %bb.27:
	movq	%rbx, %rdi
	callq	_unlink
	testl	%eax, %eax
	jne	LBB0_32
## %bb.28:
	leaq	L_.str.14(%rip), %rdi
	movq	%rbx, %rsi
	callq	_symlink
	testl	%eax, %eax
	jne	LBB0_32
## %bb.29:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	testl	%eax, %eax
	je	LBB0_30
LBB0_32:
	leaq	L_.str.15(%rip), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_git_config_set
LBB0_33:
	leaq	L_.str.16(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_git_path_buf
	movq	_F_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_access
	testl	%eax, %eax
	jne	LBB0_35
## %bb.34:
	leaq	L_.str.17(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_git_config_set
LBB0_35:
	xorl	%eax, %eax
	callq	_probe_utf8_pathname_composition
LBB0_36:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.37:
	movzbl	%r13b, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	cmpl	-88(%rbp), %r12d
	je	LBB0_17
## %bb.14:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_chmod
	testl	%eax, %eax
	setne	%cl
	orb	%r13b, %cl
	je	LBB0_15
## %bb.16:
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_15:
	movq	_S_IXUSR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_17
	jmp	LBB0_18
LBB0_30:
	movl	-72(%rbp), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	%rbx, %rdi
	callq	_unlink
	jmp	LBB0_33
LBB0_39:
	callq	___stack_chk_fail
LBB0_38:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_init_db_template_dir,8,3       ## @init_db_template_dir
	.comm	_git_init_db_config,4,2         ## @git_init_db_config
	.comm	_git_default_config,4,2         ## @git_default_config
	.comm	_init_is_bare_repository,4,2    ## @init_is_bare_repository
	.comm	_is_bare_repository_cfg,4,2     ## @is_bare_repository_cfg
	.comm	_init_shared_repository,4,2     ## @init_shared_repository
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set up refs db: %s"

L_.str.2:                               ## @.str.2
	.asciz	"HEAD"

	.comm	_R_OK,4,2                       ## @R_OK
L_.str.3:                               ## @.str.3
	.asciz	"refs/heads/master"

L_.str.4:                               ## @.str.4
	.asciz	"%d"

	.comm	_GIT_REPO_VERSION,4,2           ## @GIT_REPO_VERSION
L_.str.5:                               ## @.str.5
	.asciz	"core.repositoryformatversion"

L_.str.6:                               ## @.str.6
	.asciz	"config"

	.comm	_TEST_FILEMODE,4,2              ## @TEST_FILEMODE
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
L_.str.7:                               ## @.str.7
	.asciz	"core.filemode"

L_.str.8:                               ## @.str.8
	.asciz	"true"

L_.str.9:                               ## @.str.9
	.asciz	"false"

L_.str.10:                              ## @.str.10
	.asciz	"core.bare"

	.comm	_log_all_ref_updates,8,3        ## @log_all_ref_updates
	.comm	_LOG_REFS_UNSET,8,3             ## @LOG_REFS_UNSET
L_.str.11:                              ## @.str.11
	.asciz	"core.logallrefupdates"

L_.str.12:                              ## @.str.12
	.asciz	"core.worktree"

L_.str.13:                              ## @.str.13
	.asciz	"tXXXXXX"

L_.str.14:                              ## @.str.14
	.asciz	"testing"

L_.str.15:                              ## @.str.15
	.asciz	"core.symlinks"

L_.str.16:                              ## @.str.16
	.asciz	"CoNfIg"

	.comm	_F_OK,4,2                       ## @F_OK
L_.str.17:                              ## @.str.17
	.asciz	"core.ignorecase"

	.no_dead_strip	_create_default_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_default_files
_create_default_files:                  ; @create_default_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, _init_db_template_dir@GOTPAGE
Lloh7:
	ldr	x8, [x8, _init_db_template_dir@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x8, _git_init_db_config@GOTPAGE
Lloh10:
	ldr	x8, [x8, _git_init_db_config@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
	mov	x0, x20
	bl	_copy_templates
	bl	_git_config_clear
	bl	_reset_shared_repository
Lloh12:
	adrp	x8, _git_default_config@GOTPAGE
Lloh13:
	ldr	x8, [x8, _git_default_config@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
Lloh15:
	adrp	x8, _init_is_bare_repository@GOTPAGE
Lloh16:
	ldr	x8, [x8, _init_is_bare_repository@GOTPAGEOFF]
Lloh17:
	adrp	x9, _is_bare_repository_cfg@GOTPAGE
Lloh18:
	ldr	x9, [x9, _is_bare_repository_cfg@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	str	w8, [x9]
Lloh21:
	adrp	x8, _init_shared_repository@GOTPAGE
Lloh22:
	ldr	x8, [x8, _init_shared_repository@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	bl	_set_shared_repository
LBB0_2:
	bl	_get_shared_repository
	cbz	x0, LBB0_4
; %bb.3:
	bl	_get_git_dir
	bl	_adjust_shared_perm
LBB0_4:
Lloh24:
	adrp	x20, l_.str@PAGE
Lloh25:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_git_path
	mov	w1, #1
	bl	_safe_create_dir
	mov	x0, x20
	bl	_git_path
	bl	_adjust_shared_perm
	add	x0, sp, #8
	bl	_refs_init_db
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [sp, #8]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_6:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	bl	_git_path_buf
	mov	x21, x0
Lloh30:
	adrp	x8, _R_OK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_access
	mov	w20, #1
	cbz	w0, LBB0_10
; %bb.7:
	add	x1, sp, #14
	mov	x0, x21
	mov	w2, #1
	bl	_readlink
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.8:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, #0
	bl	_create_symref
	tbnz	x0, #63, LBB0_41
; %bb.9:
	mov	w20, #0
LBB0_10:
Lloh37:
	adrp	x8, _GIT_REPO_VERSION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GIT_REPO_VERSION@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #30
	mov	w1, #10
	bl	_xsnprintf
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #30
	bl	_git_config_set
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #16
	bl	_git_path_buf
Lloh46:
	adrp	x8, _TEST_FILEMODE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TEST_FILEMODE@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.11:
	mov	x21, x0
	add	x1, sp, #24
	bl	_lstat
	cbz	w0, LBB0_13
LBB0_12:
Lloh49:
	adrp	x1, l_.str.8@PAGE
Lloh50:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	w22, [sp, #24]
Lloh51:
	adrp	x23, _S_IXUSR@GOTPAGE
Lloh52:
	ldr	x23, [x23, _S_IXUSR@GOTPAGEOFF]
	ldr	w8, [x23]
	eor	w1, w8, w22
	mov	x0, x21
	bl	_chmod
	cbz	w0, LBB0_33
LBB0_14:
Lloh53:
	adrp	x1, l_.str.9@PAGE
Lloh54:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_15:
Lloh55:
	adrp	x0, l_.str.7@PAGE
Lloh56:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_git_config_set
	bl	_is_bare_repository
	cbz	x0, LBB0_17
; %bb.16:
Lloh57:
	adrp	x0, l_.str.10@PAGE
Lloh58:
	add	x0, x0, l_.str.10@PAGEOFF
Lloh59:
	adrp	x1, l_.str.8@PAGE
Lloh60:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_21
LBB0_17:
	bl	_get_git_work_tree
	mov	x21, x0
Lloh61:
	adrp	x0, l_.str.10@PAGE
Lloh62:
	add	x0, x0, l_.str.10@PAGEOFF
Lloh63:
	adrp	x1, l_.str.9@PAGE
Lloh64:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_git_config_set
Lloh65:
	adrp	x8, _log_all_ref_updates@GOTPAGE
Lloh66:
	ldr	x8, [x8, _log_all_ref_updates@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
Lloh68:
	adrp	x9, _LOG_REFS_UNSET@GOTPAGE
Lloh69:
	ldr	x9, [x9, _LOG_REFS_UNSET@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
Lloh71:
	adrp	x0, l_.str.11@PAGE
Lloh72:
	add	x0, x0, l_.str.11@PAGEOFF
Lloh73:
	adrp	x1, l_.str.8@PAGE
Lloh74:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_git_config_set
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_needs_work_tree_config
	cbz	x0, LBB0_22
; %bb.20:
Lloh75:
	adrp	x0, l_.str.12@PAGE
Lloh76:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, x21
LBB0_21:
	bl	_git_config_set
LBB0_22:
	tbnz	w20, #0, LBB0_31
; %bb.23:
Lloh77:
	adrp	x1, l_.str.13@PAGE
Lloh78:
	add	x1, x1, l_.str.13@PAGEOFF
	add	x0, sp, #16
	bl	_git_path_buf
	mov	x19, x0
	bl	_xmkstemp
	bl	_close
	cbnz	w0, LBB0_27
; %bb.24:
	mov	x0, x19
	bl	_unlink
	cbnz	w0, LBB0_27
; %bb.25:
Lloh79:
	adrp	x0, l_.str.14@PAGE
Lloh80:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x19
	bl	_symlink
	cbnz	w0, LBB0_27
; %bb.26:
	add	x1, sp, #24
	mov	x0, x19
	bl	_lstat
	cbz	w0, LBB0_38
LBB0_27:
Lloh81:
	adrp	x0, l_.str.15@PAGE
Lloh82:
	add	x0, x0, l_.str.15@PAGEOFF
Lloh83:
	adrp	x1, l_.str.9@PAGE
Lloh84:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_git_config_set
LBB0_28:
Lloh85:
	adrp	x1, l_.str.16@PAGE
Lloh86:
	add	x1, x1, l_.str.16@PAGEOFF
	add	x0, sp, #16
	bl	_git_path_buf
Lloh87:
	adrp	x8, _F_OK@GOTPAGE
Lloh88:
	ldr	x8, [x8, _F_OK@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	bl	_access
	cbnz	w0, LBB0_30
; %bb.29:
Lloh90:
	adrp	x0, l_.str.17@PAGE
Lloh91:
	add	x0, x0, l_.str.17@PAGEOFF
Lloh92:
	adrp	x1, l_.str.8@PAGE
Lloh93:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_git_config_set
LBB0_30:
	bl	_probe_utf8_pathname_composition
LBB0_31:
	add	x0, sp, #16
	bl	_strbuf_release
	ldr	x8, [sp, #40]
Lloh94:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh95:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh96:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.32:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_33:
	mov	x1, sp
	mov	x0, x21
	bl	_lstat
	cbnz	w0, LBB0_14
; %bb.34:
	ldr	w8, [sp]
	cmp	w22, w8
	b.eq	LBB0_14
; %bb.35:
	mov	x0, x21
	mov	x1, x22
	bl	_chmod
	cmp	w0, #0
	cset	w8, ne
	orr	w8, w20, w8
	tbz	w8, #0, LBB0_37
; %bb.36:
	cbnz	w0, LBB0_14
	b	LBB0_12
LBB0_37:
	ldr	w8, [x23]
	tst	w8, w22
	b.ne	LBB0_14
	b	LBB0_12
LBB0_38:
	ldr	w0, [sp, #24]
	bl	_S_ISLNK
	cbz	x0, LBB0_27
; %bb.39:
	mov	x0, x19
	bl	_unlink
	b	LBB0_28
LBB0_40:
	bl	___stack_chk_fail
LBB0_41:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_init_db_template_dir,8,3       ; @init_db_template_dir
	.comm	_git_init_db_config,4,2         ; @git_init_db_config
	.comm	_git_default_config,4,2         ; @git_default_config
	.comm	_init_is_bare_repository,4,2    ; @init_is_bare_repository
	.comm	_is_bare_repository_cfg,4,2     ; @is_bare_repository_cfg
	.comm	_init_shared_repository,4,2     ; @init_shared_repository
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set up refs db: %s"

l_.str.2:                               ; @.str.2
	.asciz	"HEAD"

	.comm	_R_OK,4,2                       ; @R_OK
l_.str.3:                               ; @.str.3
	.asciz	"refs/heads/master"

l_.str.4:                               ; @.str.4
	.asciz	"%d"

	.comm	_GIT_REPO_VERSION,4,2           ; @GIT_REPO_VERSION
l_.str.5:                               ; @.str.5
	.asciz	"core.repositoryformatversion"

l_.str.6:                               ; @.str.6
	.asciz	"config"

	.comm	_TEST_FILEMODE,4,2              ; @TEST_FILEMODE
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
l_.str.7:                               ; @.str.7
	.asciz	"core.filemode"

l_.str.8:                               ; @.str.8
	.asciz	"true"

l_.str.9:                               ; @.str.9
	.asciz	"false"

l_.str.10:                              ; @.str.10
	.asciz	"core.bare"

	.comm	_log_all_ref_updates,8,3        ; @log_all_ref_updates
	.comm	_LOG_REFS_UNSET,8,3             ; @LOG_REFS_UNSET
l_.str.11:                              ; @.str.11
	.asciz	"core.logallrefupdates"

l_.str.12:                              ; @.str.12
	.asciz	"core.worktree"

l_.str.13:                              ; @.str.13
	.asciz	"tXXXXXX"

l_.str.14:                              ; @.str.14
	.asciz	"testing"

l_.str.15:                              ; @.str.15
	.asciz	"core.symlinks"

l_.str.16:                              ; @.str.16
	.asciz	"CoNfIg"

	.comm	_F_OK,4,2                       ; @F_OK
l_.str.17:                              ; @.str.17
	.asciz	"core.ignorecase"

	.no_dead_strip	_create_default_files
.subsections_via_symbols
