	.file	"115765462.c"
	.intel_syntax noprefix
	.text
	.globl	progName
	.type	progName, @function
progName:
.LFB0:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	strlwr@PLT
	cdqe
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	progName, .-progName
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: %s <old_str> <new_str> [<in_file>]\n"
.LC1:
	.string	"rt"
.LC2:
	.string	"%s open error.\n"
.LC3:
	.string	"STRING_"
.LC4:
	.string	"// %s -> %s\n"
.LC5:
	.string	"%s%s"
.LC6:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1088
	mov	DWORD PTR -1076[rbp], edi
	mov	QWORD PTR -1088[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1076[rbp], 2
	jg	.L6
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	progName
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L16
.L6:
	cmp	DWORD PTR -1076[rbp], 4
	jne	.L8
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1064[rbp], rax
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L16
.L8:
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -1064[rbp], rax
.L9:
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 7
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L14:
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1056[rbp], rax
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -1048[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	QWORD PTR -1056[rbp], rax
.L12:
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L14
	cmp	DWORD PTR -1076[rbp], 4
	jne	.L15
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L15:
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"115765462.c"
	.text
	.align	2
	.global	progName
	.syntax unified
	.arm
	.fpu softvfp
	.type	progName, %function
progName:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	mov	r1, #92
	ldr	r0, [fp, #-12]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	mov	r1, #46
	ldr	r0, [fp, #-12]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L3:
	ldr	r0, [fp, #-12]
	bl	strlwr
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	progName, .-progName
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s <old_str> <new_str> [<in_file>]\012\000"
	.align	2
.LC1:
	.ascii	"rt\000"
	.align	2
.LC2:
	.ascii	"%s open error.\012\000"
	.align	2
.LC3:
	.ascii	"STRING_\000"
	.align	2
.LC4:
	.ascii	"// %s -> %s\012\000"
	.align	2
.LC5:
	.ascii	"%s%s\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1056]
	cmp	r3, #2
	bgt	.L6
	ldr	r3, [fp, #-1060]
	ldr	r3, [r3]
	mov	r0, r3
	bl	progName
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18+4
	bl	printf
	mov	r3, #0
	b	.L16
.L6:
	ldr	r3, [fp, #-1056]
	cmp	r3, #4
	bne	.L8
	ldr	r3, [fp, #-1060]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L18+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-1060]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	mov	r3, #0
	b	.L16
.L8:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	str	r3, [fp, #-1048]
.L9:
	ldr	r3, [fp, #-1060]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #7
	ldr	r1, .L18+20
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-1060]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-1060]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L18+24
	bl	printf
	b	.L11
.L14:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [fp, #-1044]
	b	.L12
.L13:
	ldr	r3, [fp, #-1040]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1060]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-1044]
	ldr	r0, .L18+28
	bl	printf
	ldr	r3, [fp, #-1060]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1040]
	add	r3, r3, r2
	str	r3, [fp, #-1044]
.L12:
	ldr	r3, [fp, #-1060]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	strstr
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bne	.L13
	ldr	r1, [fp, #-1044]
	ldr	r0, .L18+32
	bl	printf
.L11:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1048]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-1056]
	cmp	r3, #4
	bne	.L15
	ldr	r0, [fp, #-1048]
	bl	fclose
.L15:
	mov	r3, #0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdin
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
