	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CleanupTempFiles
_CleanupTempFiles:                      ## @CleanupTempFiles
	.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	_have_xact_temporary_files@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%esi, %eax
	je	LBB0_12
## %bb.1:
	movl	%esi, %r15d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_FileIsNotOpen
	movl	%eax, %edi
	callq	_Assert
	movq	_SizeVfdCache@GOTPCREL(%rip), %r12
	cmpq	$2, (%r12)
	jb	LBB0_11
## %bb.2:
	movl	$1, %ebx
	movl	$24, %r13d
	movq	_FD_DELETE_AT_CLOSE@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_FileClose
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$16, %r13
	cmpq	(%r12), %rbx
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VfdCache@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movzwl	-8(%rcx,%r13), %eax
	testw	%ax, (%r14)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FD_CLOSE_AT_EOXACT@GOTPCREL(%rip), %rdx
	testw	%ax, (%rdx)
	je	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx,%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FD_CLOSE_AT_EOXACT@GOTPCREL(%rip), %rcx
	testw	%ax, (%rcx)
	jne	LBB0_8
	jmp	LBB0_10
LBB0_11:
	movq	_have_xact_temporary_files@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_12:
	movq	_numAllocatedDescs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	testl	%edi, %edi
	je	LBB0_15
## %bb.13:
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	movq	(%r14), %rdx
LBB0_15:
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.16:
	movq	_allocatedDescs@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_FreeDesc
	cmpq	$0, (%r14)
	jne	LBB0_17
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_have_xact_temporary_files,4,2  ## @have_xact_temporary_files
	.comm	_SizeVfdCache,8,3               ## @SizeVfdCache
	.comm	_VfdCache,8,3                   ## @VfdCache
	.comm	_FD_DELETE_AT_CLOSE,2,1         ## @FD_DELETE_AT_CLOSE
	.comm	_FD_CLOSE_AT_EOXACT,2,1         ## @FD_CLOSE_AT_EOXACT
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"temporary file %s not closed at end-of-transaction"

	.comm	_numAllocatedDescs,8,3          ## @numAllocatedDescs
L_.str.1:                               ## @.str.1
	.asciz	"%d temporary files and directories not closed at end-of-transaction"

	.comm	_allocatedDescs,8,3             ## @allocatedDescs
	.no_dead_strip	_CleanupTempFiles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CleanupTempFiles
_CleanupTempFiles:                      ; @CleanupTempFiles
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x23, _have_xact_temporary_files@GOTPAGE
Lloh1:
	ldr	x23, [x23, _have_xact_temporary_files@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w8, w1, w8
	cbz	w8, LBB0_12
; %bb.1:
	mov	x20, x1
	mov	w0, #0
	bl	_FileIsNotOpen
	bl	_Assert
Lloh2:
	adrp	x24, _SizeVfdCache@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SizeVfdCache@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, #2
	b.lo	LBB0_11
; %bb.2:
	mov	x25, #0
	mov	w21, #1
Lloh4:
	adrp	x26, _VfdCache@GOTPAGE
Lloh5:
	ldr	x26, [x26, _VfdCache@GOTPAGEOFF]
Lloh6:
	adrp	x27, _FD_DELETE_AT_CLOSE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FD_DELETE_AT_CLOSE@GOTPAGEOFF]
Lloh8:
	adrp	x28, _FD_CLOSE_AT_EOXACT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _FD_CLOSE_AT_EOXACT@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x8, _WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_elog
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_FileClose
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x8, [x24]
	add	x25, x25, #16
	cmp	x21, x8
	b.hs	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x9, x8, x25
	ldrh	w8, [x9, #16]
	ldrh	w10, [x27]
	tst	w10, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrh	w10, [x28]
	tst	w10, w8
	b.eq	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x9, #24]
	cbz	x2, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w20, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrh	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_3
	b	LBB0_5
LBB0_11:
	str	wzr, [x23]
LBB0_12:
Lloh15:
	adrp	x20, _numAllocatedDescs@GOTPAGE
Lloh16:
	ldr	x20, [x20, _numAllocatedDescs@GOTPAGEOFF]
	ldr	x2, [x20]
	cbz	w19, LBB0_15
; %bb.13:
	cbz	x2, LBB0_15
; %bb.14:
Lloh17:
	adrp	x8, _WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	ldr	x2, [x20]
LBB0_15:
	cbz	x2, LBB0_18
; %bb.16:
Lloh22:
	adrp	x19, _allocatedDescs@GOTPAGE
Lloh23:
	ldr	x19, [x19, _allocatedDescs@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_FreeDesc
	ldr	x8, [x20]
	cbnz	x8, LBB0_17
LBB0_18:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_have_xact_temporary_files,4,2  ; @have_xact_temporary_files
	.comm	_SizeVfdCache,8,3               ; @SizeVfdCache
	.comm	_VfdCache,8,3                   ; @VfdCache
	.comm	_FD_DELETE_AT_CLOSE,2,1         ; @FD_DELETE_AT_CLOSE
	.comm	_FD_CLOSE_AT_EOXACT,2,1         ; @FD_CLOSE_AT_EOXACT
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"temporary file %s not closed at end-of-transaction"

	.comm	_numAllocatedDescs,8,3          ; @numAllocatedDescs
l_.str.1:                               ; @.str.1
	.asciz	"%d temporary files and directories not closed at end-of-transaction"

	.comm	_allocatedDescs,8,3             ; @allocatedDescs
	.no_dead_strip	_CleanupTempFiles
.subsections_via_symbols
