	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkAsPreparing                ## -- Begin function MarkAsPreparing
	.p2align	4, 0x90
_MarkAsPreparing:                       ## @MarkAsPreparing
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_strlen
	movq	_GIDSIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	_max_prepared_xacts@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	_twophaseExitRegistered@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_6
## %bb.5:
	movq	_AtProcExit_Twophase@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_before_shmem_exit
	movl	$1, (%r14)
LBB0_6:
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_TwoPhaseState@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.7:
	leaq	L_.str.3(%rip), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	(%r12), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	16(%rax), %edi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_10
LBB0_11:
	movq	16(%rax), %r14
	testq	%r14, %r14
	movq	_max_prepared_xacts@GOTPCREL(%rip), %r15
	jne	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%r12), %rax
	movq	16(%rax), %r14
LBB0_13:
	movq	8(%r14), %rcx
	movq	%rcx, 16(%rax)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_MarkAsPreparingGuts
	movl	$0, (%r14)
	movq	(%r12), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setl	%dil
	callq	_Assert
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movslq	(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rax)
	movq	%r14, (%rcx,%rdx,8)
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIDSIZE,8,3                    ## @GIDSIZE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transaction identifier \"%s\" is too long"

	.comm	_max_prepared_xacts,4,2         ## @max_prepared_xacts
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ## @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
L_.str.1:                               ## @.str.1
	.asciz	"prepared transactions are disabled"

L_.str.2:                               ## @.str.2
	.asciz	"Set max_prepared_transactions to a nonzero value."

	.comm	_twophaseExitRegistered,4,2     ## @twophaseExitRegistered
	.comm	_AtProcExit_Twophase,4,2        ## @AtProcExit_Twophase
	.comm	_TwoPhaseStateLock,4,2          ## @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_TwoPhaseState,8,3              ## @TwoPhaseState
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
L_.str.3:                               ## @.str.3
	.asciz	"transaction identifier \"%s\" is already in use"

	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.4:                               ## @.str.4
	.asciz	"maximum number of prepared transactions reached"

L_.str.5:                               ## @.str.5
	.asciz	"Increase max_prepared_transactions (currently %d)."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkAsPreparing                ; -- Begin function MarkAsPreparing
	.p2align	2
_MarkAsPreparing:                       ; @MarkAsPreparing
	.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, w4, [sp, #8]                ; 8-byte Folded Spill
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x8, _GIDSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIDSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x27, _ERROR@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.lt	LBB0_2
; %bb.1:
	ldr	w24, [x27]
Lloh5:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
	str	x22, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_2:
Lloh10:
	adrp	x8, _max_prepared_xacts@GOTPAGE
Lloh11:
	ldr	x8, [x8, _max_prepared_xacts@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w24, [x27]
Lloh13:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_4:
Lloh20:
	adrp	x19, _twophaseExitRegistered@GOTPAGE
Lloh21:
	ldr	x19, [x19, _twophaseExitRegistered@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _AtProcExit_Twophase@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AtProcExit_Twophase@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_before_shmem_exit
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
Lloh25:
	adrp	x28, _TwoPhaseStateLock@GOTPAGE
Lloh26:
	ldr	x28, [x28, _TwoPhaseStateLock@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh27:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh30:
	adrp	x26, _TwoPhaseState@GOTPAGE
Lloh31:
	ldr	x26, [x26, _TwoPhaseState@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x19, #0
Lloh32:
	adrp	x20, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh33:
	ldr	x20, [x20, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh34:
	adrp	x24, l_.str.3@PAGE
Lloh35:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #1
	ldr	x8, [x26]
	ldrsw	x9, [x8]
	cmp	x19, x9
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w0, [x8, #16]
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w25, [x27]
	ldr	w0, [x20]
	bl	_errcode
	str	x22, [sp]
	mov	x0, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	b	LBB0_8
LBB0_11:
	ldr	x24, [x8, #16]
Lloh36:
	adrp	x19, _max_prepared_xacts@GOTPAGE
Lloh37:
	ldr	x19, [x19, _max_prepared_xacts@GOTPAGEOFF]
	cbnz	x24, LBB0_13
; %bb.12:
	ldr	w24, [x27]
Lloh38:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_errcode
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	ldr	w8, [x19]
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	ldr	x8, [x26]
	ldr	x24, [x8, #16]
LBB0_13:
	ldr	x9, [x24, #8]
	str	x9, [x8, #16]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	ldp	w4, w5, [sp, #8]                ; 8-byte Folded Reload
	bl	_MarkAsPreparingGuts
	str	wzr, [x24]
	ldr	x8, [x26]
	ldr	w8, [x8]
	ldr	w9, [x19]
	cmp	w8, w9
	cset	w0, lt
	bl	_Assert
	ldr	x8, [x26]
	ldr	x9, [x8, #8]
	ldrsw	x10, [x8]
	add	w11, w10, #1
	str	w11, [x8]
	str	x24, [x9, x10, lsl #3]
	ldr	w0, [x28]
	bl	_LWLockRelease
	mov	x0, x24
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_GIDSIZE,8,3                    ; @GIDSIZE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transaction identifier \"%s\" is too long"

	.comm	_max_prepared_xacts,4,2         ; @max_prepared_xacts
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ; @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
l_.str.1:                               ; @.str.1
	.asciz	"prepared transactions are disabled"

l_.str.2:                               ; @.str.2
	.asciz	"Set max_prepared_transactions to a nonzero value."

	.comm	_twophaseExitRegistered,4,2     ; @twophaseExitRegistered
	.comm	_AtProcExit_Twophase,4,2        ; @AtProcExit_Twophase
	.comm	_TwoPhaseStateLock,4,2          ; @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_TwoPhaseState,8,3              ; @TwoPhaseState
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
l_.str.3:                               ; @.str.3
	.asciz	"transaction identifier \"%s\" is already in use"

	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.4:                               ; @.str.4
	.asciz	"maximum number of prepared transactions reached"

l_.str.5:                               ; @.str.5
	.asciz	"Increase max_prepared_transactions (currently %d)."

.subsections_via_symbols
