	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RollbackToSavepoint            ## -- Begin function RollbackToSavepoint
	.p2align	4, 0x90
_RollbackToSavepoint:                   ## @RollbackToSavepoint
	.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	%rdi, %r15
	movq	_CurrentTransactionState@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	xorl	%eax, %eax
	callq	_IsInParallelMode
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_TRANSACTION_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	(%r14), %edi
	leal	-128(%rdi), %eax
	cmpl	$19, %eax
	ja	LBB0_10
## %bb.3:
	movl	$511739, %ecx                   ## imm = 0x7CEFB
	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.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_10:
	movq	%r14, %rdi
	callq	_PointerIsValid
	movq	%r14, %r12
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%r14, %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r12), %r12
	movq	%r12, %rdi
	callq	_PointerIsValid
	testq	%rax, %rax
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	callq	_PointerIsValid
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%r12), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
LBB0_15:
	movq	%r12, %rdi
	callq	_PointerIsValid
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_S_E_INVALID_SPECIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_17:
	movq	8(%r12), %rax
	cmpq	8(%r14), %rax
	je	LBB0_19
## %bb.18:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_S_E_INVALID_SPECIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_19:
	movq	(%r13), %rbx
	cmpq	%r12, %rbx
	je	LBB0_27
## %bb.20:
	movq	_FATAL@GOTPCREL(%rip), %r13
	leaq	L_.str.4(%rip), %r14
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%r13), %r15d
	callq	_BlockStateAsString
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_elog
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_PointerIsValid
	movq	%rax, %rdi
	callq	_Assert
	cmpq	%r12, %rbx
	je	LBB0_27
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	cmpl	$136, %edi
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$130, %edi
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	$134, (%rbx)
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	$135, (%rbx)
	jmp	LBB0_26
LBB0_27:
	movl	(%r12), %edi
	cmpl	$136, %edi
	je	LBB0_31
## %bb.28:
	cmpl	$130, %edi
	jne	LBB0_30
## %bb.29:
	movl	$128, (%r12)
	jmp	LBB0_32
LBB0_31:
	movl	$133, (%r12)
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_BlockStateAsString
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_4:
	movl	$528384, %ecx                   ## imm = 0x81000
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_S_E_INVALID_SPECIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	jmp	LBB0_8
LBB0_5:
	cmpl	$13, %eax
	jne	LBB0_10
## %bb.6:
	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.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_10
	.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 rollback to savepoints during a parallel operation"

	.comm	_ERRCODE_S_E_INVALID_SPECIFICATION,4,2 ## @ERRCODE_S_E_INVALID_SPECIFICATION
L_.str.1:                               ## @.str.1
	.asciz	"savepoint \"%s\" does not exist"

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

L_.str.3:                               ## @.str.3
	.asciz	"ROLLBACK TO SAVEPOINT"

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

L_.str.5:                               ## @.str.5
	.asciz	"savepoint \"%s\" does not exist within current savepoint level"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RollbackToSavepoint            ; -- Begin function RollbackToSavepoint
	.p2align	2
_RollbackToSavepoint:                   ; @RollbackToSavepoint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _CurrentTransactionState@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CurrentTransactionState@GOTPAGEOFF]
	ldr	x20, [x24]
	bl	_IsInParallelMode
Lloh2:
	adrp	x25, _ERROR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w21, [x25]
Lloh4:
	adrp	x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_errcode
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	ldr	w0, [x20]
	sub	w8, w0, #128
Lloh9:
	adrp	x23, _FATAL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FATAL@GOTPAGEOFF]
	cmp	w8, #19
	b.hi	LBB0_5
; %bb.3:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #52987
	movk	w10, #7, lsl #16
	tst	w9, w10
	b.eq	LBB0_28
; %bb.4:
	ldr	w21, [x23]
	bl	_BlockStateAsString
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_elog
LBB0_5:
	mov	x0, x20
	bl	_PointerIsValid
	mov	x21, x20
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x20
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [x21, #16]
	mov	x0, x21
	bl	_PointerIsValid
	cbz	x0, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #24]
	bl	_PointerIsValid
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x21, #24]
	mov	x1, x19
	bl	_strcmp
	cbnz	x0, LBB0_7
LBB0_10:
	mov	x0, x21
	bl	_PointerIsValid
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w22, [x25]
Lloh13:
	adrp	x8, _ERRCODE_S_E_INVALID_SPECIFICATION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_S_E_INVALID_SPECIFICATION@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	str	x19, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_12:
	ldr	x8, [x21, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	ldr	w20, [x25]
Lloh18:
	adrp	x8, _ERRCODE_S_E_INVALID_SPECIFICATION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERRCODE_S_E_INVALID_SPECIFICATION@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_errcode
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_14:
	ldr	x19, [x24]
	cmp	x19, x21
	b.eq	LBB0_22
; %bb.15:
	mov	w24, #135
	mov	w25, #134
Lloh23:
	adrp	x20, l_.str.4@PAGE
Lloh24:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w22, [x23]
	bl	_BlockStateAsString
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_elog
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x19, [x19, #16]
	mov	x0, x19
	bl	_PointerIsValid
	bl	_Assert
	cmp	x19, x21
	b.eq	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	cmp	w0, #136
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w0, #130
	b.ne	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	str	w25, [x19]
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	str	w24, [x19]
	b	LBB0_17
LBB0_22:
	ldr	w0, [x21]
	cmp	w0, #136
	b.eq	LBB0_25
; %bb.23:
	cmp	w0, #130
	b.ne	LBB0_27
; %bb.24:
	mov	w8, #128
	b	LBB0_26
LBB0_25:
	mov	w8, #133
LBB0_26:
	str	w8, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_27:
	ldr	w19, [x23]
	bl	_BlockStateAsString
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_elog
LBB0_28:
	mov	w10, #4096
	movk	w10, #8, lsl #16
	tst	w9, w10
	b.eq	LBB0_30
; %bb.29:
	ldr	w21, [x25]
Lloh27:
	adrp	x8, _ERRCODE_S_E_INVALID_SPECIFICATION@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERRCODE_S_E_INVALID_SPECIFICATION@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_errcode
	str	x19, [sp]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_32
LBB0_30:
	cmp	w8, #13
	b.ne	LBB0_5
; %bb.31:
	ldr	w21, [x25]
Lloh32:
	adrp	x8, _ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_errcode
Lloh35:
	adrp	x8, l_.str.3@PAGE
Lloh36:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp]
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_32:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.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 rollback to savepoints during a parallel operation"

	.comm	_ERRCODE_S_E_INVALID_SPECIFICATION,4,2 ; @ERRCODE_S_E_INVALID_SPECIFICATION
l_.str.1:                               ; @.str.1
	.asciz	"savepoint \"%s\" does not exist"

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

l_.str.3:                               ; @.str.3
	.asciz	"ROLLBACK TO SAVEPOINT"

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

l_.str.5:                               ; @.str.5
	.asciz	"savepoint \"%s\" does not exist within current savepoint level"

.subsections_via_symbols
