	.file	"457163.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"I am process %d; my process pid is %d\nmy parent's pid is %d\n"
.LC1:
	.string	"error around id%d\n"
	.text
	.globl	create_tree
	.type	create_tree, @function
create_tree:
.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], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L2
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jge	.L3
	mov	eax, DWORD PTR -40[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	edi, ecx
	call	create_tree
	mov	eax, DWORD PTR -40[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	edi, ecx
	call	create_tree
.L3:
	mov	edi, 0
	call	exit@PLT
.L2:
	cmp	DWORD PTR -28[rbp], -1
	jne	.L4
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L4:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
.L7:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_tree, .-create_tree
	.section	.rodata
.LC2:
	.string	"Invalid Parameters"
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L9
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	esi, 0
	mov	edi, 1
	call	create_tree
	mov	eax, 0
	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	"457163.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"I am process %d; my process pid is %d\012my parent'"
	.ascii	"s pid is %d\012\000"
	.align	2
.LC1:
	.ascii	"error around id%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_tree, %function
create_tree:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r4
	ldr	r1, [fp, #-32]
	ldr	r0, .L8+4
	bl	printf
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L3
	ldr	r3, [fp, #-32]
	lsl	r0, r3, #1
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	mov	r1, r3
	bl	create_tree
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	add	r0, r3, #1
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	mov	r1, r3
	bl	create_tree
.L3:
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L4
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+8
	bl	printf
	b	.L7
.L4:
	sub	r3, fp, #24
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	waitpid
.L7:
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	create_tree, .-create_tree
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Invalid Parameters\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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L11
	ldr	r0, .L13
	bl	printf
.L11:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r1, #0
	mov	r0, #1
	bl	create_tree
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
