	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function index_update_stats
_index_update_stats:                    ## @index_update_stats
	.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
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movl	%esi, %r12d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_RelationGetRelid
	movl	%eax, %ebx
	movq	_RelationRelationId@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_IsBootstrapProcessingMode
	testq	%rax, %rax
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_ReindexIsProcessingHeap
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_Anum_pg_class_oid@GOTPCREL(%rip), %rax
	movl	%ebx, %edi
	movl	(%rax), %r14d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_ObjectIdGetDatum
	leaq	-56(%rbp), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movl	%r13d, %edi
	movl	$1, %esi
	leaq	-56(%rbp), %rdx
	callq	_table_beginscan_catalog
	movl	%eax, %ebx
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_heap_getnext
	movl	%eax, %edi
	callq	_heap_copytuple
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_table_endscan
LBB0_4:
	movl	%r14d, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_elog
LBB0_6:
	movl	%r14d, %edi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_RELKIND_PARTITIONED_INDEX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	xorl	%r15d, %r15d
	cmpl	%r12d, 8(%rbx)
	je	LBB0_8
## %bb.7:
	movl	%r12d, 8(%rbx)
	movl	$1, %r15d
LBB0_8:
	xorpd	%xmm0, %xmm0
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jb	LBB0_18
## %bb.9:
	movl	%r13d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_RELKIND_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	$0, -72(%rbp)
	cmpq	%r12, 16(%rbx)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_10:
	leaq	-72(%rbp), %rsi
	movl	%r13d, %edi
	xorl	%edx, %edx
	callq	_visibilitymap_count
	cmpq	%r12, 16(%rbx)
	je	LBB0_14
LBB0_13:
	movq	%r12, 16(%rbx)
	movl	$1, %r15d
LBB0_14:
	cvttsd2si	-64(%rbp), %rax         ## 8-byte Folded Reload
	cmpq	%rax, 24(%rbx)
	je	LBB0_16
## %bb.15:
	movq	%rax, 24(%rbx)
	movl	$1, %r15d
LBB0_16:
	movq	-72(%rbp), %rax
	cmpq	%rax, 32(%rbx)
	je	LBB0_18
## %bb.17:
	movq	%rax, 32(%rbx)
	movl	$1, %r15d
LBB0_18:
	testl	%r15d, %r15d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_20
## %bb.19:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_heap_inplace_update
	jmp	LBB0_21
LBB0_20:
	movl	%r14d, %edi
	callq	_CacheInvalidateRelcacheByTuple
LBB0_21:
	movl	%r14d, %edi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_table_close
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_ObjectIdGetDatum
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movl	%eax, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_Anum_pg_class_oid,4,2          ## @Anum_pg_class_oid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find tuple for relation %u"

	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ## @RELKIND_PARTITIONED_INDEX
	.comm	_RELKIND_INDEX,8,3              ## @RELKIND_INDEX
	.no_dead_strip	_index_update_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function index_update_stats
_index_update_stats:                    ; @index_update_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	fmov	d8, d0
	mov	x22, x1
	mov	x20, x0
	bl	_RelationGetRelid
	mov	x23, x0
Lloh0:
	adrp	x21, _RelationRelationId@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RelationRelationId@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x26, _RowExclusiveLock@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_table_open
	mov	x19, x0
	bl	_IsBootstrapProcessingMode
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_ReindexIsProcessingHeap
	cbz	x0, LBB0_21
LBB0_2:
Lloh4:
	adrp	x8, _Anum_pg_class_oid@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Anum_pg_class_oid@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
Lloh10:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
	mov	x0, x23
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	bl	_ScanKeyInit
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_table_beginscan_catalog
	mov	x24, x0
Lloh13:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_heap_getnext
	bl	_heap_copytuple
	mov	x21, x0
	mov	x0, x24
	bl	_table_endscan
LBB0_3:
	mov	x0, x21
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_elog
LBB0_5:
	mov	x0, x21
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	x8, [x0]
Lloh21:
	adrp	x9, _RELKIND_PARTITIONED_INDEX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RELKIND_PARTITIONED_INDEX@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	w8, [x23, #8]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.6:
	mov	w24, #0
	fcmp	d8, #0.0
	b.ge	LBB0_8
	b	LBB0_17
LBB0_7:
	str	w22, [x23, #8]
	mov	w24, #1
	fcmp	d8, #0.0
	b.lt	LBB0_17
LBB0_8:
	mov	x0, x20
	bl	_RelationGetNumberOfBlocks
	mov	x22, x0
	ldr	x8, [x23]
Lloh24:
	adrp	x9, _RELKIND_INDEX@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RELKIND_INDEX@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	str	xzr, [sp]
	b	LBB0_11
LBB0_10:
	mov	x1, sp
	mov	x0, x20
	mov	x2, #0
	bl	_visibilitymap_count
LBB0_11:
	ldr	x8, [x23, #16]
	cmp	x8, x22
	b.eq	LBB0_13
; %bb.12:
	str	x22, [x23, #16]
	mov	w24, #1
LBB0_13:
	ldr	x9, [x23, #24]
	fcvtzs	x8, d8
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.14:
	str	x8, [x23, #24]
	mov	w24, #1
LBB0_15:
	ldr	x9, [x23, #32]
	ldr	x8, [sp]
	cmp	x9, x8
	b.eq	LBB0_17
; %bb.16:
	str	x8, [x23, #32]
	mov	w24, #1
LBB0_17:
	cbz	w24, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, x21
	bl	_heap_inplace_update
	b	LBB0_20
LBB0_19:
	mov	x0, x21
	bl	_CacheInvalidateRelcacheByTuple
LBB0_20:
	mov	x0, x21
	bl	_heap_freetuple
	ldr	w1, [x26]
	mov	x0, x19
	bl	_table_close
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
Lloh27:
	adrp	x8, _RELOID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	mov	x0, x23
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCacheCopy1
	mov	x21, x0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_Anum_pg_class_oid,4,2          ; @Anum_pg_class_oid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find tuple for relation %u"

	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ; @RELKIND_PARTITIONED_INDEX
	.comm	_RELKIND_INDEX,8,3              ; @RELKIND_INDEX
	.no_dead_strip	_index_update_stats
.subsections_via_symbols
