	.file	"1169509.c"
	.intel_syntax noprefix
	.text
	.type	child_func, @function
child_func:
.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4104[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 4096[rax]
	mov	esi, edx
	mov	rdi, rax
	call	longjmp@PLT
	.cfi_endproc
.LFE0:
	.size	child_func, .-child_func
	.type	clone_parent, @function
clone_parent:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	QWORD PTR -4136[rbp], rdi
	mov	DWORD PTR -4140[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -4128[rbp]
	mov	eax, 0
	mov	ecx, 514
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -4136[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -4140[rbp]
	mov	DWORD PTR -24[rbp], eax
	lea	rax, -4128[rbp]
	lea	rdx, -4128[rbp]
	lea	rsi, 4096[rdx]
	mov	rcx, rax
	mov	edx, 0
	lea	rdi, child_func[rip]
	mov	eax, 0
	call	clone@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	clone_parent, .-clone_parent
	.section	.rodata
.LC0:
	.string	"parent: pid = %d, ppid = %d\n"
.LC1:
	.string	"child: pid = %d, ppid = %d\n"
.LC2:
	.string	"init: pid = %d, ppid = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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, 232
	.cfi_offset 3, -24
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	_setjmp@PLT
	endbr64
	cmp	eax, 161
	je	.L7
	cmp	eax, 161
	jg	.L14
	test	eax, eax
	je	.L9
	cmp	eax, 160
	je	.L10
	jmp	.L14
.L9:
	mov	eax, 0
	call	getppid@PLT
	mov	ebx, eax
	mov	eax, 0
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	esi, 160
	mov	rdi, rax
	call	clone_parent
	mov	edi, 3
	mov	eax, 0
	call	sleep@PLT
	jmp	.L11
.L10:
	mov	eax, 0
	call	getppid@PLT
	mov	ebx, eax
	mov	eax, 0
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	esi, 161
	mov	rdi, rax
	call	clone_parent
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	jmp	.L11
.L7:
	mov	eax, 0
	call	getppid@PLT
	mov	ebx, eax
	mov	eax, 0
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L14:
	nop
.L11:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"1169509.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_func, %function
child_func:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4096
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4096
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	longjmp
	.size	child_func, .-child_func
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clone_parent, %function
clone_parent:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	sub	r3, fp, #12
	sub	r3, r3, #4096
	sub	r3, r3, #32
	add	r3, r3, #15
	lsr	r3, r3, #4
	lsl	r4, r3, #4
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, r4
	ldr	r3, .L5+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	add	r3, r4, #4096
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	str	r3, [r2]
	add	r3, r4, #4096
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	str	r3, [r2, #4]
	add	r1, r4, #4096
	mov	r3, r4
	mov	r2, #0
	ldr	r0, .L5+8
	bl	clone
	mov	r3, r0
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	4112
	.word	child_func
	.size	clone_parent, .-clone_parent
	.section	.rodata
	.align	2
.LC1:
	.ascii	"parent: pid = %d, ppid = %d\012\000"
	.align	2
.LC2:
	.ascii	"child: pid = %d, ppid = %d\012\000"
	.align	2
.LC3:
	.ascii	"init: pid = %d, ppid = %d\012\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 = 408
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #412
	str	r0, [fp, #-416]
	str	r1, [fp, #-420]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #412
	mov	r0, r3
	bl	_setjmp
	mov	r3, r0
	cmp	r3, #161
	beq	.L9
	cmp	r3, #161
	bgt	.L16
	cmp	r3, #0
	beq	.L11
	cmp	r3, #160
	beq	.L12
	b	.L16
.L11:
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17+4
	bl	printf
	sub	r3, fp, #412
	mov	r1, #160
	mov	r0, r3
	bl	clone_parent
	mov	r0, #3
	bl	sleep
	b	.L13
.L12:
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17+8
	bl	printf
	sub	r3, fp, #412
	mov	r1, #161
	mov	r0, r3
	bl	clone_parent
	mov	r0, #1
	bl	sleep
	b	.L13
.L9:
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17+12
	bl	printf
	b	.L13
.L16:
	nop
.L13:
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.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
