	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lex                            ## -- Begin function lex
	.p2align	4, 0x90
_lex:                                   ## @lex
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r8d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%ebx, %edx
	movq	%r14, %rcx
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	callq	_vkprintf
	movl	$-1, -56(%rbp)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_19
## %bb.1:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	leaq	-1(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movslq	%r13d, %r12
	movq	%r12, %rbx
	shlq	$32, %rbx
	leal	1(%r12), %r13d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14,%r12), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	incq	%r12
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	addq	%rax, %rbx
	incl	%r13d
	cmpq	%r15, %r12
	jl	LBB0_3
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	sarq	$32, %rbx
	movb	(%r14,%rbx), %al
	cmpb	$34, %al
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r12d
	jge	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rdi
	movslq	%r13d, %rax
	leaq	(%r14,%rax), %rcx
	shlq	$32, %rax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$34, (%rcx)
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movabsq	$4294967296, %rdx               ## imm = 0x100000000
	addq	%rdx, %rax
	incl	%r13d
	incq	%rcx
	cmpl	%r13d, %ebx
	jne	LBB0_8
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %r13
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %r12
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movsbl	1(%r14,%rbx), %edi
	callq	_isspace
	incq	%rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r12d
	movslq	%ebx, %rbx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r14,%rbx)
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leaq	-48(%rbp), %rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	leaq	-56(%rbp), %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_parse_token
	movq	%r13, %rcx
	movl	%r12d, %r13d
	testl	%eax, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_17
	jmp	LBB0_26
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	sarq	$32, %rax
	movb	$0, (%r14,%rax)
	addq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leaq	-48(%rbp), %rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_add_lit_str
	testl	%eax, %eax
	je	LBB0_24
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	incl	-76(%rbp)                       ## 4-byte Folded Spill
	cmpl	%ebx, %r13d
	jl	LBB0_2
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_parse_token
	movl	$-1, %r12d
	testl	%eax, %eax
	je	LBB0_25
## %bb.20:
	cmpl	$0, -56(%rbp)
	js	LBB0_22
## %bb.21:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	jmp	LBB0_25
LBB0_22:
	movl	-48(%rbp), %r12d
	jmp	LBB0_25
LBB0_23:
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcpy
LBB0_24:
	movl	$-1, %r12d
LBB0_25:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	%rcx, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strlen
	movq	_MAX_ERROR_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	%eax, %edx
	movl	$-1, %r12d
	cmpl	$2, %edx
	jl	LBB0_25
## %bb.27:
	leal	-1(%rdx), %r14d
	cltq
	addq	%rax, %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	callq	_snprintf
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ERROR_BUF_SIZE,4,2         ## @MAX_ERROR_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lex (\"%.*s\", ip_size = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"lex: unclosed double quot"

L_.str.2:                               ## @.str.2
	.asciz	"\nlex: couldn't parse %d-th token (%s)"

L_.str.3:                               ## @.str.3
	.asciz	"BYE"

L_.str.4:                               ## @.str.4
	.asciz	"unclosed if statement"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lex                            ; -- Begin function lex
	.p2align	2
_lex:                                   ; @lex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x4
	mov	x20, x3
	str	x2, [sp, #32]                   ; 8-byte Folded Spill
	mov	x23, x1
	mov	x24, x0
	str	wzr, [sp, #44]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x23
	mov	x3, x24
	mov	x4, x20
	bl	_vkprintf
	mov	w8, #-1
	str	w8, [sp, #40]
	cmp	w23, #1
	b.lt	LBB0_19
; %bb.1:
	mov	w8, #0
	mov	w22, #0
	mov	w19, w23
	add	x10, x24, #1
	sub	x9, x19, #1
	stp	x9, x10, [sp, #8]               ; 16-byte Folded Spill
	mov	x27, #4294967296
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	sxtw	x28, w8
	sbfiz	x25, x8, #32, #32
	add	w21, w8, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x24, x28]
	bl	_isspace
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x28, x28, #1
	add	x25, x25, x27
	add	w21, w21, #1
	cmp	x28, x19
	b.lt	LBB0_3
	b	LBB0_19
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	asr	x26, x25, #32
	add	x25, x24, x26
	ldrb	w8, [x25]
	cmp	w8, #34
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w28, #1
	cmp	w8, w23
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	b.ge	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w8
	sbfiz	x9, x21, #32, #32
	add	x10, x24, w21, sxtw
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x10]
	cmp	w11, #34
	b.eq	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x9, x9, x27
	add	w21, w21, #1
	add	x10, x10, #1
	cmp	w23, w21
	b.ne	LBB0_8
	b	LBB0_23
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w28, w23
	b.ge	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w0, w8
	bl	_isspace
	ldp	x28, x21, [sp, #8]              ; 16-byte Folded Reload
	cbnz	x0, LBB0_14
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x28, x26
	b.eq	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldrsb	w0, [x21, x26]
	bl	_isspace
	add	x26, x26, #1
	cbz	x0, LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x26
	sxtw	x26, w26
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x24, x26]
	add	x2, sp, #44
	add	x4, sp, #40
	mov	x0, x25
	ldp	x26, x1, [sp, #24]              ; 16-byte Folded Reload
	mov	x3, x20
	mov	x5, x26
	bl	_parse_token
	mov	x21, x28
	cbnz	w0, LBB0_17
	b	LBB0_27
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	x9, x9, #32
	strb	wzr, [x24, x9]
	add	x0, x24, x8
	add	x2, sp, #44
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	mov	x3, x20
	mov	x4, x26
	bl	_add_lit_str
	cbz	w0, LBB0_25
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w21, #1
	add	w22, w22, #1
	cmp	w8, w23
	b.lt	LBB0_2
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x19
	mov	x28, x23
	b	LBB0_15
LBB0_19:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x2, sp, #44
	add	x4, sp, #40
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	mov	x3, x20
	mov	x5, x26
	bl	_parse_token
	cbz	w0, LBB0_25
; %bb.20:
	ldr	w8, [sp, #40]
	tbnz	w8, #31, LBB0_22
; %bb.21:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_24
LBB0_22:
	ldr	w0, [sp, #44]
	b	LBB0_26
LBB0_23:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_24:
	mov	x0, x26
	bl	_strcpy
LBB0_25:
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_27:
	mov	x0, x26
	bl	_strlen
Lloh8:
	adrp	x8, _MAX_ERROR_BUF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_ERROR_BUF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w2, w8, w0
	cmp	w2, #2
	b.lt	LBB0_25
; %bb.28:
	sub	w20, w2, #1
	add	x19, x26, w0, sxtw
	mov	x0, x19
	mov	w1, #0
	bl	_memset
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	mov	x4, x25
	bl	_snprintf
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ERROR_BUF_SIZE,4,2         ; @MAX_ERROR_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lex (\"%.*s\", ip_size = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"lex: unclosed double quot"

l_.str.2:                               ; @.str.2
	.asciz	"\nlex: couldn't parse %d-th token (%s)"

l_.str.3:                               ; @.str.3
	.asciz	"BYE"

l_.str.4:                               ; @.str.4
	.asciz	"unclosed if statement"

.subsections_via_symbols
