	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_prepared_transactions
_check_for_prepared_transactions:       ## @check_for_prepared_transactions
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_connectToServer
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_prep_status
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_executeQueryOrDie
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQntuples
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	_old_cluster@GOTPCREL(%rip), %r15
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_pg_fatal
LBB0_2:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r14, %rdi
	callq	_PQfinish
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_ok                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"template1"

L_.str.1:                               ## @.str.1
	.asciz	"Checking for prepared transactions"

L_.str.2:                               ## @.str.2
	.asciz	"SELECT * FROM pg_catalog.pg_prepared_xacts"

	.comm	_old_cluster,4,2                ## @old_cluster
L_.str.3:                               ## @.str.3
	.asciz	"The source cluster contains prepared transactions\n"

L_.str.4:                               ## @.str.4
	.asciz	"The target cluster contains prepared transactions\n"

	.no_dead_strip	_check_for_prepared_transactions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_for_prepared_transactions
_check_for_prepared_transactions:       ; @check_for_prepared_transactions
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_connectToServer
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_prep_status
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_executeQueryOrDie
	mov	x21, x0
	bl	_PQntuples
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _old_cluster@GOTPAGE
Lloh7:
	ldr	x8, [x8, _old_cluster@GOTPAGEOFF]
Lloh8:
	adrp	x9, l_.str.4@PAGE
Lloh9:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh10:
	adrp	x10, l_.str.3@PAGE
Lloh11:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x20, x8
	csel	x0, x10, x9, eq
	bl	_pg_fatal
LBB0_2:
	mov	x0, x21
	bl	_PQclear
	mov	x0, x19
	bl	_PQfinish
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_check_ok
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"template1"

l_.str.1:                               ; @.str.1
	.asciz	"Checking for prepared transactions"

l_.str.2:                               ; @.str.2
	.asciz	"SELECT * FROM pg_catalog.pg_prepared_xacts"

	.comm	_old_cluster,4,2                ; @old_cluster
l_.str.3:                               ; @.str.3
	.asciz	"The source cluster contains prepared transactions\n"

l_.str.4:                               ; @.str.4
	.asciz	"The target cluster contains prepared transactions\n"

	.no_dead_strip	_check_for_prepared_transactions
.subsections_via_symbols
