	.file	"785689.c"
	.intel_syntax noprefix
	.text
	.globl	twice
	.type	twice, @function
twice:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	sal	QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	twice, .-twice
	.section	.rodata
.LC0:
	.string	"Child id = %d ,Parent id= %d"
.LC1:
	.string	",Process Name= twice"
.LC2:
	.string	"Insufficient Arguments"
.LC3:
	.string	"twice"
.LC4:
	.string	"%llu"
.LC5:
	.string	"%d"
.LC6:
	.string	"./twice"
	.align 8
.LC7:
	.string	"\nThis statement is not executed if execvp succeeds."
.LC8:
	.string	"square"
.LC9:
	.string	"./square"
.LC10:
	.string	"half"
.LC11:
	.string	"./half"
	.align 8
.LC12:
	.string	"Error! No such %s Process Exist"
.LC13:
	.string	"\nFinal Result is %llu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 328
	.cfi_offset 3, -24
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -312[rbp], 0
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -296[rbp], 0
	cmp	DWORD PTR -324[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	twice
	mov	QWORD PTR -296[rbp], rax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -304[rbp], eax
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -304[rbp]
	mov	DWORD PTR -308[rbp], eax
	jmp	.L6
.L4:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR -308[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 32
	jne	.L7
	mov	eax, DWORD PTR -312[rbp]
	cdqe
	mov	BYTE PTR -240[rbp+rax], 0
	lea	rax, -240[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	movabs	rcx, 28538277274595118
	mov	QWORD PTR [rax], rcx
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -308[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -300[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -248[rbp], 0
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	execvp@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	lea	rax, -240[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	movabs	rcx, 7310012302218178350
	mov	QWORD PTR [rax], rcx
	mov	BYTE PTR 8[rax], 0
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -308[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -300[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -248[rbp], 0
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	call	execvp@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	lea	rax, -240[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	DWORD PTR [rax], 1634217774
	mov	WORD PTR 4[rax], 26220
	mov	BYTE PTR 6[rax], 0
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -308[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -300[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -248[rbp], 0
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	execvp@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L9
.L11:
	lea	rax, -240[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L9
	lea	rax, -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -308[rbp]
	cdqe
	movzx	edx, BYTE PTR -128[rbp+rax]
	mov	eax, DWORD PTR -312[rbp]
	cdqe
	mov	BYTE PTR -240[rbp+rax], dl
	add	DWORD PTR -312[rbp], 1
.L9:
	add	DWORD PTR -308[rbp], 1
.L6:
	mov	eax, DWORD PTR -308[rbp]
	cmp	eax, DWORD PTR -300[rbp]
	jle	.L12
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"785689.c"
	.text
	.align	2
	.global	twice
	.syntax unified
	.arm
	.fpu softvfp
	.type	twice, %function
twice:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r4, r2, r2
	adc	r5, r3, r3
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	twice, .-twice
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Child id = %d ,Parent id= %d\000"
	.align	2
.LC1:
	.ascii	",Process Name= twice\000"
	.align	2
.LC2:
	.ascii	"Insufficient Arguments\000"
	.align	2
.LC3:
	.ascii	"twice\000"
	.align	2
.LC4:
	.ascii	"./twice\000"
	.align	2
.LC5:
	.ascii	"%llu\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"\012This statement is not executed if execvp succee"
	.ascii	"ds.\000"
	.align	2
.LC8:
	.ascii	"square\000"
	.align	2
.LC9:
	.ascii	"./square\000"
	.align	2
.LC10:
	.ascii	"half\000"
	.align	2
.LC11:
	.ascii	"./half\000"
	.align	2
.LC12:
	.ascii	"Error! No such %s Process Exist\000"
	.align	2
.LC13:
	.ascii	"\012Final Result is %llu\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 = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #268
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-268]
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L15+4
	bl	printf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-252]
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-272]
	cmp	r3, #1
	ble	.L4
	ldr	r3, [fp, #-276]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	twice
	str	r0, [fp, #-252]
	str	r1, [fp, #-248]
	ldr	r0, .L15+8
	bl	puts
	ldr	r3, [fp, #-276]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-260]
	ldr	r3, [fp, #-276]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-256]
	ldr	r3, [fp, #-276]
	add	r3, r3, #16
	ldr	r2, [r3]
	sub	r3, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-260]
	str	r3, [fp, #-264]
	b	.L6
.L4:
	ldr	r0, .L15+12
	bl	printf
	mov	r0, #0
	bl	exit
.L12:
	sub	r2, fp, #116
	ldr	r3, [fp, #-264]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L7
	sub	r2, fp, #216
	ldr	r3, [fp, #-268]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #216
	ldr	r1, .L15+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-240]
	ldr	r3, [fp, #-240]
	ldr	r2, .L15+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-236]
	ldr	r0, [fp, #-236]
	sub	r3, fp, #252
	ldmia	r3, {r2-r3}
	ldr	r1, .L15+24
	bl	sprintf
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-232]
	ldr	r2, [fp, #-264]
	ldr	r1, .L15+28
	mov	r0, r3
	bl	sprintf
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-228]
	ldr	r2, [fp, #-256]
	ldr	r1, .L15+28
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-256]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-224]
	sub	r2, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-220]
	sub	r3, fp, #240
	mov	r1, r3
	ldr	r0, .L15+20
	bl	execvp
	ldr	r0, .L15+32
	bl	puts
	b	.L9
.L8:
	sub	r3, fp, #216
	ldr	r1, .L15+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-240]
	ldr	r3, [fp, #-240]
	ldr	r2, .L15+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-236]
	ldr	r0, [fp, #-236]
	sub	r3, fp, #252
	ldmia	r3, {r2-r3}
	ldr	r1, .L15+24
	bl	sprintf
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-232]
	ldr	r2, [fp, #-264]
	ldr	r1, .L15+28
	mov	r0, r3
	bl	sprintf
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-228]
	ldr	r2, [fp, #-256]
	ldr	r1, .L15+28
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-256]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-224]
	sub	r2, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-220]
	sub	r3, fp, #240
	mov	r1, r3
	ldr	r0, .L15+40
	bl	execvp
	ldr	r0, .L15+32
	bl	puts
	b	.L9
.L10:
	sub	r3, fp, #216
	ldr	r1, .L15+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-240]
	ldr	r3, [fp, #-240]
	ldr	r2, .L15+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-236]
	ldr	r0, [fp, #-236]
	sub	r3, fp, #252
	ldmia	r3, {r2-r3}
	ldr	r1, .L15+24
	bl	sprintf
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-232]
	ldr	r2, [fp, #-264]
	ldr	r1, .L15+28
	mov	r0, r3
	bl	sprintf
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-228]
	ldr	r2, [fp, #-256]
	ldr	r1, .L15+28
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-256]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-224]
	sub	r2, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-220]
	sub	r3, fp, #240
	mov	r1, r3
	ldr	r0, .L15+48
	bl	execvp
	ldr	r0, .L15+32
	bl	puts
	b	.L9
.L11:
	sub	r3, fp, #216
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #216
	mov	r1, r3
	ldr	r0, .L15+52
	bl	printf
	mov	r0, #0
	bl	exit
.L7:
	sub	r2, fp, #116
	ldr	r3, [fp, #-264]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #216
	ldr	r3, [fp, #-268]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-268]
	add	r3, r3, #1
	str	r3, [fp, #-268]
.L9:
	ldr	r3, [fp, #-264]
	add	r3, r3, #1
	str	r3, [fp, #-264]
.L6:
	ldr	r2, [fp, #-264]
	ldr	r3, [fp, #-256]
	cmp	r2, r3
	ble	.L12
	sub	r3, fp, #252
	ldmia	r3, {r2-r3}
	ldr	r0, .L15+56
	bl	printf
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.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
