	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_type                      ## -- Begin function read_type
	.p2align	4, 0x90
_read_type:                             ## @read_type
	.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	%rdi, %r15
	movl	$40, %edi
	callq	_zzmalloc0
	movq	%rax, %r12
	movl	$40, %edi
	callq	_ADD_PMALLOC
	movl	$1, 8(%r12)
	movq	_total_ref_cnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_persistent_tree_nodes@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_total_tree_nodes_existed@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_tl_ptype_methods@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_tl_parse_int
	movq	%rax, %rdi
	callq	_tl_type_get_by_name
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_tl_parse_int
	movl	%eax, 12(%r12)
	xorl	%eax, %eax
	callq	_tl_parse_int
	movl	%eax, (%r12)
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	12(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_fprintf
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_tl_parse_error
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	(%r12), %eax
	xorl	%ebx, %ebx
	cmpl	%eax, %edi
	jne	LBB0_4
## %bb.6:
	cmpl	$1000, %eax                     ## imm = 0x3E8
	ja	LBB0_4
## %bb.7:
	shll	$3, %edi
	callq	_zzmalloc0
	movq	%rax, 24(%r12)
	movl	(%r12), %edi
	shll	$3, %edi
	callq	_ADD_PMALLOC
	movq	_FLAG_NOVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r12)
	cmpl	$0, (%r12)
	jle	LBB0_24
## %bb.8:
	movq	_schema_version@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_24
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, (%rbx)
	jl	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %r14
	xorl	%eax, %eax
	callq	_tl_parse_int
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_tl_parse_error
	testq	%rax, %rax
	jne	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_TLS_EXPR_NAT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r12), %rax
	movl	4(%rax), %eax
	btl	%r13d, %eax
	jae	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_read_nat_expr
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_read_tree
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_TLS_EXPR_TYPE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r12), %rax
	movl	4(%rax), %eax
	btl	%r13d, %eax
	jb	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_read_type_expr
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rbx
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_TL_IS_NAT_VAR
	testl	%eax, %eax
	jne	LBB0_9
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rcx
	movq	_FLAG_NOVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	notl	%eax
	andl	%eax, 12(%r12)
	jmp	LBB0_9
LBB0_24:
	movq	%r12, %rbx
	jmp	LBB0_4
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_total_ref_cnt,4,2              ## @total_ref_cnt
	.comm	_persistent_tree_nodes,4,2      ## @persistent_tree_nodes
	.comm	_total_tree_nodes_existed,4,2   ## @total_tree_nodes_existed
	.comm	_tl_ptype_methods,4,2           ## @tl_ptype_methods
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T->flags = %d, T->chilren_num = %d\n"

	.comm	_FLAG_NOVAR,4,2                 ## @FLAG_NOVAR
	.comm	_schema_version,4,2             ## @schema_version
	.comm	_TLS_EXPR_NAT,4,2               ## @TLS_EXPR_NAT
	.comm	_TLS_EXPR_TYPE,4,2              ## @TLS_EXPR_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_type                      ; -- Begin function read_type
	.p2align	2
_read_type:                             ; @read_type
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	w0, #40
	bl	_zzmalloc0
	mov	x20, x0
	mov	w0, #40
	bl	_ADD_PMALLOC
Lloh0:
	adrp	x8, _total_ref_cnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _total_ref_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w8, #1
Lloh2:
	adrp	x9, _persistent_tree_nodes@GOTPAGE
Lloh3:
	ldr	x9, [x9, _persistent_tree_nodes@GOTPAGEOFF]
	str	w8, [x20, #8]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
Lloh4:
	adrp	x8, _total_tree_nodes_existed@GOTPAGE
Lloh5:
	ldr	x8, [x8, _total_tree_nodes_existed@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh6:
	adrp	x8, _tl_ptype_methods@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tl_ptype_methods@GOTPAGEOFF]
	str	x8, [x20, #16]
	bl	_tl_parse_int
	bl	_tl_type_get_by_name
	str	x0, [x20, #32]
	cbz	x0, LBB0_5
; %bb.1:
	bl	_tl_parse_int
	str	w0, [x20, #12]
	bl	_tl_parse_int
	mov	x3, x0
	str	w3, [x20]
Lloh8:
	adrp	x8, _verbosity@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w2, [x20, #12]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_fprintf
LBB0_3:
	bl	_tl_parse_error
	cbz	x0, LBB0_6
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.7:
	cmp	w9, #1000
	b.hi	LBB0_5
; %bb.8:
	lsl	w0, w8, #3
	bl	_zzmalloc0
	str	x0, [x20, #24]
	ldr	w8, [x20]
	lsl	w0, w8, #3
	bl	_ADD_PMALLOC
Lloh16:
	adrp	x22, _FLAG_NOVAR@GOTPAGE
Lloh17:
	ldr	x22, [x22, _FLAG_NOVAR@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.9:
	mov	x23, #0
Lloh18:
	adrp	x24, _schema_version@GOTPAGE
Lloh19:
	ldr	x24, [x24, _schema_version@GOTPAGEOFF]
Lloh20:
	adrp	x25, _TLS_EXPR_NAT@GOTPAGE
Lloh21:
	ldr	x25, [x25, _TLS_EXPR_NAT@GOTPAGEOFF]
Lloh22:
	adrp	x26, _TLS_EXPR_TYPE@GOTPAGE
Lloh23:
	ldr	x26, [x26, _TLS_EXPR_TYPE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_24
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_tl_parse_int
	mov	x21, x0
	bl	_tl_parse_error
	cbnz	x0, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x25]
	cmp	w8, w21
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #32]
	ldr	w8, [x8, #4]
	lsr	w8, w8, w23
	tbz	w8, #0, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_read_nat_expr
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_read_tree
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x26]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #32]
	ldr	w8, [x8, #4]
	lsr	w8, w8, w23
	tbnz	w8, #0, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_read_type_expr
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #24]
	lsl	x9, x23, #3
	str	x0, [x8, x9]
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x9]
	cbz	x0, LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_TL_IS_NAT_VAR
	cbnz	w0, LBB0_10
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w9, [x8]
	ldr	w8, [x22]
	tst	w8, w9
	b.ne	LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x20, #12]
	bic	w8, w9, w8
	str	w8, [x20, #12]
	b	LBB0_10
LBB0_24:
	mov	x0, x20
	b	LBB0_5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_total_ref_cnt,4,2              ; @total_ref_cnt
	.comm	_persistent_tree_nodes,4,2      ; @persistent_tree_nodes
	.comm	_total_tree_nodes_existed,4,2   ; @total_tree_nodes_existed
	.comm	_tl_ptype_methods,4,2           ; @tl_ptype_methods
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T->flags = %d, T->chilren_num = %d\n"

	.comm	_FLAG_NOVAR,4,2                 ; @FLAG_NOVAR
	.comm	_schema_version,4,2             ; @schema_version
	.comm	_TLS_EXPR_NAT,4,2               ; @TLS_EXPR_NAT
	.comm	_TLS_EXPR_TYPE,4,2              ; @TLS_EXPR_TYPE
.subsections_via_symbols
