	.file	"966713.c"
	.intel_syntax noprefix
	.text
	.globl	user
	.data
	.align 32
	.type	user, @object
	.size	user, 320
user:
	.string	"linux"
	.zero	26
	.string	"unix"
	.zero	27
	.string	"hello"
	.zero	26
	.string	"4561321"
	.zero	24
	.string	"asddasd"
	.zero	24
	.string	"5451213"
	.zero	24
	.string	"asdasxzx"
	.zero	23
	.string	"798745"
	.zero	25
	.string	" "
	.zero	30
	.string	" "
	.zero	30
	.section	.rodata
.LC0:
	.string	"name is a invaild pointer!\n"
	.text
	.globl	find_name
	.type	find_name, @function
find_name:
.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	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -2
	jmp	.L3
.L2:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, user[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L5:
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, user[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L6
	mov	eax, -1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find_name, .-find_name
	.section	.rodata
.LC1:
	.string	"send\n"
	.text
	.globl	send_data
	.type	send_data, @function
send_data:
.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L9
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	send_data, .-send_data
	.section	.rodata
.LC2:
	.string	"socket"
.LC3:
	.string	"setsocket\n"
.LC4:
	.string	"bind\n"
.LC5:
	.string	"listen\n"
.LC6:
	.string	"accept\n"
.LC7:
	.string	"accept a new client ! ip:%s\n"
.LC8:
	.string	"n\n"
.LC9:
	.string	"y\n"
.LC10:
	.string	"welcome!\n"
.LC11:
	.string	"%s login!\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -204[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jns	.L11
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	DWORD PTR -212[rbp], 1
	lea	rdx, -212[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L12
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rax, -160[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -160[rbp], 2
	mov	edi, 4507
	call	htons@PLT
	mov	WORD PTR -158[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -156[rbp], eax
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L13
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR -196[rbp]
	mov	esi, 12
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L14
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	DWORD PTR -208[rbp], 16
.L24:
	lea	rdx, -208[rbp]
	lea	rcx, -176[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -192[rbp], eax
	cmp	DWORD PTR -192[rbp], 0
	jns	.L15
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 0
	jne	.L16
.L23:
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -192[rbp]
	mov	ecx, 0
	mov	edx, 128
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, 1
	mov	BYTE PTR -144[rbp+rax], 0
	cmp	DWORD PTR -204[rbp], 0
	jne	.L17
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	find_name
	mov	DWORD PTR -200[rbp], eax
	cmp	DWORD PTR -200[rbp], -2
	je	.L18
	cmp	DWORD PTR -200[rbp], -1
	jne	.L19
	mov	eax, DWORD PTR -192[rbp]
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	send_data
	jmp	.L21
.L18:
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	eax, DWORD PTR -192[rbp]
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	send_data
	mov	DWORD PTR -204[rbp], 1
	jmp	.L21
.L17:
	cmp	DWORD PTR -204[rbp], 1
	jne	.L23
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	sal	rax, 6
	lea	rdx, 32[rax]
	lea	rax, user[rip]
	add	rdx, rax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -192[rbp]
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	send_data
	mov	eax, DWORD PTR -192[rbp]
	lea	rsi, .LC10[rip]
	mov	edi, eax
	call	send_data
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, user[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	eax, DWORD PTR -192[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	jmp	.L23
.L16:
	mov	eax, DWORD PTR -192[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L24
	.cfi_endproc
.LFE8:
	.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	"966713.c"
	.text
	.global	user
	.data
	.align	2
	.type	user, %object
	.size	user, 320
user:
	.ascii	"linux\000"
	.space	26
	.ascii	"unix\000"
	.space	27
	.ascii	"hello\000"
	.space	26
	.ascii	"4561321\000"
	.space	24
	.ascii	"asddasd\000"
	.space	24
	.ascii	"5451213\000"
	.space	24
	.ascii	"asdasxzx\000"
	.space	23
	.ascii	"798745\000"
	.space	25
	.ascii	" \000"
	.space	30
	.ascii	" \000"
	.space	30
	.section	.rodata
	.align	2
.LC0:
	.ascii	"name is a invaild pointer!\012\000"
	.text
	.align	2
	.global	find_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_name, %function
find_name:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L7
	bl	perror
	mvn	r3, #1
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L6:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #6
	ldr	r2, .L7+4
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-8]
	b	.L3
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r2, .L7+4
	ldr	r3, [fp, #-8]
	ldrb	r3, [r2, r3, lsl #6]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L6
	mvn	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	user
	.size	find_name, .-find_name
	.section	.rodata
	.align	2
.LC1:
	.ascii	"send\012\000"
	.text
	.align	2
	.global	send_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_data, %function
send_data:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L12
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.size	send_data, .-send_data
	.section	.rodata
	.align	2
.LC2:
	.ascii	"socket\000"
	.align	2
.LC3:
	.ascii	"setsocket\012\000"
	.align	2
.LC4:
	.ascii	"bind\012\000"
	.align	2
.LC5:
	.ascii	"listen\012\000"
	.align	2
.LC6:
	.ascii	"accept\012\000"
	.align	2
.LC7:
	.ascii	"accept a new client ! ip:%s\012\000"
	.align	2
.LC8:
	.ascii	"n\012\000"
	.align	2
.LC9:
	.ascii	"y\012\000"
	.align	2
.LC10:
	.ascii	"welcome!\012\000"
	.align	2
.LC11:
	.ascii	"%s login!\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-192]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L30+4
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r3, #1
	str	r3, [fp, #-200]
	sub	r3, fp, #200
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-184]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L30+8
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #152
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-152]	@ movhi
	ldr	r0, .L30+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-150]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-148]
	sub	r3, fp, #152
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-184]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L30+16
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	mov	r1, #12
	ldr	r0, [fp, #-184]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L30+20
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	mov	r3, #16
	str	r3, [fp, #-196]
.L28:
	sub	r2, fp, #196
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, [fp, #-184]
	bl	accept
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L30+24
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r0, [fp, #-164]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L30+28
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	bne	.L20
.L27:
	sub	r1, fp, #136
	mov	r3, #0
	mov	r2, #128
	ldr	r0, [fp, #-180]
	bl	recv
	mov	r3, r0
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-172]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-132]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #136
	mov	r0, r3
	bl	find_name
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #2
	beq	.L22
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L23
	ldr	r1, .L30+32
	ldr	r0, [fp, #-180]
	bl	send_data
	b	.L25
.L22:
	mov	r0, #1
	bl	exit
.L23:
	ldr	r1, .L30+36
	ldr	r0, [fp, #-180]
	bl	send_data
	mov	r3, #1
	str	r3, [fp, #-192]
	b	.L25
.L21:
	ldr	r3, [fp, #-192]
	cmp	r3, #1
	bne	.L27
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #6
	add	r3, r3, #32
	ldr	r2, .L30+40
	add	r3, r3, r2
	sub	r2, fp, #136
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r1, .L30+36
	ldr	r0, [fp, #-180]
	bl	send_data
	ldr	r1, .L30+44
	ldr	r0, [fp, #-180]
	bl	send_data
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #6
	ldr	r2, .L30+40
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L30+48
	bl	printf
	nop
	ldr	r0, [fp, #-180]
	bl	close
	ldr	r0, [fp, #-184]
	bl	close
	mov	r0, #1
	bl	exit
.L25:
	b	.L27
.L20:
	ldr	r0, [fp, #-180]
	bl	close
	b	.L28
.L31:
	.align	2
.L30:
	.word	.LC12
	.word	.LC2
	.word	.LC3
	.word	4507
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	user
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
