	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_skiptuples          ## -- Begin function tuplestore_skiptuples
	.p2align	4, 0x90
_tuplestore_skiptuples:                 ## @tuplestore_skiptuples
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	40(%rdi), %r14
	movl	$1, %edi
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rax
	shlq	$4, %rax
	movq	_EXEC_FLAG_BACKWARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	testl	%ecx, (%r14,%rax)
	setne	%dil
LBB0_2:
	callq	_Assert
	testq	%rbx, %rbx
	jle	LBB0_8
## %bb.3:
	cmpl	$128, 8(%r15)
	jne	LBB0_9
## %bb.4:
	shlq	$4, %r13
	leaq	(%r14,%r13), %rax
	addq	$4, %rax
	movl	4(%r14,%r13), %ecx
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.5:
	testl	%ecx, %ecx
	jne	LBB0_21
## %bb.6:
	movq	16(%r15), %rdx
	leaq	(%r14,%r13), %rcx
	addq	$8, %rcx
	movq	8(%r14,%r13), %rsi
	movq	%rdx, %rdi
	subq	%rsi, %rdi
	cmpq	%rbx, %rdi
	jge	LBB0_23
## %bb.7:
	movq	%rdx, (%rcx)
	movl	$1, (%rax)
	jmp	LBB0_21
LBB0_9:
	incq	%rbx
	leaq	-44(%rbp), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_8
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_tuplestore_gettuple
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	callq	_pfree
	jmp	LBB0_10
LBB0_8:
	movl	$1, %eax
	jmp	LBB0_22
LBB0_15:
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.16:
	movq	16(%r15), %rcx
	movq	%rcx, 8(%r14,%r13)
	movl	$0, (%rax)
	decq	%rbx
	jmp	LBB0_18
LBB0_17:
	movq	8(%r14,%r13), %rcx
LBB0_18:
	addq	%r13, %r14
	addq	$8, %r14
	movq	%rcx, %rax
	subq	24(%r15), %rax
	cmpq	%rbx, %rax
	jle	LBB0_20
## %bb.19:
	subq	%rbx, %rcx
	movq	%rcx, (%r14)
	movl	$1, %eax
	jmp	LBB0_22
LBB0_20:
	xorl	%edi, %edi
	cmpl	$0, 32(%r15)
	sete	%dil
	callq	_Assert
	movq	24(%r15), %rax
	movq	%rax, (%r14)
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	addq	%rbx, %rsi
	movq	%rsi, (%rcx)
	movl	$1, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EXEC_FLAG_BACKWARD,4,2         ## @EXEC_FLAG_BACKWARD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_skiptuples          ; -- Begin function tuplestore_skiptuples
	.p2align	2
_tuplestore_skiptuples:                 ; @tuplestore_skiptuples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldr	x23, [x0]
	cbz	w2, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	lsl	x8, x23, #4
	ldr	w8, [x22, x8]
Lloh0:
	adrp	x9, _EXEC_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXEC_FLAG_BACKWARD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
LBB0_3:
	bl	_Assert
	subs	x9, x20, #1
	b.lt	LBB0_22
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
	add	x8, x22, x23, lsl #4
	ldr	w10, [x8, #4]!
	cbz	w21, LBB0_13
; %bb.6:
	cbz	w10, LBB0_15
; %bb.7:
	mov	w0, #0
	b	LBB0_23
LBB0_8:
	add	x20, x20, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	sub	x20, x20, #1
	cmp	x20, #1
	b.ls	LBB0_22
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_tuplestore_gettuple
	cbz	x0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_pfree
	b	LBB0_9
LBB0_13:
	cbz	w10, LBB0_17
; %bb.14:
	ldr	x10, [x19, #16]
	add	x11, x22, x23, lsl #4
	str	x10, [x11, #8]
	str	wzr, [x8]
	mov	x20, x9
	b	LBB0_18
LBB0_15:
	ldr	x10, [x19, #16]
	add	x9, x22, x23, lsl #4
	ldr	x11, [x9, #8]!
	sub	x12, x10, x11
	cmp	x12, x20
	b.ge	LBB0_21
; %bb.16:
	mov	w0, #0
	str	x10, [x9]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_23
LBB0_17:
	add	x8, x22, x23, lsl #4
	ldr	x10, [x8, #8]
LBB0_18:
	add	x8, x22, x23, lsl #4
	add	x21, x8, #8
	ldr	x8, [x19, #24]
	sub	x8, x10, x8
	cmp	x8, x20
	b.le	LBB0_20
; %bb.19:
	sub	x8, x10, x20
	str	x8, [x21]
	b	LBB0_22
LBB0_20:
	ldr	w8, [x19, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	w0, #0
	ldr	x8, [x19, #24]
	str	x8, [x21]
	b	LBB0_23
LBB0_21:
	add	x8, x11, x20
	str	x8, [x9]
LBB0_22:
	mov	w0, #1
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXEC_FLAG_BACKWARD,4,2         ; @EXEC_FLAG_BACKWARD
.subsections_via_symbols
