	.file	"899157.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Id of parent before process creation: %d.\nGoing to greate  a process using vfork(), and initial value of variable before process creation : %d\n"
	.align 8
.LC1:
	.string	"V-Fork: I am the Child with Process-ID: %d, and Parent process-ID: %d\n"
.LC2:
	.string	"\t\tvalue of variable: %d\n"
	.align 8
.LC3:
	.string	"V-Fork: I am the Parent, with Process-ID = %d, and child process ID : %d\n"
	.align 8
.LC4:
	.string	"Going to create a process using fork(), and initial value of varible is %d\n"
	.align 8
.LC5:
	.string	"Fork: I am Child process with Process-ID = %d, and parent process Id : %d\n"
.LC6:
	.string	"\t\tValue of variable_2: %d\n"
	.align 8
.LC7:
	.string	"Fork: I am Parent process with Process-ID = %d, and child process Id : %d\n"
.LC8:
	.string	"\t\tValue of variable_: %d\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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], 10
	call	getpid@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	vfork@PLT
	endbr64
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L7
	add	DWORD PTR -36[rbp], 1
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	add	DWORD PTR -36[rbp], 2
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 10
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L4
	add	DWORD PTR -24[rbp], 1
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	mov	edi, 0
	call	wait@PLT
	add	DWORD PTR -24[rbp], 2
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	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	"899157.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Id of parent before process creation: %d.\012Going "
	.ascii	"to greate  a process using vfork(), and initial val"
	.ascii	"ue of variable before process creation : %d\012\000"
	.align	2
.LC1:
	.ascii	"V-Fork: I am the Child with Process-ID: %d, and Par"
	.ascii	"ent process-ID: %d\012\000"
	.align	2
.LC2:
	.ascii	"\011\011value of variable: %d\012\000"
	.align	2
.LC3:
	.ascii	"V-Fork: I am the Parent, with Process-ID = %d, and "
	.ascii	"child process ID : %d\012\000"
	.align	2
.LC4:
	.ascii	"Going to create a process using fork(), and initial"
	.ascii	" value of varible is %d\012\000"
	.align	2
.LC5:
	.ascii	"Fork: I am Child process with Process-ID = %d, and "
	.ascii	"parent process Id : %d\012\000"
	.align	2
.LC6:
	.ascii	"\011\011Value of variable_2: %d\012\000"
	.align	2
.LC7:
	.ascii	"Fork: I am Parent process with Process-ID = %d, and"
	.ascii	" child process Id : %d\012\000"
	.align	2
.LC8:
	.ascii	"\011\011Value of variable_: %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r3, #10
	str	r3, [fp, #-32]
	bl	getpid
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, .L8
	bl	printf
	bl	vfork
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L8+4
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r0, .L8+8
	bl	printf
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L8+12
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r0, .L8+8
	bl	printf
	mov	r3, #10
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+16
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L8+20
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+24
	bl	printf
	b	.L5
.L4:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L8+28
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+32
	bl	printf
.L5:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
