	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_repository_format_gently
_check_repository_format_gently:        ## @check_repository_format_gently
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, -56(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_common_dir
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movl	-48(%rbp), %esi
	movq	%r12, %rdi
	callq	_read_repository_format
	movq	%rbx, %rdi
	callq	_strbuf_release
	cmpq	$0, (%r12)
	js	LBB0_14
## %bb.1:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_verify_repository_format
	testq	%rax, %rax
	js	LBB0_10
LBB0_2:
	movl	%r13d, %r15d
	movl	44(%r12), %eax
	movq	_repository_format_precious_objects@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	40(%r12), %edi
	callq	_set_repository_format_partial_clone
	movq	32(%r12), %rax
	movq	_repository_format_worktree_config@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	leaq	24(%r12), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_string_list_clear
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_strbuf_addf
	movq	_read_worktree_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi
	movq	%r12, %rdx
	callq	_git_config_from_file
	movq	%rbx, %rdi
	callq	_strbuf_release
LBB0_4:
	movl	8(%r12), %eax
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:
	movq	_is_bare_repository_cfg@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.6:
	movq	_inside_work_tree@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_7:
	cmpq	$0, 16(%r12)
	je	LBB0_14
## %bb.8:
	movq	_git_work_tree_cfg@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_free
	movq	16(%r12), %rdi
	callq	_xstrdup
	movl	%eax, (%rbx)
	xorl	%r13d, %r13d
	movq	_inside_work_tree@GOTPCREL(%rip), %r15
	jmp	LBB0_12
LBB0_14:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_10:
	movl	-56(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	testq	%r15, %r15
	je	LBB0_16
## %bb.11:
	callq	_warning
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %r13d
LBB0_12:
	movl	$-1, (%r15)
	jmp	LBB0_15
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_4
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	_die
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/config"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_repository_format_precious_objects,4,2 ## @repository_format_precious_objects
	.comm	_repository_format_worktree_config,8,3 ## @repository_format_worktree_config
L_.str.2:                               ## @.str.2
	.asciz	"%s/config.worktree"

	.comm	_read_worktree_config,4,2       ## @read_worktree_config
	.comm	_is_bare_repository_cfg,4,2     ## @is_bare_repository_cfg
	.comm	_inside_work_tree,4,2           ## @inside_work_tree
	.comm	_git_work_tree_cfg,4,2          ## @git_work_tree_cfg
	.no_dead_strip	_check_repository_format_gently
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_repository_format_gently
_check_repository_format_gently:        ; @check_repository_format_gently
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	w8, [sp]
	add	x0, sp, #8
	mov	x1, x20
	bl	_get_common_dir
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_read_repository_format
	add	x0, sp, #8
	bl	_strbuf_release
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_13
; %bb.1:
	mov	x1, sp
	mov	x0, x19
	bl	_verify_repository_format
	tbnz	x0, #63, LBB0_9
LBB0_2:
Lloh5:
	adrp	x8, _repository_format_precious_objects@GOTPAGE
Lloh6:
	ldr	x8, [x8, _repository_format_precious_objects@GOTPAGEOFF]
	ldp	w0, w9, [x19, #40]
Lloh7:
	str	w9, [x8]
	bl	_set_repository_format_partial_clone
	ldr	x8, [x19, #32]
Lloh8:
	adrp	x21, _repository_format_worktree_config@GOTPAGE
Lloh9:
	ldr	x21, [x21, _repository_format_worktree_config@GOTPAGEOFF]
	str	x8, [x21]
	add	x0, x19, #24
	mov	w1, #0
	bl	_string_list_clear
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_strbuf_addf
Lloh12:
	adrp	x8, _read_worktree_config@GOTPAGE
Lloh13:
	ldr	x8, [x8, _read_worktree_config@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	mov	x2, x19
	bl	_git_config_from_file
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_4:
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.5:
Lloh15:
	adrp	x9, _is_bare_repository_cfg@GOTPAGE
Lloh16:
	ldr	x9, [x9, _is_bare_repository_cfg@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _inside_work_tree@GOTPAGE
Lloh19:
	ldr	x8, [x8, _inside_work_tree@GOTPAGEOFF]
	mov	w9, #-1
Lloh20:
	str	w9, [x8]
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.8:
Lloh21:
	adrp	x20, _git_work_tree_cfg@GOTPAGE
Lloh22:
	ldr	x20, [x20, _git_work_tree_cfg@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_free
	ldr	x0, [x19, #16]
	bl	_xstrdup
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
Lloh23:
	adrp	x21, _inside_work_tree@GOTPAGE
Lloh24:
	ldr	x21, [x21, _inside_work_tree@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w1, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	cbz	x21, LBB0_15
; %bb.10:
	bl	_warning
	mov	x0, sp
	bl	_strbuf_release
	mov	w0, #-1
LBB0_11:
	mov	w8, #-1
	str	w8, [x21]
	b	LBB0_14
LBB0_12:
	cbz	w22, LBB0_4
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	bl	_die
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/config"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_repository_format_precious_objects,4,2 ; @repository_format_precious_objects
	.comm	_repository_format_worktree_config,8,3 ; @repository_format_worktree_config
l_.str.2:                               ; @.str.2
	.asciz	"%s/config.worktree"

	.comm	_read_worktree_config,4,2       ; @read_worktree_config
	.comm	_is_bare_repository_cfg,4,2     ; @is_bare_repository_cfg
	.comm	_inside_work_tree,4,2           ; @inside_work_tree
	.comm	_git_work_tree_cfg,4,2          ; @git_work_tree_cfg
	.no_dead_strip	_check_repository_format_gently
.subsections_via_symbols
