	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_statentries_for_relation
_fetch_statentries_for_relation:        ## @fetch_statentries_for_relation
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_Anum_pg_statistic_ext_stxrelid@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%esi, %edi
	callq	_ObjectIdGetDatum
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_StatisticExtRelidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	%r13, %r9
	callq	_systable_beginscan
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	_STATS_EXT_NDISTINCT@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_lappend
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_systable_getnext
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movl	$24, %edi
	callq	_palloc0
	movq	%rax, %r14
	movl	%r12d, %edi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movl	28(%rax), %eax
	movl	%eax, 20(%r14)
	movl	24(%r15), %edi
	callq	_get_namespace_name
	movl	%eax, 16(%r14)
	movl	20(%r15), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_pstrdup
	movl	%eax, 12(%r14)
	movl	16(%r15), %eax
	movl	%eax, 8(%r14)
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rcx
	movl	(%rcx,%rbx,4), %esi
	movl	%eax, %edi
	callq	_bms_add_member
	movl	%eax, 4(%r14)
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_STATEXTOID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Anum_pg_statistic_ext_stxkind@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	leaq	-60(%rbp), %rcx
	callq	_SysCacheGetAttr
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -60(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetArrayTypeP
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ARR_NDIM
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ARR_HASNULL
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ARR_ELEMTYPE
	movq	_CHAROID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ARR_DATA_PTR
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ARR_DIMS
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movzbl	%al, %edi
	callq	_Assert
	movl	(%r14), %edi
	movsbl	(%r15,%rbx), %esi
	callq	_lappend_int
	movl	%eax, (%r14)
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARR_DIMS
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r15,%rbx), %ecx
	movb	$1, %al
	cmpb	(%r13), %cl
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_STATS_EXT_DEPENDENCIES@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_STATS_EXT_MCV@GOTPCREL(%rip), %rax
	cmpb	(%rax), %cl
	sete	%al
	jmp	LBB0_14
LBB0_16:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_systable_endscan
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_Anum_pg_statistic_ext_stxrelid,4,2 ## @Anum_pg_statistic_ext_stxrelid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_StatisticExtRelidIndexId,4,2   ## @StatisticExtRelidIndexId
	.comm	_STATEXTOID,4,2                 ## @STATEXTOID
	.comm	_Anum_pg_statistic_ext_stxkind,4,2 ## @Anum_pg_statistic_ext_stxkind
	.comm	_CHAROID,8,3                    ## @CHAROID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stxkind is not a 1-D char array"

	.comm	_STATS_EXT_NDISTINCT,1,0        ## @STATS_EXT_NDISTINCT
	.comm	_STATS_EXT_DEPENDENCIES,1,0     ## @STATS_EXT_DEPENDENCIES
	.comm	_STATS_EXT_MCV,1,0              ## @STATS_EXT_MCV
	.no_dead_strip	_fetch_statentries_for_relation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_statentries_for_relation
_fetch_statentries_for_relation:        ; @fetch_statentries_for_relation
	.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	x20, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _Anum_pg_statistic_ext_stxrelid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Anum_pg_statistic_ext_stxrelid@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	mov	x0, x1
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_ScanKeyInit
Lloh12:
	adrp	x8, _StatisticExtRelidIndexId@GOTPAGE
Lloh13:
	ldr	x8, [x8, _StatisticExtRelidIndexId@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x20
	mov	w2, #1
	mov	x3, #0
	mov	w4, #1
	bl	_systable_beginscan
	mov	x20, x0
	bl	_systable_getnext
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_16
; %bb.1:
Lloh15:
	adrp	x26, _Anum_pg_statistic_ext_stxkind@GOTPAGE
Lloh16:
	ldr	x26, [x26, _Anum_pg_statistic_ext_stxkind@GOTPAGEOFF]
Lloh17:
	adrp	x28, _STATS_EXT_NDISTINCT@GOTPAGE
Lloh18:
	ldr	x28, [x28, _STATS_EXT_NDISTINCT@GOTPAGEOFF]
Lloh19:
	adrp	x27, _STATS_EXT_DEPENDENCIES@GOTPAGE
Lloh20:
	ldr	x27, [x27, _STATS_EXT_DEPENDENCIES@GOTPAGEOFF]
Lloh21:
	adrp	x21, _STATS_EXT_MCV@GOTPAGE
Lloh22:
	ldr	x21, [x21, _STATS_EXT_MCV@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_lappend
	mov	x19, x0
	mov	x0, x20
	bl	_systable_getnext
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	mov	w0, #24
	bl	_palloc0
	mov	x22, x0
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x24, x0
	ldp	w0, w8, [x0, #24]
	str	w8, [x22, #20]
	bl	_get_namespace_name
	str	w0, [x22, #16]
	ldr	w0, [x24, #20]
	bl	_NameStr
	bl	_pstrdup
	ldr	w8, [x24, #16]
	stp	w8, w0, [x22, #8]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	ldr	w0, [x22, #4]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, #8]
	ldr	w1, [x8, x25, lsl #2]
	bl	_bms_add_member
	str	w0, [x22, #4]
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh23:
	adrp	x8, _STATEXTOID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STATEXTOID@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w2, [x26]
	add	x3, sp, #8
	mov	x1, x23
	bl	_SysCacheGetAttr
	mov	x23, x0
	ldr	w8, [sp, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x23
	bl	_DatumGetArrayTypeP
	mov	x23, x0
	bl	_ARR_NDIM
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ARR_HASNULL
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ARR_ELEMTYPE
Lloh26:
	adrp	x8, _CHAROID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CHAROID@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ARR_DATA_PTR
	mov	x24, x0
	mov	x0, x23
	bl	_ARR_DIMS
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	ldrb	w9, [x21]
	cmp	w8, w9
	cset	w0, eq
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	bl	_Assert
	ldr	w0, [x22]
	ldrsb	w1, [x24, x25]
	bl	_lappend_int
	str	w0, [x22]
	add	x25, x25, #1
	mov	x0, x23
	bl	_ARR_DIMS
	ldrsw	x8, [x0]
	cmp	x25, x8
	b.ge	LBB0_2
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x24, x25]
	ldrb	w9, [x28]
	ldrb	w10, [x27]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	w0, #1
	b	LBB0_13
LBB0_16:
	mov	x0, x20
	bl	_systable_endscan
	mov	x0, x19
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_Anum_pg_statistic_ext_stxrelid,4,2 ; @Anum_pg_statistic_ext_stxrelid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_StatisticExtRelidIndexId,4,2   ; @StatisticExtRelidIndexId
	.comm	_STATEXTOID,4,2                 ; @STATEXTOID
	.comm	_Anum_pg_statistic_ext_stxkind,4,2 ; @Anum_pg_statistic_ext_stxkind
	.comm	_CHAROID,8,3                    ; @CHAROID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stxkind is not a 1-D char array"

	.comm	_STATS_EXT_NDISTINCT,1,0        ; @STATS_EXT_NDISTINCT
	.comm	_STATS_EXT_DEPENDENCIES,1,0     ; @STATS_EXT_DEPENDENCIES
	.comm	_STATS_EXT_MCV,1,0              ; @STATS_EXT_MCV
	.no_dead_strip	_fetch_statentries_for_relation
.subsections_via_symbols
