	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_skiptuples           ## -- Begin function tuplesort_skiptuples
	.p2align	4, 0x90
_tuplesort_skiptuples:                  ## @tuplesort_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, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	%edx, %edi
	callq	_Assert
	movq	%rbx, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	movq	%r14, %rdi
	callq	_WORKER
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.3:
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rbx, %rdx
	jge	LBB0_15
## %bb.4:
	movq	%rax, 16(%r14)
	movl	$1, 24(%r14)
	xorl	%ebx, %ebx
	cmpl	$0, 44(%r14)
	je	LBB0_17
## %bb.5:
	cmpq	32(%r14), %rax
	jl	LBB0_17
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_17
LBB0_7:
	movl	40(%r14), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	testq	%rbx, %rbx
	jle	LBB0_11
## %bb.8:
	incq	%rbx
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_tuplesort_gettuple_common
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_9
LBB0_11:
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	jmp	LBB0_16
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	jmp	LBB0_14
LBB0_13:
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_15:
	addq	%rbx, %rcx
	movq	%rcx, 16(%r14)
LBB0_16:
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"retrieved too many tuples in a bounded sort"

L_.str.1:                               ## @.str.1
	.asciz	"invalid tuplesort state"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_skiptuples           ; -- Begin function tuplesort_skiptuples
	.p2align	2
_tuplesort_skiptuples:                  ; @tuplesort_skiptuples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_Assert
	lsr	x8, x21, #63
	eor	w0, w8, #0x1
	bl	_Assert
	mov	x0, x19
	bl	_WORKER
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.3:
	ldp	x8, x9, [x19, #8]
	sub	x10, x8, x9
	cmp	x10, x21
	b.ge	LBB0_17
; %bb.4:
	str	x8, [x19, #16]
	mov	w9, #1
	str	w9, [x19, #24]
	ldr	w9, [x19, #44]
	cbz	w9, LBB0_15
; %bb.5:
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.lt	LBB0_15
; %bb.6:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_7:
	ldr	w0, [x19, #40]
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	cmp	x21, #1
	b.lt	LBB0_11
; %bb.8:
	add	x21, x21, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_tuplesort_gettuple_common
	cbz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	sub	x21, x21, #1
	cmp	x21, #1
	b.gt	LBB0_9
LBB0_11:
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	mov	w0, #1
	b	LBB0_16
LBB0_12:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_elog
	b	LBB0_15
LBB0_14:
	mov	x0, x22
	bl	_MemoryContextSwitchTo
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	add	sp, sp, #64
	ret
LBB0_17:
	add	x8, x9, x21
	str	x8, [x19, #16]
	mov	w0, #1
	b	LBB0_16
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"retrieved too many tuples in a bounded sort"

l_.str.1:                               ; @.str.1
	.asciz	"invalid tuplesort state"

.subsections_via_symbols
