	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_pseudoref
_delete_pseudoref:                      ## @delete_pseudoref
	.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	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_git_path
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_null_oid
	testl	%eax, %eax
	je	LBB0_2
LBB0_9:
	movq	%r14, %rdi
	callq	_unlink
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	xorl	%eax, %eax
	callq	_get_files_ref_lock_timeout_ms
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_hold_lock_file_for_update_timeout
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_read_ref
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
LBB0_6:
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_oideq
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_unlink
	leaq	-32(%rbp), %rdi
	callq	_rollback_lock_file
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error_errno
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_error
	leaq	-32(%rbp), %rdi
	callq	_rollback_lock_file
	movl	$-1, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
L_.str.1:                               ## @.str.1
	.asciz	"could not open '%s' for writing"

L_.str.2:                               ## @.str.2
	.asciz	"could not read ref '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"unexpected object ID when deleting '%s'"

	.no_dead_strip	_delete_pseudoref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_pseudoref
_delete_pseudoref:                      ; @delete_pseudoref
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_git_path
	mov	x20, x0
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_is_null_oid
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_unlink
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
Lloh2:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_get_files_ref_lock_timeout_ms
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #0
	bl	_hold_lock_file_for_update_timeout
	tbnz	w0, #31, LBB0_10
; %bb.6:
	mov	x1, sp
	mov	x0, x19
	bl	_read_ref
	cbz	x0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
LBB0_8:
	mov	x0, sp
	mov	x1, x21
	bl	_oideq
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_unlink
	add	x0, sp, #8
	bl	_rollback_lock_file
	b	LBB0_3
LBB0_10:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_error_errno
	mov	w0, #-1
	b	LBB0_4
LBB0_11:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_error
	add	x0, sp, #8
	bl	_rollback_lock_file
	mov	w0, #-1
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
l_.str.1:                               ; @.str.1
	.asciz	"could not open '%s' for writing"

l_.str.2:                               ; @.str.2
	.asciz	"could not read ref '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"unexpected object ID when deleting '%s'"

	.no_dead_strip	_delete_pseudoref
.subsections_via_symbols
