	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vac_truncate_clog
_vac_truncate_clog:                     ## @vac_truncate_clog
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_ReadNewTransactionId
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_MyDatabaseId@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DatabaseRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_table_beginscan_catalog
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_heap_getnext
	testq	%rax, %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_13
## %bb.1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_heap_getnext
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r14d
	movq	%rax, %rdi
	callq	_GETSTRUCT
	movslq	%eax, %r13
	movl	8(%r13), %r15d
	movl	4(%r13), %ebx
	movl	%r15d, %edi
	callq	_TransactionIdIsNormal
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, %edi
	callq	_MultiXactIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_MultiXactIdPrecedes
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_MultiXactIdPrecedes
	testq	%rax, %rax
	je	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r12d
	jmp	LBB0_2
LBB0_13:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_14:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_table_endscan
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_16:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%r15d, %edi
	callq	_AdvanceOldestCommitTsXid
	movl	%r15d, %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_TruncateCLOG
	movl	%r15d, %edi
	callq	_TruncateCommitTs
	movl	%r12d, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_TruncateMultiXact
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_SetTransactionIdLimit
	movl	%r12d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetMultiXactIdLimit            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
	.comm	_DatabaseRelationId,4,2         ## @DatabaseRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"some databases have not been vacuumed in over 2 billion transactions"

L_.str.1:                               ## @.str.1
	.asciz	"You might have already suffered transaction-wraparound data loss."

	.no_dead_strip	_vac_truncate_clog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vac_truncate_clog
_vac_truncate_clog:                     ; @vac_truncate_clog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	w3, w0, [sp, #8]                ; 8-byte Folded Spill
	mov	x24, x2
	mov	x19, x1
	bl	_ReadNewTransactionId
	mov	x26, x0
Lloh0:
	adrp	x8, _MyDatabaseId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyDatabaseId@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _DatabaseRelationId@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DatabaseRelationId@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_table_open
	str	w0, [sp]                        ; 4-byte Folded Spill
	mov	w1, #0
	mov	x2, #0
	bl	_table_beginscan_catalog
	mov	x27, x0
Lloh9:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_heap_getnext
	cbz	x0, LBB0_12
; %bb.1:
	mov	w23, #0
	mov	w25, #0
	mov	x22, x20
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_heap_getnext
	cbz	x0, LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	ldr	w21, [x20, #8]
	ldr	w28, [x20, #4]
	mov	x0, x21
	bl	_TransactionIdIsNormal
	bl	_Assert
	mov	x0, x28
	bl	_MultiXactIdIsValid
	bl	_Assert
	mov	x0, x24
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x28
	bl	_MultiXactIdPrecedes
	cbz	x0, LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #1
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	mov	x1, x19
	bl	_MultiXactIdPrecedes
	cbz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x20]
	mov	x19, x28
	b	LBB0_2
LBB0_12:
	mov	w25, #0
	mov	w23, #0
	mov	x22, x20
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
LBB0_13:
	mov	x0, x27
	bl	_table_endscan
Lloh15:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w0, [sp]                        ; 4-byte Folded Reload
	bl	_table_close
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	cbz	w23, LBB0_15
; %bb.14:
Lloh18:
	adrp	x8, _WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ereport
LBB0_15:
	cbz	w25, LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x0, x20
	bl	_AdvanceOldestCommitTsXid
	mov	x0, x20
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
	mov	x1, x23
	bl	_TruncateCLOG
	mov	x0, x20
	bl	_TruncateCommitTs
	mov	x0, x19
	mov	x1, x22
	bl	_TruncateMultiXact
	mov	x0, x20
	mov	x1, x23
	bl	_SetTransactionIdLimit
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_SetMultiXactIdLimit
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
	.comm	_DatabaseRelationId,4,2         ; @DatabaseRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"some databases have not been vacuumed in over 2 billion transactions"

l_.str.1:                               ; @.str.1
	.asciz	"You might have already suffered transaction-wraparound data loss."

	.no_dead_strip	_vac_truncate_clog
.subsections_via_symbols
