	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function bernoulli_beginsamplescan
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x4039000000000000              ## double 25
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bernoulli_beginsamplescan:             ## @bernoulli_beginsamplescan
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	(%rsi), %edi
	callq	_DatumGetFloat4
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	ja	LBB0_3
## %bb.1:
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_3
## %bb.2:
	callq	_isnan
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_TABLESAMPLE_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_4:
	movq	_PG_UINT32_MAX@GOTPCREL(%rip), %rax
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax), %xmm1
	addsd	LCPI0_1(%rip), %xmm1
	mulsd	%xmm0, %xmm1
	divsd	LCPI0_0(%rip), %xmm1
	roundsd	$4, %xmm1, %xmm1
	cvttsd2si	%xmm1, %rax
	movq	%rax, 8(%rbx)
	movl	%r14d, 4(%rbx)
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	ucomisd	LCPI0_2(%rip), %xmm0
	movl	%eax, (%rbx)
	movl	$1, (%r12)
	setae	%cl
	movl	%ecx, 4(%r12)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TABLESAMPLE_ARGUMENT,4,2 ## @ERRCODE_INVALID_TABLESAMPLE_ARGUMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sample percentage must be between 0 and 100"

	.comm	_PG_UINT32_MAX,8,3              ## @PG_UINT32_MAX
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.no_dead_strip	_bernoulli_beginsamplescan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bernoulli_beginsamplescan
_bernoulli_beginsamplescan:             ; @bernoulli_beginsamplescan
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x1]
	bl	_DatumGetFloat4
	fmov	d8, d0
	fcmp	d0, #0.0
	mov	x8, #4636737291354636288
	fmov	d0, x8
	fccmp	d8, d0, #0, pl
	b.gt	LBB0_2
; %bb.1:
	fmov	d0, d8
	bl	_isnan
	cbz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ERRCODE_INVALID_TABLESAMPLE_ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_INVALID_TABLESAMPLE_ARGUMENT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_3:
Lloh8:
	adrp	x8, _PG_UINT32_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PG_UINT32_MAX@GOTPAGEOFF]
Lloh10:
	ldr	d0, [x8]
	scvtf	d0, d0
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	fmul	d0, d8, d0
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fdiv	d0, d0, d1
	frintx	d0, d0
	fcvtzs	x8, d0
	str	x8, [x22, #8]
Lloh11:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w20, [x22]
	mov	w8, #1
	fmov	d0, #25.00000000
	fcmp	d8, d0
	cset	w9, ge
	stp	w8, w9, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TABLESAMPLE_ARGUMENT,4,2 ; @ERRCODE_INVALID_TABLESAMPLE_ARGUMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sample percentage must be between 0 and 100"

	.comm	_PG_UINT32_MAX,8,3              ; @PG_UINT32_MAX
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.no_dead_strip	_bernoulli_beginsamplescan
.subsections_via_symbols
