	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_relation_open              ## -- Begin function try_relation_open
	.p2align	4, 0x90
_try_relation_open:                     ## @try_relation_open
	.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	%rsi, %r12
	movq	_NoLock@GOTPCREL(%rip), %r13
	cmpq	%rsi, (%r13)
	setle	%al
	movq	_MAX_LOCKMODES@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	movl	%edi, %r15d
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	cmpq	%r12, (%r13)
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_LockRelationOid
LBB0_2:
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheExists1
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movl	%r15d, %edi
	callq	_RelationIdGetRelation
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_RelationIsValid
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
LBB0_5:
	movl	$1, %edi
	cmpq	%r12, (%r13)
	jne	LBB0_7
## %bb.6:
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_CheckRelationLockedByMe
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_7:
	callq	_Assert
	movq	%r14, %rdi
	callq	_RelationUsesLocalBuffers
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_XACT_FLAGS_ACCESSEDTEMPNAMESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MyXactFlags@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_9:
	movq	%r14, %rdi
	callq	_pgstat_initstats
	jmp	LBB0_14
LBB0_10:
	cmpq	%r12, (%r13)
	je	LBB0_13
## %bb.12:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_UnlockRelationOid
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NoLock,8,3                     ## @NoLock
	.comm	_MAX_LOCKMODES,8,3              ## @MAX_LOCKMODES
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open relation with OID %u"

	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_XACT_FLAGS_ACCESSEDTEMPNAMESPACE,4,2 ## @XACT_FLAGS_ACCESSEDTEMPNAMESPACE
	.comm	_MyXactFlags,4,2                ## @MyXactFlags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_relation_open              ; -- Begin function try_relation_open
	.p2align	2
_try_relation_open:                     ; @try_relation_open
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _NoLock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NoLock@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x1
Lloh2:
	adrp	x8, _MAX_LOCKMODES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_LOCKMODES@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ccmp	x8, x1, #4, le
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x22]
	cmp	x8, x20
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_LockRelationOid
LBB0_2:
Lloh5:
	adrp	x8, _RELOID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x19
	bl	_SearchSysCacheExists1
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x21
	bl	_RelationIdGetRelation
	mov	x19, x0
	bl	_RelationIsValid
	cbnz	w0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_5:
	ldr	x8, [x22]
	cmp	x8, x20
	b.ne	LBB0_10
; %bb.6:
Lloh13:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_CheckRelationLockedByMe
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_11
LBB0_7:
	ldr	x8, [x22]
	cmp	x8, x20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_UnlockRelationOid
LBB0_9:
	mov	x19, #0
	b	LBB0_14
LBB0_10:
	mov	w0, #1
LBB0_11:
	bl	_Assert
	mov	x0, x19
	bl	_RelationUsesLocalBuffers
	cbz	x0, LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _XACT_FLAGS_ACCESSEDTEMPNAMESPACE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XACT_FLAGS_ACCESSEDTEMPNAMESPACE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _MyXactFlags@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MyXactFlags@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_13:
	mov	x0, x19
	bl	_pgstat_initstats
LBB0_14:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NoLock,8,3                     ; @NoLock
	.comm	_MAX_LOCKMODES,8,3              ; @MAX_LOCKMODES
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open relation with OID %u"

	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_XACT_FLAGS_ACCESSEDTEMPNAMESPACE,4,2 ; @XACT_FLAGS_ACCESSEDTEMPNAMESPACE
	.comm	_MyXactFlags,4,2                ; @MyXactFlags
.subsections_via_symbols
