	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_tree                      ## -- Begin function read_tree
	.p2align	4, 0x90
_read_tree:                             ## @read_tree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_readin_char
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_readin_int
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_readin_int
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_new_tree_node
	movq	%rax, %rbx
	callq	_read_tree
	movq	%rax, 16(%rbx)
	callq	_read_tree
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	(%rcx), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setl	%dil
	callq	_assert
	movq	8(%rbx), %rax
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setg	%dil
	callq	_assert
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_tree                      ; -- Begin function read_tree
	.p2align	2
_read_tree:                             ; @read_tree
	.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
	bl	_readin_char
	cbz	x0, LBB0_5
; %bb.1:
	bl	_readin_int
	mov	x19, x0
	bl	_readin_int
	mov	x1, x0
	mov	x0, x19
	bl	_new_tree_node
	mov	x19, x0
	bl	_read_tree
	str	x0, [x19, #16]
	bl	_read_tree
	str	x0, [x19, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x0, [x19, #8]
LBB0_3:
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, gt
	bl	_assert
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
