	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckTransactionBlock
_CheckTransactionBlock:                 ## @CheckTransactionBlock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_IsTransactionBlock
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_IsSubTransaction
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.5:
	movq	_WARNING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	movq	_ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_WARNING,4,2                    ## @WARNING
	.comm	_ERRCODE_NO_ACTIVE_SQL_TRANSACTION,4,2 ## @ERRCODE_NO_ACTIVE_SQL_TRANSACTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s can only be used in transaction blocks"

	.no_dead_strip	_CheckTransactionBlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckTransactionBlock
_CheckTransactionBlock:                 ; @CheckTransactionBlock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_IsTransactionBlock
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_IsSubTransaction
	cbz	w21, LBB0_1
; %bb.3:
	cbnz	x0, LBB0_1
; %bb.4:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WARNING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WARNING@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
Lloh4:
	adrp	x8, _ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERRCODE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_errcode
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_WARNING,4,2                    ; @WARNING
	.comm	_ERRCODE_NO_ACTIVE_SQL_TRANSACTION,4,2 ; @ERRCODE_NO_ACTIVE_SQL_TRANSACTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s can only be used in transaction blocks"

	.no_dead_strip	_CheckTransactionBlock
.subsections_via_symbols
