	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PreCommit_Portals              ## -- Begin function PreCommit_Portals
	.p2align	4, 0x90
_PreCommit_Portals:                     ## @PreCommit_Portals
	.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
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_PortalHashTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_hash_seq_init
	movq	%rbx, %rdi
	callq	_hash_seq_search
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	_PORTAL_ACTIVE@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %rbx
	movq	_InvalidSubTransactionId@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 32(%r15)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 24(%r15)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %r15
	cmpq	$0, 48(%r15)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 40(%r15)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_UnregisterSnapshotFromOwner
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CURSOR_OPT_HOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	16(%r15), %rcx
	movq	(%r12), %rdx
	testl	%esi, 8(%r15)
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PORTAL_READY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_HoldPortal
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_PortalDrop
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_hash_seq_term
	movq	_PortalHashTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hash_seq_init
	movl	$1, %r13d
	jmp	LBB0_20
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PortalHashTable,4,2            ## @PortalHashTable
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot commit while a portal is pinned"

	.comm	_PORTAL_ACTIVE,8,3              ## @PORTAL_ACTIVE
	.comm	_CURSOR_OPT_HOLD,4,2            ## @CURSOR_OPT_HOLD
	.comm	_InvalidSubTransactionId,8,3    ## @InvalidSubTransactionId
	.comm	_PORTAL_READY,8,3               ## @PORTAL_READY
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"cannot PREPARE a transaction that has created a cursor WITH HOLD"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PreCommit_Portals              ; -- Begin function PreCommit_Portals
	.p2align	2
_PreCommit_Portals:                     ; @PreCommit_Portals
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _PortalHashTable@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PortalHashTable@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x0, sp, #12
	bl	_hash_seq_init
	add	x0, sp, #12
	bl	_hash_seq_search
	mov	w22, #0
	cbz	x0, LBB0_20
; %bb.1:
Lloh2:
	adrp	x25, _PORTAL_ACTIVE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PORTAL_ACTIVE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _CURSOR_OPT_HOLD@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CURSOR_OPT_HOLD@GOTPAGEOFF]
Lloh6:
	adrp	x27, _InvalidSubTransactionId@GOTPAGE
Lloh7:
	ldr	x27, [x27, _InvalidSubTransactionId@GOTPAGEOFF]
Lloh8:
	adrp	x28, _PORTAL_READY@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PORTAL_READY@GOTPAGEOFF]
Lloh10:
	adrp	x20, _ERROR@GOTPAGE
Lloh11:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x23, #32]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x23, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_hash_seq_search
	cbz	x0, LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x0]
	ldr	x8, [x23, #48]
	cbz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #40]
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20]
	mov	x1, x21
	bl	_elog
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23, #32]
	cbz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x23, #24]
	cbz	x1, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_UnregisterSnapshotFromOwner
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x23, #8]
	ldr	w12, [x26]
	ldr	x9, [x23, #16]
	ldr	x10, [x27]
	tst	w12, w11
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x28]
	cmp	x9, x10
	ccmp	x8, x11, #0, ne
	b.eq	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	w1, #1
	bl	_PortalDrop
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w19, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w22, [x20]
Lloh14:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_errcode
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_HoldPortal
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_hash_seq_term
	ldr	w1, [x24]
	add	x0, sp, #12
	bl	_hash_seq_init
	mov	w22, #1
	b	LBB0_4
LBB0_20:
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PortalHashTable,4,2            ; @PortalHashTable
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot commit while a portal is pinned"

	.comm	_PORTAL_ACTIVE,8,3              ; @PORTAL_ACTIVE
	.comm	_CURSOR_OPT_HOLD,4,2            ; @CURSOR_OPT_HOLD
	.comm	_InvalidSubTransactionId,8,3    ; @InvalidSubTransactionId
	.comm	_PORTAL_READY,8,3               ; @PORTAL_READY
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"cannot PREPARE a transaction that has created a cursor WITH HOLD"

.subsections_via_symbols
