	.file	"140766242.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nProcess Name:         %s\n"
.LC1:
	.string	"Process ID:           %d\n"
.LC2:
	.string	"Parent Process ID:    %d\n"
	.text
	.globl	printProcessDetails
	.type	printProcessDetails, @function
printProcessDetails:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edi, 0
	call	wait@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printProcessDetails, .-printProcessDetails
	.section	.rodata
.LC3:
	.string	"Fork Failure\n"
	.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	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	call	fork@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jne	.L3
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L4
	call	getppid@PLT
	mov	r13d, eax
	call	getpid@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR [rax]
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	movabs	rdx, 7811889666163879200
	movabs	rcx, 8315161617319862372
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 16[rax], 3285107
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, rbx
	call	printProcessDetails
	jmp	.L5
.L4:
	call	getppid@PLT
	mov	r13d, eax
	call	getpid@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR [rax]
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	movabs	rsi, 7811889666163879200
	movabs	rdi, 8315161617319862372
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	DWORD PTR 16[rax], 3219571
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, rbx
	call	printProcessDetails
	jmp	.L5
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
.L5:
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, ebx
	mov	esi, ecx
	mov	rdi, rax
	call	printProcessDetails
	mov	eax, 0
	add	rsp, 40
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.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	"140766242.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Process Name:         %s\012\000"
	.align	2
.LC1:
	.ascii	"Process ID:           %d\012\000"
	.align	2
.LC2:
	.ascii	"Parent Process ID:    %d\012\000"
	.text
	.align	2
	.global	printProcessDetails
	.syntax unified
	.arm
	.fpu softvfp
	.type	printProcessDetails, %function
printProcessDetails:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r0, #0
	bl	wait
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L2+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+12
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	printProcessDetails, .-printProcessDetails
	.section	.rodata
	.align	2
.LC3:
	.ascii	" -> Child Process 2\000"
	.align	2
.LC4:
	.ascii	" -> Child Process 1\000"
	.align	2
.LC5:
	.ascii	"Fork Failure\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-28]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L9
	mov	r0, r3
	mov	r1, r2
	mov	r3, #20
	mov	r2, r3
	bl	memcpy
	bl	getpid
	mov	r5, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	printProcessDetails
	b	.L7
.L6:
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L9+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #20
	mov	r2, r3
	bl	memcpy
	bl	getpid
	mov	r5, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	printProcessDetails
	b	.L7
.L5:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L9+12
	bl	fwrite
.L7:
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	bl	getpid
	mov	r5, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	printProcessDetails
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
