	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitCatCachePhase2             ## -- Begin function InitCatCachePhase2
	.p2align	4, 0x90
_InitCatCachePhase2:                    ## @InitCatCachePhase2
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movq	%r15, %rdi
	callq	_CatalogCacheInitializeCache
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_3:
	movq	(%r15), %rax
	movq	_AMOID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.4:
	movq	_AMNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.5:
	movl	8(%r15), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_LockRelationOid
	movl	12(%r15), %edi
	movl	(%rbx), %esi
	callq	_index_open
	movq	%rax, %r14
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.7:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
LBB0_8:
	callq	_Assert
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_index_close
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UnlockRelationOid              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMOID,8,3                      ## @AMOID
	.comm	_AMNAME,8,3                     ## @AMNAME
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitCatCachePhase2             ; -- Begin function InitCatCachePhase2
	.p2align	2
_InitCatCachePhase2:                    ; @InitCatCachePhase2
	.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	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	cbnz	w20, LBB0_3
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_CatalogCacheInitializeCache
	cbz	w20, LBB0_4
LBB0_3:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AMOID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMOID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AMNAME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AMNAME@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
LBB0_4:
	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_5:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x21, _AccessShareLock@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_LockRelationOid
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	bl	_index_open
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_Assert
	ldr	w1, [x21]
	mov	x0, x20
	bl	_index_close
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	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	_UnlockRelationOid
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AMOID,8,3                      ; @AMOID
	.comm	_AMNAME,8,3                     ; @AMNAME
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
.subsections_via_symbols
