	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intree_build_from_list         ## -- Begin function intree_build_from_list
	.p2align	4, 0x90
_intree_build_from_list:                ## @intree_build_from_list
	.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
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	jle	LBB0_14
## %bb.3:
	movq	%rsi, %r13
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	_intree_build_from_list.st(%rip), %rax
	movl	-8(%rax,%r14,8), %ecx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	$0, 8(%rax)
	movslq	%r14d, %rax
	leaq	_intree_build_from_list.st(%rip), %rcx
	movq	%rbx, (%rcx,%rax,8)
	movl	%r15d, (%rdx,%rax,4)
	leal	1(%rax), %r12d
	xorl	%edi, %edi
	cmpl	$127, %eax
	setl	%dil
	callq	_assert
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	%ecx, (%r13)
	setg	%dil
	callq	_assert
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_new_intree_node
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TS_NODE
	movq	%rax, %rdi
	movl	(%r13), %eax
	movl	%eax, 20(%rdi)
	movl	4(%r13), %eax
	movl	%eax, 16(%rdi)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_NODE_Y
	movl	%eax, %r15d
	movl	$0, %r14d
	movl	$0, %ecx
	testl	%r12d, %r12d
	leaq	_intree_build_from_list.sty(%rip), %rdx
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %r14
	cmpl	-4(%rdx,%r14,4), %r15d
	jbe	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	decl	%r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subl	$1, %r12d
	jb	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_11 Depth=2
	leaq	-1(%r14), %rcx
	cmpl	-8(%rdx,%r14,4), %r15d
	movq	%rcx, %r14
	ja	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	_intree_build_from_list.st(%rip), %rax
	movl	(%rax,%rcx,8), %r12d
	leaq	-1(%rcx), %rax
	movq	%rcx, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	-1(%r14), %rax
	xorl	%r12d, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	_intree_build_from_list.st(%rip), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_TS_NODE
	movq	%rbx, 8(%rax)
	leaq	_intree_build_from_list.sty(%rip), %rdx
	movl	%r12d, %ecx
	jmp	LBB0_13
LBB0_14:
	movq	_intree_build_from_list.st(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_intree_build_from_list.st,1024,4 ## @intree_build_from_list.st
.zerofill __DATA,__bss,_intree_build_from_list.sty,512,4 ## @intree_build_from_list.sty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intree_build_from_list         ; -- Begin function intree_build_from_list
	.p2align	2
_intree_build_from_list:                ; @intree_build_from_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w2, LBB0_15
; %bb.1:
	mov	x19, x2
	cmp	w2, #1
	b.lt	LBB0_14
; %bb.2:
	mov	x20, x1
	mov	w21, #0
	mov	w25, #0
	mov	w28, #0
Lloh0:
	adrp	x27, _intree_build_from_list.sty@PAGE
Lloh1:
	add	x27, x27, _intree_build_from_list.sty@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
Lloh2:
	adrp	x11, _intree_build_from_list.st@PAGE
Lloh3:
	add	x11, x11, _intree_build_from_list.st@PAGEOFF
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #8
	str	xzr, [x23, #8]
	str	x22, [x11, w26, sxtw #3]
	str	w21, [x23]
	str	w24, [x27, w26, sxtw #2]
	add	w21, w26, #1
	cmp	w26, #127
	cset	w0, lt
	bl	_assert
	add	w25, w25, #1
	cmp	w25, w19
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w8, [x20]
	cmp	w8, w28
	cset	w0, gt
	bl	_assert
	ldr	w28, [x20]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_new_intree_node
	mov	x22, x0
	bl	_TS_NODE
	mov	x23, x0
	ldr	w8, [x20]
	str	w8, [x0, #20]
	ldr	w8, [x20, #4]
	str	w8, [x0, #16]
	mov	x1, x22
	bl	_NODE_Y
	mov	x24, x0
	cbz	w21, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x26, w21
	sub	x8, x26, #1
	ldr	w9, [x27, x8, lsl #2]
	cmp	w24, w9
	b.ls	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w21, #1
Lloh4:
	adrp	x11, _intree_build_from_list.st@PAGE
Lloh5:
	add	x11, x11, _intree_build_from_list.st@PAGEOFF
	add	x8, x11, x26, lsl #3
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w9, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x10, x27, x26, lsl #2
	ldur	w10, [x10, #-8]
	sub	w9, w9, #1
	sub	x26, x26, #1
	sub	x8, x8, #8
	cmp	w24, w10
	b.hi	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [x8]
	sub	x8, x26, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
Lloh6:
	adrp	x11, _intree_build_from_list.st@PAGE
Lloh7:
	add	x11, x11, _intree_build_from_list.st@PAGEOFF
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x11, x8, lsl #3]
	bl	_TS_NODE
Lloh8:
	adrp	x11, _intree_build_from_list.st@PAGE
Lloh9:
	add	x11, x11, _intree_build_from_list.st@PAGEOFF
	str	x22, [x0, #8]
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
	ldur	w21, [x8, #-8]
	b	LBB0_4
LBB0_14:
Lloh10:
	adrp	x8, _intree_build_from_list.st@PAGE
Lloh11:
	ldr	x0, [x8, _intree_build_from_list.st@PAGEOFF]
	b	LBB0_16
LBB0_15:
	mov	x0, #0
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_intree_build_from_list.st,1024,3 ; @intree_build_from_list.st
.zerofill __DATA,__bss,_intree_build_from_list.sty,512,2 ; @intree_build_from_list.sty
.subsections_via_symbols
