	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function begin_remote_xact
_begin_remote_xact:                     ## @begin_remote_xact
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_GetCurrentTransactionNestLevel
	movl	%eax, %r14d
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	cmpl	%r14d, %ecx
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	movq	_DEBUG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
	xorl	%eax, %eax
	callq	_IsolationIsSerializable
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$1, 4(%rbx)
	movl	8(%rbx), %edi
	callq	_do_sql_command
	movq	$1, (%rbx)
	movl	$1, %ecx
	cmpl	%r14d, %ecx
	jge	LBB0_5
LBB0_3:
	leaq	L_.str.3(%rip), %r15
	leaq	-112(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	movq	%r12, %rdi
	movl	$64, %esi
	movq	%r15, %rdx
	callq	_snprintf
	movl	$1, 4(%rbx)
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	callq	_do_sql_command
	movl	(%rbx), %ecx
	incl	%ecx
	movl	%ecx, (%rbx)
	movl	$0, 4(%rbx)
	cmpl	%r14d, %ecx
	jl	LBB0_4
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG3,4,2                     ## @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting remote transaction on connection %p"

L_.str.1:                               ## @.str.1
	.asciz	"START TRANSACTION ISOLATION LEVEL SERIALIZABLE"

L_.str.2:                               ## @.str.2
	.asciz	"START TRANSACTION ISOLATION LEVEL REPEATABLE READ"

L_.str.3:                               ## @.str.3
	.asciz	"SAVEPOINT s%d"

	.no_dead_strip	_begin_remote_xact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function begin_remote_xact
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_begin_remote_xact:                     ; @begin_remote_xact
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_GetCurrentTransactionNestLevel
	mov	x20, x0
	ldr	w22, [x19]
	cmp	w22, #0
	b.le	LBB0_2
; %bb.1:
	cmp	w22, w20
	b.lt	LBB0_3
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _DEBUG3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG3@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	bl	_IsolationIsSerializable
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
	mov	w22, #1
	str	w22, [x19, #4]
	ldr	w0, [x19, #8]
	bl	_do_sql_command
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	cmp	w22, w20
	b.ge	LBB0_5
LBB0_3:
Lloh14:
	adrp	x21, l_.str.3@PAGE
Lloh15:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w3, w22, #1
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x21
	bl	_snprintf
	str	w23, [x19, #4]
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_do_sql_command
	ldr	w8, [x19]
	add	w22, w8, #1
	stp	w22, wzr, [x19]
	cmp	w22, w20
	b.lt	LBB0_4
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG3,4,2                     ; @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting remote transaction on connection %p"

l_.str.1:                               ; @.str.1
	.asciz	"START TRANSACTION ISOLATION LEVEL SERIALIZABLE"

l_.str.2:                               ; @.str.2
	.asciz	"START TRANSACTION ISOLATION LEVEL REPEATABLE READ"

l_.str.3:                               ; @.str.3
	.asciz	"SAVEPOINT s%d"

	.no_dead_strip	_begin_remote_xact
.subsections_via_symbols
