	.file	"634798.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r+"
.LC1:
	.string	"open1"
.LC2:
	.string	"w+"
.LC3:
	.string	"open2"
.LC4:
	.string	"src_IO_read_ptr:\t%p\n"
.LC5:
	.string	"_IO_read_end:\t%p\n"
.LC6:
	.string	"_IO_read_base:\t%p\n"
.LC7:
	.string	"src_IO_write_ptr:\t%p\n"
.LC8:
	.string	"_IO_write_base:\t%p\n"
.LC9:
	.string	"_IO_write_end:\t%p\n"
.LC10:
	.string	"_IO_buf_base\t:\t%p\n"
.LC11:
	.string	"_IO_buf_end\t:\t%p\n"
.LC12:
	.string	"des_IO_read_ptr:\t%p\n"
.LC13:
	.string	"des_IO_write_ptr:\t%p\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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rsi, -144[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	ecx, 128
	mov	edx, 1
	mov	rdi, rax
	call	setvbuf@PLT
.L4:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -154[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -176[rbp]
	lea	rax, -154[rbp]
	mov	rcx, rdx
	mov	edx, 10
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -168[rbp]
	lea	rax, -154[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -180[rbp], 10
	je	.L4
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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	"634798.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r+\000"
	.align	2
.LC1:
	.ascii	"open1\000"
	.align	2
.LC2:
	.ascii	"w+\000"
	.align	2
.LC3:
	.ascii	"open2\000"
	.align	2
.LC4:
	.ascii	"src_IO_read_ptr:\011%p\012\000"
	.align	2
.LC5:
	.ascii	"_IO_read_end:\011%p\012\000"
	.align	2
.LC6:
	.ascii	"_IO_read_base:\011%p\012\000"
	.align	2
.LC7:
	.ascii	"src_IO_write_ptr:\011%p\012\000"
	.align	2
.LC8:
	.ascii	"_IO_write_base:\011%p\012\000"
	.align	2
.LC9:
	.ascii	"_IO_write_end:\011%p\012\000"
	.align	2
.LC10:
	.ascii	"_IO_buf_base\011:\011%p\012\000"
	.align	2
.LC11:
	.ascii	"_IO_buf_end\011:\011%p\012\000"
	.align	2
.LC12:
	.ascii	"des_IO_read_ptr:\011%p\012\000"
	.align	2
.LC13:
	.ascii	"des_IO_write_ptr:\011%p\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-172]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L7+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L7+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-172]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L7+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L7+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r1, fp, #136
	mov	r3, #128
	mov	r2, #1
	ldr	r0, [fp, #-160]
	bl	setvbuf
.L4:
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L7+20
	bl	printf
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L7+24
	bl	printf
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L7+28
	bl	printf
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L7+32
	bl	printf
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L7+36
	bl	printf
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L7+40
	bl	printf
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #28]
	mov	r1, r3
	ldr	r0, .L7+44
	bl	printf
	ldr	r3, [fp, #-160]
	ldr	r3, [r3, #32]
	mov	r1, r3
	ldr	r0, .L7+48
	bl	printf
	sub	r3, fp, #148
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r0, fp, #148
	ldr	r3, [fp, #-160]
	mov	r2, #10
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-152]
	ldr	r2, [fp, #-152]
	sub	r0, fp, #148
	ldr	r3, [fp, #-156]
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-156]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L7+52
	bl	printf
	ldr	r3, [fp, #-156]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L7+56
	bl	printf
	ldr	r3, [fp, #-152]
	cmp	r3, #10
	beq	.L4
	ldr	r0, [fp, #-160]
	bl	fclose
	ldr	r0, [fp, #-156]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
