	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function files_delete_refs
_files_delete_refs:                     ## @files_delete_refs
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_REF_STORE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_files_downcast
	movq	%rax, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	4(%r12), %edi
	leaq	-56(%rbp), %rdx
	xorl	%esi, %esi
	callq	_packed_refs_lock
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movl	4(%r12), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_refs_delete_refs
	movq	%rax, %r14
	movl	4(%r12), %edi
	callq	_packed_refs_unlock
	testq	%r14, %r14
	je	LBB0_4
LBB0_10:
	cmpl	$1, (%rbx)
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	8(%rbx), %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rdx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_13
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
LBB0_13:
	movl	$-1, %r13d
LBB0_14:
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %r14
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_refs_delete_ref
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_error
	orl	%eax, %r13d
	jmp	LBB0_9
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_STORE_WRITE,4,2            ## @REF_STORE_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delete_refs"

	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
L_.str.1:                               ## @.str.1
	.asciz	"could not remove reference %s"

L_.str.2:                               ## @.str.2
	.asciz	"could not delete reference %s: %s"

L_.str.3:                               ## @.str.3
	.asciz	"could not delete references: %s"

	.no_dead_strip	_files_delete_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function files_delete_refs
_files_delete_refs:                     ; @files_delete_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _REF_STORE_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REF_STORE_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_files_downcast
Lloh5:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	w0, [x0, #4]
	add	x2, sp, #8
	mov	w1, #0
	bl	_packed_refs_lock
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x22, #4]
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_refs_delete_refs
	mov	x23, x0
	ldr	w0, [x22, #4]
	bl	_packed_refs_unlock
	cbz	x23, LBB0_10
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	ldr	x8, [sp, #8]
	str	x8, [sp]
	b	LBB0_7
LBB0_5:
	mov	w23, #0
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x1, [sp, #8]
LBB0_7:
	bl	_error
	mov	w23, #-1
LBB0_8:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x26, #0
	mov	w23, #0
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.ge	LBB0_8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x25, [x8, x26, lsl #3]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x3, #0
	mov	x4, x20
	bl	_refs_delete_ref
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	bl	__
	mov	x1, x25
	bl	_error
	orr	w23, w0, w23
	b	LBB0_12
LBB0_15:
	mov	w23, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_STORE_WRITE,4,2            ; @REF_STORE_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delete_refs"

	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
l_.str.1:                               ; @.str.1
	.asciz	"could not remove reference %s"

l_.str.2:                               ; @.str.2
	.asciz	"could not delete reference %s: %s"

l_.str.3:                               ; @.str.3
	.asciz	"could not delete references: %s"

	.no_dead_strip	_files_delete_refs
.subsections_via_symbols
