	.file	"377329.c"
	.intel_syntax noprefix
	.text
	.local	container_stack
	.comm	container_stack,1048576,32
	.globl	container_args
	.section	.rodata
.LC0:
	.string	"/bin/bash"
.LC1:
	.string	"-l"
	.section	.data.rel.ro.local,"aw"
	.align 16
	.type	container_args, @object
	.size	container_args, 24
container_args:
	.quad	.LC0
	.quad	.LC1
	.quad	0
	.section	.rodata
	.align 8
.LC2:
	.string	"Container [%5d] - inside the container!\n"
.LC3:
	.string	"container"
.LC4:
	.string	"proc"
.LC5:
	.string	"rootfs/proc"
.LC6:
	.string	"sysfs"
.LC7:
	.string	"rootfs/sys"
.LC8:
	.string	"sys"
.LC9:
	.string	"tmpfs"
.LC10:
	.string	"rootfs/tmp"
.LC11:
	.string	"none"
.LC12:
	.string	"tmp"
.LC13:
	.string	"devtmpfs"
.LC14:
	.string	"rootfs/dev"
.LC15:
	.string	"udev"
.LC16:
	.string	"dev"
.LC17:
	.string	"devpts"
.LC18:
	.string	"rootfs/dev/pts"
.LC19:
	.string	"dev/pts"
.LC20:
	.string	"rootfs/dev/shm"
.LC21:
	.string	"shm"
.LC22:
	.string	"dev/shm"
.LC23:
	.string	"rootfs/run"
.LC24:
	.string	"run"
.LC25:
	.string	"rootfs/etc/hosts"
.LC26:
	.string	"conf/hosts"
.LC27:
	.string	"rootfs/etc/hostname"
.LC28:
	.string	"conf/hostname"
.LC29:
	.string	"rootfs/etc/resolv.conf"
.LC30:
	.string	"conf/resolv.conf"
.LC31:
	.string	"conf"
.LC32:
	.string	"rootfs/mnt"
.LC33:
	.string	"/tmp/t1"
.LC34:
	.string	"mnt"
.LC35:
	.string	"./rootfs"
.LC36:
	.string	"./"
.LC37:
	.string	"chdir/chroot"
.LC38:
	.string	"exec"
.LC39:
	.string	"Something's wrong!"
	.text
	.globl	container_main
	.type	container_main, @function
container_main:
.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
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 10
	lea	rdi, .LC3[rip]
	call	sethostname@PLT
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	lea	rdi, .LC4[rip]
	call	mount@PLT
	test	eax, eax
	je	.L2
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L2:
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC6[rip]
	lea	rsi, .LC7[rip]
	lea	rdi, .LC6[rip]
	call	mount@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC8[rip]
	call	perror@PLT
.L3:
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC9[rip]
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	mount@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC12[rip]
	call	perror@PLT
.L4:
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC13[rip]
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	mount@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC16[rip]
	call	perror@PLT
.L5:
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC17[rip]
	lea	rsi, .LC18[rip]
	lea	rdi, .LC17[rip]
	call	mount@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC19[rip]
	call	perror@PLT
.L6:
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC9[rip]
	lea	rsi, .LC20[rip]
	lea	rdi, .LC21[rip]
	call	mount@PLT
	test	eax, eax
	je	.L7
	lea	rdi, .LC22[rip]
	call	perror@PLT
.L7:
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC9[rip]
	lea	rsi, .LC23[rip]
	lea	rdi, .LC9[rip]
	call	mount@PLT
	test	eax, eax
	je	.L8
	lea	rdi, .LC24[rip]
	call	perror@PLT
.L8:
	mov	r8d, 0
	mov	ecx, 4096
	lea	rdx, .LC11[rip]
	lea	rsi, .LC25[rip]
	lea	rdi, .LC26[rip]
	call	mount@PLT
	test	eax, eax
	jne	.L9
	mov	r8d, 0
	mov	ecx, 4096
	lea	rdx, .LC11[rip]
	lea	rsi, .LC27[rip]
	lea	rdi, .LC28[rip]
	call	mount@PLT
	test	eax, eax
	jne	.L9
	mov	r8d, 0
	mov	ecx, 4096
	lea	rdx, .LC11[rip]
	lea	rsi, .LC29[rip]
	lea	rdi, .LC30[rip]
	call	mount@PLT
	test	eax, eax
	je	.L10
.L9:
	lea	rdi, .LC31[rip]
	call	perror@PLT
.L10:
	mov	r8d, 0
	mov	ecx, 4096
	lea	rdx, .LC11[rip]
	lea	rsi, .LC32[rip]
	lea	rdi, .LC33[rip]
	call	mount@PLT
	test	eax, eax
	je	.L11
	lea	rdi, .LC34[rip]
	call	perror@PLT
.L11:
	lea	rdi, .LC35[rip]
	call	chdir@PLT
	test	eax, eax
	jne	.L12
	lea	rdi, .LC36[rip]
	call	chroot@PLT
	test	eax, eax
	je	.L13
.L12:
	lea	rdi, .LC37[rip]
	call	perror@PLT
.L13:
	lea	rax, .LC0[rip]
	lea	rsi, container_args[rip]
	mov	rdi, rax
	call	execv@PLT
	lea	rdi, .LC38[rip]
	call	perror@PLT
	lea	rdi, .LC39[rip]
	call	puts@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	container_main, .-container_main
	.section	.rodata
	.align 8
.LC40:
	.string	"Parent [%5d] - start a container!\n"
.LC41:
	.string	"Parent - container stopped!"
	.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, 16
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, container_stack[rip+1048576]
	mov	ecx, 0
	mov	edx, 738328593
	mov	rsi, rax
	lea	rdi, container_main[rip]
	mov	eax, 0
	call	clone@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	lea	rdi, .LC41[rip]
	call	puts@PLT
	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	"377329.c"
	.text
	.local	container_stack
	.comm	container_stack,1048576,4
	.global	container_args
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/bin/bash\000"
	.align	2
.LC1:
	.ascii	"-l\000"
	.align	2
	.type	container_args, %object
	.size	container_args, 12
container_args:
	.word	.LC0
	.word	.LC1
	.word	0
	.align	2
.LC2:
	.ascii	"Container [%5d] - inside the container!\012\000"
	.align	2
.LC3:
	.ascii	"container\000"
	.align	2
.LC4:
	.ascii	"proc\000"
	.align	2
.LC5:
	.ascii	"rootfs/proc\000"
	.align	2
.LC6:
	.ascii	"sysfs\000"
	.align	2
.LC7:
	.ascii	"rootfs/sys\000"
	.align	2
.LC8:
	.ascii	"sys\000"
	.align	2
.LC9:
	.ascii	"tmpfs\000"
	.align	2
.LC10:
	.ascii	"rootfs/tmp\000"
	.align	2
.LC11:
	.ascii	"none\000"
	.align	2
.LC12:
	.ascii	"tmp\000"
	.align	2
.LC13:
	.ascii	"devtmpfs\000"
	.align	2
.LC14:
	.ascii	"rootfs/dev\000"
	.align	2
.LC15:
	.ascii	"udev\000"
	.align	2
.LC16:
	.ascii	"dev\000"
	.align	2
.LC17:
	.ascii	"devpts\000"
	.align	2
.LC18:
	.ascii	"rootfs/dev/pts\000"
	.align	2
.LC19:
	.ascii	"dev/pts\000"
	.align	2
.LC20:
	.ascii	"rootfs/dev/shm\000"
	.align	2
.LC21:
	.ascii	"shm\000"
	.align	2
.LC22:
	.ascii	"dev/shm\000"
	.align	2
.LC23:
	.ascii	"rootfs/run\000"
	.align	2
.LC24:
	.ascii	"run\000"
	.align	2
.LC25:
	.ascii	"rootfs/etc/hosts\000"
	.align	2
.LC26:
	.ascii	"conf/hosts\000"
	.align	2
.LC27:
	.ascii	"rootfs/etc/hostname\000"
	.align	2
.LC28:
	.ascii	"conf/hostname\000"
	.align	2
.LC29:
	.ascii	"rootfs/etc/resolv.conf\000"
	.align	2
.LC30:
	.ascii	"conf/resolv.conf\000"
	.align	2
.LC31:
	.ascii	"conf\000"
	.align	2
.LC32:
	.ascii	"rootfs/mnt\000"
	.align	2
.LC33:
	.ascii	"/tmp/t1\000"
	.align	2
.LC34:
	.ascii	"mnt\000"
	.align	2
.LC35:
	.ascii	"./rootfs\000"
	.align	2
.LC36:
	.ascii	"./\000"
	.align	2
.LC37:
	.ascii	"chdir/chroot\000"
	.align	2
.LC38:
	.ascii	"exec\000"
	.align	2
.LC39:
	.ascii	"Something's wrong!\000"
	.text
	.align	2
	.global	container_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	container_main, %function
container_main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15
	bl	printf
	mov	r1, #10
	ldr	r0, .L15+4
	bl	sethostname
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15+8
	ldr	r1, .L15+12
	ldr	r0, .L15+8
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L15+8
	bl	perror
.L2:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15+16
	ldr	r1, .L15+20
	ldr	r0, .L15+16
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L15+24
	bl	perror
.L3:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15+28
	ldr	r1, .L15+32
	ldr	r0, .L15+36
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L15+40
	bl	perror
.L4:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15+44
	ldr	r1, .L15+48
	ldr	r0, .L15+52
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L15+56
	bl	perror
.L5:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15+60
	ldr	r1, .L15+64
	ldr	r0, .L15+60
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L15+68
	bl	perror
.L6:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15+28
	ldr	r1, .L15+72
	ldr	r0, .L15+76
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L15+80
	bl	perror
.L7:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15+28
	ldr	r1, .L15+84
	ldr	r0, .L15+28
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L15+88
	bl	perror
.L8:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #4096
	ldr	r2, .L15+36
	ldr	r1, .L15+92
	ldr	r0, .L15+96
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #4096
	ldr	r2, .L15+36
	ldr	r1, .L15+100
	ldr	r0, .L15+104
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #4096
	ldr	r2, .L15+36
	ldr	r1, .L15+108
	ldr	r0, .L15+112
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r0, .L15+116
	bl	perror
.L10:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #4096
	ldr	r2, .L15+36
	ldr	r1, .L15+120
	ldr	r0, .L15+124
	bl	mount
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L15+128
	bl	perror
.L11:
	ldr	r0, .L15+132
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L15+136
	bl	chroot
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
.L12:
	ldr	r0, .L15+140
	bl	perror
.L13:
	ldr	r3, .L15+144
	ldr	r1, .L15+148
	mov	r0, r3
	bl	execv
	ldr	r0, .L15+152
	bl	perror
	ldr	r0, .L15+156
	bl	puts
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC0
	.word	container_args
	.word	.LC38
	.word	.LC39
	.size	container_main, .-container_main
	.section	.rodata
	.align	2
.LC40:
	.ascii	"Parent [%5d] - start a container!\012\000"
	.align	2
.LC41:
	.ascii	"Parent - container stopped!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L19
	bl	printf
	ldr	r1, .L19+4
	mov	r3, #0
	ldr	r2, .L19+8
	ldr	r0, .L19+12
	bl	clone
	str	r0, [fp, #-8]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	waitpid
	ldr	r0, .L19+16
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC40
	.word	container_stack+1048576
	.word	738328593
	.word	container_main
	.word	.LC41
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
