	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_interval_edges
__bt_interval_edges:                    ## @_bt_interval_edges
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	16(%rdi), %esi
	movl	20(%rdi), %edi
	callq	_Min
	movq	8(%r15), %r12
	movq	$0, (%r13)
	movq	$0, (%rbx)
	testl	%eax, %eax
	jle	LBB0_20
## %bb.1:
	movq	%rbx, %rdi
	movl	%eax, %ebx
	incq	%rbx
	xorl	%eax, %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %edx
	movq	8(%r15), %rsi
	shlq	$4, %rdx
	leaq	(%rsi,%rdx), %r14
	movq	(%rsi,%rdx), %rcx
	cmpq	(%r12), %rcx
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_17
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, (%r13)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	jg	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rsi,%rdx)
	movq	8(%r12), %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpq	(%r15), %rcx
	sete	%dil
	callq	_Assert
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpq	(%r15), %rcx
	sete	%dil
	callq	_Assert
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%r13)
	jne	LBB0_17
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpq	%r12, %r14
	sete	%dil
	callq	_Assert
	cmpq	$0, (%r13)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, (%r13)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_17
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, (%rdi)
	movq	%r14, %rax
	cmpq	$0, (%r13)
	je	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rdi)
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_20:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Assert                         ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__bt_interval_edges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_interval_edges
__bt_interval_edges:                    ; @_bt_interval_edges
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x21, #16]
	bl	_Min
	ldr	x22, [x21, #8]
	str	xzr, [x20]
	str	xzr, [x19]
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x8, #0
	mov	w9, w0
	add	x23, x9, #1
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_7 Depth=1
	cbz	x8, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	cmp	x9, x8
	cset	w0, eq
	bl	_Assert
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_20
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x23, x23, #1
	cmp	x23, #1
	b.ls	LBB0_19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w23, #2
	ldr	x11, [x21, #8]
	add	x24, x11, w10, uxtw #4
	ldr	x9, [x24]
	ldr	x12, [x22]
	cmp	x9, x12
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	b.le	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x8, LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20]
	cbnz	x9, LBB0_5
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x11, x10, lsl #4
	ldr	x10, [x8, #8]
	ldr	x8, [x22, #8]
	cbz	x10, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	x8, LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x24, x22
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20]
	cbnz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x24, [x20]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x24, [x20]
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	cmp	x9, x8
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x24, [x19]
	mov	x8, x24
	ldr	x9, [x20]
	cbnz	x9, LBB0_5
	b	LBB0_6
LBB0_19:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_Assert
LBB0_20:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__bt_interval_edges
.subsections_via_symbols
