	.file	"710376.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"## check\n"
	.text
	.globl	read_line
	.type	read_line, @function
read_line:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -72[rbp], 0
	je	.L2
	cmp	QWORD PTR -64[rbp], 0
	jne	.L3
.L2:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	rax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
.L14:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rcx, -33[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L16
	mov	rax, -1
	jmp	.L4
.L5:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L9
	cmp	QWORD PTR -24[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	cmp	rdx, rax
	jbe	.L12
	movzx	eax, BYTE PTR -33[rbp]
	cmp	al, 10
	je	.L12
	movzx	edx, BYTE PTR -33[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -32[rbp], 1
	add	QWORD PTR -24[rbp], 1
.L12:
	movzx	eax, BYTE PTR -33[rbp]
	cmp	al, 10
	jne	.L14
	jmp	.L11
.L17:
	nop
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L4
.L16:
	nop
	jmp	.L14
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_line, .-read_line
	.section	.rodata
.LC1:
	.string	"open"
.LC2:
	.string	"foo"
.LC3:
	.string	"the_stack_data/710376.c"
.LC4:
	.string	"strcmp(buffer, \"foo\") == 0"
.LC5:
	.string	"n == 3"
.LC6:
	.string	"apple orange"
	.align 8
.LC7:
	.string	"strcmp(buffer, \"apple orange\") == 0"
.LC8:
	.string	"n == 12"
.LC9:
	.string	"baz"
.LC10:
	.string	"strcmp(buffer, \"baz\") == 0"
.LC11:
	.string	"OK"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 1
	jg	.L19
	mov	DWORD PTR -60[rbp], 0
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], -1
	jne	.L20
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L28
.L20:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	read_line
	mov	QWORD PTR -56[rbp], rax
	lea	rax, -48[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 68
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L22:
	cmp	QWORD PTR -56[rbp], 3
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 69
	lea	rsi, .LC3[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L23:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	read_line
	mov	QWORD PTR -56[rbp], rax
	lea	rax, -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L24
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 72
	lea	rsi, .LC3[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L24:
	cmp	QWORD PTR -56[rbp], 12
	je	.L25
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 73
	lea	rsi, .LC3[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L25:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	read_line
	mov	QWORD PTR -56[rbp], rax
	lea	rax, -48[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 76
	lea	rsi, .LC3[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L26:
	cmp	QWORD PTR -56[rbp], 3
	je	.L27
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 77
	lea	rsi, .LC3[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L27:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
.L28:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.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	"710376.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"## check\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_line, %function
read_line:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L3
.L2:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
.L14:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #21
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L16
	mvn	r3, #0
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L18+8
	bl	fwrite
	mov	r3, #0
	b	.L4
.L9:
	ldr	r3, [fp, #-40]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bls	.L12
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L12
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L14
	b	.L11
.L17:
	nop
.L11:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	b	.L4
.L16:
	nop
	b	.L14
.L4:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	read_line, .-read_line
	.section	.rodata
	.align	2
.LC2:
	.ascii	"open\000"
	.align	2
.LC3:
	.ascii	"foo\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/710376.c\000"
	.align	2
.LC5:
	.ascii	"strcmp(buffer, \"foo\") == 0\000"
	.align	2
.LC6:
	.ascii	"n == 3\000"
	.align	2
.LC7:
	.ascii	"apple orange\000"
	.align	2
.LC8:
	.ascii	"strcmp(buffer, \"apple orange\") == 0\000"
	.align	2
.LC9:
	.ascii	"n == 12\000"
	.align	2
.LC10:
	.ascii	"baz\000"
	.align	2
.LC11:
	.ascii	"strcmp(buffer, \"baz\") == 0\000"
	.align	2
.LC12:
	.ascii	"OK\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L21
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L22
.L21:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L32+4
	bl	perror
	mvn	r3, #0
	b	.L30
.L22:
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read_line
	str	r0, [fp, #-44]
	sub	r3, fp, #40
	ldr	r1, .L32+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L32+12
	mov	r2, #68
	ldr	r1, .L32+16
	ldr	r0, .L32+20
	bl	__assert_fail
.L24:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	beq	.L25
	ldr	r3, .L32+12
	mov	r2, #69
	ldr	r1, .L32+16
	ldr	r0, .L32+24
	bl	__assert_fail
.L25:
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read_line
	str	r0, [fp, #-44]
	sub	r3, fp, #40
	ldr	r1, .L32+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L32+12
	mov	r2, #72
	ldr	r1, .L32+16
	ldr	r0, .L32+32
	bl	__assert_fail
.L26:
	ldr	r3, [fp, #-44]
	cmp	r3, #12
	beq	.L27
	ldr	r3, .L32+12
	mov	r2, #73
	ldr	r1, .L32+16
	ldr	r0, .L32+36
	bl	__assert_fail
.L27:
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read_line
	str	r0, [fp, #-44]
	sub	r3, fp, #40
	ldr	r1, .L32+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L32+12
	mov	r2, #76
	ldr	r1, .L32+16
	ldr	r0, .L32+44
	bl	__assert_fail
.L28:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	beq	.L29
	ldr	r3, .L32+12
	mov	r2, #77
	ldr	r1, .L32+16
	ldr	r0, .L32+24
	bl	__assert_fail
.L29:
	ldr	r0, .L32+48
	bl	puts
	mov	r3, #0
.L30:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC13
	.word	.LC2
	.word	.LC3
	.word	__PRETTY_FUNCTION__.5733
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5733, %object
	.size	__PRETTY_FUNCTION__.5733, 5
__PRETTY_FUNCTION__.5733:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
