	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function files_ref_store_create
_files_ref_store_create:                ## @files_ref_store_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	$1, %edi
	movl	$16, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_refs_be_files@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_base_ref_store_init
	movl	%r14d, (%rbx)
	movq	%r13, %rdi
	callq	_xstrdup
	leaq	8(%rbx), %r15
	movl	%eax, 8(%rbx)
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_common_dir_noenv
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	leaq	4(%rbx), %r13
	movl	%eax, 4(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_strbuf_addf
	movl	-48(%rbp), %edi
	movl	%r14d, %esi
	callq	_packed_ref_store_create
	movl	%eax, 12(%rbx)
	movq	%r12, %rdi
	callq	_strbuf_release
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_chdir_notify_reparent
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	callq	_chdir_notify_reparent
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_refs_be_files,4,2              ## @refs_be_files
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/packed-refs"

L_.str.1:                               ## @.str.1
	.asciz	"files-backend $GIT_DIR"

L_.str.2:                               ## @.str.2
	.asciz	"files-backend $GIT_COMMONDIR"

	.no_dead_strip	_files_ref_store_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function files_ref_store_create
_files_ref_store_create:                ; @files_ref_store_create
	.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	x21, x0
	mov	w0, #1
	mov	w1, #16
	bl	_xcalloc
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x1, _refs_be_files@GOTPAGE
Lloh4:
	ldr	x1, [x1, _refs_be_files@GOTPAGEOFF]
	bl	_base_ref_store_init
	str	w20, [x19]
	mov	x0, x21
	bl	_xstrdup
	mov	x22, x19
	str	w0, [x22, #8]!
	add	x0, sp, #8
	mov	x1, x21
	bl	_get_common_dir_noenv
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	mov	x2, x0
	mov	x21, x19
	str	w0, [x21, #4]!
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	ldr	w0, [sp, #8]
	mov	x1, x20
	bl	_packed_ref_store_create
	str	w0, [x19, #12]
	add	x0, sp, #8
	bl	_strbuf_release
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_chdir_notify_reparent
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_chdir_notify_reparent
	mov	x0, 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
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_refs_be_files,4,2              ; @refs_be_files
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/packed-refs"

l_.str.1:                               ; @.str.1
	.asciz	"files-backend $GIT_DIR"

l_.str.2:                               ; @.str.2
	.asciz	"files-backend $GIT_COMMONDIR"

	.no_dead_strip	_files_ref_store_create
.subsections_via_symbols
