	.file	"extr_34923.c_child2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unshare"
.LC1:
	.string	"mount"
.LC2:
	.string	"open"
.LC3:
	.string	"dup3"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Mount hackery seems to have worked.\n"
	.text
	.p2align 4
	.type	child2, @function
child2:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, DWORD PTR CLONE_NEWUSER[rip]
	or	edi, DWORD PTR CLONE_NEWNS[rip]
	call	unshare@PLT
	test	rax, rax
	jne	.L11
.L2:
	mov	ecx, DWORD PTR MS_REMOUNT[rip]
	xor	r8d, r8d
	xor	edx, edx
	mov	rsi, rbp
	or	ecx, DWORD PTR MS_BIND[rip]
	mov	rdi, rbp
	call	mount@PLT
	test	rax, rax
	js	.L12
.L3:
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR O_DIRECTORY[rip]
	call	open@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L13
.L4:
	mov	edx, DWORD PTR O_CLOEXEC[rip]
	mov	esi, DWORD PTR evilfd[rip]
	mov	edi, ebp
	call	dup3@PLT
	cmp	eax, -1
	je	.L14
.L5:
	mov	edi, ebp
	call	close@PLT
	lea	rdi, .LC4[rip]
	call	printf@PLT
	xor	edi, edi
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	exit@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	child2, .-child2
	.comm	evilfd,4,4
	.comm	O_RDONLY,4,4
	.comm	O_DIRECTORY,4,4
	.comm	O_CLOEXEC,4,4
	.comm	MS_REMOUNT,4,4
	.comm	MS_BIND,4,4
	.comm	CLONE_NEWUSER,4,4
	.comm	CLONE_NEWNS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_34923.c_child2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unshare\000"
	.align	2
.LC1:
	.ascii	"mount\000"
	.align	2
.LC2:
	.ascii	"open\000"
	.align	2
.LC3:
	.ascii	"dup3\000"
	.align	2
.LC4:
	.ascii	"Mount hackery seems to have worked.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child2, %function
child2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r2, .L15
	ldr	r3, .L15+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r4, r0
	sub	sp, sp, #8
	orr	r0, r2, r3
	bl	unshare
	cmp	r0, #0
	bne	.L11
.L2:
	mov	r2, #0
	ldr	r1, .L15+8
	ldr	r3, .L15+12
	ldr	r1, [r1]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r3, r1, r3
	str	r2, [sp]
	mov	r1, r4
	bl	mount
	cmp	r0, #0
	blt	.L12
.L3:
	ldr	r2, .L15+16
	ldr	r3, .L15+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	open
	cmn	r0, #1
	mov	r4, r0
	beq	.L13
.L4:
	ldr	r3, .L15+24
	ldr	r2, .L15+28
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	dup3
	cmn	r0, #1
	beq	.L14
.L5:
	mov	r0, r4
	bl	close
	ldr	r0, .L15+32
	bl	printf
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	exit
.L11:
	ldr	r1, .L15+36
	mov	r0, #1
	bl	err
	b	.L2
.L12:
	ldr	r1, .L15+40
	mov	r0, #1
	bl	err
	b	.L3
.L14:
	ldr	r1, .L15+44
	mov	r0, #1
	bl	err
	b	.L5
.L13:
	ldr	r1, .L15+48
	mov	r0, #1
	bl	err
	b	.L4
.L16:
	.align	2
.L15:
	.word	CLONE_NEWUSER
	.word	CLONE_NEWNS
	.word	MS_REMOUNT
	.word	MS_BIND
	.word	O_RDONLY
	.word	O_DIRECTORY
	.word	evilfd
	.word	O_CLOEXEC
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	child2, .-child2
	.comm	evilfd,4,4
	.comm	O_RDONLY,4,4
	.comm	O_DIRECTORY,4,4
	.comm	O_CLOEXEC,4,4
	.comm	MS_REMOUNT,4,4
	.comm	MS_BIND,4,4
	.comm	CLONE_NEWUSER,4,4
	.comm	CLONE_NEWNS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
