	.file	"292499.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	": %s\n"
	.text
	.type	die_with_error, @function
die_with_error:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -212[rbp], eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -232[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die_with_error, .-die_with_error
	.type	die, @function
die:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L5
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L5:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	die, .-die
	.section	.rodata
	.align 8
.LC1:
	.string	"Failed to create argument array"
	.text
	.type	strv_init, @function
strv_init:
.LFB8:
	.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	edi, 64
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L8
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	die_with_error
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 8
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	strv_init, .-strv_init
	.section	.rodata
	.align 8
.LC2:
	.string	"Failed to extend argument array to size %llu"
	.text
	.type	strv_enlarge, @function
strv_enlarge:
.LFB9:
	.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	rax, QWORD PTR 16[rax]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	rax, rax
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	die_with_error
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	strv_enlarge, .-strv_enlarge
	.type	strv_add_one, @function
strv_add_one:
.LFB10:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	rdx, rax
	jb	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strv_enlarge
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	strv_add_one, .-strv_add_one
	.type	strv_add, @function
strv_add:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L14
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L14:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strv_add_one
	mov	DWORD PTR -208[rbp], 16
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L15
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L16:
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -216[rbp], rax
	jmp	.L17
.L20:
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strv_add_one
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L18
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L19:
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -216[rbp], rax
.L17:
	cmp	QWORD PTR -216[rbp], 0
	jne	.L20
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	strv_add, .-strv_add
	.section	.rodata
.LC3:
	.string	"--info-fd"
.LC4:
	.string	"--new-session"
.LC5:
	.string	"--unshare-pid"
.LC6:
	.string	"--unshare-ipc"
.LC7:
	.string	"bwrap"
.LC8:
	.string	"3"
	.text
	.type	add_base_args, @function
add_base_args:
.LFB12:
	.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]
	push	0
	lea	rdx, .LC8[rip]
	push	rdx
	lea	r9, .LC3[rip]
	lea	r8, .LC4[rip]
	lea	rcx, .LC5[rip]
	lea	rdx, .LC6[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strv_add
	add	rsp, 16
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	add_base_args, .-add_base_args
	.section	.rodata
.LC9:
	.string	"/lib"
.LC10:
	.string	"--ro-bind"
.LC11:
	.string	"/usr"
.LC12:
	.string	"/opt"
.LC13:
	.string	"/sbin"
.LC14:
	.string	"/bin"
.LC15:
	.string	"/lib64"
	.text
	.type	add_usr_dirs, @function
add_usr_dirs:
.LFB13:
	.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]
	push	0
	lea	rdx, .LC12[rip]
	push	rdx
	lea	rdx, .LC12[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC13[rip]
	push	rdx
	lea	rdx, .LC13[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC14[rip]
	push	rdx
	lea	rdx, .LC14[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC15[rip]
	push	rdx
	lea	rdx, .LC15[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC9[rip]
	push	rdx
	lea	r9, .LC9[rip]
	lea	r8, .LC10[rip]
	lea	rcx, .LC11[rip]
	lea	rdx, .LC11[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strv_add
	add	rsp, 112
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	add_usr_dirs, .-add_usr_dirs
	.section	.rodata
.LC16:
	.string	"--dir"
.LC17:
	.string	"/tmp"
.LC18:
	.string	"/proc"
.LC19:
	.string	"--proc"
.LC20:
	.string	"/sys/devices"
.LC21:
	.string	"/sys/dev"
.LC22:
	.string	"/sys/class"
.LC23:
	.string	"/sys/bus"
.LC24:
	.string	"/sys/block"
.LC25:
	.string	"/dev"
.LC26:
	.string	"--dev"
.LC27:
	.string	"/var/run"
.LC28:
	.string	"../run"
.LC29:
	.string	"--symlink"
.LC30:
	.string	"/run"
.LC31:
	.string	"/var/tmp"
	.text
	.type	add_api_fs, @function
add_api_fs:
.LFB14:
	.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]
	push	0
	lea	rdx, .LC20[rip]
	push	rdx
	lea	rdx, .LC20[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC21[rip]
	push	rdx
	lea	rdx, .LC21[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC22[rip]
	push	rdx
	lea	rdx, .LC22[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC23[rip]
	push	rdx
	lea	rdx, .LC23[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC24[rip]
	push	rdx
	lea	rdx, .LC24[rip]
	push	rdx
	lea	rdx, .LC10[rip]
	push	rdx
	lea	rdx, .LC25[rip]
	push	rdx
	lea	rdx, .LC26[rip]
	push	rdx
	lea	rdx, .LC27[rip]
	push	rdx
	lea	rdx, .LC28[rip]
	push	rdx
	lea	rdx, .LC29[rip]
	push	rdx
	lea	rdx, .LC30[rip]
	push	rdx
	lea	rdx, .LC16[rip]
	push	rdx
	lea	rdx, .LC31[rip]
	push	rdx
	lea	r9, .LC16[rip]
	lea	r8, .LC17[rip]
	lea	rcx, .LC16[rip]
	lea	rdx, .LC18[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strv_add
	add	rsp, 192
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	add_api_fs, .-add_api_fs
	.section	.rodata
.LC32:
	.string	"/app"
.LC33:
	.string	"--bind"
.LC34:
	.string	"--chdir"
.LC35:
	.string	"THINGENGINE_PREFIX"
	.align 8
.LC36:
	.string	"Failed to copy prefix environment variable"
.LC37:
	.string	"CI"
	.text
	.type	add_thingengine_dirs, @function
add_thingengine_dirs:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	esi, 0
	mov	edi, 0
	call	getcwd@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	0
	lea	r9, .LC32[rip]
	mov	r8, rdx
	lea	rcx, .LC33[rip]
	lea	rdx, .LC32[rip]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strv_add
	add	rsp, 16
	lea	rdi, .LC35[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L26
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	die_with_error
.L26:
	lea	rdi, .LC37[rip]
	call	getenv@PLT
	test	rax, rax
	setne	al
	mov	BYTE PTR -34[rbp], al
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -32[rbp], rax
.L31:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchrnul@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	sete	al
	mov	BYTE PTR -33[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	cmp	BYTE PTR -34[rbp], 0
	je	.L27
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, 0
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strv_add
	jmp	.L28
.L27:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, 0
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strv_add
.L28:
	cmp	BYTE PTR -33[rbp], 0
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	QWORD PTR -32[rbp], rax
	jmp	.L31
.L33:
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	add_thingengine_dirs, .-add_thingengine_dirs
	.section	.rodata
.LC38:
	.string	"Failed to allocate buffer"
.LC39:
	.string	"/etc/%s"
	.text
	.type	add_etc, @function
add_etc:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L35
.L38:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, whitelist.0[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 6
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L36
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	die_with_error
.L36:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, whitelist.0[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	lea	rdx, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L37
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8d, 0
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strv_add
.L37:
	add	DWORD PTR -20[rbp], 1
.L35:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 21
	jbe	.L38
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	add_etc, .-add_etc
	.section	.rodata
.LC40:
	.string	" %s"
	.text
	.type	strv_dump, @function
strv_dump:
.LFB17:
	.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	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	QWORD PTR -8[rbp], 1
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -8[rbp], 1
.L40:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	strv_dump, .-strv_dump
	.section	.rodata
.LC41:
	.string	"Usage: %s <command>\n"
	.align 8
.LC42:
	.string	"Missing THINGENGINE_PREFIX in the environment\n"
.LC43:
	.string	"THINGENGINE_USER_ID"
	.align 8
.LC44:
	.string	"Missing THINGENGINE_USER_ID in the environment\n"
.LC45:
	.string	"Failed to spawn bwrap"
	.text
	.globl	main
	.type	main, @function
main:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 1
	jg	.L43
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	die
.L43:
	lea	rdi, .LC35[rip]
	call	getenv@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L44
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	die
.L44:
	lea	rdi, .LC43[rip]
	call	getenv@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L45
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	die
.L45:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strv_init
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	add_base_args
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	add_usr_dirs
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	add_api_fs
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	add_thingengine_dirs
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	add_etc
	mov	DWORD PTR -52[rbp], 1
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strv_add_one
	add	DWORD PTR -52[rbp], 1
.L46:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L47
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	strv_add_one
	lea	rdi, .LC37[rip]
	call	getenv@PLT
	test	rax, rax
	je	.L48
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strv_dump
.L48:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	execvp@PLT
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	die_with_error
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	main, .-main
	.section	.rodata
.LC46:
	.string	"ca-certificates"
.LC47:
	.string	"ca-certificates.conf"
.LC48:
	.string	"ssl"
.LC49:
	.string	"pki"
.LC50:
	.string	"hostname"
.LC51:
	.string	"localtime"
.LC52:
	.string	"machine-id"
.LC53:
	.string	"os-release"
.LC54:
	.string	"nsswitch.conf"
.LC55:
	.string	"host.conf"
.LC56:
	.string	"hosts"
.LC57:
	.string	"passwd"
.LC58:
	.string	"group"
.LC59:
	.string	"networks"
.LC60:
	.string	"protocols"
.LC61:
	.string	"services"
.LC62:
	.string	"ethers"
.LC63:
	.string	"shells"
.LC64:
	.string	"ld.so.cache"
.LC65:
	.string	"ld.so.conf"
.LC66:
	.string	"ld.so.conf.d"
.LC67:
	.string	"resolv.conf"
	.section	.data.rel.local,"aw"
	.align 32
	.type	whitelist.0, @object
	.size	whitelist.0, 176
whitelist.0:
	.quad	.LC46
	.quad	.LC47
	.quad	.LC48
	.quad	.LC49
	.quad	.LC50
	.quad	.LC51
	.quad	.LC52
	.quad	.LC53
	.quad	.LC54
	.quad	.LC55
	.quad	.LC56
	.quad	.LC57
	.quad	.LC58
	.quad	.LC59
	.quad	.LC60
	.quad	.LC61
	.quad	.LC62
	.quad	.LC63
	.quad	.LC64
	.quad	.LC65
	.quad	.LC66
	.quad	.LC67
	.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	"292499.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	": %s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	die_with_error, %function
die_with_error:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, [fp, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	add	r3, fp, #8
	str	r3, [fp, #-24]
	ldr	r3, .L3+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L3+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-20]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L3+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	die_with_error, .-die_with_error
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	mov	r0, #1
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	stderr
	.size	die, .-die
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Failed to create argument array\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strv_init, %function
strv_init:
	@ 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]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L11
	bl	die_with_error
.L10:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #8
	str	r2, [r3, #8]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.size	strv_init, .-strv_init
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Failed to extend argument array to size %llu\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strv_enlarge, %function
strv_enlarge:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	mov	r2, r3
	mov	r3, #0
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L15
	bl	die_with_error
.L14:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC4
	.size	strv_enlarge, .-strv_enlarge
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strv_add_one, %function
strv_add_one:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bcc	.L18
	ldr	r0, [fp, #-8]
	bl	strv_enlarge
.L18:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strv_add_one, .-strv_add_one
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strv_add, %function
strv_add:
	@ args = 4, pretend = 12, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #28
	str	r0, [fp, #-28]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	strv_add_one
	add	r3, fp, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r2, r3, #4
	str	r2, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L20
.L21:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	strv_add_one
	ldr	r3, [fp, #-20]
	add	r2, r3, #4
	str	r2, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L24:
	.align	2
.L23:
	.word	.LC5
	.size	strv_add, .-strv_add
	.section	.rodata
	.align	2
.LC6:
	.ascii	"--unshare-pid\000"
	.align	2
.LC7:
	.ascii	"--unshare-ipc\000"
	.align	2
.LC8:
	.ascii	"bwrap\000"
	.align	2
.LC9:
	.ascii	"3\000"
	.align	2
.LC10:
	.ascii	"--info-fd\000"
	.align	2
.LC11:
	.ascii	"--new-session\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_base_args, %function
add_base_args:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [sp, #12]
	ldr	r3, .L26
	str	r3, [sp, #8]
	ldr	r3, .L26+4
	str	r3, [sp, #4]
	ldr	r3, .L26+8
	str	r3, [sp]
	ldr	r3, .L26+12
	ldr	r2, .L26+16
	ldr	r1, .L26+20
	ldr	r0, [fp, #-8]
	bl	strv_add
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	add_base_args, .-add_base_args
	.section	.rodata
	.align	2
.LC12:
	.ascii	"/usr\000"
	.align	2
.LC13:
	.ascii	"--ro-bind\000"
	.align	2
.LC14:
	.ascii	"/opt\000"
	.align	2
.LC15:
	.ascii	"/sbin\000"
	.align	2
.LC16:
	.ascii	"/bin\000"
	.align	2
.LC17:
	.ascii	"/lib64\000"
	.align	2
.LC18:
	.ascii	"/lib\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_usr_dirs, %function
add_usr_dirs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [sp, #60]
	ldr	r3, .L29
	str	r3, [sp, #56]
	ldr	r3, .L29
	str	r3, [sp, #52]
	ldr	r3, .L29+4
	str	r3, [sp, #48]
	ldr	r3, .L29+8
	str	r3, [sp, #44]
	ldr	r3, .L29+8
	str	r3, [sp, #40]
	ldr	r3, .L29+4
	str	r3, [sp, #36]
	ldr	r3, .L29+12
	str	r3, [sp, #32]
	ldr	r3, .L29+12
	str	r3, [sp, #28]
	ldr	r3, .L29+4
	str	r3, [sp, #24]
	ldr	r3, .L29+16
	str	r3, [sp, #20]
	ldr	r3, .L29+16
	str	r3, [sp, #16]
	ldr	r3, .L29+4
	str	r3, [sp, #12]
	ldr	r3, .L29+20
	str	r3, [sp, #8]
	ldr	r3, .L29+20
	str	r3, [sp, #4]
	ldr	r3, .L29+4
	str	r3, [sp]
	ldr	r3, .L29+24
	ldr	r2, .L29+24
	ldr	r1, .L29+4
	ldr	r0, [fp, #-8]
	bl	strv_add
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC14
	.word	.LC13
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC12
	.size	add_usr_dirs, .-add_usr_dirs
	.section	.rodata
	.align	2
.LC19:
	.ascii	"--dir\000"
	.align	2
.LC20:
	.ascii	"/proc\000"
	.align	2
.LC21:
	.ascii	"--proc\000"
	.align	2
.LC22:
	.ascii	"/sys/devices\000"
	.align	2
.LC23:
	.ascii	"/sys/dev\000"
	.align	2
.LC24:
	.ascii	"/sys/class\000"
	.align	2
.LC25:
	.ascii	"/sys/bus\000"
	.align	2
.LC26:
	.ascii	"/sys/block\000"
	.align	2
.LC27:
	.ascii	"/dev\000"
	.align	2
.LC28:
	.ascii	"--dev\000"
	.align	2
.LC29:
	.ascii	"/var/run\000"
	.align	2
.LC30:
	.ascii	"../run\000"
	.align	2
.LC31:
	.ascii	"--symlink\000"
	.align	2
.LC32:
	.ascii	"/run\000"
	.align	2
.LC33:
	.ascii	"/var/tmp\000"
	.align	2
.LC34:
	.ascii	"/tmp\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_api_fs, %function
add_api_fs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [sp, #100]
	ldr	r3, .L32
	str	r3, [sp, #96]
	ldr	r3, .L32
	str	r3, [sp, #92]
	ldr	r3, .L32+4
	str	r3, [sp, #88]
	ldr	r3, .L32+8
	str	r3, [sp, #84]
	ldr	r3, .L32+8
	str	r3, [sp, #80]
	ldr	r3, .L32+4
	str	r3, [sp, #76]
	ldr	r3, .L32+12
	str	r3, [sp, #72]
	ldr	r3, .L32+12
	str	r3, [sp, #68]
	ldr	r3, .L32+4
	str	r3, [sp, #64]
	ldr	r3, .L32+16
	str	r3, [sp, #60]
	ldr	r3, .L32+16
	str	r3, [sp, #56]
	ldr	r3, .L32+4
	str	r3, [sp, #52]
	ldr	r3, .L32+20
	str	r3, [sp, #48]
	ldr	r3, .L32+20
	str	r3, [sp, #44]
	ldr	r3, .L32+4
	str	r3, [sp, #40]
	ldr	r3, .L32+24
	str	r3, [sp, #36]
	ldr	r3, .L32+28
	str	r3, [sp, #32]
	ldr	r3, .L32+32
	str	r3, [sp, #28]
	ldr	r3, .L32+36
	str	r3, [sp, #24]
	ldr	r3, .L32+40
	str	r3, [sp, #20]
	ldr	r3, .L32+44
	str	r3, [sp, #16]
	ldr	r3, .L32+48
	str	r3, [sp, #12]
	ldr	r3, .L32+52
	str	r3, [sp, #8]
	ldr	r3, .L32+48
	str	r3, [sp, #4]
	ldr	r3, .L32+56
	str	r3, [sp]
	ldr	r3, .L32+48
	ldr	r2, .L32+60
	ldr	r1, .L32+64
	ldr	r0, [fp, #-8]
	bl	strv_add
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC22
	.word	.LC13
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC19
	.word	.LC33
	.word	.LC34
	.word	.LC20
	.word	.LC21
	.size	add_api_fs, .-add_api_fs
	.section	.rodata
	.align	2
.LC35:
	.ascii	"--bind\000"
	.align	2
.LC36:
	.ascii	"/app\000"
	.align	2
.LC37:
	.ascii	"--chdir\000"
	.align	2
.LC38:
	.ascii	"THINGENGINE_PREFIX\000"
	.align	2
.LC39:
	.ascii	"Failed to copy prefix environment variable\000"
	.align	2
.LC40:
	.ascii	"CI\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_thingengine_dirs, %function
add_thingengine_dirs:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	mov	r1, #0
	mov	r0, #0
	bl	getcwd
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [sp, #8]
	ldr	r3, .L43
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	ldr	r3, .L43+4
	ldr	r2, .L43
	ldr	r1, .L43+8
	ldr	r0, [fp, #-32]
	bl	strv_add
	ldr	r0, .L43+12
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L43+16
	bl	die_with_error
.L35:
	ldr	r0, .L43+20
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-22]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L40:
	mov	r1, #58
	ldr	r0, [fp, #-20]
	bl	strchrnul
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L36
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, .L43+4
	ldr	r0, [fp, #-32]
	bl	strv_add
	b	.L37
.L36:
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, .L43+24
	ldr	r0, [fp, #-32]
	bl	strv_add
.L37:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L40
.L42:
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC36
	.word	.LC35
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC13
	.size	add_thingengine_dirs, .-add_thingengine_dirs
	.section	.rodata
	.align	2
.LC41:
	.ascii	"Failed to allocate buffer\000"
	.align	2
.LC42:
	.ascii	"/etc/%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_etc, %function
add_etc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L46
.L49:
	ldr	r2, .L50
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #6
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L47
	ldr	r0, .L50+4
	bl	die_with_error
.L47:
	ldr	r2, .L50
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L50+8
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	snprintf
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, .L50+12
	ldr	r0, [fp, #-24]
	bl	strv_add
.L48:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L46:
	ldr	r3, [fp, #-16]
	cmp	r3, #21
	bls	.L49
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	whitelist.6309
	.word	.LC41
	.word	.LC42
	.word	.LC13
	.size	add_etc, .-add_etc
	.section	.rodata
	.align	2
.LC43:
	.ascii	" %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strv_dump, %function
strv_dump:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L53
.L54:
	ldr	r3, .L55
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L55+4
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L53:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L54
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	stderr
	.word	.LC43
	.size	strv_dump, .-strv_dump
	.section	.rodata
	.align	2
.LC44:
	.ascii	"Usage: %s <command>\012\000"
	.align	2
.LC45:
	.ascii	"Missing THINGENGINE_PREFIX in the environment\012\000"
	.align	2
.LC46:
	.ascii	"THINGENGINE_USER_ID\000"
	.align	2
.LC47:
	.ascii	"Missing THINGENGINE_USER_ID in the environment\012\000"
	.align	2
.LC48:
	.ascii	"Failed to spawn bwrap\000"
	.align	2
.LC49:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L58
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L66+4
	bl	die
.L58:
	ldr	r0, .L66+8
	bl	getenv
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L59
	ldr	r0, .L66+12
	bl	die
.L59:
	ldr	r0, .L66+16
	bl	getenv
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L60
	ldr	r0, .L66+20
	bl	die
.L60:
	sub	r3, fp, #20
	mov	r0, r3
	bl	strv_init
	sub	r3, fp, #20
	mov	r0, r3
	bl	add_base_args
	sub	r3, fp, #20
	mov	r0, r3
	bl	add_usr_dirs
	sub	r3, fp, #20
	mov	r0, r3
	bl	add_api_fs
	sub	r3, fp, #20
	mov	r0, r3
	bl	add_thingengine_dirs
	sub	r3, fp, #20
	mov	r0, r3
	bl	add_etc
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L61
.L62:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	strv_add_one
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L61:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L62
	sub	r3, fp, #20
	mov	r1, #0
	mov	r0, r3
	bl	strv_add_one
	ldr	r0, .L66+24
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	sub	r3, fp, #20
	mov	r0, r3
	bl	strv_dump
.L63:
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L66+28
	bl	execvp
	ldr	r0, .L66+32
	bl	die_with_error
	mov	r3, #0
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC49
	.word	.LC44
	.word	.LC38
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC40
	.word	.LC8
	.word	.LC48
	.size	main, .-main
	.section	.rodata
	.align	2
.LC50:
	.ascii	"ca-certificates\000"
	.align	2
.LC51:
	.ascii	"ca-certificates.conf\000"
	.align	2
.LC52:
	.ascii	"ssl\000"
	.align	2
.LC53:
	.ascii	"pki\000"
	.align	2
.LC54:
	.ascii	"hostname\000"
	.align	2
.LC55:
	.ascii	"localtime\000"
	.align	2
.LC56:
	.ascii	"machine-id\000"
	.align	2
.LC57:
	.ascii	"os-release\000"
	.align	2
.LC58:
	.ascii	"nsswitch.conf\000"
	.align	2
.LC59:
	.ascii	"host.conf\000"
	.align	2
.LC60:
	.ascii	"hosts\000"
	.align	2
.LC61:
	.ascii	"passwd\000"
	.align	2
.LC62:
	.ascii	"group\000"
	.align	2
.LC63:
	.ascii	"networks\000"
	.align	2
.LC64:
	.ascii	"protocols\000"
	.align	2
.LC65:
	.ascii	"services\000"
	.align	2
.LC66:
	.ascii	"ethers\000"
	.align	2
.LC67:
	.ascii	"shells\000"
	.align	2
.LC68:
	.ascii	"ld.so.cache\000"
	.align	2
.LC69:
	.ascii	"ld.so.conf\000"
	.align	2
.LC70:
	.ascii	"ld.so.conf.d\000"
	.align	2
.LC71:
	.ascii	"resolv.conf\000"
	.data
	.align	2
	.type	whitelist.6309, %object
	.size	whitelist.6309, 88
whitelist.6309:
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.word	.LC65
	.word	.LC66
	.word	.LC67
	.word	.LC68
	.word	.LC69
	.word	.LC70
	.word	.LC71
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
