	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function files_transaction_cleanup
_files_transaction_cleanup:             ## @files_transaction_cleanup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	24(%rsi), %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_unlock_ref
	movq	$0, (%r13)
	movq	(%r12), %rax
	jmp	LBB0_4
LBB0_5:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	leaq	-48(%rbp), %rsi
	callq	_ref_transaction_abort
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	-48(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_error
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_8:
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	callq	_packed_refs_unlock
LBB0_10:
	movq	%r14, %rdi
	callq	_free
	movq	_REF_TRANSACTION_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error aborting transaction: %s"

	.comm	_REF_TRANSACTION_CLOSED,4,2     ## @REF_TRANSACTION_CLOSED
	.no_dead_strip	_files_transaction_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function files_transaction_cleanup
_files_transaction_cleanup:             ; @files_transaction_cleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #24]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x23, [x9, x22, lsl #3]
	ldr	x0, [x23]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_unlock_ref
	str	xzr, [x23]
	ldr	x8, [x19]
	b	LBB0_2
LBB0_5:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.6:
	add	x1, sp, #8
	bl	_ref_transaction_abort
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w1, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x21]
	bl	_packed_refs_unlock
LBB0_10:
	mov	x0, x20
	bl	_free
Lloh5:
	adrp	x8, _REF_TRANSACTION_CLOSED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REF_TRANSACTION_CLOSED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error aborting transaction: %s"

	.comm	_REF_TRANSACTION_CLOSED,4,2     ; @REF_TRANSACTION_CLOSED
	.no_dead_strip	_files_transaction_cleanup
.subsections_via_symbols
