	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RelationInitPhysicalAddr
_RelationInitPhysicalAddr:              ## @RelationInitPhysicalAddr
	.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
	movq	32(%rdi), %rax
	movl	24(%rax), %edi
	callq	_RELKIND_HAS_STORAGE
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	32(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_MyDatabaseTableSpace@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_3:
	movq	%rcx, 8(%rbx)
	movq	_GLOBALTABLESPACE_OID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.5:
	movq	_InvalidOid@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_MyDatabaseId@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	cmpq	$0, 16(%rax)
	je	LBB0_14
## %bb.7:
	xorl	%eax, %eax
	callq	_HistoricSnapshotActive
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_RelationIsAccessibleInLogicalDecoding
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	xorl	%eax, %eax
	callq	_IsTransactionState
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_RelationGetRelid
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_RelationGetRelid
	movq	_ClassOidIndexId@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setne	%sil
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ScanPgRelation
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_RelationGetRelid
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_12:
	movl	%r14d, %edi
	callq	_GETSTRUCT
	movq	(%rax), %rcx
	movq	32(%rbx), %rdx
	movq	%rcx, (%rdx)
	movq	8(%rax), %rax
	movq	%rax, 16(%rdx)
	movl	%r14d, %edi
	callq	_heap_freetuple
LBB0_13:
	movq	32(%rbx), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_15
LBB0_14:
	movl	(%rbx), %edi
	movl	8(%rax), %esi
	callq	_RelationMapOidToFilenode
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_OidIsValid
	testl	%eax, %eax
	je	LBB0_16
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	movslq	%eax, %rdx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyDatabaseTableSpace,8,3       ## @MyDatabaseTableSpace
	.comm	_GLOBALTABLESPACE_OID,8,3       ## @GLOBALTABLESPACE_OID
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
	.comm	_ClassOidIndexId,8,3            ## @ClassOidIndexId
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find pg_class entry for %u"

L_.str.1:                               ## @.str.1
	.asciz	"could not find relation mapping for relation \"%s\", OID %u"

	.no_dead_strip	_RelationInitPhysicalAddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RelationInitPhysicalAddr
_RelationInitPhysicalAddr:              ; @RelationInitPhysicalAddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8, #24]
	bl	_RELKIND_HAS_STORAGE
	cbz	w0, LBB0_11
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _MyDatabaseTableSpace@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MyDatabaseTableSpace@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x9, x10, x9, eq
	str	x9, [x19, #8]
Lloh3:
	adrp	x10, _GLOBALTABLESPACE_OID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GLOBALTABLESPACE_OID@GOTPAGEOFF]
Lloh5:
	adrp	x11, _InvalidOid@GOTPAGE
Lloh6:
	ldr	x11, [x11, _InvalidOid@GOTPAGEOFF]
Lloh7:
	adrp	x12, _MyDatabaseId@GOTPAGE
Lloh8:
	ldr	x12, [x12, _MyDatabaseId@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	str	w9, [x19, #24]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_9
; %bb.2:
	bl	_HistoricSnapshotActive
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_RelationIsAccessibleInLogicalDecoding
	cbz	x0, LBB0_8
; %bb.4:
	bl	_IsTransactionState
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x20, x0
	mov	x0, x19
	bl	_RelationGetRelid
Lloh10:
	adrp	x8, _ClassOidIndexId@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ClassOidIndexId@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w1, ne
	mov	x0, x20
	mov	w2, #1
	bl	_ScanPgRelation
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_elog
LBB0_7:
	mov	x0, x20
	bl	_GETSTRUCT
	ldr	x8, [x19, #32]
	ldp	x9, x10, [x0]
	str	x9, [x8]
	str	x10, [x8, #16]
	mov	x0, x20
	bl	_heap_freetuple
LBB0_8:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #16]
	str	x8, [x19, #16]
	b	LBB0_11
LBB0_9:
	ldr	w0, [x19]
	ldr	w1, [x8, #8]
	bl	_RelationMapOidToFilenode
	str	x0, [x19, #16]
	bl	_OidIsValid
	cbnz	w0, LBB0_11
; %bb.10:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	ldr	w8, [x19]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_elog
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MyDatabaseTableSpace,8,3       ; @MyDatabaseTableSpace
	.comm	_GLOBALTABLESPACE_OID,8,3       ; @GLOBALTABLESPACE_OID
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
	.comm	_ClassOidIndexId,8,3            ; @ClassOidIndexId
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find pg_class entry for %u"

l_.str.1:                               ; @.str.1
	.asciz	"could not find relation mapping for relation \"%s\", OID %u"

	.no_dead_strip	_RelationInitPhysicalAddr
.subsections_via_symbols
