	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function acquire_sample_rows
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_acquire_sample_rows:                   ## @acquire_sample_rows
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -144(%rbp)                 ## 8-byte Spill
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%esi, -120(%rbp)                ## 4-byte Spill
	movl	%edi, %ebx
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	xorl	%edi, %edi
	testl	%ecx, %ecx
	setg	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_RelationGetNumberOfBlocks
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	movq	_PROCARRAY_FLAGS_VACUUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetOldestXmin
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_random
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movsd	-96(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_BlockSampler_Init
	leaq	-56(%rbp), %rdi
	movl	%r14d, %esi
	callq	_reservoir_init_selection_state
	movl	%ebx, %edi
	callq	_table_beginscan_analyze
	movl	%ebx, -116(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r14d, %ebx
	movl	%eax, %r14d
	xorl	%esi, %esi
	callq	_table_slot_create
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_BlockSampler_HasMore
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	leaq	-64(%rbp), %r12
	xorl	%r13d, %r13d
	xorpd	%xmm1, %xmm1
	movsd	%xmm1, -112(%rbp)               ## 8-byte Spill
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movl	%r14d, -124(%rbp)               ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_BlockSampler_HasMore
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, %rdi
	callq	_BlockSampler_Next
	movsd	%xmm0, -152(%rbp)               ## 8-byte Spill
	xorl	%eax, %eax
	callq	_vacuum_delay_point
	movq	_vac_strategy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movsd	-152(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_table_scan_analyze_next_block
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movl	%r15d, %esi
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	addsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movsd	-112(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_1(%rip), %xmm0
	movsd	%xmm0, -112(%rbp)               ## 8-byte Spill
	movl	%r14d, %edi
	movl	%r15d, %esi
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_table_scan_analyze_next_tuple
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%ebx, %r13d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ExecCopySlotHeapTuple
	movq	%r12, %r8
	leaq	-64(%rbp), %r12
	movslq	%r13d, %rcx
	incl	%r13d
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorpd	%xmm1, %xmm1
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	-56(%rbp), %rdi
	movsd	-112(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%ebx, %esi
	callq	_reservoir_get_next_S
	xorpd	%xmm1, %xmm1
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	ucomisd	%xmm0, %xmm1
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %edi
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	callq	_sampler_random_fract
	movl	%eax, %r12d
	imull	%ebx, %r12d
	testl	%r12d, %r12d
	setns	%al
	cmpl	%ebx, %r12d
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	movl	%r15d, %r14d
	movq	%r13, %r15
	movl	%ebx, %r13d
	movslq	%r12d, %r12
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx,%r12,4), %edi
	callq	_heap_freetuple
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ExecCopySlotHeapTuple
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, (%rbx,%r12,4)
	leaq	-64(%rbp), %r12
	movl	%r13d, %ebx
	movq	%r15, %r13
	movl	%r14d, %r15d
	movl	-124(%rbp), %r14d               ## 4-byte Reload
	jmp	LBB0_11
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ExecDropSingleTupleTableSlot
	movl	%r14d, %edi
	callq	_table_endscan
	cmpl	%ebx, %r13d
	jne	LBB0_16
## %bb.15:
	movq	_compare_rows@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_qsort
LBB0_16:
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_18
## %bb.17:
	movsd	-88(%rbp), %xmm1                ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	-96(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	%xmm3, %xmm1
	movsd	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm1
	roundsd	$9, %xmm1, %xmm1
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movsd	%xmm1, (%rbx)
	movsd	-80(%rbp), %xmm1                ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	mulsd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	roundsd	$9, %xmm1, %xmm1
	jmp	LBB0_19
LBB0_18:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	$0, (%rbx)
LBB0_19:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movsd	%xmm1, (%rax)
	movl	-116(%rbp), %edi                ## 4-byte Reload
	callq	_RelationGetRelationName
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-88(%rbp), %xmm2                ## xmm2 = mem[0],zero
	movsd	-80(%rbp), %xmm3                ## xmm3 = mem[0],zero
	movsd	(%rbx), %xmm4                   ## xmm4 = mem[0],zero
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movsd	-96(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movl	%r13d, %edx
	callq	_errmsg
	movl	-120(%rbp), %edi                ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	movl	%r13d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCARRAY_FLAGS_VACUUM,4,2     ## @PROCARRAY_FLAGS_VACUUM
	.comm	_vac_strategy,4,2               ## @vac_strategy
	.comm	_compare_rows,4,2               ## @compare_rows
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s\": scanned %d of %u pages, containing %.0f live rows and %.0f dead rows; %d rows in sample, %.0f estimated total rows"

	.no_dead_strip	_acquire_sample_rows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acquire_sample_rows
_acquire_sample_rows:                   ; @acquire_sample_rows
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	str	x5, [sp]                        ; 8-byte Folded Spill
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x22, x0
	stp	xzr, xzr, [sp, #32]
	cmp	w3, #0
	cset	w0, gt
	bl	_Assert
	mov	x0, x22
	bl	_RelationGetNumberOfBlocks
	fmov	d8, d0
Lloh0:
	adrp	x8, _PROCARRAY_FLAGS_VACUUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCARRAY_FLAGS_VACUUM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GetOldestXmin
	mov	x26, x0
	bl	_random
	mov	x2, x0
	add	x0, sp, #24
	fmov	d0, d8
	mov	x1, x23
	bl	_BlockSampler_Init
	add	x0, sp, #16
	mov	x1, x23
	bl	_reservoir_init_selection_state
	mov	x0, x22
	bl	_table_beginscan_analyze
	mov	x27, x0
	mov	x0, x22
	mov	x1, #0
	bl	_table_slot_create
	mov	x28, x0
	add	x0, sp, #24
	bl	_BlockSampler_HasMore
	mov	w25, #0
	cbz	x0, LBB0_12
; %bb.1:
	fmov	d12, #-1.00000000
	movi	d9, #0000000000000000
Lloh3:
	adrp	x19, _vac_strategy@GOTPAGE
Lloh4:
	ldr	x19, [x19, _vac_strategy@GOTPAGEOFF]
	fmov	d13, #1.00000000
	fmov	d10, #-1.00000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #24
	bl	_BlockSampler_HasMore
	cbz	x0, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x0, sp, #24
	bl	_BlockSampler_Next
	fmov	d11, d0
	bl	_vacuum_delay_point
	ldr	w1, [x19]
	mov	x0, x27
	fmov	d0, d11
	bl	_table_scan_analyze_next_block
	cbnz	w0, LBB0_5
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x28
	bl	_ExecCopySlotHeapTuple
	str	w0, [x24, w25, sxtw #2]
	add	w25, w25, #1
	fadd	d9, d9, d13
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, x27
	mov	x1, x26
	mov	x4, x28
	bl	_table_scan_analyze_next_tuple
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w25, w23
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	fcmp	d10, #0.0
	b.pl	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x0, sp, #16
	fmov	d0, d9
	mov	x1, x23
	bl	_reservoir_get_next_S
	fmov	d10, d0
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	fcmp	d10, #0.0
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [sp, #16]
	bl	_sampler_random_fract
	mul	w21, w0, w23
	cmp	w21, #0
	ccmp	w21, w23, #0, ge
	cset	w0, lt
	bl	_Assert
	sbfiz	x21, x21, #2, #32
	ldr	w0, [x24, x21]
	bl	_heap_freetuple
	mov	x0, x28
	bl	_ExecCopySlotHeapTuple
	str	w0, [x24, x21]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	fadd	d10, d10, d12
	fadd	d9, d9, d13
	b	LBB0_5
LBB0_12:
	mov	x0, x28
	bl	_ExecDropSingleTupleTableSlot
	mov	x0, x27
	bl	_table_endscan
	cmp	w25, w23
	b.ne	LBB0_14
; %bb.13:
Lloh5:
	adrp	x8, _compare_rows@GOTPAGE
Lloh6:
	ldr	x8, [x8, _compare_rows@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	w2, #4
	bl	_qsort
LBB0_14:
	ldr	d0, [sp, #24]
	fcmp	d0, #0.0
	b.le	LBB0_16
; %bb.15:
	ldr	d1, [sp, #40]
	fdiv	d1, d1, d0
	fmov	d2, #0.50000000
	fmadd	d1, d1, d8, d2
	frintm	d1, d1
	str	d1, [x20]
	ldr	d1, [sp, #32]
	fdiv	d0, d1, d0
	fmadd	d0, d0, d8, d2
	frintm	d0, d0
	b	LBB0_17
LBB0_16:
	str	xzr, [x20]
	movi	d0, #0000000000000000
LBB0_17:
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	d0, [x8]
	mov	x0, x22
	bl	_RelationGetRelationName
	mov	x1, x0
	ldp	d0, d3, [sp, #24]
	ldr	d2, [sp, #40]
	ldr	d4, [x20]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	fmov	d1, d8
	mov	x2, x25
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	x0, x25
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCARRAY_FLAGS_VACUUM,4,2     ; @PROCARRAY_FLAGS_VACUUM
	.comm	_vac_strategy,4,2               ; @vac_strategy
	.comm	_compare_rows,4,2               ; @compare_rows
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s\": scanned %d of %u pages, containing %.0f live rows and %.0f dead rows; %d rows in sample, %.0f estimated total rows"

	.no_dead_strip	_acquire_sample_rows
.subsections_via_symbols
