	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function separate_git_dir
_separate_git_dir:                      ## @separate_git_dir
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_read_gitfile
	movq	%rax, %r12
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_S_ISDIR
	movq	%rbx, %r12
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_die
                                        ## implicit-def: $r12
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rename
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_die_errno
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_file                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to handle file type %d"

L_.str.1:                               ## @.str.1
	.asciz	"unable to move %s to %s"

L_.str.2:                               ## @.str.2
	.asciz	"gitdir: %s"

	.no_dead_strip	_separate_git_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function separate_git_dir
_separate_git_dir:                      ; @separate_git_dir
	.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	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_stat
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x21, [sp, #8]
	mov	x0, x21
	bl	_S_ISREG
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_read_gitfile
	mov	x22, x0
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_S_ISDIR
	mov	x22, x20
	cbnz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_die
                                        ; implicit-def: $x22
LBB0_5:
	mov	x0, x22
	mov	x1, x19
	bl	_rename
	cbz	x0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x22
	mov	x2, x19
	bl	_die_errno
LBB0_7:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	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
	b	_write_file
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to handle file type %d"

l_.str.1:                               ; @.str.1
	.asciz	"unable to move %s to %s"

l_.str.2:                               ; @.str.2
	.asciz	"gitdir: %s"

	.no_dead_strip	_separate_git_dir
.subsections_via_symbols
