	.file	"132529.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"childFunc(): PID  = %ld\n"
.LC1:
	.string	"childFunc(): PPID = %ld\n"
.LC2:
	.string	"proc"
.LC3:
	.string	"mount"
.LC4:
	.string	"Mounting procfs at %s\n"
.LC5:
	.string	"600"
.LC6:
	.string	"sleep"
.LC7:
	.string	"execlp"
	.text
	.type	childFunc, @function
childFunc:
.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
	call	getpid@PLT
	cdqe
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	getppid@PLT
	cdqe
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 365
	mov	rdi, rax
	call	mkdir@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC2[rip]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	mount@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	ecx, 0
	lea	rdx, .LC5[rip]
	lea	rsi, .LC6[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	childFunc, .-childFunc
	.section	.rodata
.LC8:
	.string	"mmap"
.LC9:
	.string	"clone"
.LC10:
	.string	"PID returned by clone(): %ld\n"
.LC11:
	.string	"waitpid"
	.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
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 131106
	mov	edx, 3
	mov	esi, 1048576
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L5
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, 1048576[rdx]
	mov	rcx, rax
	mov	edx, 536870929
	lea	rdi, childFunc[rip]
	mov	eax, 0
	call	clone@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L6
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	edi, 0
	call	exit@PLT
	.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	"132529.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"childFunc(): PID  = %ld\012\000"
	.align	2
.LC1:
	.ascii	"childFunc(): PPID = %ld\012\000"
	.align	2
.LC2:
	.ascii	"proc\000"
	.align	2
.LC3:
	.ascii	"mount\000"
	.align	2
.LC4:
	.ascii	"Mounting procfs at %s\012\000"
	.align	2
.LC5:
	.ascii	"600\000"
	.align	2
.LC6:
	.ascii	"sleep\000"
	.align	2
.LC7:
	.ascii	"execlp\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	childFunc, %function
childFunc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	bl	getppid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L4+4
	bl	printf
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r1, .L4+8
	ldr	r0, [fp, #-8]
	bl	mkdir
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L4+12
	ldr	r1, [fp, #-8]
	ldr	r0, .L4+12
	bl	mount
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L4+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r1, [fp, #-8]
	ldr	r0, .L4+20
	bl	printf
.L2:
	mov	r3, #0
	ldr	r2, .L4+24
	ldr	r1, .L4+28
	ldr	r0, .L4+28
	bl	execlp
	ldr	r0, .L4+32
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	365
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	childFunc, .-childFunc
	.section	.rodata
	.align	2
.LC8:
	.ascii	"mmap\000"
	.align	2
.LC9:
	.ascii	"clone\000"
	.align	2
.LC10:
	.ascii	"PID returned by clone(): %ld\012\000"
	.align	2
.LC11:
	.ascii	"waitpid\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, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	ldr	r3, .L10
	mov	r2, #3
	mov	r1, #1048576
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L10+4
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-12]
	add	r1, r3, #1048576
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L10+8
	ldr	r0, .L10+12
	bl	clone
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L10+16
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r1, [fp, #-8]
	ldr	r0, .L10+20
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	waitpid
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L10+24
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	131106
	.word	.LC8
	.word	536870929
	.word	childFunc
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
