	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bernoulli_nextsampletuple
_bernoulli_nextsampletuple:             ## @bernoulli_nextsampletuple
	.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
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movq	(%r12), %r13
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%rax, %r13
	jne	LBB0_1
## %bb.2:
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	jmp	LBB0_3
LBB0_1:
	incq	%r13
LBB0_3:
	movq	%rsi, -80(%rbp)
	movq	8(%r12), %rcx
	movq	%rcx, -64(%rbp)
	cmpq	%r14, %r13
	jg	LBB0_13
## %bb.4:
	movq	%r13, -72(%rbp)
	leaq	-80(%rbp), %rdi
	movl	$24, %esi
	callq	_hash_any
	movl	%eax, %edi
	callq	_DatumGetUInt32
	cmpq	16(%r12), %rax
	jge	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	testb	%al, %al
	jne	LBB0_12
	jmp	LBB0_14
LBB0_6:
	leaq	1(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	cmpq	%r13, %r14
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%rbx), %r13
	movq	%r13, -72(%rbp)
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_hash_any
	movl	%eax, %edi
	callq	_DatumGetUInt32
	cmpq	16(%r12), %rax
	jge	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	cmpq	%r14, %rbx
	setge	%al
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rbx
	testb	%al, %al
	je	LBB0_14
LBB0_12:
	movq	(%rbx), %rax
LBB0_13:
	movq	%rax, %r13
LBB0_14:
	movq	%r13, (%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.no_dead_strip	_bernoulli_nextsampletuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bernoulli_nextsampletuple
_bernoulli_nextsampletuple:             ; @bernoulli_nextsampletuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x22, _InvalidOffsetNumber@GOTPAGE
Lloh4:
	ldr	x22, [x22, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	x21, [x0]
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _FirstOffsetNumber@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FirstOffsetNumber@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldp	x10, x11, [x21]
	cmp	x10, x8
	csinc	x19, x9, x10, eq
	str	x1, [sp]
	str	x11, [sp, #16]
	cmp	x19, x2
	b.gt	LBB0_9
; %bb.1:
	mov	x20, x2
	str	x19, [sp, #8]
	mov	x0, sp
	mov	w1, #24
	bl	_hash_any
	bl	_DatumGetUInt32
	ldr	x8, [x21, #16]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.2:
	mov	w8, #0
	cbnz	w8, LBB0_8
	b	LBB0_10
LBB0_3:
	add	x23, x20, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x19
	cmp	x20, x19
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x24, #1
	str	x19, [sp, #8]
	mov	x0, sp
	mov	w1, #24
	bl	_hash_any
	bl	_DatumGetUInt32
	ldr	x8, [x21, #16]
	cmp	x0, x8
	b.ge	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x19, x23
LBB0_7:
	cmp	x24, x20
	cset	w8, ge
	cbz	w8, LBB0_10
LBB0_8:
	ldr	x8, [x22]
LBB0_9:
	mov	x19, x8
LBB0_10:
	str	x19, [x21]
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.no_dead_strip	_bernoulli_nextsampletuple
.subsections_via_symbols
