	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CatalogIndexInsert
_CatalogIndexInsert:                    ## @CatalogIndexInsert
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INDEX_MAX_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_HeapTupleIsHeapOnly
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movl	(%r12), %r15d
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	movq	24(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rdi
	movq	16(%r12), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_RelationGetDescr
	movq	_TTSOpsHeapTuple@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_MakeSingleTupleTableSlot
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ExecStoreHeapTuple
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.3:
	xorl	%r14d, %r14d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	pushq	%r12
	callq	_index_insert
	addq	$16, %rsp
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, %r15
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r14,8), %r12
	cmpl	$0, 32(%r12)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %r13
	movq	(%r12), %rax
	xorl	%edi, %edi
	movq	_NIL@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	sete	%dil
	callq	_Assert
	movq	8(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 24(%r12)
	sete	%dil
	callq	_Assert
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 16(%r12)
	setne	%dil
	callq	_Assert
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_FormIndexDatum
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	movq	_UNIQUE_CHECK_YES@GOTPCREL(%rip), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_UNIQUE_CHECK_NO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ExecDropSingleTupleTableSlot
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ## @INDEX_MAX_KEYS
	.comm	_TTSOpsHeapTuple,4,2            ## @TTSOpsHeapTuple
	.comm	_NIL,8,3                        ## @NIL
	.comm	_UNIQUE_CHECK_YES,4,2           ## @UNIQUE_CHECK_YES
	.comm	_UNIQUE_CHECK_NO,4,2            ## @UNIQUE_CHECK_NO
	.no_dead_strip	_CatalogIndexInsert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CatalogIndexInsert
_CatalogIndexInsert:                    ; @CatalogIndexInsert
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _INDEX_MAX_KEYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDEX_MAX_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	mov	x0, x1
	bl	_HeapTupleIsHeapOnly
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	w26, [x22]
	cbz	w26, LBB0_8
; %bb.2:
	ldp	x28, x27, [x22, #16]
	ldr	x0, [x22, #8]
	stur	x0, [x29, #-96]                 ; 8-byte Folded Spill
	bl	_RelationGetDescr
Lloh10:
	adrp	x1, _TTSOpsHeapTuple@GOTPAGE
Lloh11:
	ldr	x1, [x1, _TTSOpsHeapTuple@GOTPAGEOFF]
	bl	_MakeSingleTupleTableSlot
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_ExecStoreHeapTuple
	cmp	w26, #1
	b.lt	LBB0_7
; %bb.3:
Lloh12:
	adrp	x22, _NIL@GOTPAGE
Lloh13:
	ldr	x22, [x22, _NIL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #8
	add	x28, x28, #8
	subs	x26, x26, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x28]
	ldr	w8, [x24, #32]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [x27]
	ldr	x8, [x24]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x24, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x24, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_Assert
	ldr	x8, [x24, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	mov	x0, x24
	mov	x1, x23
	mov	x2, #0
	mov	x3, x20
	mov	x4, x21
	bl	_FormIndexDatum
	ldr	x8, [x25]
	ldr	x8, [x8, #8]
	cmp	x8, #0
Lloh14:
	adrp	x8, _UNIQUE_CHECK_YES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UNIQUE_CHECK_YES@GOTPAGEOFF]
Lloh16:
	adrp	x9, _UNIQUE_CHECK_NO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _UNIQUE_CHECK_NO@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	ldur	x4, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x6, x24
	bl	_index_insert
	b	LBB0_4
LBB0_7:
	mov	x0, x23
	bl	_ExecDropSingleTupleTableSlot
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ; @INDEX_MAX_KEYS
	.comm	_TTSOpsHeapTuple,4,2            ; @TTSOpsHeapTuple
	.comm	_NIL,8,3                        ; @NIL
	.comm	_UNIQUE_CHECK_YES,4,2           ; @UNIQUE_CHECK_YES
	.comm	_UNIQUE_CHECK_NO,4,2            ; @UNIQUE_CHECK_NO
	.no_dead_strip	_CatalogIndexInsert
.subsections_via_symbols
