	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_systable_beginscan             ## -- Begin function systable_beginscan
	.p2align	4, 0x90
_systable_beginscan:                    ## @systable_beginscan
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	testl	%edx, %edx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movq	_IgnoreSystemIndexes@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.2:
	movl	%esi, %r12d
	movl	%esi, %edi
	callq	_ReindexIsProcessingIndex
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_index_open
	movq	%rax, %r14
LBB0_5:
	movl	$4, %edi
	callq	_palloc
	movq	%rax, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 40(%rax)
	movq	%r14, 32(%rax)
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_table_slot_create
	movl	%eax, 24(%r15)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_GetCatalogSnapshot
	movl	%eax, %edi
	callq	_RegisterSnapshot
	movq	%rax, %r13
	movq	%rax, %rsi
LBB0_7:
	movq	%r13, 16(%r15)
	testq	%r14, %r14
	je	LBB0_19
## %bb.8:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_18
## %bb.9:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	cmpq	%r15, %r13
	je	LBB0_18
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r14, %rdi
	callq	_IndexRelationGetNumberOfAttributes
	movl	$0, %r12d
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%r13,4), %eax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rcx,%r12,4), %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	incq	%r12
	movq	%r14, %rdi
	callq	_IndexRelationGetNumberOfAttributes
	cltq
	cmpq	%rax, %r12
	jl	LBB0_12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r12), %eax
	movl	%eax, (%rbx,%r13,4)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_IndexRelationGetNumberOfAttributes
	cmpl	%eax, %r12d
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_17
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_index_beginscan
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_index_rescan
	movq	%r15, %rax
	addq	$8, %rax
	jmp	LBB0_20
LBB0_19:
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_table_beginscan_strat
	movq	%rax, 8(%r15)
	movq	%r15, %rax
LBB0_20:
	movq	$0, (%rax)
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IgnoreSystemIndexes,4,2        ## @IgnoreSystemIndexes
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"column is not in index"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_systable_beginscan             ; -- Begin function systable_beginscan
	.p2align	2
_systable_beginscan:                    ; @systable_beginscan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x21, x0
	mov	x24, #0
	cbz	w2, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _IgnoreSystemIndexes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IgnoreSystemIndexes@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.2:
	mov	x22, x1
	mov	x0, x1
	bl	_ReindexIsProcessingIndex
	cbz	w0, LBB0_4
; %bb.3:
	mov	x24, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_index_open
	mov	x24, x0
LBB0_5:
	mov	w0, #4
	bl	_palloc
	mov	x22, x0
	stp	x24, x21, [x0, #32]
	mov	x0, x21
	mov	x1, #0
	bl	_table_slot_create
	mov	x8, x0
	mov	x0, #0
	str	w8, [x22, #24]
	cbz	x23, LBB0_19
; %bb.6:
	str	x0, [x22, #16]
	cbz	x24, LBB0_20
LBB0_7:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.8:
	mov	x26, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w27, w8
Lloh6:
	adrp	x28, _ERROR@GOTPAGE
Lloh7:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
Lloh8:
	adrp	x25, l_.str@PAGE
Lloh9:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	cmp	x26, x27
	b.eq	LBB0_18
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x24
	bl	_IndexRelationGetNumberOfAttributes
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19, x26, lsl #2]
	ldr	x9, [x24]
	ldr	x9, [x9]
	ldr	w9, [x9, x20, lsl #2]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x20, x20, #1
	mov	x0, x24
	bl	_IndexRelationGetNumberOfAttributes
	cmp	x20, w0, sxtw
	b.lt	LBB0_12
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w20, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w20, #1
	str	w8, [x19, x26, lsl #2]
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_IndexRelationGetNumberOfAttributes
	cmp	w20, w0
	b.ne	LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x28]
	mov	x1, x25
	bl	_elog
	b	LBB0_9
LBB0_18:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	mov	x3, x21
	mov	w4, #0
	bl	_index_beginscan
	mov	x20, x22
	str	x0, [x20], #8
	mov	x1, x19
	mov	x2, x21
	mov	x3, #0
	mov	w4, #0
	bl	_index_rescan
	b	LBB0_21
LBB0_19:
	mov	x0, x21
	bl	_RelationGetRelid
	bl	_GetCatalogSnapshot
	bl	_RegisterSnapshot
	mov	x23, x0
	str	x0, [x22, #16]
	cbnz	x24, LBB0_7
LBB0_20:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	mov	w4, #1
	mov	w5, #0
	bl	_table_beginscan_strat
	str	x0, [x22, #8]
	mov	x20, x22
LBB0_21:
	str	xzr, [x20]
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IgnoreSystemIndexes,4,2        ; @IgnoreSystemIndexes
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"column is not in index"

.subsections_via_symbols
