	.file	"extr_nsproxy.c_copy_namespaces.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	copy_namespaces
	.type	copy_namespaces, @function
copy_namespaces:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	mov	rdi, rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rsi]
	xor	esi, esi
	call	task_cred_xxx@PLT
	xor	edi, edi
	mov	r12, rax
	mov	rax, QWORD PTR CLONE_NEWNS[rip]
	or	rax, QWORD PTR CLONE_NEWUTS[rip]
	or	rax, QWORD PTR CLONE_NEWIPC[rip]
	or	rax, QWORD PTR CLONE_NEWPID[rip]
	or	rax, QWORD PTR CLONE_NEWNET[rip]
	or	rax, QWORD PTR CLONE_NEWCGROUP[rip]
	test	rax, rbp
	sete	dil
	call	likely@PLT
	test	rax, rax
	jne	.L9
	mov	esi, DWORD PTR CAP_SYS_ADMIN[rip]
	mov	rdi, r12
	call	ns_capable@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR CLONE_NEWIPC[rip]
	or	rax, QWORD PTR CLONE_SYSVSEM[rip]
	mov	rdx, rax
	and	rdx, rbp
	cmp	rax, rdx
	je	.L11
	mov	ecx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	rdx, r12
	mov	rsi, rbx
	call	create_new_namespaces@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
	mov	QWORD PTR [rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR EPERM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r13
	call	get_nsproxy@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	copy_namespaces, .-copy_namespaces
	.comm	user_ns,8,8
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CLONE_SYSVSEM,8,8
	.comm	CLONE_NEWUTS,8,8
	.comm	CLONE_NEWPID,8,8
	.comm	CLONE_NEWNS,8,8
	.comm	CLONE_NEWNET,8,8
	.comm	CLONE_NEWIPC,8,8
	.comm	CLONE_NEWCGROUP,8,8
	.comm	CAP_SYS_ADMIN,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_nsproxy.c_copy_namespaces.c"
	.text
	.align	2
	.global	copy_namespaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_namespaces, %function
copy_namespaces:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r0, r1
	mov	r1, #0
	ldr	r6, [r4]
	bl	task_cred_xxx
	ldr	r1, .L13
	ldr	r3, .L13+4
	mov	r8, r0
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r7, .L13+8
	ldr	r1, .L13+12
	orr	r3, r3, r0
	ldr	r0, [r7]
	ldr	r1, [r1]
	orr	r3, r3, r0
	ldr	r0, .L13+16
	orr	r3, r3, r1
	ldr	r1, .L13+20
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r3, r3, r0
	orr	r3, r3, r1
	tst	r3, r5
	moveq	r0, #1
	movne	r0, #0
	bl	likely
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L13+24
	mov	r0, r8
	ldr	r1, [r3]
	bl	ns_capable
	cmp	r0, #0
	beq	.L10
	ldr	r2, .L13+28
	ldr	r3, [r7]
	ldr	r2, [r2]
	orr	r3, r3, r2
	bics	r3, r3, r5
	beq	.L11
	mov	r2, r8
	mov	r0, r5
	mov	r1, r4
	ldr	r3, [r4, #4]
	bl	create_new_namespaces
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L12
	str	r5, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L13+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r6
	bl	get_nsproxy
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L13+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L14:
	.align	2
.L13:
	.word	CLONE_NEWUTS
	.word	CLONE_NEWNS
	.word	CLONE_NEWIPC
	.word	CLONE_NEWPID
	.word	CLONE_NEWNET
	.word	CLONE_NEWCGROUP
	.word	CAP_SYS_ADMIN
	.word	CLONE_SYSVSEM
	.word	EPERM
	.word	EINVAL
	.size	copy_namespaces, .-copy_namespaces
	.comm	user_ns,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CLONE_SYSVSEM,4,4
	.comm	CLONE_NEWUTS,4,4
	.comm	CLONE_NEWPID,4,4
	.comm	CLONE_NEWNS,4,4
	.comm	CLONE_NEWNET,4,4
	.comm	CLONE_NEWIPC,4,4
	.comm	CLONE_NEWCGROUP,4,4
	.comm	CAP_SYS_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
