	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_xact_xlog_xid
_copy_xact_xlog_xid:                    ## @copy_xact_xlog_xid
	.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	_old_cluster@GOTPCREL(%rip), %r15
	movl	48(%r15), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$1000, %eax                     ## imm = 0x3E8
	leaq	L_.str(%rip), %r13
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %r14
	cmovlq	%r13, %r14
	movq	_new_cluster@GOTPCREL(%rip), %r12
	movl	16(%r12), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$1000, %eax                     ## imm = 0x3E8
	cmovlq	%r13, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_copy_subdir_files
	leaq	L_.str.2(%rip), %rdi
	callq	_prep_status
	movq	_UTILITY_LOG_FILE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	(%r12), %ebx
	movl	4(%r12), %r9d
	leaq	L_.str.3(%rip), %r8
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	32(%r15)
	callq	_exec_prog
	addq	$16, %rsp
	movl	(%r14), %edi
	movl	(%r12), %ebx
	movl	4(%r12), %r9d
	leaq	L_.str.4(%rip), %r8
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	40(%r15)
	callq	_exec_prog
	addq	$16, %rsp
	movl	(%r14), %edi
	movl	(%r12), %r10d
	movl	4(%r12), %r9d
	movq	32(%r15), %rbx
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %r8
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	pushq	%rbx
	callq	_exec_prog
	addq	$32, %rsp
	xorl	%eax, %eax
	callq	_check_ok
	movq	_MULTIXACT_FORMATCHANGE_CAT_VER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	cmpq	%rax, (%r15)
	jl	LBB0_3
## %bb.1:
	cmpq	%rax, %rcx
	jl	LBB0_3
## %bb.2:
	leaq	L_.str.6(%rip), %rdi
	movq	%rdi, %rsi
	callq	_copy_subdir_files
	leaq	L_.str.7(%rip), %rdi
	movq	%rdi, %rsi
	callq	_copy_subdir_files
	leaq	L_.str.8(%rip), %rdi
	callq	_prep_status
	movl	(%r14), %edi
	movl	(%r12), %r13d
	movl	4(%r12), %r9d
	movslq	28(%r15), %r10
	movl	16(%r15), %r11d
	movl	24(%r15), %ebx
	leaq	L_.str.9(%rip), %r8
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	pushq	%r13
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	jmp	LBB0_5
LBB0_3:
	cmpq	%rax, %rcx
	jl	LBB0_6
## %bb.4:
	leaq	L_.str.6(%rip), %rdi
	xorl	%esi, %esi
	callq	_remove_new_subdir
	leaq	L_.str.10(%rip), %rdi
	callq	_prep_status
	movl	(%r14), %edi
	movl	(%r12), %r10d
	movl	4(%r12), %r9d
	movq	16(%r15), %rbx
	leaq	1(%rbx), %r11
	subq	$8, %rsp
	leaq	L_.str.11(%rip), %r8
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	pushq	%r11
LBB0_5:
	callq	_exec_prog
	addq	$32, %rsp
	xorl	%eax, %eax
	callq	_check_ok
LBB0_6:
	leaq	L_.str.12(%rip), %rdi
	callq	_prep_status
	movl	(%r14), %edi
	movl	(%r12), %r10d
	movl	4(%r12), %r9d
	movq	8(%r15), %rbx
	addq	$8, %rbx
	leaq	L_.str.13(%rip), %r8
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_exec_prog
	addq	$16, %rsp
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_ok                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_old_cluster,56,3               ## @old_cluster
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_clog"

L_.str.1:                               ## @.str.1
	.asciz	"pg_xact"

	.comm	_new_cluster,24,3               ## @new_cluster
L_.str.2:                               ## @.str.2
	.asciz	"Setting next transaction ID and epoch for new cluster"

	.comm	_UTILITY_LOG_FILE,4,2           ## @UTILITY_LOG_FILE
L_.str.3:                               ## @.str.3
	.asciz	"\"%s/pg_resetwal\" -f -x %u \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"\"%s/pg_resetwal\" -f -e %u \"%s\""

L_.str.5:                               ## @.str.5
	.asciz	"\"%s/pg_resetwal\" -f -c %u,%u \"%s\""

	.comm	_MULTIXACT_FORMATCHANGE_CAT_VER,8,3 ## @MULTIXACT_FORMATCHANGE_CAT_VER
L_.str.6:                               ## @.str.6
	.asciz	"pg_multixact/offsets"

L_.str.7:                               ## @.str.7
	.asciz	"pg_multixact/members"

L_.str.8:                               ## @.str.8
	.asciz	"Setting next multixact ID and offset for new cluster"

L_.str.9:                               ## @.str.9
	.asciz	"\"%s/pg_resetwal\" -O %u -m %u,%u \"%s\""

L_.str.10:                              ## @.str.10
	.asciz	"Setting oldest multixact ID in new cluster"

L_.str.11:                              ## @.str.11
	.asciz	"\"%s/pg_resetwal\" -m %u,%u \"%s\""

L_.str.12:                              ## @.str.12
	.asciz	"Resetting WAL archives"

L_.str.13:                              ## @.str.13
	.asciz	"\"%s/pg_resetwal\" -l 00000001%s \"%s\""

	.no_dead_strip	_copy_xact_xlog_xid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_xact_xlog_xid
_copy_xact_xlog_xid:                    ; @copy_xact_xlog_xid
	.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
Lloh0:
	adrp	x20, _old_cluster@GOTPAGE
Lloh1:
	ldr	x20, [x20, _old_cluster@GOTPAGEOFF]
	ldr	w0, [x20, #48]
	bl	_GET_MAJOR_VERSION
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
	cmp	w0, #1000
	csel	x19, x23, x22, lt
Lloh6:
	adrp	x21, _new_cluster@GOTPAGE
Lloh7:
	ldr	x21, [x21, _new_cluster@GOTPAGEOFF]
	ldr	w0, [x21, #16]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #1000
	csel	x1, x23, x22, lt
	mov	x0, x19
	bl	_copy_subdir_files
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_prep_status
Lloh10:
	adrp	x19, _UTILITY_LOG_FILE@GOTPAGE
Lloh11:
	ldr	x19, [x19, _UTILITY_LOG_FILE@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	x6, [x20, #32]
	ldp	w7, w5, [x21]
Lloh12:
	adrp	x4, l_.str.3@PAGE
Lloh13:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	bl	_exec_prog
	ldr	w0, [x19]
	ldr	x6, [x20, #40]
	ldp	w7, w5, [x21]
Lloh14:
	adrp	x4, l_.str.4@PAGE
Lloh15:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	bl	_exec_prog
	ldr	w0, [x19]
	ldr	x6, [x20, #32]
	ldp	w8, w5, [x21]
	str	x8, [sp]
Lloh16:
	adrp	x4, l_.str.5@PAGE
Lloh17:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	mov	x7, x6
	bl	_exec_prog
	bl	_check_ok
	ldr	x10, [x20]
Lloh18:
	adrp	x8, _MULTIXACT_FORMATCHANGE_CAT_VER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MULTIXACT_FORMATCHANGE_CAT_VER@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	cmp	x10, x8
	b.lt	LBB0_3
; %bb.1:
	cmp	x9, x8
	b.lt	LBB0_3
; %bb.2:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x0
	bl	_copy_subdir_files
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x0
	bl	_copy_subdir_files
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_prep_status
	ldr	w0, [x19]
	ldr	w7, [x20, #16]
	ldp	w8, w6, [x20, #24]
                                        ; kill: def $w6 killed $w6 def $x6
	sxtw	x6, w6
	ldp	w9, w5, [x21]
	stp	x8, x9, [sp]
Lloh27:
	adrp	x4, l_.str.9@PAGE
Lloh28:
	add	x4, x4, l_.str.9@PAGEOFF
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	b	LBB0_5
LBB0_3:
	cmp	x9, x8
	b.lt	LBB0_6
; %bb.4:
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #0
	bl	_remove_new_subdir
Lloh31:
	adrp	x0, l_.str.10@PAGE
Lloh32:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_prep_status
	ldr	w0, [x19]
	ldr	x7, [x20, #16]
	add	x6, x7, #1
	ldp	w8, w5, [x21]
	str	x8, [sp]
Lloh33:
	adrp	x4, l_.str.11@PAGE
Lloh34:
	add	x4, x4, l_.str.11@PAGEOFF
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
                                        ; kill: def $w7 killed $w7 killed $x7
LBB0_5:
	bl	_exec_prog
	bl	_check_ok
LBB0_6:
Lloh35:
	adrp	x0, l_.str.12@PAGE
Lloh36:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_prep_status
	ldr	w0, [x19]
	ldr	x8, [x20, #8]
	add	x6, x8, #8
	ldp	w7, w5, [x21]
Lloh37:
	adrp	x4, l_.str.13@PAGE
Lloh38:
	add	x4, x4, l_.str.13@PAGEOFF
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	bl	_exec_prog
	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
	b	_check_ok
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_old_cluster,56,3               ; @old_cluster
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_clog"

l_.str.1:                               ; @.str.1
	.asciz	"pg_xact"

	.comm	_new_cluster,24,3               ; @new_cluster
l_.str.2:                               ; @.str.2
	.asciz	"Setting next transaction ID and epoch for new cluster"

	.comm	_UTILITY_LOG_FILE,4,2           ; @UTILITY_LOG_FILE
l_.str.3:                               ; @.str.3
	.asciz	"\"%s/pg_resetwal\" -f -x %u \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"\"%s/pg_resetwal\" -f -e %u \"%s\""

l_.str.5:                               ; @.str.5
	.asciz	"\"%s/pg_resetwal\" -f -c %u,%u \"%s\""

	.comm	_MULTIXACT_FORMATCHANGE_CAT_VER,8,3 ; @MULTIXACT_FORMATCHANGE_CAT_VER
l_.str.6:                               ; @.str.6
	.asciz	"pg_multixact/offsets"

l_.str.7:                               ; @.str.7
	.asciz	"pg_multixact/members"

l_.str.8:                               ; @.str.8
	.asciz	"Setting next multixact ID and offset for new cluster"

l_.str.9:                               ; @.str.9
	.asciz	"\"%s/pg_resetwal\" -O %u -m %u,%u \"%s\""

l_.str.10:                              ; @.str.10
	.asciz	"Setting oldest multixact ID in new cluster"

l_.str.11:                              ; @.str.11
	.asciz	"\"%s/pg_resetwal\" -m %u,%u \"%s\""

l_.str.12:                              ; @.str.12
	.asciz	"Resetting WAL archives"

l_.str.13:                              ; @.str.13
	.asciz	"\"%s/pg_resetwal\" -l 00000001%s \"%s\""

	.no_dead_strip	_copy_xact_xlog_xid
.subsections_via_symbols
