	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_set_bound            ## -- Begin function tuplesort_set_bound
	.p2align	4, 0x90
_tuplesort_set_bound:                   ## @tuplesort_set_bound
	.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	(%rdi), %rax
	movq	_TSS_INITIAL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
LBB0_2:
	callq	_Assert
	xorl	%edi, %edi
	cmpl	$0, 16(%rbx)
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_WORKER
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_LEADER
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%r14, %rax
	jl	LBB0_7
## %bb.4:
	movl	$1, 16(%rbx)
	movl	%r14d, 20(%rbx)
	movq	24(%rbx), %rax
	movq	$0, 24(%rax)
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	%rcx, 16(%rax)
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSS_INITIAL,8,3                ## @TSS_INITIAL
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_optimize_bounded_sort,4,2      ## @optimize_bounded_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_set_bound            ; -- Begin function tuplesort_set_bound
	.p2align	2
_tuplesort_set_bound:                   ; @tuplesort_set_bound
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TSS_INITIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSS_INITIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_WORKER
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_LEADER
	cbnz	x0, LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	sbfx	x8, x8, #1, #31
	cmp	x8, x20
	b.lt	LBB0_8
; %bb.5:
	mov	w8, #1
	stp	w8, w20, [x19, #16]
	ldr	x8, [x19, #24]
	str	xzr, [x8, #24]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.6:
	str	x9, [x8, #16]
LBB0_7:
	stp	xzr, xzr, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TSS_INITIAL,8,3                ; @TSS_INITIAL
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_optimize_bounded_sort,4,2      ; @optimize_bounded_sort
.subsections_via_symbols
