	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_num_delete
_tree_num_delete:                       ## @tree_num_delete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_NIL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_assert
	cmpl	%r14d, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
	callq	_tree_num_merge
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_free_tree_num_node
	movq	%r14, %rax
	jmp	LBB0_2
LBB0_3:
	setg	%al
	movzbl	%al, %r15d
	movq	8(%rbx,%r15,8), %rdi
	movl	%r14d, %esi
	callq	_tree_num_delete
	movq	%rax, 8(%rbx,%r15,8)
	movq	%rbx, %rdi
	callq	_tree_num_relax
	movq	%rbx, %rax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.no_dead_strip	_tree_num_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_num_delete
_tree_num_delete:                       ; @tree_num_delete
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldp	x1, x0, [x19, #8]
	bl	_tree_num_merge
	mov	x20, x0
	mov	x0, x19
	bl	_free_tree_num_node
	mov	x0, x20
	b	LBB0_3
LBB0_2:
	mov	w8, #8
	mov	w9, #16
	csel	x21, x9, x8, gt
	ldr	x0, [x19, x21]
	mov	x1, x20
	bl	_tree_num_delete
	str	x0, [x19, x21]
	mov	x0, x19
	bl	_tree_num_relax
	mov	x0, x19
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.no_dead_strip	_tree_num_delete
.subsections_via_symbols
