	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prune_ref
_prune_ref:                             ## @prune_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	4(%rsi), %edi
	xorl	%esi, %esi
	callq	_check_refname_format
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ref_store_transaction_begin
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rax
	movq	_REF_HAVE_NEW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_REF_HAVE_OLD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	4(%rbx), %esi
	movq	_REF_IS_PRUNING@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_null_oid@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_ref_transaction_add_update
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ref_transaction_commit
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	-24(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_4:
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	movq	%r14, %rdi
	callq	_ref_transaction_free
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_REF_NO_DEREF,4,2               ## @REF_NO_DEREF
	.comm	_REF_HAVE_NEW,4,2               ## @REF_HAVE_NEW
	.comm	_REF_HAVE_OLD,4,2               ## @REF_HAVE_OLD
	.comm	_REF_IS_PRUNING,4,2             ## @REF_IS_PRUNING
	.comm	_null_oid,4,2                   ## @null_oid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_prune_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prune_ref
_prune_ref:                             ; @prune_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x1, #4]
	mov	w1, #0
	bl	_check_refname_format
	cbnz	x0, LBB0_5
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ref_store_transaction_begin
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x20, #4]
Lloh3:
	adrp	x8, _REF_NO_DEREF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REF_NO_DEREF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _REF_HAVE_NEW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REF_HAVE_NEW@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _REF_HAVE_OLD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REF_HAVE_OLD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _REF_IS_PRUNING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REF_IS_PRUNING@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh15:
	adrp	x3, _null_oid@GOTPAGE
Lloh16:
	ldr	x3, [x3, _null_oid@GOTPAGEOFF]
	mov	x0, x19
	mov	x4, x20
	mov	x5, #0
	bl	_ref_transaction_add_update
	add	x1, sp, #8
	mov	x0, x19
	bl	_ref_transaction_commit
	cbz	x0, LBB0_4
LBB0_3:
	ldr	w1, [sp, #8]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_4:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	bl	_ref_transaction_free
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_REF_NO_DEREF,4,2               ; @REF_NO_DEREF
	.comm	_REF_HAVE_NEW,4,2               ; @REF_HAVE_NEW
	.comm	_REF_HAVE_OLD,4,2               ; @REF_HAVE_OLD
	.comm	_REF_IS_PRUNING,4,2             ; @REF_IS_PRUNING
	.comm	_null_oid,4,2                   ; @null_oid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_prune_ref
.subsections_via_symbols
