	.file	"792523.c"
	.intel_syntax noprefix
	.text
	.globl	datafilehead
	.bss
	.align 32
	.type	datafilehead, @object
	.size	datafilehead, 32
datafilehead:
	.zero	32
	.globl	datablockhead
	.align 16
	.type	datablockhead, @object
	.size	datablockhead, 28
datablockhead:
	.zero	28
	.section	.rodata
	.align 8
.LC0:
	.string	"\nName of input file was not passed!"
	.align 8
.LC1:
	.string	"\nName of output file was not passed!"
.LC2:
	.string	"\nNew CT was not passed!"
.LC3:
	.string	"rb"
.LC4:
	.string	"\nCan not open input file"
.LC5:
	.string	"wb"
.LC6:
	.string	"\nCan not open output file"
	.align 8
.LC7:
	.string	"Error in reading input data (datafilehead)\n"
	.align 8
.LC8:
	.string	"Error in writting output data (datafilehead)\n"
	.align 8
.LC10:
	.string	"\n******* FID HEADER UPDATE *************\n"
.LC11:
	.string	"FILE STATUS = %d\n"
.LC12:
	.string	"Type of data: INTEGER\n"
.LC13:
	.string	"Type of data: FLOATING POINT\n"
.LC14:
	.string	"np = %d\n"
	.align 8
.LC15:
	.string	"Error in reading input data (datablockhead)\n"
.LC16:
	.string	"block[%3d]  new CT = %3d\n"
	.align 8
.LC17:
	.string	"Error in writting output data (datablockhead)\n"
	.align 8
.LC18:
	.string	"Error in reading input data (integer)\n"
	.align 8
.LC19:
	.string	"Error in writting output data (integer) \n"
	.align 8
.LC20:
	.string	"Error in reading input data (float)\n"
	.align 8
.LC21:
	.string	"Error in writting output data\n"
.LC22:
	.string	"Error closing input file"
.LC23:
	.string	"Error closing output file"
	.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, 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
	cmp	DWORD PTR -164[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 3
	call	exit@PLT
.L2:
	cmp	DWORD PTR -164[rbp], 2
	jg	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 3
	call	exit@PLT
.L3:
	cmp	DWORD PTR -164[rbp], 3
	jg	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 3
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L5
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L6
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, datafilehead[rip]
	call	fread@PLT
	cmp	rax, 1
	je	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, datafilehead[rip]
	call	fwrite@PLT
	cmp	rax, 1
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR datafilehead[rip+8]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -124[rbp], eax
	movzx	eax, WORD PTR datafilehead[rip+26]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -128[rbp], eax
	mov	DWORD PTR -132[rbp], 15
	jmp	.L9
.L11:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR .LC9[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	DWORD PTR -80[rbp+rax*4], 0
	movsd	xmm0, QWORD PTR -88[rbp]
	cvttsd2si	eax, xmm0
	cmp	DWORD PTR -128[rbp], eax
	jl	.L10
	movsd	xmm0, QWORD PTR -88[rbp]
	cvttsd2si	eax, xmm0
	sub	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	DWORD PTR -80[rbp+rax*4], 1
.L10:
	sub	DWORD PTR -132[rbp], 1
.L9:
	cmp	DWORD PTR -132[rbp], 0
	jns	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -120[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -68[rbp]
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
.L12:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 1
	jne	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
.L13:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -124[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR datafilehead[rip]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR datafilehead[rip+12]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -108[rbp], eax
	mov	DWORD PTR -140[rbp], 0
	jmp	.L14
.L23:
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 28
	lea	rdi, datablockhead[rip]
	call	fread@PLT
	cmp	rax, 1
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR datablockhead[rip+8], eax
	mov	eax, DWORD PTR -140[rbp]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -108[rbp]
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 28
	lea	rdi, datablockhead[rip]
	call	fwrite@PLT
	cmp	rax, 1
	je	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L16:
	mov	DWORD PTR -136[rbp], 0
	jmp	.L17
.L22:
	cmp	DWORD PTR -112[rbp], 2
	jne	.L18
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -146[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L19:
	mov	rdx, QWORD PTR -96[rbp]
	lea	rax, -146[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L18:
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -144[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L21:
	mov	rdx, QWORD PTR -96[rbp]
	lea	rax, -144[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L20:
	add	DWORD PTR -136[rbp], 1
.L17:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L22
	add	DWORD PTR -140[rbp], 1
.L14:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L23
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L24
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L24:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L25
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L25:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC9:
	.long	0
	.long	1073741824
	.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	"792523.c"
	.text
	.comm	datafilehead,32,4
	.comm	datablockhead,28,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Name of input file was not passed!\000"
	.align	2
.LC1:
	.ascii	"\012Name of output file was not passed!\000"
	.align	2
.LC2:
	.ascii	"\012New CT was not passed!\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"\012Can not open input file\000"
	.align	2
.LC5:
	.ascii	"wb\000"
	.align	2
.LC6:
	.ascii	"\012Can not open output file\000"
	.align	2
.LC7:
	.ascii	"Error in reading input data (datafilehead)\012\000"
	.align	2
.LC8:
	.ascii	"Error in writting output data (datafilehead)\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
.LC9:
	.ascii	"\012******* FID HEADER UPDATE *************\012\000"
	.align	2
.LC10:
	.ascii	"FILE STATUS = %d\012\000"
	.align	2
.LC11:
	.ascii	"Type of data: INTEGER\012\000"
	.align	2
.LC12:
	.ascii	"Type of data: FLOATING POINT\012\000"
	.align	2
.LC13:
	.ascii	"np = %d\012\000"
	.align	2
.LC14:
	.ascii	"Error in reading input data (datablockhead)\012\000"
	.align	2
.LC15:
	.ascii	"block[%3d]  new CT = %3d\012\000"
	.align	2
.LC16:
	.ascii	"Error in writting output data (datablockhead)\012\000"
	.align	2
.LC17:
	.ascii	"Error in reading input data (integer)\012\000"
	.align	2
.LC18:
	.ascii	"Error in writting output data (integer) \012\000"
	.align	2
.LC19:
	.ascii	"Error in reading input data (float)\012\000"
	.align	2
.LC20:
	.ascii	"Error in writting output data\012\000"
	.align	2
.LC21:
	.ascii	"Error closing input file\000"
	.align	2
.LC22:
	.ascii	"Error closing output file\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L27+4
	bl	puts
	mov	r0, #3
	bl	exit
.L2:
	ldr	r3, [fp, #-144]
	cmp	r3, #2
	bgt	.L3
	ldr	r0, .L27+8
	bl	puts
	mov	r0, #3
	bl	exit
.L3:
	ldr	r3, [fp, #-144]
	cmp	r3, #3
	bgt	.L4
	ldr	r0, .L27+12
	bl	puts
	mov	r0, #3
	bl	exit
.L4:
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L27+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L27+20
	bl	printf
	mov	r0, #3
	bl	exit
.L5:
	ldr	r0, [fp, #-112]
	bl	rewind
	ldr	r3, [fp, #-148]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L27+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L27+28
	bl	printf
	mov	r0, #3
	bl	exit
.L6:
	ldr	r0, [fp, #-108]
	bl	rewind
	ldr	r3, [fp, #-112]
	mov	r2, #1
	mov	r1, #32
	ldr	r0, .L27+32
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L7
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L27+40
	bl	fwrite
	mov	r0, #3
	bl	exit
.L7:
	ldr	r3, [fp, #-108]
	mov	r2, #1
	mov	r1, #32
	ldr	r0, .L27+32
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L8
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L27+44
	bl	fwrite
	mov	r0, #3
	bl	exit
.L8:
	ldr	r3, .L27+32
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, .L27+32
	ldrsh	r3, [r3, #26]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-116]
	mov	r3, #15
	str	r3, [fp, #-120]
	b	.L9
.L11:
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-68]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, [fp, #-116]
	cmp	r3, r2
	blt	.L10
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, [fp, #-116]
	sub	r3, r3, r2
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-68]
.L10:
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
.L9:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L27+48
	bl	fwrite
	ldr	r3, .L27+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-100]
	ldr	r1, .L27+52
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L27+56
	bl	fwrite
.L12:
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bne	.L13
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L27+60
	bl	fwrite
.L13:
	ldr	r3, .L27+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	ldr	r1, .L27+64
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L27+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	str	r3, [fp, #-96]
	ldr	r3, .L27+32
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-148]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L14
.L23:
	ldr	r3, [fp, #-112]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L27+68
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L15
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L27+72
	bl	fwrite
	mov	r0, #3
	bl	exit
.L15:
	ldr	r3, [fp, #-88]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L27+68
	str	r2, [r3, #8]
	ldr	r3, .L27+36
	ldr	r0, [r3]
	ldr	r3, [fp, #-128]
	add	r2, r3, #1
	ldr	r3, [fp, #-88]
	ldr	r1, .L27+76
	bl	fprintf
	ldr	r3, [fp, #-108]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L27+68
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L16
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L27+80
	bl	fwrite
	mov	r0, #3
	bl	exit
.L16:
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L17
.L22:
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	bne	.L18
	sub	r0, fp, #134
	ldr	r3, [fp, #-112]
	mov	r2, #1
	mov	r1, #2
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L19
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L27+84
	bl	fwrite
	mov	r0, #3
	bl	exit
.L19:
	sub	r0, fp, #134
	ldr	r3, [fp, #-108]
	mov	r2, #1
	mov	r1, #2
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L20
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L27+88
	bl	fwrite
	mov	r0, #3
	bl	exit
.L18:
	sub	r0, fp, #132
	ldr	r3, [fp, #-112]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L21
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L27+92
	bl	fwrite
	mov	r0, #3
	bl	exit
.L21:
	sub	r0, fp, #132
	ldr	r3, [fp, #-108]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L20
	ldr	r3, .L27+36
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L27+96
	bl	fwrite
	mov	r0, #3
	bl	exit
.L20:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L17:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L14:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L23
	ldr	r0, [fp, #-112]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L27+100
	bl	printf
	mov	r0, #3
	bl	exit
.L24:
	ldr	r0, [fp, #-108]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L27+104
	bl	printf
	mov	r0, #3
	bl	exit
.L25:
	mov	r0, #0
	bl	exit
.L28:
	.align	2
.L27:
	.word	.LC23
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	datafilehead
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	datablockhead
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
