	.file	"253943.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"line_no too small"
.LC1:
	.string	"file does not have line %d"
	.text
	.globl	read_file_line
	.type	read_file_line, @function
read_file_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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	DWORD PTR -220[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -192[rbp], -1
	mov	QWORD PTR -176[rbp], -1
	mov	DWORD PTR -200[rbp], 1
	cmp	DWORD PTR -220[rbp], 1
	jne	.L2
	mov	QWORD PTR -192[rbp], 0
	jmp	.L3
.L2:
	cmp	DWORD PTR -220[rbp], 0
	jg	.L3
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, 0
	jmp	.L13
.L3:
	sub	DWORD PTR -220[rbp], 1
	mov	rax, QWORD PTR -216[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -196[rbp], eax
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -196[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 2
	mov	edx, 1
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	madvise@PLT
	mov	DWORD PTR -204[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	jmp	.L5
.L10:
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L15
	add	DWORD PTR -204[rbp], 1
	mov	eax, DWORD PTR -204[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jne	.L8
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 1
	mov	QWORD PTR -192[rbp], rax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -220[rbp]
	add	eax, 1
	cmp	DWORD PTR -204[rbp], eax
	jne	.L7
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 1
	mov	QWORD PTR -176[rbp], rax
	jmp	.L7
.L15:
	nop
.L7:
	add	QWORD PTR -184[rbp], 1
.L5:
	mov	rax, QWORD PTR -112[rbp]
	cmp	QWORD PTR -184[rbp], rax
	jnb	.L9
	mov	eax, DWORD PTR -204[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jle	.L10
.L9:
	mov	rax, QWORD PTR -112[rbp]
	cmp	QWORD PTR -192[rbp], rax
	jge	.L11
	cmp	QWORD PTR -192[rbp], 0
	jns	.L12
.L11:
	mov	eax, DWORD PTR -220[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -200[rbp], 0
.L12:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -200[rbp]
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_file_line, .-read_file_line
	.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	"253943.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"line_no too small\000"
	.align	2
.LC1:
	.ascii	"file does not have line %d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_file_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file_line, %function
read_file_line:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-128]
	mvn	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #1
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-140]
	cmp	r3, #1
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L3
.L2:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bgt	.L3
	ldr	r0, .L16+4
	bl	warn
	mov	r3, #0
	b	.L13
.L3:
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	str	r3, [fp, #-140]
	mov	r1, #0
	ldr	r0, [fp, #-136]
	bl	open
	str	r0, [fp, #-108]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	fstat
	ldr	r3, [fp, #-56]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-108]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #1
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-56]
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	madvise
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L5
.L10:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-124]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L15
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	b	.L7
.L8:
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-112]
	b	.L7
.L15:
	nop
.L7:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L5:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-124]
	cmp	r3, r2
	bcs	.L9
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	ble	.L10
.L9:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	bge	.L11
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bge	.L12
.L11:
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L16+8
	bl	warn
	mov	r3, #0
	str	r3, [fp, #-116]
.L12:
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	munmap
	ldr	r0, [fp, #-108]
	bl	close
	ldr	r3, [fp, #-116]
.L13:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	read_file_line, .-read_file_line
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
