	.file	"749009.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s <samplecount>\nGot:%d Wanted:%d\n"
.LC1:
	.string	"r"
.LC2:
	.string	"fdopen failed\n"
.LC3:
	.string	"wrong scaler"
.LC4:
	.string	"wrong val0"
.LC5:
	.string	"wrong val1"
.LC6:
	.string	"wrong val2"
.LC7:
	.string	"ferror"
	.text
	.globl	main
	.type	main, @function
main:
.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 -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], 2
	je	.L2
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -68[rbp]
	mov	r8d, 2
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -64[rbp], eax
	lea	rsi, .LC1[rip]
	mov	edi, 6
	call	fdopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	jmp	.L4
.L14:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	QWORD PTR -40[rbp], 3
	je	.L5
	cmp	QWORD PTR -40[rbp], 3
	ja	.L6
	cmp	QWORD PTR -40[rbp], 2
	je	.L7
	cmp	QWORD PTR -40[rbp], 2
	ja	.L6
	cmp	QWORD PTR -40[rbp], 0
	je	.L8
	cmp	QWORD PTR -40[rbp], 1
	je	.L9
	jmp	.L6
.L8:
	cmp	DWORD PTR -60[rbp], 10
	je	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	cmp	DWORD PTR -60[rbp], 23
	je	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	cmp	DWORD PTR -60[rbp], 42
	je	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	cmp	DWORD PTR -60[rbp], 666
	je	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	nop
	jmp	.L6
.L18:
	nop
	jmp	.L6
.L19:
	nop
	jmp	.L6
.L20:
	nop
.L6:
	add	QWORD PTR -40[rbp], 1
.L4:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rcx, -56[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], -1
	jne	.L14
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"749009.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <samplecount>\012Got:%d Wanted:%d\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"fdopen failed\012\000"
	.align	2
.LC3:
	.ascii	"wrong scaler\000"
	.align	2
.LC4:
	.ascii	"wrong val0\000"
	.align	2
.LC5:
	.ascii	"wrong val1\000"
	.align	2
.LC6:
	.ascii	"wrong val2\000"
	.align	2
.LC7:
	.ascii	"ferror\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L22+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [r3]
	mov	r3, #2
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r1, .L22+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
	ldr	r1, .L22+12
	mov	r0, #6
	bl	fdopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L22+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L15:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	beq	.L18
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L22+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #23
	beq	.L19
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L22+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #42
	beq	.L20
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L22+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-16]
	ldr	r2, .L22+32
	cmp	r3, r2
	beq	.L21
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L22+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L18:
	nop
	b	.L5
.L19:
	nop
	b	.L5
.L20:
	nop
	b	.L5
.L21:
	nop
.L5:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L4:
	sub	r1, fp, #40
	sub	r3, fp, #36
	ldr	r2, [fp, #-24]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L15
	ldr	r0, [fp, #-24]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L22+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r0, #0
	bl	exit
.L23:
	.align	2
.L22:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	666
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
