	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_loose_ref_cache
_get_loose_ref_cache:                   ## @get_loose_ref_cache
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	_loose_fill_ref_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_create_ref_cache
	movq	%rax, (%rbx)
	movq	_REF_INCOMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	(%rax), %rdi
	andl	%ecx, (%rdi)
	callq	_get_ref_dir
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	movl	$1, %ecx
	callq	_create_dir_entry
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_add_entry_to_dir
	movq	(%rbx), %rax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_loose_fill_ref_dir,4,2         ## @loose_fill_ref_dir
	.comm	_REF_INCOMPLETE,4,2             ## @REF_INCOMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/"

	.no_dead_strip	_get_loose_ref_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_loose_ref_cache
_get_loose_ref_cache:                   ; @get_loose_ref_cache
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #8
Lloh0:
	adrp	x8, _loose_fill_ref_dir@GOTPAGE
Lloh1:
	ldr	x8, [x8, _loose_fill_ref_dir@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_create_ref_cache
Lloh3:
	adrp	x8, _REF_INCOMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REF_INCOMPLETE@GOTPAGEOFF]
	str	x0, [x19]
Lloh5:
	ldr	w8, [x8]
	ldr	x0, [x0]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	bl	_get_ref_dir
	mov	x20, x0
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	mov	w3, #1
	bl	_create_dir_entry
	mov	x1, x0
	mov	x0, x20
	bl	_add_entry_to_dir
	ldr	x0, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_loose_fill_ref_dir,4,2         ; @loose_fill_ref_dir
	.comm	_REF_INCOMPLETE,4,2             ; @REF_INCOMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/"

	.no_dead_strip	_get_loose_ref_cache
.subsections_via_symbols
