	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_transaction_read_only    ## -- Begin function check_transaction_read_only
	.p2align	4, 0x90
_check_transaction_read_only:           ## @check_transaction_read_only
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, (%rdi)
	movl	$1, %ebx
	jne	LBB0_11
## %bb.1:
	movq	_XactReadOnly@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	callq	_IsTransactionState
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	_InitializingParallelWorker@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.4:
	xorl	%eax, %eax
	callq	_IsSubTransaction
	movq	_ERRCODE_ACTIVE_SQL_TRANSACTION@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_10
LBB0_6:
	movq	_FirstSnapshotSet@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rbx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %edi
	callq	_GUC_check_errcode
	movq	%rbx, %rdi
	callq	_GUC_check_errmsg
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XactReadOnly,8,3               ## @XactReadOnly
	.comm	_InitializingParallelWorker,4,2 ## @InitializingParallelWorker
	.comm	_ERRCODE_ACTIVE_SQL_TRANSACTION,4,2 ## @ERRCODE_ACTIVE_SQL_TRANSACTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot set transaction read-write mode inside a read-only transaction"

	.comm	_FirstSnapshotSet,8,3           ## @FirstSnapshotSet
L_.str.1:                               ## @.str.1
	.asciz	"transaction read-write mode must be set before any query"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"cannot set transaction read-write mode during recovery"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_transaction_read_only    ; -- Begin function check_transaction_read_only
	.p2align	2
_check_transaction_read_only:           ; @check_transaction_read_only
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _XactReadOnly@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XactReadOnly@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	bl	_IsTransactionState
	mov	x8, x0
	mov	w0, #1
	cbz	x8, LBB0_10
; %bb.3:
Lloh3:
	adrp	x8, _InitializingParallelWorker@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InitializingParallelWorker@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.4:
	bl	_IsSubTransaction
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _FirstSnapshotSet@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FirstSnapshotSet@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.7:
Lloh11:
	adrp	x19, l_.str.1@PAGE
Lloh12:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_8:
Lloh13:
	adrp	x8, _ERRCODE_ACTIVE_SQL_TRANSACTION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_ACTIVE_SQL_TRANSACTION@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	bl	_GUC_check_errcode
	mov	x0, x19
	bl	_GUC_check_errmsg
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	_RecoveryInProgress
	cbz	x0, LBB0_1
; %bb.12:
Lloh15:
	adrp	x19, l_.str.2@PAGE
Lloh16:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh17:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XactReadOnly,8,3               ; @XactReadOnly
	.comm	_InitializingParallelWorker,4,2 ; @InitializingParallelWorker
	.comm	_ERRCODE_ACTIVE_SQL_TRANSACTION,4,2 ; @ERRCODE_ACTIVE_SQL_TRANSACTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot set transaction read-write mode inside a read-only transaction"

	.comm	_FirstSnapshotSet,8,3           ; @FirstSnapshotSet
l_.str.1:                               ; @.str.1
	.asciz	"transaction read-write mode must be set before any query"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"cannot set transaction read-write mode during recovery"

.subsections_via_symbols
