	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DefineSavepoint                ## -- Begin function DefineSavepoint
	.p2align	4, 0x90
_DefineSavepoint:                       ## @DefineSavepoint
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CurrentTransactionState@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	xorl	%eax, %eax
	callq	_IsInParallelMode
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_INVALID_TRANSACTION_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$19, %eax
	ja	LBB0_7
## %bb.3:
	movl	$1036283, %ecx                  ## imm = 0xFCFFB
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.9:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BlockStateAsString
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_4:
	movl	$4100, %ecx                     ## imm = 0x1004
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	callq	_PushTransaction
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rbx
	movq	_TopTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_MemoryContextStrdup
	movl	%eax, 4(%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentTransactionState,8,3    ## @CurrentTransactionState
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_STATE,4,2 ## @ERRCODE_INVALID_TRANSACTION_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot define savepoints during a parallel operation"

	.comm	_TopTransactionContext,4,2      ## @TopTransactionContext
	.comm	_ERRCODE_NO_ACTIVE_SQL_TRANSACTION,4,2 ## @ERRCODE_NO_ACTIVE_SQL_TRANSACTION
L_.str.1:                               ## @.str.1
	.asciz	"%s can only be used in transaction blocks"

L_.str.2:                               ## @.str.2
	.asciz	"SAVEPOINT"

	.comm	_FATAL,4,2                      ## @FATAL
L_.str.3:                               ## @.str.3
	.asciz	"DefineSavepoint: unexpected state %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DefineSavepoint                ; -- Begin function DefineSavepoint
	.p2align	2
_DefineSavepoint:                       ; @DefineSavepoint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x21, _CurrentTransactionState@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CurrentTransactionState@GOTPAGEOFF]
	ldr	x22, [x21]
	bl	_IsInParallelMode
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
	ldr	w0, [x22]
	sub	w8, w0, #128
	cmp	w8, #19
	b.hi	LBB0_8
; %bb.3:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #53243
	movk	w9, #15, lsl #16
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	bl	_BlockStateAsString
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_elog
LBB0_5:
	mov	w9, #4100
	tst	w8, w9
	b.eq	LBB0_9
; %bb.6:
	bl	_PushTransaction
	cbz	x19, LBB0_8
; %bb.7:
	ldr	x20, [x21]
Lloh15:
	adrp	x8, _TopTransactionContext@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TopTransactionContext@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_MemoryContextStrdup
	str	w0, [x20, #4]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
Lloh21:
	adrp	x8, _ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x8, l_.str.2@PAGE
Lloh25:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ereport
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentTransactionState,8,3    ; @CurrentTransactionState
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_STATE,4,2 ; @ERRCODE_INVALID_TRANSACTION_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot define savepoints during a parallel operation"

	.comm	_TopTransactionContext,4,2      ; @TopTransactionContext
	.comm	_ERRCODE_NO_ACTIVE_SQL_TRANSACTION,4,2 ; @ERRCODE_NO_ACTIVE_SQL_TRANSACTION
l_.str.1:                               ; @.str.1
	.asciz	"%s can only be used in transaction blocks"

l_.str.2:                               ; @.str.2
	.asciz	"SAVEPOINT"

	.comm	_FATAL,4,2                      ; @FATAL
l_.str.3:                               ; @.str.3
	.asciz	"DefineSavepoint: unexpected state %s"

.subsections_via_symbols
