	.file	"607349.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"ERROR:  could not find file %s\n"
.LC2:
	.string	"w"
.LC3:
	.string	"ATOM"
.LC4:
	.string	"HETATM"
	.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, 592
	mov	DWORD PTR -580[rbp], edi
	mov	QWORD PTR -592[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 2314914415668982613
	movabs	rdx, 2314976040012245350
	mov	QWORD PTR -560[rbp], rax
	mov	QWORD PTR -552[rbp], rdx
	movabs	rax, 8083509897475812969
	movabs	rdx, 7382654809307902577
	mov	QWORD PTR -544[rbp], rax
	mov	QWORD PTR -536[rbp], rdx
	movabs	rax, 2338055883187383401
	mov	QWORD PTR -528[rbp], rax
	mov	WORD PTR -520[rbp], 2592
	mov	BYTE PTR -518[rbp], 0
	cmp	DWORD PTR -580[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -560[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -512[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -576[rbp], rax
	cmp	QWORD PTR -576[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -512[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, -384[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -568[rbp], rax
	jmp	.L4
.L7:
	lea	rdx, -256[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -256[rbp]
	mov	edx, 4
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L5
	lea	rax, -256[rbp]
	mov	edx, 6
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
.L5:
	lea	rax, -256[rbp]
	lea	rdx, 62[rax]
	lea	rax, -128[rbp]
	add	rax, 61
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -256[rbp]
	lea	rdx, 69[rax]
	lea	rax, -128[rbp]
	add	rax, 67
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -568[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L4
.L6:
	mov	rdx, QWORD PTR -568[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L4:
	mov	rdx, QWORD PTR -576[rbp]
	lea	rax, -256[rbp]
	mov	esi, 120
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR -576[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -568[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"607349.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"ERROR:  could not find file %s\012\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"ATOM\000"
	.align	2
.LC5:
	.ascii	"HETATM\000"
	.align	2
.LC0:
	.ascii	"Usage:  fixpqr  infile.pqr  outfile.pqr  \012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L10+4
	sub	ip, fp, #532
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r2, #16
	strb	r3, [ip]
	ldr	r3, [fp, #-544]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L10+8
	ldr	r3, [r3]
	sub	r2, fp, #532
	mov	r1, r2
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #488
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-548]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #368
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #488
	ldr	r1, .L10+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-540]
	ldr	r3, [fp, #-540]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L10+8
	ldr	r3, [r3]
	sub	r2, fp, #488
	ldr	r1, .L10+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #368
	ldr	r1, .L10+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-536]
	b	.L4
.L7:
	sub	r2, fp, #248
	sub	r3, fp, #128
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #248
	mov	r2, #4
	ldr	r1, .L10+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	sub	r3, fp, #248
	mov	r2, #6
	ldr	r1, .L10+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
.L5:
	sub	r3, fp, #248
	add	r2, r3, #62
	sub	r3, fp, #128
	add	r3, r3, #61
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #248
	add	r2, r3, #69
	sub	r3, fp, #128
	add	r3, r3, #67
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #128
	ldr	r1, [fp, #-536]
	mov	r0, r3
	bl	fputs
	b	.L4
.L6:
	sub	r3, fp, #128
	ldr	r1, [fp, #-536]
	mov	r0, r3
	bl	fputs
.L4:
	sub	r3, fp, #248
	ldr	r2, [fp, #-540]
	mov	r1, #120
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-540]
	bl	fclose
	ldr	r0, [fp, #-536]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.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
