	.file	"908729.c"
	.intel_syntax noprefix
	.text
	.globl	give_up
	.type	give_up, @function
give_up:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 7
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	give_up, .-give_up
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: HEAD file [number_of_lines]"
.LC1:
	.string	"r"
.LC2:
	.string	"Unable to open input file"
	.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -156[rbp], 0
	cmp	DWORD PTR -164[rbp], 1
	jg	.L3
	lea	rdi, .LC0[rip]
	call	give_up
.L3:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	give_up
.L4:
	cmp	DWORD PTR -164[rbp], 2
	jle	.L5
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -156[rbp], eax
.L5:
	cmp	DWORD PTR -156[rbp], 0
	jne	.L6
	mov	DWORD PTR -156[rbp], 4
.L6:
	mov	DWORD PTR -160[rbp], 0
	jmp	.L7
.L11:
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -144[rbp]
	mov	esi, 133
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L14
	mov	BYTE PTR -11[rbp], 0
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rax, -144[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strrchr@PLT
	test	rax, rax
	jne	.L10
	sub	DWORD PTR -160[rbp], 1
.L10:
	add	DWORD PTR -160[rbp], 1
.L7:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L11
	jmp	.L9
.L14:
	nop
.L9:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-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	"908729.c"
	.text
	.align	2
	.global	give_up
	.syntax unified
	.arm
	.fpu softvfp
	.type	give_up, %function
give_up:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r0, #7
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	puts
	mvn	r0, #0
	bl	exit
	.size	give_up, .-give_up
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: HEAD file [number_of_lines]\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Unable to open input file\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-160]
	cmp	r3, #1
	bgt	.L3
	ldr	r0, .L15+4
	bl	give_up
.L3:
	ldr	r3, [fp, #-164]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L15+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L15+12
	bl	give_up
.L4:
	ldr	r3, [fp, #-160]
	cmp	r3, #2
	ble	.L5
	ldr	r3, [fp, #-164]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-152]
.L5:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L6
	mov	r3, #4
	str	r3, [fp, #-152]
.L6:
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L7
.L11:
	sub	r3, fp, #144
	ldr	r2, [fp, #-148]
	mov	r1, #133
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	strb	r3, [fp, #-11]
	ldr	r3, .L15+16
	ldr	r2, [r3]
	sub	r3, fp, #144
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #144
	mov	r1, #10
	mov	r0, r3
	bl	strrchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-156]
	sub	r3, r3, #1
	str	r3, [fp, #-156]
.L10:
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L7:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L11
	b	.L9
.L14:
	nop
.L9:
	ldr	r0, [fp, #-148]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
