	.file	"234519352.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"My PID is: %d\n"
.LC1:
	.string	"socket"
.LC2:
	.string	"/var/run/netns/TESTNS"
.LC3:
	.string	"open"
.LC4:
	.string	"setns"
	.align 8
.LC5:
	.string	"Changed to a new namespace. Sleeping for %d seconds..."
.LC6:
	.string	"connect"
.LC7:
	.string	"GET / HTTP/1.0\r\n\r\n"
.LC8:
	.string	"write"
.LC9:
	.string	"%s"
.LC10:
	.string	"read"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -168[rbp], eax
	cmp	DWORD PTR -168[rbp], 0
	jns	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -168[rbp]
	mov	esi, 1073741824
	mov	edi, eax
	call	setns@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	esi, 120
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 120
	call	sleep@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	WORD PTR -160[rbp], 2
	mov	edi, 80
	call	htons@PLT
	mov	WORD PTR -158[rbp], ax
	mov	edi, -1590345461
	call	htonl@PLT
	mov	DWORD PTR -156[rbp], eax
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 19
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L7
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	BYTE PTR -144[rbp+rax], 0
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 127
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jg	.L8
	cmp	DWORD PTR -164[rbp], 0
	jns	.L9
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-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	"234519352.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"My PID is: %d\012\000"
	.align	2
.LC1:
	.ascii	"socket\000"
	.align	2
.LC2:
	.ascii	"/var/run/netns/TESTNS\000"
	.align	2
.LC3:
	.ascii	"open\000"
	.align	2
.LC4:
	.ascii	"setns\000"
	.align	2
.LC5:
	.ascii	"Changed to a new namespace. Sleeping for %d seconds"
	.ascii	"...\000"
	.align	2
.LC6:
	.ascii	"connect\000"
	.align	2
.LC7:
	.ascii	"GET / HTTP/1.0\015\012\015\012\000"
	.align	2
.LC8:
	.ascii	"write\000"
	.align	2
.LC9:
	.ascii	"%s\000"
	.align	2
.LC10:
	.ascii	"read\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+4
	bl	printf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L12+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	mov	r1, #0
	ldr	r0, .L12+12
	bl	open
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L12+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #1073741824
	ldr	r0, [fp, #-160]
	bl	setns
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L12+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	mov	r1, #120
	ldr	r0, .L12+24
	bl	printf
	ldr	r3, .L12+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #120
	bl	sleep
	mov	r0, #10
	bl	putchar
	mov	r3, #2
	strh	r3, [fp, #-152]	@ movhi
	mov	r0, #80
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-150]	@ movhi
	ldr	r0, .L12+32
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-148]
	sub	r3, fp, #152
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-164]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L12+36
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	mov	r2, #19
	ldr	r1, .L12+40
	ldr	r0, [fp, #-164]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L12+44
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	sub	r2, fp, #136
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L12+48
	bl	printf
.L7:
	sub	r3, fp, #136
	mov	r2, #127
	mov	r1, r3
	ldr	r0, [fp, #-164]
	bl	read
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L12+52
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	ldr	r0, [fp, #-160]
	bl	close
	ldr	r0, [fp, #-164]
	bl	close
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stdout
	.word	-1590345461
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
