	.file	"extr_unprivileged-remount-test.c_test_priv_mount_unpriv_remount.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fork failed: %s\n"
.LC1:
	.string	"waitpid failed: %s\n"
.LC2:
	.string	"waited for %d got %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"child did not terminate cleanly\n"
	.section	.rodata.str1.1
.LC4:
	.string	"/dev"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"unshare(CLONE_NEWNS) failed: %s\n"
	.section	.rodata.str1.1
.LC6:
	.string	"bind"
.LC7:
	.string	"/tmp"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"recursive bind mount of %s onto %s failed: %s\n"
	.section	.rodata.str1.1
.LC9:
	.string	"none"
.LC10:
	.string	"remount of /tmp failed: %s\n"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"Mount flags unexpectedly changed during remount of %s originally mounted on %s\n"
	.text
	.p2align 4
	.type	test_priv_mount_unpriv_remount, @function
test_priv_mount_unpriv_remount:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	fork@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L29
	test	eax, eax
	jne	.L30
	lea	rdi, .LC4[rip]
	call	read_mnt_flags@PLT
	mov	ebp, eax
	xor	eax, eax
	call	create_and_enter_userns@PLT
	mov	edi, DWORD PTR CLONE_NEWNS[rip]
	call	unshare@PLT
	test	eax, eax
	jne	.L31
.L9:
	mov	ecx, DWORD PTR MS_BIND[rip]
	xor	r8d, r8d
	or	ecx, DWORD PTR MS_REC[rip]
	lea	rdx, .LC6[rip]
	lea	rsi, .LC7[rip]
	lea	rdi, .LC4[rip]
	call	mount@PLT
	test	eax, eax
	jne	.L32
.L10:
	mov	ecx, DWORD PTR MS_REMOUNT[rip]
	or	ecx, DWORD PTR MS_BIND[rip]
	lea	rsi, .LC7[rip]
	xor	r8d, r8d
	or	ecx, ebp
	lea	rdx, .LC9[rip]
	mov	rdi, rsi
	call	mount@PLT
	test	eax, eax
	jne	.L33
	lea	rdi, .LC7[rip]
	call	read_mnt_flags@PLT
	cmp	ebp, eax
	jne	.L34
.L12:
	mov	rdi, QWORD PTR EXIT_SUCCESS[rip]
	call	exit@PLT
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L35
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	lea	rdx, .LC4[rip]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	lea	rdi, .LC11[rip]
	call	die@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC10[rip]
	mov	esi, eax
	xor	eax, eax
	call	die@PLT
	lea	rdi, .LC7[rip]
	call	read_mnt_flags@PLT
	cmp	ebp, eax
	je	.L12
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdx, .LC7[rip]
	lea	rsi, .LC4[rip]
	mov	ecx, eax
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	die@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC5[rip]
	mov	esi, eax
	xor	eax, eax
	call	die@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	die@PLT
	xor	edx, edx
	lea	rsi, 4[rsp]
	mov	edi, -1
	call	waitpid@PLT
	mov	edx, eax
	cmp	eax, -1
	je	.L3
.L4:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	mov	esi, ebp
	call	die@PLT
	mov	edi, DWORD PTR 4[rsp]
	call	WIFEXITED@PLT
	test	eax, eax
	je	.L36
.L8:
	mov	edi, DWORD PTR 4[rsp]
	call	WEXITSTATUS@PLT
	cmp	QWORD PTR EXIT_SUCCESS[rip], rax
	sete	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	xor	edx, edx
	lea	rsi, 4[rsp]
	mov	edi, eax
	call	waitpid@PLT
	mov	edx, eax
	cmp	eax, -1
	jne	.L6
.L3:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	die@PLT
	mov	edx, -1
.L6:
	cmp	ebp, edx
	jne	.L4
	mov	edi, DWORD PTR 4[rsp]
	call	WIFEXITED@PLT
	test	eax, eax
	jne	.L8
.L36:
	lea	rdi, .LC3[rip]
	call	die@PLT
	jmp	.L8
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_priv_mount_unpriv_remount, .-test_priv_mount_unpriv_remount
	.comm	errno,4,4
	.comm	MS_REMOUNT,4,4
	.comm	MS_REC,4,4
	.comm	MS_BIND,4,4
	.comm	EXIT_SUCCESS,8,8
	.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_unprivileged-remount-test.c_test_priv_mount_unpriv_remount.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fork failed: %s\012\000"
	.align	2
.LC1:
	.ascii	"waitpid failed: %s\012\000"
	.align	2
.LC2:
	.ascii	"waited for %d got %d\012\000"
	.align	2
.LC3:
	.ascii	"child did not terminate cleanly\012\000"
	.align	2
.LC4:
	.ascii	"/dev\000"
	.align	2
.LC5:
	.ascii	"unshare(CLONE_NEWNS) failed: %s\012\000"
	.align	2
.LC6:
	.ascii	"bind\000"
	.align	2
.LC7:
	.ascii	"/tmp\000"
	.align	2
.LC8:
	.ascii	"recursive bind mount of %s onto %s failed: %s\012\000"
	.align	2
.LC9:
	.ascii	"none\000"
	.align	2
.LC10:
	.ascii	"remount of /tmp failed: %s\012\000"
	.align	2
.LC11:
	.ascii	"Mount flags unexpectedly changed during remount of "
	.ascii	"%s originally mounted on %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_priv_mount_unpriv_remount, %function
test_priv_mount_unpriv_remount:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L37
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	fork
	cmn	r0, #1
	mov	r4, r0
	beq	.L29
	cmp	r0, #0
	bne	.L30
	ldr	r0, .L37+4
	bl	read_mnt_flags
	mov	r4, r0
	bl	create_and_enter_userns
	ldr	r3, .L37+8
	ldr	r0, [r3]
	bl	unshare
	cmp	r0, #0
	bne	.L31
.L9:
	mov	r1, #0
	ldr	r5, .L37+12
	ldr	r3, .L37+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r0, .L37+4
	str	r1, [sp]
	orr	r3, r2, r3
	ldr	r1, .L37+20
	ldr	r2, .L37+24
	bl	mount
	cmp	r0, #0
	bne	.L32
.L10:
	mov	r2, #0
	ldr	r3, .L37+28
	ldr	r0, [r5]
	ldr	r3, [r3]
	ldr	r1, .L37+20
	orr	r3, r3, r0
	str	r2, [sp]
	mov	r0, r1
	ldr	r2, .L37+32
	orr	r3, r3, r4
	bl	mount
	cmp	r0, #0
	bne	.L33
	ldr	r0, .L37+20
	bl	read_mnt_flags
	cmp	r4, r0
	bne	.L34
.L12:
	ldr	r3, .L37+36
	ldr	r0, [r3]
	bl	exit
.L1:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L34:
	ldr	r2, .L37+4
	ldr	r1, .L37+20
	ldr	r0, .L37+40
	bl	die
	b	.L12
.L33:
	ldr	r3, .L37+44
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L37+48
	bl	die
	ldr	r0, .L37+20
	bl	read_mnt_flags
	cmp	r4, r0
	beq	.L12
	b	.L34
.L32:
	ldr	r3, .L37+44
	ldr	r0, [r3]
	bl	strerror
	ldr	r2, .L37+20
	mov	r3, r0
	ldr	r1, .L37+4
	ldr	r0, .L37+52
	bl	die
	b	.L10
.L31:
	ldr	r3, .L37+44
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L37+56
	bl	die
	b	.L9
.L29:
	ldr	r5, .L37+44
	ldr	r0, [r5]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L37+60
	bl	die
	mov	r2, #0
	mov	r0, r4
	add	r1, sp, #8
	bl	waitpid
	cmn	r0, #1
	beq	.L3
.L4:
	mov	r2, r0
	mov	r1, r4
	ldr	r0, .L37+64
	bl	die
	ldr	r0, [sp, #8]
	bl	WIFEXITED
	cmp	r0, #0
	beq	.L36
.L8:
	ldr	r0, [sp, #8]
	bl	WEXITSTATUS
	ldr	r3, .L37+36
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L1
.L30:
	mov	r2, #0
	add	r1, sp, #8
	bl	waitpid
	cmn	r0, #1
	bne	.L6
	ldr	r5, .L37+44
.L3:
	ldr	r0, [r5]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L37+68
	bl	die
	mvn	r0, #0
.L6:
	cmp	r4, r0
	bne	.L4
	ldr	r0, [sp, #8]
	bl	WIFEXITED
	cmp	r0, #0
	bne	.L8
.L36:
	ldr	r0, .L37+72
	bl	die
	b	.L8
.L35:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC12
	.word	.LC4
	.word	CLONE_NEWNS
	.word	MS_BIND
	.word	MS_REC
	.word	.LC7
	.word	.LC6
	.word	MS_REMOUNT
	.word	.LC9
	.word	EXIT_SUCCESS
	.word	.LC11
	.word	errno
	.word	.LC10
	.word	.LC8
	.word	.LC5
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	test_priv_mount_unpriv_remount, .-test_priv_mount_unpriv_remount
	.comm	errno,4,4
	.comm	MS_REMOUNT,4,4
	.comm	MS_REC,4,4
	.comm	MS_BIND,4,4
	.comm	EXIT_SUCCESS,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
