	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ChooseExtendedStatisticName
_ChooseExtendedStatisticName:           ## @ChooseExtendedStatisticName
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NAMEDATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edx
	callq	_StrNCpy
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %r15
	movq	%r12, %rdx
	callq	_makeObjectName
	movq	%rax, %r12
	movq	_STATEXTNAMENSP@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_Anum_pg_statistic_ext_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_PointerGetDatum
	movl	%eax, %r14d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_ObjectIdGetDatum
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_GetSysCacheOid2
	movl	%eax, %edi
	callq	_OidIsValid
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_pfree
	movq	%r15, %r12
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_snprintf
	incl	%ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NAMEDATALEN,4,2                ## @NAMEDATALEN
	.comm	_STATEXTNAMENSP,4,2             ## @STATEXTNAMENSP
	.comm	_Anum_pg_statistic_ext_oid,4,2  ## @Anum_pg_statistic_ext_oid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.no_dead_strip	_ChooseExtendedStatisticName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ChooseExtendedStatisticName
_ChooseExtendedStatisticName:           ; @ChooseExtendedStatisticName
	.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
	stur	w3, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x20, x2
	mov	x21, 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, _NAMEDATALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAMEDATALEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	mov	x0, x24
	mov	x1, x2
	mov	x2, x23
	bl	_StrNCpy
	mov	w25, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_makeObjectName
	mov	x27, x0
Lloh8:
	adrp	x8, _STATEXTNAMENSP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STATEXTNAMENSP@GOTPAGEOFF]
Lloh10:
	ldr	w28, [x8]
Lloh11:
	adrp	x8, _Anum_pg_statistic_ext_oid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Anum_pg_statistic_ext_oid@GOTPAGEOFF]
Lloh13:
	ldr	w26, [x8]
	bl	_PointerGetDatum
	mov	x19, x0
	ldur	w0, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_ObjectIdGetDatum
	mov	x3, x0
	mov	x0, x28
	mov	x1, x26
	mov	x2, x19
	bl	_GetSysCacheOid2
	bl	_OidIsValid
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_pfree
	mov	x0, x24
	mov	x1, x23
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x25
	bl	_snprintf
	add	w25, w25, #1
	b	LBB0_1
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x27
	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_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NAMEDATALEN,4,2                ; @NAMEDATALEN
	.comm	_STATEXTNAMENSP,4,2             ; @STATEXTNAMENSP
	.comm	_Anum_pg_statistic_ext_oid,4,2  ; @Anum_pg_statistic_ext_oid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.no_dead_strip	_ChooseExtendedStatisticName
.subsections_via_symbols
