	.file	"114555.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"cannot create communication socket"
.LC1:
	.string	"fail to modify svr socket"
.LC2:
	.string	"/tmp/psctrl_l1c"
.LC3:
	.string	"cannot bind server socket"
	.align 8
.LC4:
	.string	"cannot listen the client connect request"
	.align 8
.LC5:
	.string	"cannot accept client connect request"
.LC6:
	.string	"Client connected."
.LC7:
	.string	"Still waiting."
.LC8:
	.string	"com_fd = %d\n"
.LC9:
	.string	"TanG counter = %d\n"
.LC10:
	.string	"Socket is not empty = %d\n"
.LC11:
	.string	"%02x "
.LC12:
	.string	"ret = %d\n"
	.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -256[rbp], -1
	mov	DWORD PTR -252[rbp], -1
	mov	DWORD PTR -264[rbp], 0
	mov	DWORD PTR -248[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -256[rbp], eax
	cmp	DWORD PTR -256[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L14
.L2:
	mov	DWORD PTR -248[rbp], 0
	mov	eax, DWORD PTR -256[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -248[rbp], eax
	or	DWORD PTR -248[rbp], 2048
	mov	edx, DWORD PTR -248[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L4:
	lea	rax, -128[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -128[rbp], 1
	lea	rax, -128[rbp]
	add	rax, 2
	mov	edx, 107
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	unlink@PLT
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	unlink@PLT
	mov	eax, 1
	jmp	.L14
.L5:
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], -1
	jne	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	unlink@PLT
	mov	eax, 1
	jmp	.L14
.L6:
	mov	DWORD PTR -264[rbp], 0
	mov	WORD PTR -270[rbp], 0
.L10:
	lea	rdx, -268[rbp]
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], 0
	jns	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L16
.L7:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L9
.L16:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -252[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -252[rbp], 0
	jle	.L11
	mov	eax, DWORD PTR -264[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -264[rbp], edx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -268[rbp], 110
	mov	eax, DWORD PTR -252[rbp]
	mov	edx, 64
	lea	rsi, recv_buf.0[rip]
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], 0
	jle	.L11
	mov	eax, DWORD PTR -260[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L13:
	lea	rcx, -271[rbp]
	mov	eax, DWORD PTR -252[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	WORD PTR -270[rbp], ax
	movzx	eax, BYTE PTR -271[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -270[rbp]
	sub	DWORD PTR -260[rbp], eax
.L12:
	cmp	DWORD PTR -260[rbp], 0
	jne	.L13
	mov	edi, 10
	call	putchar@PLT
	mov	BYTE PTR recv_buf.0[rip+2], 63
	mov	BYTE PTR recv_buf.0[rip+3], 41
	mov	eax, DWORD PTR -252[rbp]
	mov	edx, 64
	lea	rsi, recv_buf.0[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -244[rbp], eax
	mov	eax, DWORD PTR -244[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	jmp	.L9
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.local	recv_buf.0
	.comm	recv_buf.0,64,32
	.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	"114555.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cannot create communication socket\000"
	.align	2
.LC1:
	.ascii	"fail to modify svr socket\000"
	.align	2
.LC2:
	.ascii	"/tmp/psctrl_l1c\000"
	.align	2
.LC3:
	.ascii	"cannot bind server socket\000"
	.align	2
.LC4:
	.ascii	"cannot listen the client connect request\000"
	.align	2
.LC5:
	.ascii	"cannot accept client connect request\000"
	.align	2
.LC6:
	.ascii	"Client connected.\000"
	.align	2
.LC7:
	.ascii	"Still waiting.\000"
	.align	2
.LC8:
	.ascii	"com_fd = %d\012\000"
	.align	2
.LC9:
	.ascii	"TanG counter = %d\012\000"
	.align	2
.LC10:
	.ascii	"Socket is not empty = %d\012\000"
	.align	2
.LC11:
	.ascii	"%02x \000"
	.align	2
.LC12:
	.ascii	"ret = %d\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-248]
	mvn	r3, #0
	str	r3, [fp, #-244]
	mov	r3, #0
	str	r3, [fp, #-256]
	mov	r3, #0
	str	r3, [fp, #-240]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-248]
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L17+4
	bl	perror
	mov	r3, #1
	b	.L14
.L2:
	mov	r3, #0
	str	r3, [fp, #-240]
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-248]
	bl	fcntl
	str	r0, [fp, #-240]
	ldr	r3, [fp, #-240]
	orr	r3, r3, #2048
	str	r3, [fp, #-240]
	ldr	r2, [fp, #-240]
	mov	r1, #4
	ldr	r0, [fp, #-248]
	bl	fcntl
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L17+8
	bl	perror
.L4:
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	sub	r3, fp, #120
	add	r3, r3, #2
	mov	r2, #107
	ldr	r1, .L17+12
	mov	r0, r3
	bl	strncpy
	ldr	r0, .L17+12
	bl	unlink
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-248]
	bl	bind
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L17+16
	bl	perror
	ldr	r0, [fp, #-248]
	bl	close
	ldr	r0, .L17+12
	bl	unlink
	mov	r3, #1
	b	.L14
.L5:
	mov	r1, #1
	ldr	r0, [fp, #-248]
	bl	listen
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L17+20
	bl	perror
	ldr	r0, [fp, #-248]
	bl	close
	ldr	r0, .L17+12
	bl	unlink
	mov	r3, #1
	b	.L14
.L6:
	mov	r3, #0
	str	r3, [fp, #-256]
	sub	r3, fp, #4
	sub	r3, r3, #256
	sub	r3, r3, #2
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L10:
	sub	r2, fp, #260
	sub	r3, fp, #232
	mov	r1, r3
	ldr	r0, [fp, #-248]
	bl	accept
	str	r0, [fp, #-244]
	ldr	r3, [fp, #-244]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L17+24
	bl	perror
	b	.L16
.L7:
	ldr	r0, .L17+28
	bl	puts
	b	.L9
.L16:
	ldr	r0, .L17+32
	bl	puts
	mov	r0, #1
	bl	sleep
	b	.L10
.L9:
	ldr	r1, [fp, #-244]
	ldr	r0, .L17+36
	bl	printf
	ldr	r3, [fp, #-244]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-256]
	add	r2, r3, #1
	str	r2, [fp, #-256]
	mov	r1, r3
	ldr	r0, .L17+40
	bl	printf
	mov	r3, #110
	str	r3, [fp, #-260]
	mov	r2, #64
	ldr	r1, .L17+44
	ldr	r0, [fp, #-244]
	bl	read
	str	r0, [fp, #-252]
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	ble	.L11
	ldr	r1, [fp, #-252]
	ldr	r0, .L17+48
	bl	printf
	b	.L12
.L13:
	sub	r3, fp, #260
	sub	r3, r3, #3
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-244]
	bl	read
	mov	r2, r0
	sub	r3, fp, #4
	sub	r3, r3, #256
	sub	r3, r3, #2
	strh	r2, [r3]	@ movhi
	ldrb	r3, [fp, #-263]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+52
	bl	printf
	sub	r3, fp, #4
	sub	r3, r3, #256
	sub	r3, r3, #2
	ldrh	r3, [r3]
	ldr	r2, [fp, #-252]
	sub	r3, r2, r3
	str	r3, [fp, #-252]
.L12:
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	bne	.L13
	mov	r0, #10
	bl	putchar
	ldr	r3, .L17+44
	mov	r2, #63
	strb	r2, [r3, #2]
	ldr	r3, .L17+44
	mov	r2, #41
	strb	r2, [r3, #3]
	mov	r2, #64
	ldr	r1, .L17+44
	ldr	r0, [fp, #-244]
	bl	write
	str	r0, [fp, #-236]
	ldr	r1, [fp, #-236]
	ldr	r0, .L17+56
	bl	printf
.L11:
	mov	r0, #1
	bl	sleep
	b	.L9
.L14:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	recv_buf.5550
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.local	recv_buf.5550
	.comm	recv_buf.5550,64,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
