	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_token
_read_token:                            ## @read_token
	.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, %r14
	movq	$0, -48(%rbp)
	xorl	%edi, %edi
	callq	_free_token
	leaq	-48(%rbp), %rdi
	callq	_pevent_read_token
	movq	_EVENT_NEWLINE@GOTPCREL(%rip), %r12
	movq	_EVENT_SPACE@GOTPCREL(%rip), %r13
	cmpl	(%r12), %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	jne	LBB0_5
LBB0_2:
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	callq	_free_token
	movq	%r15, %rdi
	callq	_pevent_read_token
	cmpl	(%r12), %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	je	LBB0_3
LBB0_5:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	callq	_pevent_peek_char
	cmpb	$126, %al
	jne	LBB0_10
## %bb.9:
	movl	$3, %edi
	callq	_malloc_or_die
	movq	%rax, (%r14)
	movq	-48(%rbp), %rcx
	movsbl	(%rcx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movl	$126, %ecx
	callq	_sprintf
	movq	-48(%rbp), %rdi
	callq	_free_token
	leaq	-48(%rbp), %rdi
	callq	_pevent_read_token
	movq	-48(%rbp), %rdi
	callq	_free_token
	jmp	LBB0_11
LBB0_10:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENT_NEWLINE,4,2              ## @EVENT_NEWLINE
	.comm	_EVENT_SPACE,4,2                ## @EVENT_SPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"="

L_.str.1:                               ## @.str.1
	.asciz	"!"

L_.str.2:                               ## @.str.2
	.asciz	"%c%c"

	.no_dead_strip	_read_token
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_token
_read_token:                            ; @read_token
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	str	xzr, [sp, #8]
	mov	x0, #0
	bl	_free_token
	add	x0, sp, #8
	bl	_pevent_read_token
	mov	x19, x0
Lloh0:
	adrp	x21, _EVENT_NEWLINE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EVENT_NEWLINE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _EVENT_SPACE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EVENT_SPACE@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	bl	_free_token
	add	x0, sp, #8
	bl	_pevent_read_token
	ldr	w8, [x21]
	ldr	w9, [x22]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_1
; %bb.2:
	mov	x19, x0
LBB0_3:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_8
LBB0_6:
	bl	_pevent_peek_char
	cmp	w0, #126
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #3
	bl	_malloc_or_die
	str	x0, [x20]
	ldr	x8, [sp, #8]
	ldrsb	w2, [x8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #126
	bl	_sprintf
	ldr	x0, [sp, #8]
	bl	_free_token
	add	x0, sp, #8
	bl	_pevent_read_token
	ldr	x0, [sp, #8]
	bl	_free_token
	b	LBB0_9
LBB0_8:
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENT_NEWLINE,4,2              ; @EVENT_NEWLINE
	.comm	_EVENT_SPACE,4,2                ; @EVENT_SPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"="

l_.str.1:                               ; @.str.1
	.asciz	"!"

l_.str.2:                               ; @.str.2
	.asciz	"%c%c"

	.no_dead_strip	_read_token
.subsections_via_symbols
