	.file	"39536.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"client: socket"
.LC1:
	.string	"127.0.0.1"
.LC2:
	.string	"client: inet_pton"
.LC3:
	.string	"client: connect"
.LC4:
	.string	"Please enter a username"
.LC5:
	.string	"I read the name %s\n"
.LC6:
	.string	"client:write"
	.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, 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	WORD PTR -416[rbp], 2
	mov	edi, 30000
	call	htons@PLT
	mov	WORD PTR -414[rbp], ax
	lea	rax, -416[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rcx, -416[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -144[rbp]
	mov	edx, 128
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -432[rbp], eax
	mov	eax, DWORD PTR -432[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -144[rbp+rax], 0
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -144[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -432[rbp]
	movsx	rdx, eax
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -400[rbp]
	mov	rdi, rdx
#APP
# 55 "the_stack_data/39536.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -428[rbp], edx
	mov	DWORD PTR -424[rbp], eax
	mov	rax, QWORD PTR -400[rbp]
	or	rax, 1
	mov	QWORD PTR -400[rbp], rax
	mov	eax, DWORD PTR -436[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -400[rbp+rax*8]
	mov	eax, DWORD PTR -436[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -400[rbp+rax*8], rdx
.L8:
	mov	rax, QWORD PTR -400[rbp]
	mov	rdx, QWORD PTR -392[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	rax, QWORD PTR -384[rbp]
	mov	rdx, QWORD PTR -376[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	mov	rax, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR -344[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR -336[rbp]
	mov	rdx, QWORD PTR -328[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR -320[rbp]
	mov	rdx, QWORD PTR -312[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	mov	eax, DWORD PTR -436[rbp]
	lea	edi, 1[rax]
	lea	rax, -272[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	lea	rax, -144[rbp]
	mov	edx, 128
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -432[rbp], eax
	cmp	DWORD PTR -432[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	jmp	.L10
.L5:
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	BYTE PTR -144[rbp+rax], 0
	mov	eax, DWORD PTR -432[rbp]
	movsx	rdx, eax
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -420[rbp], eax
	mov	eax, DWORD PTR -420[rbp]
	cmp	eax, DWORD PTR -432[rbp]
	je	.L8
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	call	__stack_chk_fail@PLT
.L9:
	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	"39536.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"client: socket\000"
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"client: inet_pton\000"
	.align	2
.LC3:
	.ascii	"client: connect\000"
	.align	2
.LC4:
	.ascii	"Please enter a username\000"
	.align	2
.LC5:
	.ascii	"I read the name %s\012\000"
	.align	2
.LC6:
	.ascii	"client:write\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L13+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #4
	sub	r3, r3, #408
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L13+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #408
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #412
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L13+12
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L3
	ldr	r0, .L13+16
	bl	perror
	ldr	r0, [fp, #-428]
	bl	close
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #412
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L13+20
	bl	perror
	ldr	r0, [fp, #-428]
	bl	close
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L13+24
	bl	puts
	ldr	r3, .L13+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #140
	mov	r2, #128
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-136]
	ldr	r3, .L13+32
	ldr	r3, [r3]
	sub	r2, fp, #140
	ldr	r1, .L13+36
	mov	r0, r3
	bl	fprintf
	ldr	r2, [fp, #-424]
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	write
	sub	r3, fp, #396
	str	r3, [fp, #-420]
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L5
.L6:
	ldr	r3, [fp, #-420]
	ldr	r2, [fp, #-432]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L5:
	ldr	r3, [fp, #-432]
	cmp	r3, #31
	bls	.L6
	ldr	r3, [fp, #-396]
	orr	r3, r3, #1
	str	r3, [fp, #-396]
	ldr	r3, [fp, #-428]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-392]
	ldr	r3, [fp, #-428]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-392]
.L10:
	sub	r3, fp, #268
	sub	r1, fp, #396
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-428]
	add	r0, r3, #1
	sub	r1, fp, #268
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	sub	r3, fp, #140
	mov	r2, #128
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-428]
	bl	close
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	b	.L12
.L7:
	sub	r2, fp, #140
	ldr	r3, [fp, #-424]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-424]
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	write
	str	r0, [fp, #-416]
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-424]
	cmp	r2, r3
	beq	.L10
	ldr	r0, .L13+40
	bl	perror
	ldr	r0, [fp, #-428]
	bl	close
	mov	r0, #1
	bl	exit
.L12:
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	.LC0
	.word	30000
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdout
	.word	stderr
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
