	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tuplesort_gettuple_common
_tuplesort_gettuple_common:             ## @tuplesort_gettuple_common
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_WORKER
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_14
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_37
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_43
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.7:
	movl	$1, %r15d
	movl	$1, %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpl	$0, 4(%r12)
	sete	%dil
	callq	_Assert
	movslq	44(%r12), %rax
	cmpl	32(%r12), %eax
	jge	LBB0_9
## %bb.8:
	movq	24(%r12), %rcx
	leal	1(%rax), %edx
	movl	%edx, 44(%r12)
	shlq	$4, %rax
	movups	(%rcx,%rax), %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_45
LBB0_14:
	movl	$1, %edi
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.15:
	xorl	%edi, %edi
	cmpl	$0, 40(%r12)
	setne	%dil
LBB0_16:
	callq	_Assert
	movl	4(%r12), %edi
	callq	_Assert
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_RELEASE_SLAB_SLOT
	movq	$0, 16(%r12)
LBB0_18:
	movl	8(%r12), %eax
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.19:
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_45
## %bb.20:
	movl	36(%r12), %esi
	movl	$1, %r15d
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_getlen
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	36(%r12), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_READTUP
	movq	8(%r14), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_45
LBB0_37:
	movl	%ebx, %edi
	callq	_Assert
	movl	4(%r12), %edi
	callq	_Assert
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_39
## %bb.38:
	movq	%r12, %rdi
	callq	_RELEASE_SLAB_SLOT
	movq	$0, 16(%r12)
LBB0_39:
	cmpl	$0, 32(%r12)
	jle	LBB0_44
## %bb.40:
	movq	24(%r12), %rax
	movl	(%rax), %ebx
	movups	(%rax), %xmm0
	movups	%xmm0, (%r14)
	movq	8(%r14), %rax
	movq	%rax, 16(%r12)
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mergereadnext
	testl	%eax, %eax
	je	LBB0_41
## %bb.42:
	movl	%ebx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_tuplesort_heap_replace_top
	movl	$1, %r15d
	jmp	LBB0_45
LBB0_43:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
LBB0_44:
	xorl	%r15d, %r15d
LBB0_45:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	12(%r12), %edi
	movl	36(%r12), %esi
	testl	%eax, %eax
	je	LBB0_28
## %bb.24:
	movl	$8, %edx
	callq	_LogicalTapeBackspace
	testq	%rax, %rax
	je	LBB0_44
## %bb.25:
	cmpq	$8, %rax
	je	LBB0_27
## %bb.26:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_27:
	movl	$0, 8(%r12)
LBB0_34:
	movl	36(%r12), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_getlen
	movl	%eax, %ebx
	movl	12(%r12), %edi
	movl	36(%r12), %esi
	movl	%eax, %edx
	callq	_LogicalTapeBackspace
	movl	%ebx, %ecx
	cmpq	%rcx, %rax
	je	LBB0_36
## %bb.35:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_36:
	movl	36(%r12), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_READTUP
	movq	8(%r14), %rax
	movq	%rax, 16(%r12)
	movl	$1, %r15d
	jmp	LBB0_45
LBB0_4:
	xorl	%edi, %edi
	cmpl	$0, 40(%r12)
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpl	$0, 4(%r12)
	sete	%dil
	callq	_Assert
	movl	44(%r12), %eax
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_45
## %bb.5:
	cmpl	$0, 8(%r12)
	je	LBB0_12
## %bb.6:
	movl	$0, 8(%r12)
	jmp	LBB0_13
LBB0_9:
	movl	$1, 8(%r12)
	xorl	%r15d, %r15d
	cmpl	$0, 52(%r12)
	je	LBB0_45
## %bb.10:
	cmpl	48(%r12), %eax
	jl	LBB0_45
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_45
LBB0_41:
	movq	%r12, %rdi
	callq	_tuplesort_heap_delete_top
	movl	12(%r12), %edi
	movl	%ebx, %esi
	callq	_LogicalTapeRewindForWrite
	movl	$1, %r15d
	jmp	LBB0_45
LBB0_28:
	movl	$4, %edx
	callq	_LogicalTapeBackspace
	testq	%rax, %rax
	je	LBB0_44
## %bb.29:
	cmpq	$4, %rax
	je	LBB0_31
## %bb.30:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_31:
	movl	36(%r12), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_getlen
	movl	12(%r12), %edi
	movl	36(%r12), %esi
	movl	%eax, %ebx
	leaq	8(%rbx), %r13
	movl	%r13d, %edx
	callq	_LogicalTapeBackspace
	addq	$4, %rbx
	cmpq	%rbx, %rax
	je	LBB0_45
## %bb.32:
	cmpq	%r13, %rax
	je	LBB0_34
## %bb.33:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
	jmp	LBB0_34
LBB0_22:
	movl	$1, 8(%r12)
	jmp	LBB0_44
LBB0_12:
	leal	-1(%rax), %ecx
	movl	%ecx, 44(%r12)
	cmpl	$2, %eax
	movl	%ecx, %eax
	jb	LBB0_45
LBB0_13:
	movq	24(%r12), %rcx
	decl	%eax
	shlq	$4, %rax
	movups	(%rcx,%rax), %xmm0
	movups	%xmm0, (%r14)
	movl	$1, %r15d
	jmp	LBB0_45
	.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	"unexpected tape position"

L_.str.2:                               ## @.str.2
	.asciz	"bogus tuple length in backward scan"

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

	.no_dead_strip	_tuplesort_gettuple_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tuplesort_gettuple_common
_tuplesort_gettuple_common:             ; @tuplesort_gettuple_common
	.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
	bl	_WORKER
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.3:
	cbz	w21, LBB0_31
; %bb.4:
	mov	w21, #1
	mov	w0, #1
	bl	_Assert
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldrsw	x8, [x19, #44]
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.ge	LBB0_34
; %bb.5:
	ldr	x9, [x19, #24]
	add	w10, w8, #1
	str	w10, [x19, #44]
	ldr	q0, [x9, x8, lsl #4]
	b	LBB0_49
LBB0_6:
	cbz	w21, LBB0_15
; %bb.7:
	mov	w0, #1
	b	LBB0_16
LBB0_8:
	mov	x0, x21
	bl	_Assert
	ldr	w0, [x19, #4]
	bl	_Assert
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_RELEASE_SLAB_SLOT
	str	xzr, [x19, #16]
LBB0_10:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.11:
	ldr	x8, [x19, #24]
	ldr	w21, [x8]
	ldr	q0, [x8]
	str	q0, [x20]
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_mergereadnext
	cbz	w0, LBB0_37
; %bb.12:
	str	w21, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_tuplesort_heap_replace_top
	mov	w0, #1
	b	LBB0_47
LBB0_13:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	bl	_elog
	b	LBB0_46
LBB0_15:
	ldr	w8, [x19, #40]
	cmp	w8, #0
	cset	w0, ne
LBB0_16:
	bl	_Assert
	ldr	w0, [x19, #4]
	bl	_Assert
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_RELEASE_SLAB_SLOT
	str	xzr, [x19, #16]
LBB0_18:
	ldr	w8, [x19, #8]
	cbz	w21, LBB0_22
; %bb.19:
	cbnz	w8, LBB0_46
; %bb.20:
	ldr	w1, [x19, #36]
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	bl	_getlen
	cbz	w0, LBB0_44
; %bb.21:
	mov	x3, x0
	ldr	w2, [x19, #36]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_30
LBB0_22:
	ldr	w0, [x19, #12]
	ldr	w1, [x19, #36]
	cbz	w8, LBB0_38
; %bb.23:
	mov	w2, #8
	bl	_LogicalTapeBackspace
	cbz	x0, LBB0_47
; %bb.24:
	cmp	x0, #8
	b.eq	LBB0_26
; %bb.25:
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
	bl	_elog
LBB0_26:
	str	wzr, [x19, #8]
LBB0_27:
	ldr	w1, [x19, #36]
	mov	x0, x19
	mov	w2, #0
	bl	_getlen
	mov	x21, x0
	ldr	w0, [x19, #12]
	ldr	w1, [x19, #36]
	mov	x2, x21
	bl	_LogicalTapeBackspace
	cmp	x0, w21, uxtw
	b.eq	LBB0_29
; %bb.28:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_29:
	ldr	w2, [x19, #36]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
LBB0_30:
	bl	_READTUP
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
	mov	w0, #1
	b	LBB0_47
LBB0_31:
	ldr	w8, [x19, #40]
	cmp	w8, #0
	cset	w0, ne
	bl	_Assert
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w9, [x19, #44]
	subs	w8, w9, #1
	b.lt	LBB0_46
; %bb.32:
	ldr	w10, [x19, #8]
	cbz	w10, LBB0_45
; %bb.33:
	str	wzr, [x19, #8]
	mov	x8, x9
	b	LBB0_48
LBB0_34:
	str	w21, [x19, #8]
	ldr	w9, [x19, #52]
	cbz	w9, LBB0_46
; %bb.35:
	ldr	w9, [x19, #48]
	cmp	w8, w9
	b.lt	LBB0_46
; %bb.36:
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_37:
	mov	x0, x19
	bl	_tuplesort_heap_delete_top
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_LogicalTapeRewindForWrite
	mov	w0, #1
	b	LBB0_47
LBB0_38:
	mov	w2, #4
	bl	_LogicalTapeBackspace
	cbz	x0, LBB0_47
; %bb.39:
	cmp	x0, #4
	b.eq	LBB0_41
; %bb.40:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_41:
	ldr	w1, [x19, #36]
	mov	x0, x19
	mov	w2, #0
	bl	_getlen
	ldr	w8, [x19, #12]
	ldr	w1, [x19, #36]
	mov	w22, w0
	add	x21, x22, #8
	mov	x0, x8
	mov	x2, x21
	bl	_LogicalTapeBackspace
	mov	x8, x0
	mov	w0, #0
	add	x9, x22, #4
	cmp	x8, x9
	b.eq	LBB0_47
; %bb.42:
	cmp	x8, x21
	b.eq	LBB0_27
; %bb.43:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
	b	LBB0_27
LBB0_44:
	str	w21, [x19, #8]
	b	LBB0_47
LBB0_45:
	str	w8, [x19, #44]
	cmp	w9, #2
	b.hs	LBB0_48
LBB0_46:
	mov	w0, #0
LBB0_47:
	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_48:
	ldr	x9, [x19, #24]
	sub	w8, w8, #1
	ldr	q0, [x9, w8, uxtw #4]
LBB0_49:
	str	q0, [x20]
	mov	w0, #1
	b	LBB0_47
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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	"unexpected tape position"

l_.str.2:                               ; @.str.2
	.asciz	"bogus tuple length in backward scan"

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

	.no_dead_strip	_tuplesort_gettuple_common
.subsections_via_symbols
