	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_array                     ## -- Begin function read_array
	.p2align	4, 0x90
_read_array:                            ## @read_array
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$40, %edi
	callq	_zzmalloc0
	movq	%rax, %rbx
	movl	$40, %edi
	callq	_ADD_PMALLOC
	movl	$1, 8(%rbx)
	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_parray_methods@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	$0, 12(%rbx)
	movq	_schema_version@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_read_nat_expr
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_read_tree
LBB0_3:
	movl	%eax, 32(%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	xorl	%eax, %eax
	callq	_tl_parse_int
	movl	%eax, (%rbx)
	addl	$-1001, %eax                    ## imm = 0xFC17
	cmpl	$-1000, %eax                    ## imm = 0xFC18
	jb	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_tl_parse_error
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	(%rbx), %edi
	shll	$3, %edi
	callq	_zzmalloc0
	movq	%rax, 24(%rbx)
	movl	(%rbx), %edi
	shll	$3, %edi
	callq	_ADD_PMALLOC
	movq	24(%rbx), %rdi
	movl	(%rbx), %esi
	movq	%r14, %rdx
	callq	_read_args_list
	testq	%rax, %rax
	js	LBB0_8
## %bb.11:
	movq	_FLAG_NOVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	12(%rbx), %eax
	orl	%ecx, %eax
	movl	%eax, 12(%rbx)
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.12:
	movq	24(%rbx), %rdi
	movl	%ecx, %r9d
	notl	%r9d
	cmpl	$1, %r8d
	jne	LBB0_18
## %bb.13:
	xorl	%esi, %esi
LBB0_14:
	testb	$1, %r8b
	je	LBB0_9
## %bb.15:
	movq	(%rdi,%rsi,8), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_9
## %bb.16:
	andl	%r9d, %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_9
LBB0_18:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%esi, %esi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %r10
	je	LBB0_14
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rsi,8), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	andl	%r9d, %eax
	movl	%eax, 12(%rbx)
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	8(%rdi,%rsi,8), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	andl	%r9d, %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_19
	.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_parray_methods,4,2          ## @tl_parray_methods
	.comm	_schema_version,4,2             ## @schema_version
	.comm	_FLAG_NOVAR,4,2                 ## @FLAG_NOVAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function read_array
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_read_array
	.p2align	2
_read_array:                            ; @read_array
	.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
	mov	x20, x0
	mov	w0, #40
	bl	_zzmalloc0
	mov	x19, 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]
Lloh2:
	adrp	x8, _persistent_tree_nodes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _persistent_tree_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
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_parray_methods@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tl_parray_methods@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
Lloh10:
	adrp	x8, _schema_version@GOTPAGE
Lloh11:
	ldr	x8, [x8, _schema_version@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	x0, x20
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	bl	_read_nat_expr
	str	w0, [x19, #32]
	cbnz	w0, LBB0_3
	b	LBB0_5
LBB0_2:
	bl	_read_tree
	str	w0, [x19, #32]
	cbz	w0, LBB0_5
LBB0_3:
	bl	_tl_parse_int
	str	w0, [x19]
	sub	w8, w0, #1001
	cmn	w8, #1000
	b.lo	LBB0_5
; %bb.4:
	bl	_tl_parse_error
	cbz	x0, LBB0_7
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
LBB0_7:
	ldr	w8, [x19]
	lsl	w0, w8, #3
	bl	_zzmalloc0
	str	x0, [x19, #24]
	ldr	w8, [x19]
	lsl	w0, w8, #3
	bl	_ADD_PMALLOC
	ldr	x0, [x19, #24]
	ldr	w1, [x19]
	mov	x2, x20
	bl	_read_args_list
	tbnz	x0, #63, LBB0_5
; %bb.8:
Lloh13:
	adrp	x8, _FLAG_NOVAR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FLAG_NOVAR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w9, w9, w8
	str	w9, [x19, #12]
	ldr	w10, [x19]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.9:
	ldr	x11, [x19, #24]
	mvn	w12, w8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_6
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	ldr	w13, [x13]
	tst	w13, w8
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	and	w9, w9, w12
	str	w9, [x19, #12]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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_parray_methods,4,2          ; @tl_parray_methods
	.comm	_schema_version,4,2             ; @schema_version
	.comm	_FLAG_NOVAR,4,2                 ; @FLAG_NOVAR
.subsections_via_symbols
