	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_safe_enum_use
_check_safe_enum_use:                   ## @check_safe_enum_use
	.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	%rdi, %rbx
	callq	_GETSTRUCT
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_HeapTupleHeaderXminCommitted
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	callq	_HeapTupleHeaderGetXmin
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TransactionIdIsInProgress
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movslq	%r14d, %rbx
	movl	8(%rbx), %edi
	callq	_EnumBlacklisted
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%rbx), %edi
	callq	_NameStr
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_format_type_be
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%r14d, %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	_ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE,4,2 ## @ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsafe use of new value \"%s\" of enum type %s"

L_.str.1:                               ## @.str.1
	.asciz	"New enum values must be committed before they can be used."

	.no_dead_strip	_check_safe_enum_use
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_safe_enum_use
_check_safe_enum_use:                   ; @check_safe_enum_use
	.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	x20, x0
	bl	_GETSTRUCT
	mov	x19, x0
	ldr	w0, [x20]
	bl	_HeapTupleHeaderXminCommitted
	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:
	ldr	w0, [x20]
	bl	_HeapTupleHeaderGetXmin
	mov	x20, x0
	bl	_TransactionIdIsInProgress
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_TransactionIdDidCommit
	cbnz	x0, LBB0_1
LBB0_4:
	sxtw	x21, w19
	ldr	w0, [x21, #8]
	bl	_EnumBlacklisted
	cbz	w0, LBB0_1
; %bb.5:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x21, #4]
	bl	_NameStr
	mov	x20, x0
	ldr	w0, [x21]
	bl	_format_type_be
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_errmsg
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	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	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE,4,2 ; @ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsafe use of new value \"%s\" of enum type %s"

l_.str.1:                               ; @.str.1
	.asciz	"New enum values must be committed before they can be used."

	.no_dead_strip	_check_safe_enum_use
.subsections_via_symbols
