	.file	"638329.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"mnt"
.LC1:
	.string	"_DOCKER_PID"
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"nsenter: Unable to parse _DOCKER_PID: %m\n"
.LC4:
	.string	"/proc/%d/ns"
	.align 8
.LC5:
	.string	"nsenter: Failed to open \"%s\": %m\n"
	.align 8
.LC6:
	.string	"nsenter: Failed to open ns file %s for ns %s: %m\n"
	.align 8
.LC7:
	.string	"nsenter: Failed to setns for %s: %m\n"
	.text
	.globl	joinmnt
	.type	joinmnt, @function
joinmnt:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -4264[rbp], rax
	mov	DWORD PTR -4288[rbp], 1
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	QWORD PTR -4272[rbp], rax
	cmp	QWORD PTR -4272[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -4272[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4284[rbp], eax
	mov	edx, DWORD PTR -4284[rbp]
	lea	rax, -4112[rbp]
	mov	ecx, edx
	lea	rdx, .LC2[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -4272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	edx, DWORD PTR -4284[rbp]
	lea	rax, -4112[rbp]
	mov	ecx, edx
	lea	rdx, .LC4[rip]
	mov	esi, 4095
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -4112[rbp]
	mov	esi, 65536
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4280[rbp], eax
	cmp	DWORD PTR -4280[rbp], -1
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -4112[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	DWORD PTR -4292[rbp], 0
	jmp	.L6
.L11:
	mov	eax, DWORD PTR -4292[rbp]
	cdqe
	mov	rsi, QWORD PTR -4264[rbp+rax*8]
	lea	rdx, -4256[rbp]
	mov	eax, DWORD PTR -4280[rbp]
	mov	ecx, 256
	mov	edi, eax
	call	fstatat@PLT
	cmp	eax, -1
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L14
.L7:
	mov	eax, DWORD PTR -4292[rbp]
	cdqe
	mov	rcx, QWORD PTR -4264[rbp+rax*8]
	mov	eax, DWORD PTR -4280[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	openat@PLT
	mov	DWORD PTR -4276[rbp], eax
	cmp	DWORD PTR -4276[rbp], -1
	jne	.L9
	mov	eax, DWORD PTR -4292[rbp]
	cdqe
	mov	rcx, QWORD PTR -4264[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -4112[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -4276[rbp]
	mov	esi, 0
	mov	edi, eax
	call	setns@PLT
	cmp	eax, -1
	jne	.L10
	mov	eax, DWORD PTR -4292[rbp]
	cdqe
	mov	rdx, QWORD PTR -4264[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -4276[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L8
.L14:
	nop
.L8:
	add	DWORD PTR -4292[rbp], 1
.L6:
	mov	eax, DWORD PTR -4292[rbp]
	cmp	eax, DWORD PTR -4288[rbp]
	jl	.L11
	jmp	.L1
.L13:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	joinmnt, .-joinmnt
	.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	"638329.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"mnt\000"
	.align	2
.LC1:
	.ascii	"_DOCKER_PID\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"nsenter: Unable to parse _DOCKER_PID: %m\012\000"
	.align	2
.LC4:
	.ascii	"/proc/%d/ns\000"
	.align	2
.LC5:
	.ascii	"nsenter: Failed to open \"%s\": %m\012\000"
	.align	2
.LC6:
	.ascii	"nsenter: Failed to open ns file %s for ns %s: %m\012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"nsenter: Failed to setns for %s: %m\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	joinmnt
	.syntax unified
	.arm
	.fpu softvfp
	.type	joinmnt, %function
joinmnt:
	@ args = 0, pretend = 0, frame = 4216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #60
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L15+4
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L15+8
	bl	getenv
	str	r0, [r4, #-112]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-112]
	bl	atoi
	str	r0, [r4, #-108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-108]
	ldr	r2, .L15+12
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-112]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L15+16
	ldr	r3, [r3]
	ldr	r1, .L15+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-108]
	ldr	r2, .L15+24
	ldr	r1, .L15+28
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #16384
	mov	r0, r3
	bl	open
	str	r0, [r4, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L15+16
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L15+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	b	.L6
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-8]
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #256
	ldr	r0, [r0, #-104]
	bl	fstatat
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L14
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-8]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-104]
	bl	openat
	str	r0, [r4, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L15+16
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-8]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #4
	ldr	r1, .L15+36
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-100]
	bl	setns
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r3, .L15+16
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-8]
	mov	r2, r3
	ldr	r1, .L15+40
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-100]
	bl	close
	b	.L8
.L14:
	nop
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #1
	str	r3, [r2, #-120]
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-120]
	ldr	r3, [r3, #-116]
	cmp	r2, r3
	blt	.L11
	b	.L1
.L13:
	nop
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	4095
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	joinmnt, .-joinmnt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
