	.file	"117329107.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"localhost"
	.align 8
.LC1:
	.string	"UNHALTED_CORE_CYCLES,ICACHE:HIT"
.LC2:
	.string	"Error connecting to %s: %s.\n"
.LC3:
	.string	"writing %i and %i.\n"
.LC4:
	.string	"reading %i %s.\n"
.LC5:
	.string	"%s\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, 1168
	mov	DWORD PTR -1156[rbp], edi
	mov	QWORD PTR -1168[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1128[rbp], 9999
	mov	BYTE PTR -1137[rbp], 1
	lea	rax, .LC0[rip]
	mov	QWORD PTR -1112[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -1104[rbp], rax
	mov	DWORD PTR -1132[rbp], 1
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -1132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L13
	mov	eax, DWORD PTR -1132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 104
	jne	.L14
	add	DWORD PTR -1132[rbp], 1
	mov	eax, DWORD PTR -1132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -1112[rbp], rax
	jmp	.L6
.L14:
	nop
.L6:
	add	DWORD PTR -1132[rbp], 1
.L2:
	mov	eax, DWORD PTR -1132[rbp]
	cmp	eax, DWORD PTR -1156[rbp]
	jl	.L7
	jmp	.L4
.L13:
	nop
.L4:
	lea	rax, -1088[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1084[rbp], 2
	mov	DWORD PTR -1080[rbp], 1
	mov	DWORD PTR -1088[rbp], 1
	lea	rcx, -1120[rbp]
	lea	rdx, -1088[rbp]
	mov	rax, QWORD PTR -1112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1124[rbp], eax
	mov	rax, QWORD PTR -1120[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -1096[rbp], rax
	mov	eax, DWORD PTR -1128[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -1096[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rcx, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -1132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -1104[rbp], rax
	mov	rax, QWORD PTR -1104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 1
	mov	DWORD PTR -1136[rbp], eax
	lea	rcx, -1136[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	ecx, DWORD PTR -1136[rbp]
	movsx	edx, BYTE PTR -1137[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -1136[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -1136[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -1136[rbp]
	movsx	rdx, eax
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -1136[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -1040[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1040[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -1132[rbp], 1
.L9:
	mov	eax, DWORD PTR -1132[rbp]
	cmp	eax, DWORD PTR -1156[rbp]
	jl	.L10
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"117329107.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"localhost\000"
	.align	2
.LC1:
	.ascii	"UNHALTED_CORE_CYCLES,ICACHE:HIT\000"
	.align	2
.LC2:
	.ascii	"Error connecting to %s: %s.\012\000"
	.align	2
.LC3:
	.ascii	"writing %i and %i.\012\000"
	.align	2
.LC4:
	.ascii	"reading %i %s.\012\000"
	.align	2
.LC5:
	.ascii	"%s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1104
	sub	sp, sp, #4
	str	r0, [fp, #-1112]
	str	r1, [fp, #-1116]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L15+4
	str	r3, [fp, #-1088]
	mov	r3, #1
	strb	r3, [fp, #-1105]
	ldr	r3, .L15+8
	str	r3, [fp, #-1092]
	ldr	r3, .L15+12
	str	r3, [fp, #-1084]
	mov	r3, #1
	str	r3, [fp, #-1096]
	b	.L2
.L7:
	ldr	r3, [fp, #-1096]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L13
	ldr	r3, [fp, #-1096]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #104
	bne	.L14
	ldr	r3, [fp, #-1096]
	add	r3, r3, #1
	str	r3, [fp, #-1096]
	ldr	r3, [fp, #-1096]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-1092]
	b	.L6
.L14:
	nop
.L6:
	ldr	r3, [fp, #-1096]
	add	r3, r3, #1
	str	r3, [fp, #-1096]
.L2:
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1112]
	cmp	r2, r3
	blt	.L7
	b	.L4
.L13:
	nop
.L4:
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-1068]
	mov	r3, #1
	str	r3, [fp, #-1064]
	mov	r3, #1
	str	r3, [fp, #-1072]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #1056
	sub	r2, r2, #12
	sub	r2, r2, #4
	mov	r1, #0
	ldr	r0, [fp, #-1092]
	bl	getaddrinfo
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1080]
	ldr	r3, [fp, #-1104]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1088]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1076]
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #16
	ldr	r1, [fp, #-1076]
	ldr	r0, [fp, #-1080]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L15+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-1092]
	ldr	r1, .L15+20
	mov	r0, r4
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-1096]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-1084]
	ldr	r0, [fp, #-1084]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-1100]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1080]
	bl	write
	ldr	r3, .L15+16
	ldr	r0, [r3]
	ldrb	r2, [fp, #-1105]	@ zero_extendqisi2
	ldr	r3, [fp, #-1100]
	ldr	r1, .L15+24
	bl	fprintf
	ldr	r3, [fp, #-1100]
	mov	r2, r3
	ldr	r1, [fp, #-1084]
	ldr	r0, [fp, #-1080]
	bl	write
	sub	r3, fp, #1088
	sub	r3, r3, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1080]
	bl	read
	ldr	r3, [fp, #-1100]
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1080]
	bl	read
	ldr	r3, .L15+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-1100]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L15+28
	bl	fprintf
	ldr	r3, .L15+16
	ldr	r0, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L15+32
	bl	fprintf
	ldr	r3, [fp, #-1096]
	add	r3, r3, #1
	str	r3, [fp, #-1096]
.L9:
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1112]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	9999
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
