	.file	"904736.c"
	.intel_syntax noprefix
	.text
	.type	child, @function
child:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	esi, 9
	mov	edi, 1
	mov	eax, 0
	call	prctl@PLT
.L2:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	child, .-child
	.section	.rodata
.LC0:
	.string	"pid"
.LC1:
	.string	"user"
.LC2:
	.string	"%s:%d:clone: %m\n"
.LC3:
	.string	"/proc/%d/ns/%s"
.LC4:
	.string	"%s:%d:Unable to open %s: %m\n"
	.align 8
.LC5:
	.string	"%s:%d:Unable to get a parent pidns: %m\n"
.LC6:
	.string	"/proc/self/ns/%s"
.LC7:
	.string	"%s:%d:Unable to stat %s: %m\n"
	.align 8
.LC8:
	.string	"%s:%d:Unable to stat the parent pidns: %m\n"
	.align 8
.LC9:
	.string	"%s:%d:NS_GET_PARENT returned a wrong namespace: %m\n"
.LC10:
	.string	"%s:%d:Don't get EPERM: %m\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 496
	mov	DWORD PTR -484[rbp], edi
	mov	QWORD PTR -496[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -464[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -456[rbp], rax
	movabs	rax, 3544385010858618927
	movabs	rdx, 4123106164818064178
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	movabs	rax, 28263428224413231
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -448[rbp]
	sub	rax, -128
	mov	ecx, 0
	mov	edx, 805306385
	mov	rsi, rax
	lea	rdi, child[rip]
	mov	eax, 0
	call	clone@PLT
	mov	DWORD PTR -476[rbp], eax
	cmp	DWORD PTR -476[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 52
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L15
.L4:
	mov	DWORD PTR -480[rbp], 0
	jmp	.L6
.L14:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	mov	rcx, QWORD PTR -464[rbp+rax*8]
	mov	edx, DWORD PTR -476[rbp]
	lea	rax, -32[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC3[rip]
	mov	esi, 24
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -472[rbp], eax
	cmp	DWORD PTR -472[rbp], 0
	jns	.L7
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -32[rbp]
	mov	r8, rdx
	mov	ecx, 58
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L15
.L7:
	mov	eax, DWORD PTR -472[rbp]
	mov	esi, 46850
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -468[rbp], eax
	cmp	DWORD PTR -468[rbp], 0
	jns	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 62
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L15
.L8:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	mov	rdx, QWORD PTR -464[rbp+rax*8]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	lea	rdx, .LC6[rip]
	mov	esi, 24
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rdx, -176[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -32[rbp]
	mov	r8, rdx
	mov	ecx, 66
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L15
.L9:
	lea	rdx, -320[rbp]
	mov	eax, DWORD PTR -468[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 68
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L15
.L10:
	mov	rdx, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR -168[rbp]
	cmp	rdx, rax
	je	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 70
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L15
.L11:
	mov	eax, DWORD PTR -468[rbp]
	mov	esi, 46850
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L13
.L12:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 73
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L15
.L13:
	add	DWORD PTR -480[rbp], 1
.L6:
	cmp	DWORD PTR -480[rbp], 1
	jle	.L14
	mov	eax, DWORD PTR -476[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	edi, 0
	call	wait@PLT
	mov	eax, 0
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__func__.0, @object
	.size	__func__.0, 5
__func__.0:
	.string	"main"
	.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	"904736.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pid\000"
	.align	2
.LC1:
	.ascii	"user\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child, %function
child:
	@ 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, #9
	mov	r0, #1
	bl	prctl
.L2:
	mov	r0, #1
	bl	sleep
	b	.L2
	.size	child, .-child
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s:%d:clone: %m\012\000"
	.align	2
.LC6:
	.ascii	"/proc/%d/ns/%s\000"
	.align	2
.LC7:
	.ascii	"%s:%d:Unable to open %s: %m\012\000"
	.align	2
.LC8:
	.ascii	"%s:%d:Unable to get a parent pidns: %m\012\000"
	.align	2
.LC9:
	.ascii	"/proc/self/ns/%s\000"
	.align	2
.LC10:
	.ascii	"%s:%d:Unable to stat %s: %m\012\000"
	.align	2
.LC11:
	.ascii	"%s:%d:Unable to stat the parent pidns: %m\012\000"
	.align	2
.LC12:
	.ascii	"%s:%d:NS_GET_PARENT returned a wrong namespace: %m\012"
	.ascii	"\000"
	.align	2
.LC13:
	.ascii	"%s:%d:Don't get EPERM: %m\012\000"
	.align	2
.LC3:
	.word	.LC0
	.word	.LC1
	.align	2
.LC4:
	.ascii	"/proc/0123456789/ns/pid\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #388
	str	r0, [fp, #-384]
	str	r1, [fp, #-388]
	sub	r3, fp, #12
	sub	r3, r3, #176
	add	r3, r3, #15
	lsr	r3, r3, #4
	lsl	r4, r3, #4
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L17+4
	sub	r3, fp, #48
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L17+8
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	add	r1, r4, #128
	mov	r3, #0
	ldr	r2, .L17+12
	ldr	r0, .L17+16
	bl	clone
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L17+20
	ldr	r0, [r3]
	mov	r3, #52
	ldr	r2, .L17+24
	ldr	r1, .L17+28
	bl	fprintf
	mov	r3, #1
	b	.L15
.L4:
	mov	r3, #0
	str	r3, [fp, #-380]
	b	.L6
.L14:
	ldr	r3, [fp, #-380]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	sub	r0, fp, #40
	str	r3, [sp]
	ldr	r3, [fp, #-376]
	ldr	r2, .L17+32
	mov	r1, #24
	bl	snprintf
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L17+20
	ldr	r0, [r3]
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, #58
	ldr	r2, .L17+24
	ldr	r1, .L17+36
	bl	fprintf
	mov	r3, #1
	b	.L15
.L7:
	ldr	r1, .L17+40
	ldr	r0, [fp, #-372]
	bl	ioctl
	str	r0, [fp, #-368]
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	bge	.L8
	ldr	r3, .L17+20
	ldr	r0, [r3]
	mov	r3, #62
	ldr	r2, .L17+24
	ldr	r1, .L17+44
	bl	fprintf
	mov	r3, #1
	b	.L15
.L8:
	ldr	r3, [fp, #-380]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	sub	r0, fp, #40
	ldr	r2, .L17+48
	mov	r1, #24
	bl	snprintf
	sub	r2, fp, #276
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L17+20
	ldr	r0, [r3]
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, #66
	ldr	r2, .L17+24
	ldr	r1, .L17+52
	bl	fprintf
	mov	r3, #1
	b	.L15
.L9:
	sub	r3, fp, #364
	mov	r1, r3
	ldr	r0, [fp, #-368]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L17+20
	ldr	r0, [r3]
	mov	r3, #68
	ldr	r2, .L17+24
	ldr	r1, .L17+56
	bl	fprintf
	mov	r3, #1
	b	.L15
.L10:
	ldr	r2, [fp, #-352]
	ldr	r3, [fp, #-264]
	cmp	r2, r3
	beq	.L11
	ldr	r3, .L17+20
	ldr	r0, [r3]
	mov	r3, #70
	ldr	r2, .L17+24
	ldr	r1, .L17+60
	bl	fprintf
	mov	r3, #1
	b	.L15
.L11:
	ldr	r1, .L17+40
	ldr	r0, [fp, #-368]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L13
.L12:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	mov	r3, #73
	ldr	r2, .L17+24
	ldr	r1, .L17+64
	bl	fprintf
	mov	r3, #1
	b	.L15
.L13:
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
.L6:
	ldr	r3, [fp, #-380]
	cmp	r3, #1
	ble	.L14
	mov	r1, #9
	ldr	r0, [fp, #-376]
	bl	kill
	mov	r0, #0
	bl	wait
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC14
	.word	.LC3
	.word	.LC4
	.word	805306385
	.word	child
	.word	stderr
	.word	__func__.6907
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	46850
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.6907, %object
	.size	__func__.6907, 5
__func__.6907:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
