	.file	"42151.c"
	.intel_syntax noprefix
	.text
	.type	lex, @function
lex:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
.L2:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	ja	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	movsx	eax, BYTE PTR -21[rbp]
	cmp	eax, 39
	je	.L11
	cmp	eax, 39
	jg	.L25
	test	eax, eax
	je	.L26
	cmp	eax, 32
	je	.L10
	jmp	.L25
.L26:
	nop
.L9:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L13
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L4
.L13:
	mov	eax, -1
	jmp	.L4
.L25:
	nop
.L12:
	add	QWORD PTR -16[rbp], 1
	mov	eax, -1
	jmp	.L4
.L10:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	ja	.L15
	mov	eax, -1
	jmp	.L4
.L15:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	movsx	eax, BYTE PTR -21[rbp]
	cmp	eax, 32
	jne	.L27
	jmp	.L10
.L27:
	nop
.L17:
	jmp	.L2
.L11:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	ja	.L18
	mov	eax, -1
	jmp	.L4
.L18:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	movsx	eax, BYTE PTR -21[rbp]
	cmp	eax, 39
	je	.L28
	cmp	eax, 92
	je	.L29
	jmp	.L11
.L28:
	nop
.L22:
	add	QWORD PTR -16[rbp], 1
	add	DWORD PTR -20[rbp], 1
	jmp	.L2
.L29:
	nop
.L23:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	ja	.L24
	mov	eax, -1
	jmp	.L4
.L24:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	jmp	.L11
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	lex, .-lex
	.section	.rodata
.LC0:
	.string	"c/eof/02_bounds_checking.re"
.LC1:
	.string	"r == res"
	.text
	.type	test, @function
test:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	lex
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 36
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L32:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test, .-test
	.section	.rodata
.LC2:
	.string	""
.LC3:
	.string	"'qu"
	.string	"tes' 'are' 'fine: \\'' "
.LC4:
	.string	"'unterminated\\'"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC2[rip]
	call	test
	mov	edx, 3
	mov	esi, 26
	lea	rdi, .LC3[rip]
	call	test
	mov	edx, -1
	mov	esi, 15
	lea	rdi, .LC4[rip]
	call	test
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"test"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"42151.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lex, %function
lex:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L3
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #39
	beq	.L11
	cmp	r3, #39
	bgt	.L25
	cmp	r3, #0
	beq	.L26
	cmp	r3, #32
	beq	.L10
	b	.L25
.L26:
	nop
.L9:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-12]
	b	.L4
.L13:
	mvn	r3, #0
	b	.L4
.L25:
	nop
.L12:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	mvn	r3, #0
	b	.L4
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L15
	mvn	r3, #0
	b	.L4
.L15:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L27
	b	.L10
.L27:
	nop
.L17:
	b	.L2
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L18
	mvn	r3, #0
	b	.L4
.L18:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #39
	beq	.L28
	cmp	r3, #92
	beq	.L29
	b	.L11
.L28:
	nop
.L22:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L29:
	nop
.L23:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L24
	mvn	r3, #0
	b	.L4
.L24:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	b	.L11
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lex, .-lex
	.section	.rodata
	.align	2
.LC0:
	.ascii	"c/eof/02_bounds_checking.re\000"
	.align	2
.LC1:
	.ascii	"r == res\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	memcpy
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	lex
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L32
	ldr	r3, .L33
	mov	r2, #36
	ldr	r1, .L33+4
	ldr	r0, .L33+8
	bl	__assert_fail
.L32:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	__PRETTY_FUNCTION__.5005
	.word	.LC0
	.word	.LC1
	.size	test, .-test
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"'qu\000tes' 'are' 'fine: \\'' \000"
	.align	2
.LC4:
	.ascii	"'unterminated\\'\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L37
	bl	test
	mov	r2, #3
	mov	r1, #26
	ldr	r0, .L37+4
	bl	test
	mvn	r2, #0
	mov	r1, #15
	ldr	r0, .L37+8
	bl	test
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5005, %object
	.size	__PRETTY_FUNCTION__.5005, 5
__PRETTY_FUNCTION__.5005:
	.ascii	"test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
