	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_get_stats            ## -- Begin function tuplesort_get_stats
	.p2align	4, 0x90
_tuplesort_get_stats:                   ## @tuplesort_get_stats
	.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
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_SORT_SPACE_TYPE_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	callq	_LogicalTapeSetBlocks
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	1023(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$10, %ecx
	imull	%eax, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	_SORT_SPACE_TYPE_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	(%rbx), %ecx
	subl	4(%rbx), %ecx
	leal	1023(%rcx), %eax
	addl	$2046, %ecx                     ## imm = 0x7FE
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$10, %ecx
LBB0_3:
	movl	%ecx, (%r14)
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.7:
	cmpl	$0, 12(%rbx)
	jne	LBB0_8
## %bb.9:
	movq	_SORT_TYPE_QUICKSORT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_SORT_TYPE_EXTERNAL_SORT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_SORT_TYPE_EXTERNAL_MERGE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_SORT_TYPE_STILL_IN_PROGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_SORT_TYPE_TOP_N_HEAPSORT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SORT_SPACE_TYPE_DISK,4,2       ## @SORT_SPACE_TYPE_DISK
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_SORT_SPACE_TYPE_MEMORY,4,2     ## @SORT_SPACE_TYPE_MEMORY
	.comm	_SORT_TYPE_TOP_N_HEAPSORT,4,2   ## @SORT_TYPE_TOP_N_HEAPSORT
	.comm	_SORT_TYPE_QUICKSORT,4,2        ## @SORT_TYPE_QUICKSORT
	.comm	_SORT_TYPE_EXTERNAL_SORT,4,2    ## @SORT_TYPE_EXTERNAL_SORT
	.comm	_SORT_TYPE_EXTERNAL_MERGE,4,2   ## @SORT_TYPE_EXTERNAL_MERGE
	.comm	_SORT_TYPE_STILL_IN_PROGRESS,4,2 ## @SORT_TYPE_STILL_IN_PROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_get_stats            ; -- Begin function tuplesort_get_stats
	.p2align	2
_tuplesort_get_stats:                   ; @tuplesort_get_stats
	.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	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SORT_SPACE_TYPE_DISK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SORT_SPACE_TYPE_DISK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	bl	_LogicalTapeSetBlocks
Lloh3:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #10
	mul	w8, w8, w0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _SORT_SPACE_TYPE_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SORT_SPACE_TYPE_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldp	w8, w9, [x20]
	sub	w8, w8, w9
	add	w9, w8, #1023
	add	w8, w8, #2046
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #10
LBB0_3:
	str	w8, [x19]
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [x20, #12]
Lloh9:
	adrp	x9, _SORT_TYPE_TOP_N_HEAPSORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SORT_TYPE_TOP_N_HEAPSORT@GOTPAGEOFF]
Lloh11:
	adrp	x10, _SORT_TYPE_QUICKSORT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SORT_TYPE_QUICKSORT@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _SORT_TYPE_EXTERNAL_SORT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SORT_TYPE_EXTERNAL_SORT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh15:
	adrp	x8, _SORT_TYPE_EXTERNAL_MERGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SORT_TYPE_EXTERNAL_MERGE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _SORT_TYPE_STILL_IN_PROGRESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SORT_TYPE_STILL_IN_PROGRESS@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SORT_SPACE_TYPE_DISK,4,2       ; @SORT_SPACE_TYPE_DISK
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_SORT_SPACE_TYPE_MEMORY,4,2     ; @SORT_SPACE_TYPE_MEMORY
	.comm	_SORT_TYPE_TOP_N_HEAPSORT,4,2   ; @SORT_TYPE_TOP_N_HEAPSORT
	.comm	_SORT_TYPE_QUICKSORT,4,2        ; @SORT_TYPE_QUICKSORT
	.comm	_SORT_TYPE_EXTERNAL_SORT,4,2    ; @SORT_TYPE_EXTERNAL_SORT
	.comm	_SORT_TYPE_EXTERNAL_MERGE,4,2   ; @SORT_TYPE_EXTERNAL_MERGE
	.comm	_SORT_TYPE_STILL_IN_PROGRESS,4,2 ; @SORT_TYPE_STILL_IN_PROGRESS
.subsections_via_symbols
