	.file	"49471.c"
	.intel_syntax noprefix
	.text
	.globl	errExit
	.type	errExit, @function
errExit:
.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	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	errExit, .-errExit
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: init <root> <program> [ARGS...]"
.LC1:
	.string	"cgroup_init: unshare"
.LC2:
	.string	"unshare failed"
.LC3:
	.string	"cgroup_init: chroot"
.LC4:
	.string	"chroot failed"
.LC5:
	.string	"cgroup_init: chdir"
.LC6:
	.string	"/"
.LC7:
	.string	"chdir failed"
.LC8:
	.string	"cgroup_init: execve"
.LC9:
	.string	"cgroup_init: failed"
.LC10:
	.string	"failed to do execve"
	.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
	jg	.L3
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 2080505856
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	unshare@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L4
	lea	rdi, .LC2[rip]
	call	errExit
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chroot@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	lea	rdi, .LC4[rip]
	call	errExit
.L5:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	chdir@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L6
	lea	rdi, .LC7[rip]
	call	errExit
.L6:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR environ[rip]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	execve@PLT
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	cmp	DWORD PTR -4[rbp], 0
	je	.L7
	lea	rdi, .LC10[rip]
	call	errExit
.L7:
	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	"49471.c"
	.text
	.align	2
	.global	errExit
	.syntax unified
	.arm
	.fpu softvfp
	.type	errExit, %function
errExit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	errExit, .-errExit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: init <root> <program> [ARGS...]\000"
	.align	2
.LC1:
	.ascii	"cgroup_init: unshare\000"
	.align	2
.LC2:
	.ascii	"unshare failed\000"
	.align	2
.LC3:
	.ascii	"cgroup_init: chroot\000"
	.align	2
.LC4:
	.ascii	"chroot failed\000"
	.align	2
.LC5:
	.ascii	"cgroup_init: chdir\000"
	.align	2
.LC6:
	.ascii	"/\000"
	.align	2
.LC7:
	.ascii	"chdir failed\000"
	.align	2
.LC8:
	.ascii	"cgroup_init: execve\000"
	.align	2
.LC9:
	.ascii	"cgroup_init: failed\000"
	.align	2
.LC10:
	.ascii	"failed to do execve\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
	bgt	.L3
	ldr	r0, .L9
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, .L9+4
	bl	puts
	ldr	r3, .L9+8
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	unshare
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L9+12
	bl	errExit
.L4:
	ldr	r0, .L9+16
	bl	puts
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chroot
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L9+20
	bl	errExit
.L5:
	ldr	r0, .L9+24
	bl	puts
	ldr	r0, .L9+28
	bl	chdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L9+32
	bl	errExit
.L6:
	ldr	r0, .L9+36
	bl	puts
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r2, .L9+40
	ldr	r2, [r2]
	mov	r1, r3
	bl	execve
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, .L9+44
	bl	puts
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L9+48
	bl	errExit
.L7:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	2080505856
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	environ
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
