	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function puttuple_common
_puttuple_common:                       ## @puttuple_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_LEADER
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_13
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_15
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.3:
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jl	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_grow_memtuples
	movl	4(%rbx), %eax
	xorl	%edi, %edi
	cmpl	8(%rbx), %eax
	setl	%dil
	callq	_Assert
	movl	4(%rbx), %eax
LBB0_5:
	movq	(%r14), %rdx
	movq	16(%rbx), %rsi
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movslq	%eax, %rdi
	movq	%rdx, (%rsi,%rdi,8)
	cmpl	$0, 32(%rbx)
	je	LBB0_10
## %bb.6:
	movl	24(%rbx), %edx
	leal	(%rdx,%rdx), %esi
	cmpl	%esi, %eax
	jge	LBB0_19
## %bb.7:
	cmpl	%edx, %eax
	jl	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_LACKMEM
	testl	%eax, %eax
	je	LBB0_9
LBB0_19:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_make_bounded_heap              ## TAILCALL
LBB0_13:
	movq	16(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_COMPARETUP
	testl	%eax, %eax
	jle	LBB0_20
## %bb.14:
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_free_sort_tuple
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tuplesort_heap_replace_top     ## TAILCALL
LBB0_15:
	movq	(%r14), %rax
	movq	16(%rbx), %rcx
	movslq	4(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%rbx)
	movq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_16
LBB0_17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_20:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_free_sort_tuple
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CHECK_FOR_INTERRUPTS           ## TAILCALL
LBB0_9:
	movl	4(%rbx), %ecx
LBB0_10:
	cmpl	8(%rbx), %ecx
	jge	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_LACKMEM
	testl	%eax, %eax
	je	LBB0_18
LBB0_12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_inittapes
LBB0_16:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dumptuples                     ## TAILCALL
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid tuplesort state"

	.comm	_LOG,4,2                        ## @LOG
	.comm	_trace_sort,4,2                 ## @trace_sort
	.no_dead_strip	_puttuple_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function puttuple_common
_puttuple_common:                       ; @puttuple_common
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_LEADER
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.3:
	ldp	w8, w9, [x19, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_grow_memtuples
	ldp	w8, w9, [x19, #4]
	cmp	w8, w9
	cset	w0, lt
	bl	_Assert
	ldr	w8, [x19, #4]
LBB0_5:
	ldr	x10, [x20]
	ldr	x11, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #4]
	str	x10, [x11, w8, sxtw #3]
	ldr	w10, [x19, #32]
	cbz	w10, LBB0_16
; %bb.6:
	ldr	w10, [x19, #24]
	cmp	w8, w10, lsl #1
	b.ge	LBB0_9
; %bb.7:
	cmp	w8, w10
	b.lt	LBB0_16
; %bb.8:
	mov	x0, x19
	bl	_LACKMEM
	cbz	w0, LBB0_15
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_make_bounded_heap
LBB0_10:
	ldr	x2, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_COMPARETUP
	cmp	w0, #0
	b.le	LBB0_14
; %bb.11:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_free_sort_tuple
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tuplesort_heap_replace_top
LBB0_12:
	ldr	x8, [x20]
	ldr	x9, [x19, #16]
	ldrsw	x10, [x19, #4]
	add	w11, w10, #1
	str	w11, [x19, #4]
	str	x8, [x9, x10, lsl #3]
	b	LBB0_19
LBB0_13:
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
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_elog
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_free_sort_tuple
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CHECK_FOR_INTERRUPTS
LBB0_15:
	ldr	w9, [x19, #4]
LBB0_16:
	ldr	w8, [x19, #8]
	cmp	w9, w8
	b.ge	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_LACKMEM
	cbz	w0, LBB0_20
LBB0_18:
	mov	x0, x19
	mov	w1, #1
	bl	_inittapes
LBB0_19:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dumptuples
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid tuplesort state"

	.comm	_LOG,4,2                        ; @LOG
	.comm	_trace_sort,4,2                 ; @trace_sort
	.no_dead_strip	_puttuple_common
.subsections_via_symbols
