	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_node
_read_node:                             ## @read_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
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-304(%rbp), %r14
	movq	%r14, -320(%rbp)
	movq	_SYM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -312(%rbp)
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_22
## %bb.2:
	leaq	-49(%rbp), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-320(%rbp), %rbx
	cmpq	%r14, %rbx
	jne	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_fgetc
	cmpl	(%r15), %eax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$32, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$10, %eax
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-320(%rbp), %rcx
	cmpq	%r12, %rcx
	jae	LBB0_25
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rcx), %rdx
	movq	%rdx, -320(%rbp)
	movb	%al, (%rcx)
	jmp	LBB0_4
LBB0_9:
	movq	-320(%rbp), %rbx
LBB0_10:
	cmpq	%r14, %rbx
	je	LBB0_22
LBB0_11:
	movb	$0, (%rbx)
	movq	%r14, -320(%rbp)
	cmpb	$35, -303(%rbp)
	jne	LBB0_18
## %bb.12:
	movq	_symbol_type_name@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movsbq	-304(%rbp), %rax
	movq	(%r14), %rdi
	movq	(%rdi,%rbx,8), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movsbl	-304(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_17:
	movl	%ebx, -312(%rbp)
	leaq	-302(%rbp), %rax
	movq	%rax, -320(%rbp)
LBB0_18:
	leaq	-320(%rbp), %rdi
	callq	_copy_node
	jmp	LBB0_23
LBB0_19:
	movq	-320(%rbp), %rbx
	cmpq	%r14, %rbx
	je	LBB0_22
## %bb.20:
	movl	$10, %edi
	movq	%r13, %rsi
	callq	_ungetc
	cmpq	%r14, %rbx
	jne	LBB0_11
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.24:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SYM_NORMAL,4,2                 ## @SYM_NORMAL
	.comm	_EOF,4,2                        ## @EOF
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Token too long\n"

	.comm	_symbol_type_name,8,3           ## @symbol_type_name
L_.str.1:                               ## @.str.1
	.asciz	"Unknown type %c\n"

	.no_dead_strip	_read_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_node
_read_node:                             ; @read_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x20, sp, #24
	str	x20, [sp, #8]
Lloh3:
	adrp	x8, _SYM_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYM_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	bl	_fgetc
Lloh6:
	adrp	x21, _EOF@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_18
; %bb.1:
	add	x22, x20, #255
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [sp, #8]
	cmp	x23, x20
	b.ne	LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_fgetc
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, #32
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #10
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.hs	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	w0, [x8]
	b	LBB0_3
LBB0_8:
	ldr	x23, [sp, #8]
	b	LBB0_11
LBB0_9:
	ldr	x23, [sp, #8]
	add	x8, sp, #24
	cmp	x23, x8
	b.eq	LBB0_18
; %bb.10:
	mov	w0, #10
	mov	x1, x19
	bl	_ungetc
LBB0_11:
	add	x8, sp, #24
	cmp	x23, x8
	b.eq	LBB0_18
; %bb.12:
	strb	wzr, [x23]
	str	x8, [sp, #8]
	ldrb	w8, [sp, #25]
	cmp	w8, #35
	b.ne	LBB0_20
; %bb.13:
Lloh8:
	adrp	x19, _symbol_type_name@GOTPAGE
Lloh9:
	ldr	x19, [x19, _symbol_type_name@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.14:
	mov	x20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	x8, [sp, #24]
	ldr	x0, [x19]
	ldr	x9, [x0, x20, lsl #3]
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_15
LBB0_17:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldrsb	x8, [sp, #24]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_18:
	mov	x0, #0
	b	LBB0_21
LBB0_19:
	str	w20, [sp, #16]
	add	x8, sp, #24
	add	x8, x8, #2
	str	x8, [sp, #8]
LBB0_20:
	add	x0, sp, #8
	bl	_copy_node
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.22:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_23:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
LBB0_24:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SYM_NORMAL,4,2                 ; @SYM_NORMAL
	.comm	_EOF,4,2                        ; @EOF
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Token too long\n"

	.comm	_symbol_type_name,8,3           ; @symbol_type_name
l_.str.1:                               ; @.str.1
	.asciz	"Unknown type %c\n"

	.no_dead_strip	_read_node
.subsections_via_symbols
