	.file	"7568.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"invalid size, must be greater than 1\n"
.LC1:
	.string	"set buffer size to %ld\n"
.LC2:
	.string	"setvbuf error for stdin\n"
.LC3:
	.string	"setvbuf error for stdout\n"
.LC4:
	.string	"error in reading\n"
.LC5:
	.string	"error in writing\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 8192
	cmp	DWORD PTR -20[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
.L2:
	cmp	QWORD PTR -8[rbp], 1
	ja	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L4
.L5:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L4
.L12:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L8
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -12[rbp]
	mov	BYTE PTR -13[rbp], al
	mov	rdx, QWORD PTR stdout[rip]
	movsx	eax, BYTE PTR -13[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L7
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L4
.L7:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L12
	jmp	.L10
.L13:
	nop
	jmp	.L10
.L14:
	nop
.L10:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"7568.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"invalid size, must be greater than 1\012\000"
	.align	2
.LC1:
	.ascii	"set buffer size to %ld\012\000"
	.align	2
.LC2:
	.ascii	"setvbuf error for stdin\012\000"
	.align	2
.LC3:
	.ascii	"setvbuf error for stdout\012\000"
	.align	2
.LC4:
	.ascii	"error in reading\012\000"
	.align	2
.LC5:
	.ascii	"error in writing\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #8192
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bhi	.L3
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L15+4
	bl	fwrite
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L15+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L15+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	bl	setvbuf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L15+16
	bl	fwrite
	mvn	r3, #0
	b	.L4
.L5:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	bl	setvbuf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L15+24
	bl	fwrite
	mvn	r3, #0
	b	.L4
.L12:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L15+28
	bl	fwrite
	mvn	r3, #0
	b	.L4
.L8:
	ldr	r3, [fp, #-8]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldr	r2, .L15+20
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L15+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L15+32
	bl	fwrite
	mvn	r3, #0
	b	.L4
.L7:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	b	.L10
.L13:
	nop
	b	.L10
.L14:
	nop
.L10:
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.word	stdout
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
