	.file	"372896.c"
	.intel_syntax noprefix
	.text
	.globl	getarray
	.type	getarray, @function
getarray:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8[rbp], 1
.L2:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 10
	je	.L3
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L4
.L3:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getarray, .-getarray
	.section	.rodata
.LC0:
	.string	"enter the string : "
	.align 8
.LC1:
	.string	"\n enter the pattern to be replaced"
.LC2:
	.string	"\n enter the repacing pattern:"
.LC3:
	.string	"\n the new string is "
	.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, 800
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -792[rbp], 0
	mov	DWORD PTR -788[rbp], 0
	mov	DWORD PTR -780[rbp], 0
	mov	DWORD PTR -776[rbp], 0
	mov	DWORD PTR -772[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -624[rbp]
	mov	esi, 200
	mov	rdi, rax
	call	getarray
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -768[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	getarray
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -736[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getarray
	jmp	.L6
.L13:
	mov	DWORD PTR -788[rbp], 0
	mov	eax, DWORD PTR -792[rbp]
	mov	DWORD PTR -784[rbp], eax
	jmp	.L7
.L9:
	add	DWORD PTR -784[rbp], 1
	add	DWORD PTR -788[rbp], 1
.L7:
	mov	eax, DWORD PTR -784[rbp]
	cdqe
	movzx	edx, BYTE PTR -624[rbp+rax]
	mov	eax, DWORD PTR -788[rbp]
	cdqe
	movzx	eax, BYTE PTR -768[rbp+rax]
	cmp	dl, al
	jne	.L8
	mov	eax, DWORD PTR -788[rbp]
	cdqe
	movzx	eax, BYTE PTR -768[rbp+rax]
	test	al, al
	jne	.L9
.L8:
	mov	eax, DWORD PTR -788[rbp]
	cdqe
	movzx	eax, BYTE PTR -768[rbp+rax]
	test	al, al
	jne	.L10
	mov	eax, DWORD PTR -784[rbp]
	mov	DWORD PTR -776[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -772[rbp]
	cdqe
	movzx	edx, BYTE PTR -736[rbp+rax]
	mov	eax, DWORD PTR -780[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], dl
	add	DWORD PTR -772[rbp], 1
	add	DWORD PTR -780[rbp], 1
.L11:
	mov	eax, DWORD PTR -772[rbp]
	cdqe
	movzx	eax, BYTE PTR -736[rbp+rax]
	test	al, al
	jne	.L12
.L10:
	mov	eax, DWORD PTR -776[rbp]
	cdqe
	movzx	edx, BYTE PTR -624[rbp+rax]
	mov	eax, DWORD PTR -780[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], dl
	add	DWORD PTR -792[rbp], 1
	add	DWORD PTR -776[rbp], 1
	add	DWORD PTR -780[rbp], 1
.L6:
	mov	eax, DWORD PTR -792[rbp]
	cdqe
	movzx	eax, BYTE PTR -624[rbp+rax]
	test	al, al
	jne	.L13
	mov	eax, DWORD PTR -780[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], 0
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"372896.c"
	.text
	.align	2
	.global	getarray
	.syntax unified
	.arm
	.fpu softvfp
	.type	getarray, %function
getarray:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L3
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L4
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getarray, .-getarray
	.section	.rodata
	.align	2
.LC0:
	.ascii	"enter the string : \000"
	.align	2
.LC1:
	.ascii	"\012 enter the pattern to be replaced\000"
	.align	2
.LC2:
	.ascii	"\012 enter the repacing pattern:\000"
	.align	2
.LC3:
	.ascii	"\012 the new string is \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 752
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #752
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-752]
	mov	r3, #0
	str	r3, [fp, #-748]
	mov	r3, #0
	str	r3, [fp, #-740]
	mov	r3, #0
	str	r3, [fp, #-736]
	mov	r3, #0
	str	r3, [fp, #-732]
	ldr	r0, .L16+4
	bl	printf
	sub	r3, fp, #608
	mov	r1, #200
	mov	r0, r3
	bl	getarray
	ldr	r0, .L16+8
	bl	printf
	sub	r3, fp, #728
	mov	r1, #20
	mov	r0, r3
	bl	getarray
	ldr	r0, .L16+12
	bl	printf
	sub	r3, fp, #708
	mov	r1, #100
	mov	r0, r3
	bl	getarray
	b	.L6
.L13:
	mov	r3, #0
	str	r3, [fp, #-748]
	ldr	r3, [fp, #-752]
	str	r3, [fp, #-744]
	b	.L7
.L9:
	ldr	r3, [fp, #-744]
	add	r3, r3, #1
	str	r3, [fp, #-744]
	ldr	r3, [fp, #-748]
	add	r3, r3, #1
	str	r3, [fp, #-748]
.L7:
	sub	r2, fp, #608
	ldr	r3, [fp, #-744]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #728
	ldr	r3, [fp, #-748]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L8
	sub	r2, fp, #728
	ldr	r3, [fp, #-748]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
.L8:
	sub	r2, fp, #728
	ldr	r3, [fp, #-748]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-744]
	str	r3, [fp, #-736]
	b	.L11
.L12:
	sub	r2, fp, #708
	ldr	r3, [fp, #-732]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #408
	ldr	r3, [fp, #-740]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-732]
	add	r3, r3, #1
	str	r3, [fp, #-732]
	ldr	r3, [fp, #-740]
	add	r3, r3, #1
	str	r3, [fp, #-740]
.L11:
	sub	r2, fp, #708
	ldr	r3, [fp, #-732]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L10:
	sub	r2, fp, #608
	ldr	r3, [fp, #-736]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #408
	ldr	r3, [fp, #-740]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-752]
	add	r3, r3, #1
	str	r3, [fp, #-752]
	ldr	r3, [fp, #-736]
	add	r3, r3, #1
	str	r3, [fp, #-736]
	ldr	r3, [fp, #-740]
	add	r3, r3, #1
	str	r3, [fp, #-740]
.L6:
	sub	r2, fp, #608
	ldr	r3, [fp, #-752]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	sub	r2, fp, #408
	ldr	r3, [fp, #-740]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L16+16
	bl	printf
	sub	r3, fp, #408
	mov	r0, r3
	bl	puts
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
