	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function commit_ref
_commit_ref:                            ## @commit_ref
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_get_locked_file_path
	movq	%rax, %rbx
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_lstat
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_4
LBB0_1:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -32(%rbp)
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	%rax, %rcx
	callq	_strbuf_attach
	movq	%r15, %rdi
	callq	_remove_empty_directories
	movq	%r15, %rdi
	callq	_strbuf_release
LBB0_4:
	movq	%r14, %rdi
	callq	_commit_lock_file
	xorl	%ecx, %ecx
	negq	%rax
	sbbl	%ecx, %ecx
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.no_dead_strip	_commit_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function commit_ref
_commit_ref:                            ; @commit_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_get_locked_file_path
	mov	x20, x0
	add	x1, sp, #8
	bl	_lstat
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_free
	b	LBB0_4
LBB0_2:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_1
; %bb.3:
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, sp
	mov	x1, x20
	mov	x3, x2
	bl	_strbuf_attach
	mov	x0, sp
	bl	_remove_empty_directories
	mov	x0, sp
	bl	_strbuf_release
LBB0_4:
	mov	x0, x19
	bl	_commit_lock_file
	cmp	x0, #0
	csetm	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.no_dead_strip	_commit_ref
.subsections_via_symbols
