	.file	"712184.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket()"
.LC1:
	.string	"setting O_NONBLOCK"
	.text
	.type	new_socket_unix, @function
new_socket_unix:
.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	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L4
	mov	eax, DWORD PTR -4[rbp]
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L5
.L4:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	new_socket_unix, .-new_socket_unix
	.type	new_socket_linux_block, @function
new_socket_linux_block:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L7
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -8[rbp]
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	new_socket_linux_block, .-new_socket_linux_block
	.globl	test_change_vim
	.type	test_change_vim, @function
test_change_vim:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	test_change_vim, .-test_change_vim
	.section	.rodata
.LC2:
	.string	"buf:%p, len:%d \n"
.LC3:
	.string	"192.168.1.253"
.LC4:
	.string	"127.0.0.1"
.LC5:
	.string	"connect()"
.LC6:
	.string	"send buf :%s \n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -88[rbp], 0
	je	.L12
	cmp	DWORD PTR -92[rbp], 0
	jg	.L13
.L12:
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L13:
	mov	eax, 0
	call	test_change_vim
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], -1
	mov	DWORD PTR -68[rbp], 600
	mov	DWORD PTR -64[rbp], 0
	lea	rax, .LC3[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 15000
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -60[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	call	new_socket_linux_block
	mov	DWORD PTR -76[rbp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L15
	lea	rdi, .LC5[rip]
	call	perror@PLT
	nop
.L16:
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L11
.L15:
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	edi, 1000000
	call	usleep@PLT
	nop
.L11:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run, .-run
	.section	.rodata
.LC7:
	.string	"usage error "
.LC8:
	.string	"run cli id : %s \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 2
	je	.L20
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -144[rbp]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	mov	esi, 127
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -148[rbp], 0
	jmp	.L21
.L22:
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	run
	add	DWORD PTR -148[rbp], 1
.L21:
	cmp	DWORD PTR -148[rbp], 9
	jle	.L22
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"712184.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket()\000"
	.align	2
.LC1:
	.ascii	"setting O_NONBLOCK\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_socket_unix, %function
new_socket_unix:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L6
	bl	perror
	mvn	r3, #0
	b	.L3
.L2:
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-12]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-12]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
.L4:
	ldr	r0, .L6+4
	bl	perror
	ldr	r0, [fp, #-12]
	bl	close
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.size	new_socket_unix, .-new_socket_unix
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_socket_linux_block, %function
new_socket_linux_block:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L11
	bl	perror
	mvn	r3, #0
	b	.L10
.L9:
	ldr	r3, [fp, #-12]
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	new_socket_linux_block, .-new_socket_linux_block
	.align	2
	.global	test_change_vim
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_change_vim, %function
test_change_vim:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test_change_vim, .-test_change_vim
	.section	.rodata
	.align	2
.LC2:
	.ascii	"buf:%p, len:%d \012\000"
	.align	2
.LC3:
	.ascii	"192.168.1.253\000"
	.align	2
.LC4:
	.ascii	"127.0.0.1\000"
	.align	2
.LC5:
	.ascii	"connect()\000"
	.align	2
.LC6:
	.ascii	"send buf :%s \012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bgt	.L17
.L16:
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-64]
	ldr	r0, .L23+4
	bl	printf
	b	.L15
.L17:
	bl	test_change_vim
	mov	r3, #0
	str	r3, [fp, #-56]
	mvn	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #600
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, .L23+8
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, .L23+12
	str	r3, [fp, #-32]
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r0, [fp, #-40]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	bl	new_socket_linux_block
	str	r0, [fp, #-56]
	ldr	r3, .L23+16
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	connect
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L23+20
	bl	perror
	nop
.L20:
	ldr	r0, [fp, #-56]
	bl	close
	b	.L15
.L19:
	ldr	r1, [fp, #-64]
	ldr	r0, .L23+24
	bl	printf
	ldr	r2, [fp, #-68]
	mov	r3, #0
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-56]
	bl	send
	str	r0, [fp, #-36]
	ldr	r0, .L23+28
	bl	usleep
	nop
.L15:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	15000
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1000000
	.size	run, .-run
	.section	.rodata
	.align	2
.LC8:
	.ascii	"usage error \000"
	.align	2
.LC9:
	.ascii	"run cli id : %s \012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	cmp	r3, #2
	beq	.L26
	ldr	r0, .L31+4
	bl	puts
	mov	r0, #0
	bl	exit
.L26:
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r0, fp, #136
	ldr	r2, .L31+8
	mov	r1, #127
	bl	snprintf
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L27
.L28:
	sub	r3, fp, #136
	mov	r1, #128
	mov	r0, r3
	bl	run
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L27:
	ldr	r3, [fp, #-140]
	cmp	r3, #9
	ble	.L28
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC10
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
