	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_db                        ## -- Begin function init_db
	.p2align	4, 0x90
_init_db:                               ## @init_db
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INIT_DB_EXIST_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$1, %esi
	callq	_real_pathdup
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_7
## %bb.1:
	testl	%r15d, %r14d
	movq	%r12, %r14
	jne	LBB0_6
## %bb.2:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_4:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_die
LBB0_6:
	movq	%r13, %rdi
	callq	_real_path
	movl	%eax, %edi
	callq	_set_git_dir
	xorl	%eax, %eax
	callq	_get_git_dir
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_separate_git_dir
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_real_path
	movl	%eax, %edi
	callq	_set_git_dir
	xorl	%eax, %eax
	callq	_get_git_dir
	movq	%rax, %r13
	movq	%r12, %r14
LBB0_8:
	movq	_startup_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movq	_git_init_db_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_safe_create_dir
	xorl	%eax, %eax
	callq	_is_bare_repository
	movq	_init_is_bare_repository@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_check_repository_format
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_create_default_files
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_create_object_directory
	xorl	%eax, %eax
	callq	_get_shared_repository
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	xorl	%eax, %eax
	callq	_get_shared_repository
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_get_shared_repository
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.10:
	movq	_PERM_GROUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.11:
	movq	_OLD_PERM_GROUP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	negl	%eax
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$10, %esi
	movl	%eax, %ecx
	callq	_xsnprintf
	jmp	LBB0_17
LBB0_13:
	xorl	%eax, %eax
	callq	_get_shared_repository
	movq	_PERM_EVERYBODY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.14:
	movq	_OLD_PERM_EVERYBODY@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$10, %esi
	callq	_xsnprintf
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	callq	_BUG
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
	leaq	-64(%rbp), %rsi
	callq	_git_config_set
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_git_config_set
LBB0_18:
	movq	_INIT_DB_QUIET@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_26
## %bb.19:
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_get_shared_repository
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.20:
	testl	%eax, %eax
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_21
LBB0_23:
	testl	%eax, %eax
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.11(%rip), %rdi
LBB0_21:
	cmoveq	%rax, %rdi
	callq	__
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.24:
	movslq	%ebx, %rcx
	cmpb	$47, -1(%rcx,%r13)
	leaq	L_.str.10(%rip), %rcx
	leaq	L_.str.9(%rip), %rdx
	cmoveq	%rcx, %rdx
	jmp	LBB0_25
LBB0_22:
	leaq	L_.str.10(%rip), %rdx
LBB0_25:
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_printf
LBB0_26:
	movq	%r14, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INIT_DB_EXIST_OK,4,2           ## @INIT_DB_EXIST_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s already exists"

	.comm	_startup_info,8,3               ## @startup_info
	.comm	_git_init_db_config,4,2         ## @git_init_db_config
	.comm	_init_is_bare_repository,4,2    ## @init_is_bare_repository
L_.str.1:                               ## @.str.1
	.asciz	"0%o"

	.comm	_PERM_GROUP,4,2                 ## @PERM_GROUP
L_.str.2:                               ## @.str.2
	.asciz	"%d"

	.comm	_OLD_PERM_GROUP,4,2             ## @OLD_PERM_GROUP
	.comm	_PERM_EVERYBODY,4,2             ## @PERM_EVERYBODY
	.comm	_OLD_PERM_EVERYBODY,4,2         ## @OLD_PERM_EVERYBODY
L_.str.3:                               ## @.str.3
	.asciz	"invalid value for shared_repository"

L_.str.4:                               ## @.str.4
	.asciz	"core.sharedrepository"

L_.str.5:                               ## @.str.5
	.asciz	"receive.denyNonFastforwards"

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

	.comm	_INIT_DB_QUIET,4,2              ## @INIT_DB_QUIET
L_.str.7:                               ## @.str.7
	.asciz	"Reinitialized existing shared Git repository in %s%s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Reinitialized existing Git repository in %s%s\n"

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

L_.str.10:                              ## @.str.10
	.space	1

L_.str.11:                              ## @.str.11
	.asciz	"Initialized empty shared Git repository in %s%s\n"

L_.str.12:                              ## @.str.12
	.asciz	"Initialized empty Git repository in %s%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_db                        ; -- Begin function init_db
	.p2align	2
_init_db:                               ; @init_db
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _INIT_DB_EXIST_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INIT_DB_EXIST_OK@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	w1, #1
	bl	_real_pathdup
	mov	x19, x0
	cbz	x21, LBB0_7
; %bb.1:
	tst	w24, w20
	b.ne	LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x23
	bl	_stat
	cbnz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x23
	bl	_die
LBB0_4:
	add	x1, sp, #8
	mov	x0, x21
	bl	_stat
	cbnz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_die
LBB0_6:
	mov	x0, x21
	bl	_real_path
	bl	_set_git_dir
	bl	_get_git_dir
	mov	x21, x0
	mov	x1, x19
	bl	_separate_git_dir
	b	LBB0_8
LBB0_7:
	mov	x0, x23
	bl	_real_path
	bl	_set_git_dir
	bl	_get_git_dir
	mov	x21, x0
LBB0_8:
Lloh10:
	adrp	x8, _startup_info@GOTPAGE
Lloh11:
	ldr	x8, [x8, _startup_info@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
Lloh13:
	adrp	x8, _git_init_db_config@GOTPAGE
Lloh14:
	ldr	x8, [x8, _git_init_db_config@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
	mov	x0, x21
	mov	w1, #0
	bl	_safe_create_dir
	bl	_is_bare_repository
Lloh16:
	adrp	x8, _init_is_bare_repository@GOTPAGE
Lloh17:
	ldr	x8, [x8, _init_is_bare_repository@GOTPAGEOFF]
Lloh18:
	str	w0, [x8]
	bl	_check_repository_format
	mov	x0, x22
	mov	x1, x19
	bl	_create_default_files
	mov	x22, x0
	bl	_create_object_directory
	bl	_get_shared_repository
	cbz	w0, LBB0_18
; %bb.9:
	bl	_get_shared_repository
	mov	x23, x0
	bl	_get_shared_repository
	tbnz	w23, #31, LBB0_12
; %bb.10:
Lloh19:
	adrp	x8, _PERM_GROUP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PERM_GROUP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.11:
Lloh22:
	adrp	x8, _OLD_PERM_GROUP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OLD_PERM_GROUP@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	neg	w3, w0
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_13:
	bl	_get_shared_repository
Lloh26:
	adrp	x8, _PERM_EVERYBODY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PERM_EVERYBODY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.14:
Lloh29:
	adrp	x8, _OLD_PERM_EVERYBODY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OLD_PERM_EVERYBODY@GOTPAGEOFF]
LBB0_15:
	ldr	w3, [x8]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	add	x0, sp, #8
	mov	w1, #10
	bl	_xsnprintf
LBB0_17:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #8
	bl	_git_config_set
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_git_config_set
LBB0_18:
Lloh39:
	adrp	x8, _INIT_DB_QUIET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _INIT_DB_QUIET@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_25
; %bb.19:
	mov	x0, x21
	bl	_strlen
	mov	x20, x0
	bl	_get_shared_repository
	cbz	w22, LBB0_21
; %bb.20:
Lloh42:
	adrp	x8, l_.str.7@PAGE
Lloh43:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh44:
	adrp	x9, l_.str.8@PAGE
Lloh45:
	add	x9, x9, l_.str.8@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh46:
	adrp	x8, l_.str.11@PAGE
Lloh47:
	add	x8, x8, l_.str.11@PAGEOFF
Lloh48:
	adrp	x9, l_.str.12@PAGE
Lloh49:
	add	x9, x9, l_.str.12@PAGEOFF
LBB0_22:
	cmp	w0, #0
	csel	x0, x9, x8, eq
	bl	__
Lloh50:
	adrp	x2, l_.str.10@PAGE
Lloh51:
	add	x2, x2, l_.str.10@PAGEOFF
	cbz	w20, LBB0_24
; %bb.23:
	add	x8, x21, w20, sxtw
	ldurb	w8, [x8, #-1]
Lloh52:
	adrp	x9, l_.str.9@PAGE
Lloh53:
	add	x9, x9, l_.str.9@PAGEOFF
	cmp	w8, #47
	csel	x2, x2, x9, eq
LBB0_24:
	mov	x1, x21
	bl	_printf
LBB0_25:
	mov	x0, x19
	bl	_free
	ldr	x8, [sp, #24]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.26:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_27:
Lloh57:
	adrp	x0, l_.str.3@PAGE
Lloh58:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BUG
	b	LBB0_17
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_INIT_DB_EXIST_OK,4,2           ; @INIT_DB_EXIST_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s already exists"

	.comm	_startup_info,8,3               ; @startup_info
	.comm	_git_init_db_config,4,2         ; @git_init_db_config
	.comm	_init_is_bare_repository,4,2    ; @init_is_bare_repository
l_.str.1:                               ; @.str.1
	.asciz	"0%o"

	.comm	_PERM_GROUP,4,2                 ; @PERM_GROUP
l_.str.2:                               ; @.str.2
	.asciz	"%d"

	.comm	_OLD_PERM_GROUP,4,2             ; @OLD_PERM_GROUP
	.comm	_PERM_EVERYBODY,4,2             ; @PERM_EVERYBODY
	.comm	_OLD_PERM_EVERYBODY,4,2         ; @OLD_PERM_EVERYBODY
l_.str.3:                               ; @.str.3
	.asciz	"invalid value for shared_repository"

l_.str.4:                               ; @.str.4
	.asciz	"core.sharedrepository"

l_.str.5:                               ; @.str.5
	.asciz	"receive.denyNonFastforwards"

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

	.comm	_INIT_DB_QUIET,4,2              ; @INIT_DB_QUIET
l_.str.7:                               ; @.str.7
	.asciz	"Reinitialized existing shared Git repository in %s%s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Reinitialized existing Git repository in %s%s\n"

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

l_.str.10:                              ; @.str.10
	.space	1

l_.str.11:                              ; @.str.11
	.asciz	"Initialized empty shared Git repository in %s%s\n"

l_.str.12:                              ; @.str.12
	.asciz	"Initialized empty Git repository in %s%s\n"

.subsections_via_symbols
