	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function percentile_cont_final_common
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_percentile_cont_final_common:          ## @percentile_cont_final_common
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	xorl	%esi, %esi
	callq	_AggCheckCallContext
	movq	_AGG_CONTEXT_AGGREGATE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	$1, %edi
	callq	_PG_ARGISNULL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_2:
	movl	$1, %edi
	callq	_PG_GETARG_FLOAT8
	xorpd	%xmm1, %xmm1
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	ucomisd	%xmm0, %xmm1
	ja	LBB0_5
## %bb.3:
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_5
## %bb.4:
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	xorl	%edi, %edi
	callq	_PG_ARGISNULL
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_8:
	xorl	%edi, %edi
	callq	_PG_GETARG_POINTER
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_10:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%r15, (%rax)
	sete	%dil
	callq	_Assert
	cmpl	$0, 4(%rbx)
	movl	8(%rbx), %edi
	je	LBB0_11
## %bb.12:
	callq	_tuplesort_rescan
	jmp	LBB0_13
LBB0_11:
	callq	_tuplesort_performsort
	movl	$1, 4(%rbx)
LBB0_13:
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	mulsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	xorps	%xmm1, %xmm1
	roundsd	$9, %xmm0, %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	xorl	%edi, %edi
	ucomisd	%xmm1, %xmm0
	seta	%dil
	callq	_Assert
	movl	8(%rbx), %edi
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	$1, %esi
	callq	_tuplesort_skiptuples
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_15:
	movl	8(%rbx), %edi
	leaq	-44(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movl	$1, %esi
	xorl	%r8d, %r8d
	callq	_tuplesort_getdatum
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_17:
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	xorps	%xmm1, %xmm1
	roundsd	$10, %xmm0, %xmm1
	cmpl	$0, -28(%rbp)
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	callq	_PG_RETURN_NULL
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
LBB0_19:
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jne	LBB0_21
	jp	LBB0_21
## %bb.20:
	movl	-44(%rbp), %edi
	jmp	LBB0_26
LBB0_21:
	movl	8(%rbx), %edi
	leaq	-68(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movl	$1, %esi
	xorl	%r8d, %r8d
	callq	_tuplesort_getdatum
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_23:
	cmpl	$0, -28(%rbp)
	je	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_25:
	movl	(%rbx), %eax
	decl	%eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	subsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	movl	-44(%rbp), %edi
	movl	-68(%rbp), %esi
	callq	*%r14
	movl	%eax, %edi
LBB0_26:
	callq	_PG_RETURN_DATUM
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGG_CONTEXT_AGGREGATE,8,3      ## @AGG_CONTEXT_AGGREGATE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ## @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"percentile value %g is not between 0 and 1"

L_.str.1:                               ## @.str.1
	.asciz	"missing row in percentile_cont"

	.no_dead_strip	_percentile_cont_final_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function percentile_cont_final_common
_percentile_cont_final_common:          ; @percentile_cont_final_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	mov	x19, x2
	mov	x21, x1
	mov	x1, #0
	bl	_AggCheckCallContext
Lloh0:
	adrp	x8, _AGG_CONTEXT_AGGREGATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AGG_CONTEXT_AGGREGATE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	mov	w0, #1
	bl	_PG_ARGISNULL
	cbz	x0, LBB0_2
; %bb.1:
	bl	_PG_RETURN_NULL
LBB0_2:
	mov	w0, #1
	bl	_PG_GETARG_FLOAT8
	fmov	d8, d0
	fcmp	d0, #0.0
	fmov	d0, #1.00000000
	fccmp	d8, d0, #0, pl
	b.gt	LBB0_4
; %bb.3:
	fmov	d0, d8
	bl	_isnan
	cbz	x0, LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	fmov	d0, d8
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_5:
	mov	w0, #0
	bl	_PG_ARGISNULL
	cbz	x0, LBB0_7
; %bb.6:
	bl	_PG_RETURN_NULL
LBB0_7:
	mov	w0, #0
	bl	_PG_GETARG_POINTER
	mov	x20, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_9
; %bb.8:
	bl	_PG_RETURN_NULL
LBB0_9:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cmp	x8, x21
	cset	w0, eq
	bl	_Assert
	ldp	w8, w0, [x20, #4]
	cbz	w8, LBB0_11
; %bb.10:
	bl	_tuplesort_rescan
	b	LBB0_12
LBB0_11:
	bl	_tuplesort_performsort
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_12:
	ldr	w8, [x20]
	sub	w9, w8, #1
	scvtf	d0, w9
	fmul	d10, d8, d0
	frintm	d9, d10
	scvtf	d0, w8
	fcmp	d9, d0
	cset	w0, mi
	bl	_Assert
	ldr	w0, [x20, #8]
	fmov	d0, d9
	mov	w1, #1
	bl	_tuplesort_skiptuples
	cbnz	w0, LBB0_14
; %bb.13:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_14:
	ldr	w0, [x20, #8]
	add	x2, sp, #12
	add	x3, sp, #4
	mov	w1, #1
	mov	x4, #0
	bl	_tuplesort_getdatum
	cbnz	w0, LBB0_16
; %bb.15:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_16:
	frintp	d10, d10
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_18
; %bb.17:
	bl	_PG_RETURN_NULL
LBB0_18:
	fcmp	d9, d10
	b.ne	LBB0_20
; %bb.19:
	ldr	w0, [sp, #12]
	b	LBB0_25
LBB0_20:
	ldr	w0, [x20, #8]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	w1, #1
	mov	x4, #0
	bl	_tuplesort_getdatum
	cbnz	w0, LBB0_22
; %bb.21:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_22:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_24
; %bb.23:
	bl	_PG_RETURN_NULL
LBB0_24:
	ldr	w8, [x20]
	sub	w8, w8, #1
	scvtf	d0, w8
	fnmsub	d0, d8, d0, d9
	ldp	w1, w0, [sp, #8]
	blr	x19
LBB0_25:
	bl	_PG_RETURN_DATUM
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AGG_CONTEXT_AGGREGATE,8,3      ; @AGG_CONTEXT_AGGREGATE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ; @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"percentile value %g is not between 0 and 1"

l_.str.1:                               ; @.str.1
	.asciz	"missing row in percentile_cont"

	.no_dead_strip	_percentile_cont_final_common
.subsections_via_symbols
