	.file	"154092.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 4
	.type	CHILD_UID, @object
	.size	CHILD_UID, 4
CHILD_UID:
	.long	1000
.LC0:
	.string	"cat /proc/%d/%s"
	.text
	.globl	cat_proc_file
	.type	cat_proc_file, @function
cat_proc_file:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -80[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	system@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cat_proc_file, .-cat_proc_file
	.section	.rodata
.LC1:
	.string	"/proc/%d/%s"
.LC2:
	.string	"w"
.LC3:
	.string	"fopen"
.LC4:
	.string	"%d %d %d\n"
.LC5:
	.string	"fprintf"
	.text
	.globl	map_write
	.type	map_write, @function
map_write:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -104[rbp], edx
	mov	DWORD PTR -116[rbp], ecx
	mov	DWORD PTR -120[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC1[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -80[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	mov	esi, DWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	mov	edx, DWORD PTR -104[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8d, esi
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L7:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	map_write, .-map_write
	.section	.rodata
.LC6:
	.string	"uid_map"
.LC7:
	.string	"gid_map"
	.text
	.globl	map_ids
	.type	map_ids, @function
map_ids:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	esi, DWORD PTR RANGE.3[rip]
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR ROOT.2[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8d, esi
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	map_write
	test	eax, eax
	je	.L10
	mov	eax, 1
	jmp	.L11
.L10:
	mov	esi, DWORD PTR RANGE.3[rip]
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR ROOT.2[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8d, esi
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	map_write
	test	eax, eax
	je	.L12
	mov	eax, 1
	jmp	.L11
.L12:
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	map_ids, .-map_ids
	.globl	signal_child
	.type	signal_child, @function
signal_child:
.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -13[rbp], 120
	lea	rcx, -13[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -12[rbp], 1
	setne	al
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	signal_child, .-signal_child
	.globl	wait_for_parent_signal
	.type	wait_for_parent_signal, @function
wait_for_parent_signal:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -13[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -12[rbp], 1
	setne	al
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	wait_for_parent_signal, .-wait_for_parent_signal
	.section	.rodata
.LC8:
	.string	"mount -t proc proc /proc"
	.text
	.globl	set_mntns
	.type	set_mntns, @function
set_mntns:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	system@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	set_mntns, .-set_mntns
	.globl	set_utsns
	.type	set_utsns, @function
set_utsns:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR HOSTNAME.1[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR HOSTNAME.1[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	sethostname@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	set_utsns, .-set_utsns
	.section	.rodata
.LC9:
	.string	"ip link set lo up"
.LC10:
	.string	"ip link set peer0 up"
	.align 8
.LC11:
	.string	"ip addr add 10.11.12.14/24 dev peer0"
	.text
	.globl	child_set_netns
	.type	child_set_netns, @function
child_set_netns:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC9[rip]
	call	system@PLT
	test	eax, eax
	jne	.L24
	lea	rdi, .LC10[rip]
	call	system@PLT
	test	eax, eax
	jne	.L24
	lea	rdi, .LC11[rip]
	call	system@PLT
	test	eax, eax
	je	.L25
.L24:
	mov	eax, 1
	jmp	.L27
.L25:
	mov	eax, 0
.L27:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	child_set_netns, .-child_set_netns
	.section	.rodata
	.align 8
.LC12:
	.string	"Child failed to set mount namespace"
	.align 8
.LC13:
	.string	"Child failed to set uts namespace"
	.align 8
.LC14:
	.string	"Child failed to set net namespace"
.LC15:
	.string	"execve"
	.text
	.globl	child
	.type	child, @function
child:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	wait_for_parent_signal
	mov	eax, 0
	call	set_mntns
	test	eax, eax
	je	.L29
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L30
.L29:
	mov	eax, 0
	call	set_utsns
	test	eax, eax
	je	.L31
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L30
.L31:
	mov	eax, 0
	call	child_set_netns
	test	eax, eax
	je	.L32
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L30
.L32:
	mov	eax, 1000
	mov	edi, eax
	call	setuid@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, 1
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	child, .-child
	.globl	set_userns
	.type	set_userns, @function
set_userns:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	map_ids
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	set_userns, .-set_userns
	.section	.rodata
	.align 8
.LC16:
	.string	"ip link set peer0 netns /proc/%d/ns/net"
	.align 8
.LC17:
	.string	"ip link add veth0 type veth peer name peer0"
.LC18:
	.string	"ip link set veth0 up"
	.align 8
.LC19:
	.string	"ip addr add 10.11.12.13/24 dev veth0"
	.text
	.globl	set_netns
	.type	set_netns, @function
set_netns:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -148[rbp]
	lea	rax, -144[rbp]
	mov	ecx, edx
	lea	rdx, .LC16[rip]
	mov	esi, 128
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, .LC17[rip]
	call	system@PLT
	test	eax, eax
	jne	.L36
	lea	rdi, .LC18[rip]
	call	system@PLT
	test	eax, eax
	jne	.L36
	lea	rdi, .LC19[rip]
	call	system@PLT
	test	eax, eax
	jne	.L36
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	system@PLT
	test	eax, eax
	je	.L37
.L36:
	mov	eax, 1
	jmp	.L39
.L37:
	mov	eax, 0
.L39:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	set_netns, .-set_netns
	.section	.rodata
.LC20:
	.string	"Usage: %s PROGRAM [ARGS...]\n"
.LC21:
	.string	"pipe"
.LC22:
	.string	"clone"
	.align 8
.LC23:
	.string	"Parent failed to set user namespace"
	.align 8
.LC24:
	.string	"Parent failed to set network namespace"
.LC25:
	.string	"Parent couldn't signal child"
.LC26:
	.string	"waitpid"
	.align 8
.LC27:
	.string	"Child didn't terminate gracefully"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR STACK_SIZE.0[rip]
	sub	rax, 1
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR STACK_SIZE.0[rip]
	mov	r10, rax
	mov	r11d, 0
	mov	rax, QWORD PTR STACK_SIZE.0[rip]
	mov	r8, rax
	mov	r9d, 0
	mov	rax, QWORD PTR STACK_SIZE.0[rip]
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L42:
	cmp	rsp, rdx
	je	.L43
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L42
.L43:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L44
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L44:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	QWORD PTR -40[rbp], rax
	cmp	DWORD PTR -84[rbp], 1
	jg	.L45
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L46
.L45:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	je	.L47
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L46
.L47:
	mov	DWORD PTR -72[rbp], 2080505873
	mov	rdx, QWORD PTR STACK_SIZE.0[rip]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, [rdx+rax]
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	edx, eax
	lea	rdi, child[rip]
	mov	eax, 0
	call	clone@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	jne	.L48
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L46
.L48:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	set_userns
	test	eax, eax
	je	.L49
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L46
.L49:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	set_netns
	test	eax, eax
	je	.L50
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L46
.L50:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	signal_child
	test	eax, eax
	je	.L51
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L46
.L51:
	lea	rcx, -76[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	DWORD PTR -68[rbp], eax
	je	.L52
	lea	rdi, .LC26[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L46
.L52:
	mov	eax, DWORD PTR -76[rbp]
	and	eax, 127
	test	eax, eax
	je	.L53
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L46
.L53:
	mov	eax, DWORD PTR -76[rbp]
	sar	eax, 8
	movzx	eax, al
.L46:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.section	.rodata
	.align 4
	.type	RANGE.3, @object
	.size	RANGE.3, 4
RANGE.3:
	.long	1000
	.align 4
	.type	ROOT.2, @object
	.size	ROOT.2, 4
ROOT.2:
	.zero	4
.LC28:
	.string	"Isolated"
	.section	.data.rel.local,"aw"
	.align 8
	.type	HOSTNAME.1, @object
	.size	HOSTNAME.1, 8
HOSTNAME.1:
	.quad	.LC28
	.section	.rodata
	.align 8
	.type	STACK_SIZE.0, @object
	.size	STACK_SIZE.0, 8
STACK_SIZE.0:
	.quad	1048576
	.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	"154092.c"
	.text
	.section	.rodata
	.align	2
	.type	CHILD_UID, %object
	.size	CHILD_UID, 4
CHILD_UID:
	.word	1000
	.align	2
.LC0:
	.ascii	"cat /proc/%d/%s\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cat_proc_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	cat_proc_file, %function
cat_proc_file:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #72
	ldr	r3, [fp, #-84]
	str	r3, [sp]
	ldr	r3, [fp, #-80]
	ldr	r2, .L3+4
	mov	r1, #64
	bl	snprintf
	sub	r3, fp, #72
	mov	r0, r3
	bl	system
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	.LC0
	.size	cat_proc_file, .-cat_proc_file
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/proc/%d/%s\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"fopen\000"
	.align	2
.LC5:
	.ascii	"%d %d %d\012\000"
	.align	2
.LC6:
	.ascii	"fprintf\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	map_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	map_write, %function
map_write:
	@ args = 4, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #72
	ldr	r3, [fp, #-84]
	str	r3, [sp]
	ldr	r3, [fp, #-80]
	ldr	r2, .L11+4
	mov	r1, #64
	bl	snprintf
	sub	r3, fp, #72
	ldr	r1, .L11+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L11+12
	bl	perror
	mov	r3, #1
	b	.L9
.L6:
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	ldr	r1, .L11+16
	ldr	r0, [fp, #-76]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L11+20
	bl	perror
	mov	r3, #1
	b	.L9
.L8:
	ldr	r0, [fp, #-76]
	bl	fclose
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	map_write, .-map_write
	.section	.rodata
	.align	2
.LC8:
	.ascii	"uid_map\000"
	.align	2
.LC9:
	.ascii	"gid_map\000"
	.text
	.align	2
	.global	map_ids
	.syntax unified
	.arm
	.fpu softvfp
	.type	map_ids, %function
map_ids:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r1, [fp, #-12]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+8
	ldr	r0, [fp, #-8]
	bl	map_write
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r3, #1
	b	.L15
.L14:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r1, [fp, #-12]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+12
	ldr	r0, [fp, #-8]
	bl	map_write
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	mov	r3, #1
	b	.L15
.L16:
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	ROOT.6774
	.word	RANGE.6775
	.word	.LC8
	.word	.LC9
	.size	map_ids, .-map_ids
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	signal_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_child, %function
signal_child:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #120
	strb	r3, [fp, #-13]
	sub	r3, fp, #13
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC10
	.size	signal_child, .-signal_child
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wait_for_parent_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_parent_signal, %function
wait_for_parent_signal:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #13
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC11
	.size	wait_for_parent_signal, .-wait_for_parent_signal
	.section	.rodata
	.align	2
.LC12:
	.ascii	"mount -t proc proc /proc\000"
	.text
	.align	2
	.global	set_mntns
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_mntns, %function
set_mntns:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L31
	bl	system
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC12
	.size	set_mntns, .-set_mntns
	.align	2
	.global	set_utsns
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_utsns, %function
set_utsns:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r3, .L35
	ldr	r4, [r3]
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	sethostname
	mov	r3, r0
	mov	r0, r3
	pop	{r4, r5, fp, pc}
.L36:
	.align	2
.L35:
	.word	HOSTNAME.6790
	.size	set_utsns, .-set_utsns
	.section	.rodata
	.align	2
.LC13:
	.ascii	"ip link set lo up\000"
	.align	2
.LC14:
	.ascii	"ip link set peer0 up\000"
	.align	2
.LC15:
	.ascii	"ip addr add 10.11.12.14/24 dev peer0\000"
	.text
	.align	2
	.global	child_set_netns
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_set_netns, %function
child_set_netns:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L42
	bl	system
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L42+4
	bl	system
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L42+8
	bl	system
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
.L38:
	mov	r3, #1
	b	.L41
.L39:
	mov	r3, #0
.L41:
	mov	r0, r3
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	child_set_netns, .-child_set_netns
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Child failed to set mount namespace\000"
	.align	2
.LC17:
	.ascii	"Child failed to set uts namespace\000"
	.align	2
.LC18:
	.ascii	"Child failed to set net namespace\000"
	.align	2
.LC19:
	.ascii	"execve\000"
	.text
	.align	2
	.global	child
	.syntax unified
	.arm
	.fpu softvfp
	.type	child, %function
child:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	wait_for_parent_signal
	bl	set_mntns
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r0, .L49
	bl	puts
	mov	r3, #1
	b	.L46
.L45:
	bl	set_utsns
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L49+4
	bl	puts
	mov	r3, #1
	b	.L46
.L47:
	bl	child_set_netns
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r0, .L49+8
	bl	puts
	mov	r3, #1
	b	.L46
.L48:
	mov	r3, #1000
	mov	r0, r3
	bl	setuid
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	execv
	ldr	r0, .L49+12
	bl	perror
	mov	r3, #1
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	child, .-child
	.align	2
	.global	set_userns
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_userns, %function
set_userns:
	@ 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	r1, #0
	ldr	r0, [fp, #-8]
	bl	map_ids
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	set_userns, .-set_userns
	.section	.rodata
	.align	2
.LC20:
	.ascii	"ip link set peer0 netns /proc/%d/ns/net\000"
	.align	2
.LC21:
	.ascii	"ip link add veth0 type veth peer name peer0\000"
	.align	2
.LC22:
	.ascii	"ip link set veth0 up\000"
	.align	2
.LC23:
	.ascii	"ip addr add 10.11.12.13/24 dev veth0\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_netns
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_netns, %function
set_netns:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #136
	ldr	r3, [fp, #-144]
	ldr	r2, .L59+4
	mov	r1, #128
	bl	snprintf
	ldr	r0, .L59+8
	bl	system
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r0, .L59+12
	bl	system
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r0, .L59+16
	bl	system
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	sub	r3, fp, #136
	mov	r0, r3
	bl	system
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
.L54:
	mov	r3, #1
	b	.L57
.L55:
	mov	r3, #0
.L57:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC24
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	set_netns, .-set_netns
	.section	.rodata
	.align	2
.LC25:
	.ascii	"Usage: %s PROGRAM [ARGS...]\012\000"
	.align	2
.LC26:
	.ascii	"pipe\000"
	.align	2
.LC27:
	.ascii	"clone\000"
	.align	2
.LC28:
	.ascii	"Parent failed to set user namespace\000"
	.align	2
.LC29:
	.ascii	"Parent failed to set network namespace\000"
	.align	2
.LC30:
	.ascii	"Parent couldn't signal child\000"
	.align	2
.LC31:
	.ascii	"waitpid\000"
	.align	2
.LC32:
	.ascii	"Child didn't terminate gracefully\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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, .L73+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L73+4
	ldr	r3, [r3]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L62
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L73+8
	bl	printf
	mov	r3, #1
	b	.L63
.L62:
	sub	r3, fp, #28
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r0, .L73+12
	bl	perror
	mov	r3, #1
	b	.L63
.L64:
	ldr	r3, .L73+16
	str	r3, [fp, #-36]
	ldr	r3, .L73+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r1, r2, r3
	sub	r3, fp, #28
	ldr	r2, [fp, #-36]
	ldr	r0, .L73+20
	bl	clone
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L65
	ldr	r0, .L73+24
	bl	perror
	mov	r3, #1
	b	.L63
.L65:
	ldr	r0, [fp, #-32]
	bl	set_userns
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r0, .L73+28
	bl	puts
	mov	r3, #1
	b	.L63
.L66:
	ldr	r0, [fp, #-32]
	bl	set_netns
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r0, .L73+32
	bl	puts
	mov	r3, #1
	b	.L63
.L67:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	signal_child
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r0, .L73+36
	bl	puts
	mov	r3, #1
	b	.L63
.L68:
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	waitpid
	mov	r2, r0
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	beq	.L69
	ldr	r0, .L73+40
	bl	perror
	mov	r3, #1
	b	.L63
.L69:
	ldr	r3, [fp, #-48]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L73+44
	bl	puts
	mov	r3, #1
	b	.L63
.L70:
	ldr	r3, [fp, #-48]
	asr	r3, r3, #8
	and	r3, r3, #255
.L63:
	mov	sp, r4
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC33
	.word	STACK_SIZE.6808
	.word	.LC25
	.word	.LC26
	.word	2080505873
	.word	child
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	ROOT.6774, %object
	.size	ROOT.6774, 4
ROOT.6774:
	.space	4
	.align	2
	.type	RANGE.6775, %object
	.size	RANGE.6775, 4
RANGE.6775:
	.word	1000
	.align	2
.LC34:
	.ascii	"Isolated\000"
	.data
	.align	2
	.type	HOSTNAME.6790, %object
	.size	HOSTNAME.6790, 4
HOSTNAME.6790:
	.word	.LC34
	.section	.rodata
	.align	2
	.type	STACK_SIZE.6808, %object
	.size	STACK_SIZE.6808, 4
STACK_SIZE.6808:
	.word	1048576
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
