	.file	"127632.c"
	.intel_syntax noprefix
	.text
	.local	errornum
	.comm	errornum,4,4
	.section	.rodata
.LC0:
	.string	"/proc/%i/%s"
.LC1:
	.string	"path overflow\n"
.LC2:
	.string	"unable to open \"%s\"\n"
	.text
	.type	openpidfd, @function
openpidfd:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	DWORD PTR -4132[rbp], edi
	mov	QWORD PTR -4144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	rcx, QWORD PTR -4144[rbp]
	mov	edx, DWORD PTR -4132[rbp]
	lea	rax, -4112[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	eax, 4096
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	lea	rax, -4112[rbp]
	mov	esi, 524288
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4116[rbp], eax
	cmp	DWORD PTR -4116[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -4112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -4116[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	openpidfd, .-openpidfd
	.section	.rodata
	.align 8
.LC3:
	.string	"Usage: %s imageid cmd [args...]\n"
.LC4:
	.string	"r"
.LC5:
	.string	"pid"
.LC6:
	.string	"unable to open pid file\n"
.LC7:
	.string	"%i"
.LC8:
	.string	"unable to read pid\n"
.LC9:
	.string	"root"
.LC10:
	.string	"ns/ipc"
	.align 8
.LC11:
	.string	"unable to enter ns/ipc namespace\n"
.LC12:
	.string	"ns/uts"
	.align 8
.LC13:
	.string	"unable to enter ns/uts namespace\n"
.LC14:
	.string	"ns/net"
	.align 8
.LC15:
	.string	"unable to enter ns/net namespace\n"
.LC16:
	.string	"ns/pid"
	.align 8
.LC17:
	.string	"unable to enter ns/pid namespace\n"
.LC18:
	.string	"ns/mnt"
	.align 8
.LC19:
	.string	"unable to enter ns/mnt namespace\n"
	.align 8
.LC20:
	.string	"unable to chdir to container root\n"
.LC21:
	.string	"."
.LC22:
	.string	"unable to chroot\n"
.LC23:
	.string	"unable to close root_fd\n"
.LC24:
	.string	"unable to fork\n"
.LC25:
	.string	"/opt/stage2/%s/rootfs"
.LC26:
	.string	"root path overflow\n"
.LC27:
	.string	"/rkt/env/%s"
.LC28:
	.string	"env path overflow\n"
.LC29:
	.string	"/diagexec"
.LC30:
	.string	"/"
.LC31:
	.string	"exec failed\n"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -8308[rbp], edi
	mov	QWORD PTR -8320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	cmp	DWORD PTR -8308[rbp], 2
	jg	.L7
	mov	rax, QWORD PTR -8320[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8280[rbp], rax
	cmp	QWORD PTR -8280[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	lea	rdx, -8304[rbp]
	mov	rax, QWORD PTR -8280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -8280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -8304[rbp]
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	openpidfd
	mov	DWORD PTR -8292[rbp], eax
	mov	eax, DWORD PTR -8304[rbp]
	lea	rsi, .LC10[rip]
	mov	edi, eax
	call	openpidfd
	mov	DWORD PTR -8288[rbp], eax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	eax, DWORD PTR -8288[rbp]
	mov	esi, 134217728
	mov	edi, eax
	call	setns@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -8304[rbp]
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	openpidfd
	mov	DWORD PTR -8288[rbp], eax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	eax, DWORD PTR -8288[rbp]
	mov	esi, 67108864
	mov	edi, eax
	call	setns@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -8304[rbp]
	lea	rsi, .LC14[rip]
	mov	edi, eax
	call	openpidfd
	mov	DWORD PTR -8288[rbp], eax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	eax, DWORD PTR -8288[rbp]
	mov	esi, 1073741824
	mov	edi, eax
	call	setns@PLT
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR -8304[rbp]
	lea	rsi, .LC16[rip]
	mov	edi, eax
	call	openpidfd
	mov	DWORD PTR -8288[rbp], eax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	eax, DWORD PTR -8288[rbp]
	mov	esi, 536870912
	mov	edi, eax
	call	setns@PLT
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR -8304[rbp]
	lea	rsi, .LC18[rip]
	mov	edi, eax
	call	openpidfd
	mov	DWORD PTR -8288[rbp], eax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	eax, DWORD PTR -8288[rbp]
	mov	esi, 131072
	mov	edi, eax
	call	setns@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	eax, DWORD PTR -8292[rbp]
	mov	edi, eax
	call	fchdir@PLT
	test	eax, eax
	jns	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	lea	rdi, .LC21[rip]
	call	chroot@PLT
	test	eax, eax
	jns	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	eax, DWORD PTR -8292[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L17:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	call	fork@PLT
	mov	DWORD PTR -8284[rbp], eax
	cmp	DWORD PTR -8284[rbp], -1
	jne	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L18:
	cmp	DWORD PTR -8284[rbp], 0
	jne	.L29
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -8308[rbp]
	add	eax, 2
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -8272[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L20:
	cmp	rsp, rdx
	je	.L21
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L20
.L21:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L22
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L22:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -8264[rbp], rax
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	rax, QWORD PTR -8320[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -8256[rbp]
	mov	rcx, rdx
	lea	rdx, .LC25[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	eax, 4096
	jne	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	rax, QWORD PTR -8320[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -4160[rbp]
	mov	rcx, rdx
	lea	rdx, .LC27[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	eax, 4096
	jne	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L24:
	mov	rax, QWORD PTR -8264[rbp]
	lea	rdx, .LC29[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8264[rbp]
	lea	rdx, -8256[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8264[rbp]
	lea	rdx, .LC30[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8264[rbp]
	lea	rdx, -4160[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	DWORD PTR -8296[rbp], 2
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -8296[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8320[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8296[rbp]
	add	edx, 2
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8264[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -8296[rbp], 1
.L25:
	mov	eax, DWORD PTR -8296[rbp]
	cmp	eax, DWORD PTR -8308[rbp]
	jl	.L26
	mov	eax, DWORD PTR -8296[rbp]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -8264[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	eax, DWORD PTR errornum[rip]
	add	eax, 1
	mov	DWORD PTR errornum[rip], eax
	mov	rax, QWORD PTR -8264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8264[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	cmp	eax, -1
	jne	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC31[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR errornum[rip]
	mov	edi, eax
	call	exit@PLT
.L27:
	mov	rsp, rbx
.L29:
	lea	rcx, -8300[rbp]
	mov	eax, DWORD PTR -8284[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	edx, DWORD PTR -8304[rbp]
	cmp	eax, edx
	jne	.L28
	mov	eax, DWORD PTR -8300[rbp]
	movzx	eax, al
	cmp	eax, 127
	jne	.L28
	call	getpid@PLT
	mov	esi, 19
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR -8284[rbp]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -8300[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L30
	mov	eax, DWORD PTR -8300[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	edi, eax
	call	exit@PLT
.L30:
	mov	eax, DWORD PTR -8300[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L31
	mov	eax, DWORD PTR -8300[rbp]
	and	eax, 127
	mov	ebx, eax
	call	getpid@PLT
	mov	esi, ebx
	mov	edi, eax
	call	kill@PLT
.L31:
	mov	eax, 1
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.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	"127632.c"
	.text
	.local	errornum
	.comm	errornum,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc/%i/%s\000"
	.align	2
.LC1:
	.ascii	"path overflow\012\000"
	.align	2
.LC2:
	.ascii	"unable to open \"%s\"\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	openpidfd, %function
openpidfd:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-16]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+4
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	str	r3, [sp]
	ldr	r3, [r2, #-12]
	ldr	r2, .L6+8
	mov	r1, #4096
	bl	snprintf
	mov	r3, r0
	cmp	r3, #4096
	bne	.L2
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L6+16
	bl	fwrite
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+4
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #524288
	mov	r0, r3
	bl	open
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L6+12
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L6+20
	bl	fprintf
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	errornum
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.size	openpidfd, .-openpidfd
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage: %s imageid cmd [args...]\012\000"
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"pid\000"
	.align	2
.LC7:
	.ascii	"unable to open pid file\012\000"
	.align	2
.LC8:
	.ascii	"%i\000"
	.align	2
.LC9:
	.ascii	"unable to read pid\012\000"
	.align	2
.LC10:
	.ascii	"root\000"
	.align	2
.LC11:
	.ascii	"ns/ipc\000"
	.align	2
.LC12:
	.ascii	"unable to enter ns/ipc namespace\012\000"
	.align	2
.LC13:
	.ascii	"ns/uts\000"
	.align	2
.LC14:
	.ascii	"unable to enter ns/uts namespace\012\000"
	.align	2
.LC15:
	.ascii	"ns/net\000"
	.align	2
.LC16:
	.ascii	"unable to enter ns/net namespace\012\000"
	.align	2
.LC17:
	.ascii	"ns/pid\000"
	.align	2
.LC18:
	.ascii	"unable to enter ns/pid namespace\012\000"
	.align	2
.LC19:
	.ascii	"ns/mnt\000"
	.align	2
.LC20:
	.ascii	"unable to enter ns/mnt namespace\012\000"
	.align	2
.LC21:
	.ascii	"unable to chdir to container root\012\000"
	.align	2
.LC22:
	.ascii	".\000"
	.align	2
.LC23:
	.ascii	"unable to chroot\012\000"
	.align	2
.LC24:
	.ascii	"unable to close root_fd\012\000"
	.align	2
.LC25:
	.ascii	"unable to fork\012\000"
	.align	2
.LC26:
	.ascii	"/opt/stage2/%s/rootfs\000"
	.align	2
.LC27:
	.ascii	"root path overflow\012\000"
	.align	2
.LC28:
	.ascii	"/rkt/env/%s\000"
	.align	2
.LC29:
	.ascii	"env path overflow\012\000"
	.align	2
.LC30:
	.ascii	"/diagexec\000"
	.align	2
.LC31:
	.ascii	"/\000"
	.align	2
.LC32:
	.ascii	"exec failed\012\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #52
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-48]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #2
	bgt	.L9
	ldr	r3, .L33+8
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L33+12
	bl	fprintf
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L9:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L33+16
	ldr	r0, .L33+20
	bl	fopen
	str	r0, [r4, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L33+24
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L10:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #40
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L33+28
	ldr	r0, [r0, #-28]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L11
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L33+32
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L33+36
	mov	r0, r3
	bl	openpidfd
	str	r0, [r4, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L33+40
	mov	r0, r3
	bl	openpidfd
	str	r0, [r4, #-20]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #134217728
	ldr	r0, [r3, #-20]
	bl	setns
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L33+44
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L33+48
	mov	r0, r3
	bl	openpidfd
	str	r0, [r4, #-20]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #67108864
	ldr	r0, [r3, #-20]
	bl	setns
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L33+52
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L33+56
	mov	r0, r3
	bl	openpidfd
	str	r0, [r4, #-20]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #1073741824
	ldr	r0, [r3, #-20]
	bl	setns
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L33+60
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L33+64
	mov	r0, r3
	bl	openpidfd
	str	r0, [r4, #-20]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #536870912
	ldr	r0, [r3, #-20]
	bl	setns
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L33+68
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L33+72
	mov	r0, r3
	bl	openpidfd
	str	r0, [r4, #-20]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #131072
	ldr	r0, [r3, #-20]
	bl	setns
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L33+76
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L16:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	fchdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L33+80
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L17:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	ldr	r0, .L33+84
	bl	chroot
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L33+88
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L18:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L33+92
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L19:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmn	r3, #1
	bne	.L20
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L33+96
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L28
	mov	r3, sp
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	ip, r3, #2
	sub	r3, ip, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-12]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [r2, #-8]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L33+100
	mov	r1, #4096
	bl	snprintf
	mov	r3, r0
	cmp	r3, #4096
	bne	.L22
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L33+104
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L22:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L33+108
	mov	r1, #4096
	bl	snprintf
	mov	r3, r0
	cmp	r3, #4096
	bne	.L23
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L33+112
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L23:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r2, .L33+116
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r2, .L33+120
	str	r2, [r3, #8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-32]
	b	.L24
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-48]
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r2, r2, #2
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r3, #1
	str	r3, [r2, #-32]
.L24:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-32]
	ldr	r3, [r3, #-44]
	cmp	r2, r3
	blt	.L25
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r2, r3, #2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+4
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r1, [r2, #-8]
	mov	r0, r3
	bl	execv
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L33+124
	bl	fwrite
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L26:
	mov	sp, r4
.L28:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	waitpid
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r2, r3
	bne	.L27
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	and	r3, r3, #255
	cmp	r3, #127
	bne	.L27
	bl	getpid
	mov	r3, r0
	mov	r1, #19
	mov	r0, r3
	bl	kill
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #18
	ldr	r0, [r3, #-16]
	bl	kill
	b	.L28
.L27:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L29
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r0, r3
	bl	exit
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L30
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	and	r3, r3, #127
	mov	r1, r3
	mov	r0, r2
	bl	kill
.L30:
	mov	r3, #1
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC33
	.word	errornum
	.word	stderr
	.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
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
