	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HoldPinnedPortals              ## -- Begin function HoldPinnedPortals
	.p2align	4, 0x90
_HoldPinnedPortals:                     ## @HoldPinnedPortals
	.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	_PortalHashTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_hash_seq_init
	movq	%rbx, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	leaq	-44(%rbp), %r12
	movq	_PORTAL_ONE_SELECT@GOTPCREL(%rip), %r14
	movq	_PORTAL_READY@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_HoldPortal
	movl	$1, (%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_INVALID_TRANSACTION_TERMINATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	jmp	LBB0_8
LBB0_10:
	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	_PORTAL_ONE_SELECT,8,3          ## @PORTAL_ONE_SELECT
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_TERMINATION,4,2 ## @ERRCODE_INVALID_TRANSACTION_TERMINATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot perform transaction commands inside a cursor loop that is not read-only"

	.comm	_PORTAL_READY,8,3               ## @PORTAL_READY
L_.str.1:                               ## @.str.1
	.asciz	"pinned portal is not ready to be auto-held"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HoldPinnedPortals              ; -- Begin function HoldPinnedPortals
	.p2align	2
_HoldPinnedPortals:                     ; @HoldPinnedPortals
	.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
Lloh0:
	adrp	x8, _PortalHashTable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PortalHashTable@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_hash_seq_init
	add	x0, sp, #12
	bl	_hash_seq_search
	cbz	x0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x23, _PORTAL_ONE_SELECT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PORTAL_ONE_SELECT@GOTPAGEOFF]
Lloh5:
	adrp	x24, _PORTAL_READY@GOTPAGE
Lloh6:
	ldr	x24, [x24, _PORTAL_READY@GOTPAGEOFF]
	mov	w25, #1
Lloh7:
	adrp	x26, _ERROR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
Lloh9:
	adrp	x19, l_.str.1@PAGE
Lloh10:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh11:
	adrp	x27, _ERRCODE_INVALID_TRANSACTION_TERMINATION@GOTPAGE
Lloh12:
	ldr	x27, [x27, _ERRCODE_INVALID_TRANSACTION_TERMINATION@GOTPAGEOFF]
Lloh13:
	adrp	x20, l_.str@PAGE
Lloh14:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_HoldPortal
	str	w25, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_hash_seq_search
	cbz	x0, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x0]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x26]
	ldr	w0, [x27]
	bl	_errcode
	mov	x0, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	bl	_elog
	b	LBB0_2
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PortalHashTable,4,2            ; @PortalHashTable
	.comm	_PORTAL_ONE_SELECT,8,3          ; @PORTAL_ONE_SELECT
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_TERMINATION,4,2 ; @ERRCODE_INVALID_TRANSACTION_TERMINATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot perform transaction commands inside a cursor loop that is not read-only"

	.comm	_PORTAL_READY,8,3               ; @PORTAL_READY
l_.str.1:                               ; @.str.1
	.asciz	"pinned portal is not ready to be auto-held"

.subsections_via_symbols
