	.file	"901778.c"
	.intel_syntax noprefix
	.text
	.globl	setnoblocking
	.type	setnoblocking, @function
setnoblocking:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	or	DWORD PTR -4[rbp], 2048
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setnoblocking, .-setnoblocking
	.section	.rodata
	.align 8
.LC0:
	.string	"usage ./epoll_clent <SERVER_IP> \n"
.LC1:
	.string	"socket error"
.LC2:
	.string	"inet_pton error for %s"
.LC3:
	.string	"connect"
.LC4:
	.string	"connect error\n"
.LC5:
	.string	"[send] %s \n"
.LC6:
	.string	"send"
.LC7:
	.string	"recv"
.LC8:
	.string	"[recv] %s\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, 1200
	mov	DWORD PTR -1188[rbp], edi
	mov	QWORD PTR -1200[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	cmp	DWORD PTR -1188[rbp], 2
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1176[rbp], eax
	cmp	DWORD PTR -1176[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	lea	rax, -1168[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1168[rbp], 2
	mov	edi, 8899
	call	htons@PLT
	mov	WORD PTR -1166[rbp], ax
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1168[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L5
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	lea	rcx, -1168[rbp]
	mov	eax, DWORD PTR -1176[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -1176[rbp]
	mov	edi, eax
	call	setnoblocking
	mov	DWORD PTR -1172[rbp], 0
	mov	DWORD PTR -1180[rbp], 0
	jmp	.L7
.L12:
	lea	rax, -1152[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1172[rbp], 0
	lea	rax, -1152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1152[rbp]
	mov	eax, DWORD PTR -1176[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -1172[rbp], eax
	cmp	DWORD PTR -1172[rbp], 0
	jns	.L8
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L8:
	mov	DWORD PTR -1172[rbp], 0
	mov	DWORD PTR -1180[rbp], 0
.L10:
	mov	eax, DWORD PTR -1180[rbp]
	cdqe
	lea	rdx, -1040[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -1176[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1172[rbp], eax
	cmp	DWORD PTR -1172[rbp], 1024
	jne	.L9
	mov	eax, DWORD PTR -1172[rbp]
	add	DWORD PTR -1180[rbp], eax
	jmp	.L10
.L9:
	cmp	DWORD PTR -1172[rbp], 0
	jns	.L11
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -1172[rbp]
	add	DWORD PTR -1180[rbp], eax
	mov	eax, DWORD PTR -1180[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 10
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L7:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1152[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L12
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"901778.c"
	.text
	.align	2
	.global	setnoblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	setnoblocking, %function
setnoblocking:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	str	r3, [fp, #-8]
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setnoblocking, .-setnoblocking
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage ./epoll_clent <SERVER_IP> \012\000"
	.align	2
.LC1:
	.ascii	"socket error\000"
	.align	2
.LC2:
	.ascii	"inet_pton error for %s\000"
	.align	2
.LC3:
	.ascii	"connect\000"
	.align	2
.LC4:
	.ascii	"connect error\012\000"
	.align	2
.LC5:
	.ascii	"[send] %s \012\000"
	.align	2
.LC6:
	.ascii	"send\000"
	.align	2
.LC7:
	.ascii	"recv\000"
	.align	2
.LC8:
	.ascii	"[recv] %s\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1168
	str	r0, [fp, #-1168]
	str	r1, [fp, #-1172]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1036]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L15+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1168]
	cmp	r3, #2
	beq	.L3
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L15+12
	bl	fwrite
	mov	r0, #0
	bl	exit
.L3:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1160]
	ldr	r3, [fp, #-1160]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L15+16
	bl	fwrite
	mov	r0, #0
	bl	exit
.L4:
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L15+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #12
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-1172]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L5
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-1172]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+24
	bl	fprintf
	mov	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L15+28
	bl	perror
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L15+32
	bl	fwrite
	mov	r0, #0
	bl	exit
.L6:
	ldr	r0, [fp, #-1160]
	bl	setnoblocking
	mov	r3, #0
	str	r3, [fp, #-1156]
	mov	r3, #0
	str	r3, [fp, #-1164]
	b	.L7
.L12:
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1156]
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1120
	sub	r1, r1, #4
	sub	r1, r1, #12
	mov	r3, #0
	ldr	r0, [fp, #-1160]
	bl	send
	str	r0, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L15+40
	bl	perror
.L8:
	mov	r3, #0
	str	r3, [fp, #-1156]
	mov	r3, #0
	str	r3, [fp, #-1164]
.L10:
	ldr	r2, [fp, #-1164]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	add	r3, r3, r2
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	read
	str	r0, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #1024
	bne	.L9
	ldr	r2, [fp, #-1164]
	ldr	r3, [fp, #-1156]
	add	r3, r2, r3
	str	r3, [fp, #-1164]
	b	.L10
.L9:
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L15+44
	bl	perror
	b	.L7
.L11:
	ldr	r2, [fp, #-1164]
	ldr	r3, [fp, #-1156]
	add	r3, r2, r3
	str	r3, [fp, #-1164]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1164]
	add	r3, r3, r2
	mov	r2, #10
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L15+48
	bl	printf
	nop
.L7:
	ldr	r3, .L15+52
	ldr	r2, [r3]
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC9
	.word	1021
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	8899
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
