	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_intree_node                ## -- Begin function new_intree_node
	.p2align	4, 0x90
_new_intree_node:                       ## @new_intree_node
	.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
	movl	%edi, %r14d
	movq	_TS_HEADER@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	(%rax), %r13
	decq	%r13
	xorl	%eax, %eax
	callq	_lrand48
	movslq	%eax, %rbx
	andq	%r13, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,8), %r12d
	testl	%r12d, %r12d
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_lrand48
	andl	%r13d, %eax
	movslq	%eax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,8), %r12d
	testl	%r12d, %r12d
	jne	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	callq	_lrand48
	andl	%r13d, %eax
	movslq	%eax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,8), %r12d
	testl	%r12d, %r12d
	jne	LBB0_1
## %bb.6:
	xorl	%eax, %eax
	callq	_lrand48
	andl	%r13d, %eax
	movslq	%eax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,8), %r12d
	testl	%r12d, %r12d
	je	LBB0_8
LBB0_1:
	addq	%rbx, %rbx
LBB0_10:
	movl	%r12d, %edi
	callq	_TS_NODE
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	shlq	$2, %rbx
	orq	$4, %rbx
	movl	(%rcx,%rbx), %eax
	leal	-1(%rax), %edx
	movl	%edx, (%rcx,%rbx)
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_assert
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_lrand48
	andl	%r13d, %eax
	movslq	%eax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,8), %r12d
	addq	%rbx, %rbx
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.9:
	leaq	(,%rbx,4), %rcx
	orq	$4, %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rcx)
	sete	%dil
	callq	_assert
	movl	%r14d, %edi
	callq	_alloc_new_intree_page
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %r12d
	movl	%r12d, %edi
	callq	_assert
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_HEADER,8,3                  ## @TS_HEADER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_intree_node                ; -- Begin function new_intree_node
	.p2align	2
_new_intree_node:                       ; @new_intree_node
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _TS_HEADER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TS_HEADER@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x8]
	sub	w22, w8, #1
	bl	_lrand48
	and	w8, w0, w22
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	sbfiz	x10, x8, #3, #32
	ldr	w20, [x9, x10]
	cbnz	w20, LBB0_4
; %bb.1:
	bl	_lrand48
	and	w8, w0, w22
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	sbfiz	x10, x8, #3, #32
	ldr	w20, [x9, x10]
	cbnz	w20, LBB0_4
; %bb.2:
	bl	_lrand48
	and	w8, w0, w22
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	sbfiz	x10, x8, #3, #32
	ldr	w20, [x9, x10]
	cbnz	w20, LBB0_4
; %bb.3:
	bl	_lrand48
	and	w8, w0, w22
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	sbfiz	x10, x8, #3, #32
	ldr	w20, [x9, x10]
	cbz	w20, LBB0_6
LBB0_4:
	sbfiz	x22, x8, #1, #32
LBB0_5:
	mov	x0, x20
	bl	_TS_NODE
	ldr	w8, [x0]
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	lsl	x10, x22, #2
	str	w8, [x9, x10]
	orr	x8, x10, #0x4
	ldr	w10, [x9, x8]
	sub	w11, w10, #1
	str	w11, [x9, x8]
	cmp	w10, #0
	cset	w0, gt
	bl	_assert
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_lrand48
	and	w9, w0, w22
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	sbfiz	x22, x9, #1, #32
	sbfiz	x9, x9, #3, #32
	ldr	w20, [x8, x9]
	cbnz	w20, LBB0_5
; %bb.7:
	lsl	x20, x22, #2
	orr	x9, x20, #0x4
	ldr	w8, [x8, x9]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_alloc_new_intree_page
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w20, [x8, x20]
	mov	x0, x20
	bl	_assert
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_HEADER,8,3                  ; @TS_HEADER
.subsections_via_symbols
