	.file	"225583.c"
	.intel_syntax noprefix
	.text
	.local	conn
	.comm	conn,4,4
	.local	verb
	.comm	verb,4,4
	.data
	.align 8
	.type	cmax, @object
	.size	cmax, 8
cmax:
	.quad	80
	.align 8
	.type	gutl, @object
	.size	gutl, 8
gutl:
	.quad	10
	.align 32
	.type	chan, @object
	.size	chan, 200
chan:
	.string	"kirc"
	.zero	195
	.section	.rodata
.LC0:
	.string	"irc.freenode.org"
	.section	.data.rel.local,"aw"
	.align 8
	.type	host, @object
	.size	host, 8
host:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"6667"
	.section	.data.rel.local
	.align 8
	.type	port, @object
	.size	port, 8
port:
	.quad	.LC1
	.local	nick
	.comm	nick,8,8
	.local	pass
	.comm	pass,8,8
	.local	user
	.comm	user,8,8
	.local	real
	.comm	real,8,8
	.local	olog
	.comm	olog,8,8
	.local	inic
	.comm	inic,8,8
	.section	.rodata
.LC2:
	.string	"a"
.LC3:
	.string	"fopen"
.LC4:
	.string	"%s\n"
	.text
	.type	log_append, @function
log_append:
.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
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	log_append, .-log_append
	.section	.rodata
.LC5:
	.string	"malloc"
.LC6:
	.string	"<< %s"
	.text
	.type	raw, @function
raw:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L4
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L4:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	edi, 512
	call	malloc@PLT
	mov	QWORD PTR -224[rbp], rax
	cmp	QWORD PTR -224[rbp], 0
	jne	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rcx, -208[rbp]
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	vsnprintf@PLT
	mov	eax, DWORD PTR verb[rip]
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	rax, QWORD PTR olog[rip]
	test	rax, rax
	je	.L9
	mov	rdx, QWORD PTR olog[rip]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	log_append
.L9:
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR conn[rip]
	mov	rcx, QWORD PTR -224[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jns	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L9
.L8:
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	raw, .-raw
	.section	.rodata
.LC7:
	.string	"getaddrinfo: %s\n"
.LC8:
	.string	"socket"
.LC9:
	.string	"connect"
.LC10:
	.string	"Failed to connect\n"
	.text
	.type	connection_initialize, @function
connection_initialize:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -56[rbp], 1
	mov	rsi, QWORD PTR port[rip]
	mov	rax, QWORD PTR host[rip]
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L12
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L21
.L12:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L14
.L19:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR conn[rip], eax
	mov	eax, DWORD PTR conn[rip]
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR conn[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L23
	mov	eax, DWORD PTR conn[rip]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC9[rip]
	call	perror@PLT
	nop
.L16:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L14:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L19
	jmp	.L18
.L23:
	nop
.L18:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	QWORD PTR -72[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L21
.L20:
	mov	eax, DWORD PTR conn[rip]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, 0
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	connection_initialize, .-connection_initialize
	.section	.rodata
.LC11:
	.string	" "
.LC12:
	.string	""
.LC13:
	.string	"\n%*.s%s "
.LC14:
	.string	"%s "
	.text
	.type	printw, @function
printw:
.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, 784
	mov	QWORD PTR -776[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L25
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L25:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -744[rbp], 1
	mov	DWORD PTR -728[rbp], 8
	mov	DWORD PTR -724[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -720[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -712[rbp], rax
	lea	rcx, -728[rbp]
	mov	rdx, QWORD PTR -776[rbp]
	lea	rax, -704[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	vsnprintf@PLT
	mov	rax, QWORD PTR olog[rip]
	test	rax, rax
	je	.L26
	mov	rdx, QWORD PTR olog[rip]
	lea	rax, -704[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	log_append
.L26:
	mov	QWORD PTR -760[rbp], 0
	jmp	.L27
.L28:
	lea	rdx, -704[rbp]
	mov	rax, QWORD PTR -760[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	QWORD PTR -760[rbp], 1
.L27:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	lea	rcx, -704[rbp]
	mov	rax, QWORD PTR -760[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L28
	mov	rdx, QWORD PTR cmax[rip]
	mov	rax, QWORD PTR gutl[rip]
	add	rax, rdx
	sub	rax, QWORD PTR -760[rbp]
	add	rax, 1
	mov	QWORD PTR -752[rbp], rax
	lea	rdx, -704[rbp]
	mov	rax, QWORD PTR -760[rbp]
	add	rax, rdx
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -768[rbp], rax
	jmp	.L29
.L32:
	mov	rax, QWORD PTR -768[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -736[rbp], rax
	mov	rdx, QWORD PTR -736[rbp]
	mov	rax, QWORD PTR -744[rbp]
	add	rax, rdx
	cmp	QWORD PTR -752[rbp], rax
	jnb	.L30
	mov	rax, QWORD PTR gutl[rip]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR -768[rbp]
	mov	rcx, rax
	lea	rdx, .LC12[rip]
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR cmax[rip]
	mov	rcx, QWORD PTR gutl[rip]
	mov	rdx, QWORD PTR -736[rbp]
	add	rdx, rcx
	sub	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -752[rbp], rax
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -768[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -736[rbp]
	mov	rax, QWORD PTR -744[rbp]
	add	rax, rdx
	sub	QWORD PTR -752[rbp], rax
.L31:
	lea	rsi, .LC11[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -768[rbp], rax
.L29:
	cmp	QWORD PTR -768[rbp], 0
	jne	.L32
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printw, .-printw
	.section	.rodata
.LC15:
	.string	">> %s\n"
.LC16:
	.string	"PING"
.LC17:
	.string	"%s\r\n"
.LC18:
	.string	":"
.LC19:
	.string	"\r"
.LC20:
	.string	"!"
.LC21:
	.string	"#& "
.LC22:
	.string	"001"
.LC23:
	.string	"JOIN #%s\r\n"
.LC24:
	.string	"QUIT"
.LC25:
	.string	"%*s<-- \033[34;1m%s\033[0m"
.LC26:
	.string	"JOIN"
.LC27:
	.string	"%*s--> \033[32;1m%s\033[0m"
.LC28:
	.string	"PRIVMSG"
.LC29:
	.string	"%*s\033[43;1m%-.*s\033[0m %s"
	.align 8
.LC30:
	.string	"%*s\033[33;1m%-.*s\033[0m [\033[33m%s\033[0m] %s"
.LC31:
	.string	"%*s\033[33;1m%-.*s\033[0m %s"
	.text
	.type	raw_parser, @function
raw_parser:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	eax, DWORD PTR verb[rip]
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 4
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 79
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	raw
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L46
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strtok@PLT
	add	rax, 1
	mov	QWORD PTR -64[rbp], rax
	lea	rsi, .LC18[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -56[rbp], rax
	lea	rsi, .LC19[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rsi, .LC11[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR gutl[rip]
	mov	DWORD PTR -72[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR gutl[rip]
	cmp	rax, rdx
	ja	.L39
	mov	rax, QWORD PTR gutl[rip]
	mov	ebx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	jmp	.L40
.L39:
	mov	eax, 0
.L40:
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 3
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L41
	lea	rsi, chan[rip]
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	raw
	jmp	.L34
.L41:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 4
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L42
	mov	eax, DWORD PTR -72[rbp]
	lea	esi, -3[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	lea	rdx, .LC12[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printw
	jmp	.L34
.L42:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 4
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L43
	mov	eax, DWORD PTR -72[rbp]
	lea	esi, -3[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	lea	rdx, .LC12[rip]
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printw
	jmp	.L34
.L43:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 7
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L44
	mov	rdx, QWORD PTR nick[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	mov	rsi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC12[rip]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printw
	jmp	.L34
.L44:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 7
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L45
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, chan[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L45
	mov	rsi, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -68[rbp]
	sub	rsp, 8
	push	QWORD PTR -48[rbp]
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC12[rip]
	mov	esi, eax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printw
	add	rsp, 16
	jmp	.L34
.L45:
	mov	rsi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC12[rip]
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printw
	jmp	.L34
.L46:
	nop
.L34:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	raw_parser, .-raw_parser
	.local	message_buffer
	.comm	message_buffer,513,32
	.local	message_end
	.comm	message_end,8,8
	.section	.rodata
.LC32:
	.string	"read"
.LC33:
	.string	"Connection closed\n"
	.text
	.type	handle_server_message, @function
handle_server_message:
.LFB11:
	.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
.L57:
	mov	rax, QWORD PTR message_end[rip]
	mov	edx, 512
	sub	rdx, rax
	mov	rax, QWORD PTR message_end[rip]
	lea	rcx, message_buffer[rip]
	add	rcx, rax
	mov	eax, DWORD PTR conn[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L48
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L49
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L50
.L49:
	mov	eax, 0
	jmp	.L51
.L50:
	lea	rdi, .LC32[rip]
	call	perror@PLT
	mov	eax, -2
	jmp	.L51
.L48:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L51
.L52:
	mov	rax, QWORD PTR message_end[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR message_end[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR message_end[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L53
.L55:
	cmp	QWORD PTR -24[rbp], 0
	je	.L54
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	lea	rax, message_buffer[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 13
	jne	.L54
	lea	rdx, message_buffer[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L54
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	lea	rax, message_buffer[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -25[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	lea	rax, message_buffer[rip]
	mov	BYTE PTR [rdx+rax], 0
	lea	rdi, message_buffer[rip]
	call	raw_parser
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 1[rax]
	lea	rdx, message_buffer[rip]
	movzx	eax, BYTE PTR -25[rbp]
	mov	BYTE PTR [rcx+rdx], al
	mov	rax, QWORD PTR message_end[rip]
	sub	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 1[rax]
	lea	rax, message_buffer[rip]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, message_buffer[rip]
	call	memmove@PLT
	mov	rax, QWORD PTR message_end[rip]
	sub	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	mov	QWORD PTR message_end[rip], rax
	mov	QWORD PTR -24[rbp], 0
.L54:
	add	QWORD PTR -24[rbp], 1
.L53:
	mov	rax, QWORD PTR message_end[rip]
	cmp	QWORD PTR -24[rbp], rax
	jb	.L55
	mov	rax, QWORD PTR message_end[rip]
	cmp	rax, 512
	jne	.L57
	mov	QWORD PTR message_end[rip], 0
	jmp	.L57
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	handle_server_message, .-handle_server_message
	.section	.rodata
.LC34:
	.string	"/%[m] %s %[^\n]\n"
.LC35:
	.string	"/%[xuMQhqnjp] %[^\n]\n"
.LC36:
	.string	"quit\r\n"
	.align 8
.LC37:
	.ascii	"<message>                   Send a message to the current ch"
	.ascii	"annel.\n/m <nick|channel> <message> Send a message to a spec"
	.ascii	"ified channel or nick.\n/M <message>                Send a m"
	.ascii	"essage to NickServ.\n/Q <message>                Send a mess"
	.ascii	"age and close the host connection.\n/x <message>            "
	.ascii	"    Send a message directly to the server.\n/j <channel>    "
	.ascii	"            Join a specified channel.\n/p <channel>         "
	.ascii	"       Leave (part) a specified channel"
	.string	".\n/u <channel>                Assign new default message channel.\n/n                          List all users on the current channel.\n/q                          Close the host connection.\n/h                          Print a list of available kirc commands."
.LC38:
	.string	"quit %s\r\n"
.LC39:
	.string	"join %s\r\n"
.LC40:
	.string	"part %s\r\n"
.LC41:
	.string	"names #%s\r\n"
.LC42:
	.string	"privmsg nickserv :%s\r\n"
.LC43:
	.string	"privmsg %s :%s\r\n"
.LC44:
	.string	"privmsg #%s :%s\r\n"
	.text
	.type	handle_user_input, @function
handle_user_input:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L59
	lea	rsi, -848[rbp]
	lea	rcx, -1056[rbp]
	lea	rdx, -1065[rbp]
	lea	rax, -528[rbp]
	mov	r8, rsi
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	jg	.L60
	lea	rcx, -848[rbp]
	lea	rdx, -1065[rbp]
	lea	rax, -528[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jle	.L59
.L60:
	movzx	eax, BYTE PTR -1065[rbp]
	movsx	eax, al
	sub	eax, 77
	cmp	eax, 43
	ja	.L73
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L63[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L63[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L63:
	.long	.L72-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L71-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L70-.L63
	.long	.L73-.L63
	.long	.L69-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L68-.L63
	.long	.L67-.L63
	.long	.L73-.L63
	.long	.L66-.L63
	.long	.L65-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L64-.L63
	.long	.L73-.L63
	.long	.L73-.L63
	.long	.L62-.L63
	.text
.L62:
	lea	rax, -848[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	raw
	jmp	.L61
.L65:
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	raw
	jmp	.L61
.L70:
	lea	rdi, .LC37[rip]
	call	puts@PLT
	jmp	.L61
.L64:
	lea	rax, -848[rbp]
	mov	rsi, rax
	lea	rdi, chan[rip]
	call	strcpy@PLT
	jmp	.L61
.L71:
	lea	rax, -848[rbp]
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	raw
	jmp	.L61
.L69:
	lea	rax, -848[rbp]
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	raw
	jmp	.L61
.L66:
	lea	rax, -848[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	raw
	jmp	.L61
.L67:
	lea	rsi, chan[rip]
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	raw
	jmp	.L61
.L72:
	lea	rax, -848[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	raw
	jmp	.L61
.L68:
	lea	rdx, -848[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	raw
	nop
.L61:
	jmp	.L73
.L59:
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -528[rbp+rax]
	cmp	al, 10
	jne	.L74
	mov	rax, QWORD PTR -1064[rbp]
	sub	rax, 1
	mov	BYTE PTR -528[rbp+rax], 0
.L74:
	lea	rax, -528[rbp]
	mov	rdx, rax
	lea	rsi, chan[rip]
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	raw
.L73:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	handle_user_input, .-handle_user_input
	.section	.rodata
.LC45:
	.string	"0.0.9"
.LC46:
	.string	"kirc %s\n"
	.align 8
.LC47:
	.string	"kirc [-s hostname] [-p port] [-c channel] [-n nick] [-r real name] [-u username] [-k password] [-x init command] [-w columns] [-W columns] [-o path] [-h|v|V]"
.LC48:
	.string	"usage: %s\n"
.LC49:
	.string	"s:p:o:n:k:c:u:r:x:w:W:hvV"
.LC50:
	.string	"Nick not specified\n"
.LC51:
	.string	"NICK %s\r\n"
.LC52:
	.string	"USER %s - - :%s\r\n"
.LC53:
	.string	"PASS %s\r\n"
.LC54:
	.string	"poll"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L77
.L95:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 63
	cmp	eax, 57
	ja	.L77
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L79[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L79[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L79:
	.long	.L93-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L92-.L79
	.long	.L91-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L90-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L89-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L88-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L87-.L79
	.long	.L86-.L79
	.long	.L85-.L79
	.long	.L77-.L79
	.long	.L84-.L79
	.long	.L83-.L79
	.long	.L77-.L79
	.long	.L82-.L79
	.long	.L81-.L79
	.long	.L80-.L79
	.long	.L78-.L79
	.text
.L92:
	mov	DWORD PTR verb[rip], 1
	jmp	.L77
.L83:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR host[rip], rax
	jmp	.L77
.L80:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR gutl[rip], rax
	jmp	.L77
.L91:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR cmax[rip], rax
	jmp	.L77
.L85:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR port[rip], rax
	jmp	.L77
.L84:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR real[rip], rax
	jmp	.L77
.L82:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR user[rip], rax
	jmp	.L77
.L86:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR olog[rip], rax
	jmp	.L77
.L87:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR nick[rip], rax
	jmp	.L77
.L88:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR pass[rip], rax
	jmp	.L77
.L90:
	mov	rax, QWORD PTR optarg[rip]
	mov	rsi, rax
	lea	rdi, chan[rip]
	call	strcpy@PLT
	jmp	.L77
.L78:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR inic[rip], rax
	jmp	.L77
.L81:
	lea	rsi, .LC45[rip]
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L110
.L89:
	lea	rsi, .LC47[rip]
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L110
.L93:
	mov	eax, 1
	jmp	.L110
.L77:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC49[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	__posix_getopt@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L95
	mov	rax, QWORD PTR nick[rip]
	test	rax, rax
	jne	.L96
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC50[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L110
.L96:
	call	connection_initialize
	test	eax, eax
	je	.L97
	mov	eax, 1
	jmp	.L110
.L97:
	mov	rax, QWORD PTR nick[rip]
	mov	rsi, rax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	raw
	mov	rax, QWORD PTR real[rip]
	test	rax, rax
	je	.L98
	mov	rdx, QWORD PTR real[rip]
	jmp	.L99
.L98:
	mov	rdx, QWORD PTR nick[rip]
.L99:
	mov	rax, QWORD PTR user[rip]
	test	rax, rax
	je	.L100
	mov	rax, QWORD PTR user[rip]
	jmp	.L101
.L100:
	mov	rax, QWORD PTR nick[rip]
.L101:
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	raw
	mov	rax, QWORD PTR pass[rip]
	test	rax, rax
	je	.L102
	mov	rax, QWORD PTR pass[rip]
	mov	rsi, rax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	raw
.L102:
	mov	rax, QWORD PTR inic[rip]
	test	rax, rax
	je	.L103
	mov	rax, QWORD PTR inic[rip]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	raw
.L103:
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR conn[rip]
	mov	DWORD PTR -24[rbp], eax
	mov	WORD PTR -28[rbp], 1
	mov	WORD PTR -20[rbp], 1
.L109:
	lea	rax, -32[rbp]
	mov	edx, -1
	mov	esi, 2
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	je	.L104
	movzx	eax, WORD PTR -26[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L105
	call	handle_user_input
.L105:
	movzx	eax, WORD PTR -18[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L109
	call	handle_server_message
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L109
	cmp	DWORD PTR -36[rbp], -2
	jne	.L107
	mov	eax, 1
	jmp	.L110
.L107:
	mov	eax, 0
	jmp	.L110
.L104:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L112
	lea	rdi, .LC54[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L110
.L112:
	nop
	jmp	.L109
.L110:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L111
	call	__stack_chk_fail@PLT
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"225583.c"
	.text
	.local	conn
	.comm	conn,4,4
	.local	verb
	.comm	verb,4,4
	.data
	.align	2
	.type	cmax, %object
	.size	cmax, 4
cmax:
	.word	80
	.align	2
	.type	gutl, %object
	.size	gutl, 4
gutl:
	.word	10
	.align	2
	.type	chan, %object
	.size	chan, 200
chan:
	.ascii	"kirc\000"
	.space	195
	.section	.rodata
	.align	2
.LC0:
	.ascii	"irc.freenode.org\000"
	.data
	.align	2
	.type	host, %object
	.size	host, 4
host:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"6667\000"
	.data
	.align	2
	.type	port, %object
	.size	port, 4
port:
	.word	.LC1
	.local	nick
	.comm	nick,4,4
	.local	pass
	.comm	pass,4,4
	.local	user
	.comm	user,4,4
	.local	real
	.comm	real,4,4
	.local	olog
	.comm	olog,4,4
	.local	inic
	.comm	inic,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"a\000"
	.align	2
.LC3:
	.ascii	"fopen\000"
	.align	2
.LC4:
	.ascii	"%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_append, %function
log_append:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r1, .L3
	ldr	r0, [fp, #-20]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L3+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r2, [fp, #-16]
	ldr	r1, .L3+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	log_append, .-log_append
	.section	.rodata
	.align	2
.LC5:
	.ascii	"malloc\000"
	.align	2
.LC6:
	.ascii	"<< %s\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	raw, %function
raw:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, [fp, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #512
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L12+4
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	add	r3, fp, #8
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	mov	r1, #512
	ldr	r0, [fp, #-24]
	bl	vsnprintf
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r1, [fp, #-24]
	ldr	r0, .L12+12
	bl	printf
.L7:
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L12+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	log_append
.L10:
	ldr	r3, .L12+20
	ldr	r4, [r3]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-24]
	mov	r0, r4
	bl	write
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L10
.L9:
	ldr	r0, [fp, #-24]
	bl	free
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L13:
	.align	2
.L12:
	.word	.LC7
	.word	.LC5
	.word	verb
	.word	.LC6
	.word	olog
	.word	conn
	.size	raw, .-raw
	.section	.rodata
	.align	2
.LC8:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC9:
	.ascii	"socket\000"
	.align	2
.LC10:
	.ascii	"connect\000"
	.align	2
.LC11:
	.ascii	"Failed to connect\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	connection_initialize, %function
connection_initialize:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r3, .L27+4
	ldr	r0, [r3]
	ldr	r3, .L27+8
	ldr	r1, [r3]
	sub	r3, fp, #60
	sub	r2, fp, #48
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L27+12
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L27+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L24
.L15:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L17
.L22:
	ldr	r3, [fp, #-56]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	mov	r3, r0
	ldr	r2, .L27+20
	str	r3, [r2]
	ldr	r3, .L27+20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L27+24
	bl	perror
	b	.L19
.L18:
	ldr	r3, .L27+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r3, .L27+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L27+28
	bl	perror
	nop
.L19:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-56]
.L17:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L22
	b	.L21
.L26:
	nop
.L21:
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L27+12
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L27+32
	bl	fwrite
	mvn	r3, #0
	b	.L24
.L23:
	ldr	r3, .L27+20
	ldr	r3, [r3]
	mov	r2, #2048
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
	mov	r3, #0
.L24:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC12
	.word	host
	.word	port
	.word	stderr
	.word	.LC8
	.word	conn
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	connection_initialize, .-connection_initialize
	.section	.rodata
	.align	2
.LC13:
	.ascii	" \000"
	.align	2
.LC14:
	.ascii	"\000"
	.align	2
.LC15:
	.ascii	"\012%*.s%s \000"
	.align	2
.LC16:
	.ascii	"%s \000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	printw, %function
printw:
	@ args = 4, pretend = 16, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	ldr	r3, [fp, #4]
	str	r3, [fp, #-552]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-528]
	add	r3, fp, #8
	str	r3, [fp, #-544]
	sub	r0, fp, #520
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-552]
	mov	r1, #512
	bl	vsnprintf
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L38+4
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, r2
	mov	r0, r3
	bl	log_append
.L30:
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L31
.L32:
	sub	r2, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L31:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r1, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, .L38+12
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-536]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-532]
	sub	r2, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	ldr	r1, .L38+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-540]
	b	.L33
.L36:
	ldr	r0, [fp, #-540]
	bl	strlen
	str	r0, [fp, #-524]
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldr	r2, [fp, #-532]
	cmp	r2, r3
	bcs	.L34
	ldr	r3, .L38+12
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, [fp, #-540]
	ldr	r2, .L38+20
	ldr	r0, .L38+24
	bl	printf
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, .L38+12
	ldr	r1, [r3]
	ldr	r3, [fp, #-524]
	add	r3, r1, r3
	sub	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-532]
	b	.L35
.L34:
	ldr	r1, [fp, #-540]
	ldr	r0, .L38+28
	bl	printf
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldr	r2, [fp, #-532]
	sub	r3, r2, r3
	str	r3, [fp, #-532]
.L35:
	ldr	r1, .L38+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-540]
.L33:
	ldr	r3, [fp, #-540]
	cmp	r3, #0
	bne	.L36
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L39:
	.align	2
.L38:
	.word	.LC17
	.word	olog
	.word	cmax
	.word	gutl
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	printw, .-printw
	.section	.rodata
	.align	2
.LC18:
	.ascii	">> %s\012\000"
	.align	2
.LC19:
	.ascii	"PING\000"
	.align	2
.LC20:
	.ascii	"%s\015\012\000"
	.align	2
.LC21:
	.ascii	":\000"
	.align	2
.LC22:
	.ascii	"\015\000"
	.align	2
.LC23:
	.ascii	"!\000"
	.align	2
.LC24:
	.ascii	"#& \000"
	.align	2
.LC25:
	.ascii	"001\000"
	.align	2
.LC26:
	.ascii	"JOIN #%s\015\012\000"
	.align	2
.LC27:
	.ascii	"QUIT\000"
	.align	2
.LC28:
	.ascii	"%*s<-- \033[34;1m%s\033[0m\000"
	.align	2
.LC29:
	.ascii	"JOIN\000"
	.align	2
.LC30:
	.ascii	"%*s--> \033[32;1m%s\033[0m\000"
	.align	2
.LC31:
	.ascii	"PRIVMSG\000"
	.align	2
.LC32:
	.ascii	"%*s\033[43;1m%-.*s\033[0m %s\000"
	.align	2
.LC33:
	.ascii	"%*s\033[33;1m%-.*s\033[0m [\033[33m%s\033[0m] %s\000"
	.align	2
.LC34:
	.ascii	"%*s\033[33;1m%-.*s\033[0m %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	raw_parser, %function
raw_parser:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-48]
	ldr	r3, .L53
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r1, [fp, #-48]
	ldr	r0, .L53+4
	bl	printf
.L41:
	mov	r2, #4
	ldr	r1, .L53+8
	ldr	r0, [fp, #-48]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	mov	r2, #79
	strb	r2, [r3]
	ldr	r1, [fp, #-48]
	ldr	r0, .L53+12
	bl	raw
	b	.L40
.L42:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L52
	ldr	r1, .L53+16
	ldr	r0, [fp, #-48]
	bl	strtok
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r1, .L53+20
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-40]
	ldr	r1, .L53+24
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-36]
	ldr	r1, .L53+28
	ldr	r0, [fp, #-44]
	bl	strtok
	str	r0, [fp, #-32]
	ldr	r1, .L53+32
	ldr	r0, [fp, #-40]
	bl	strtok
	str	r0, [fp, #-28]
	ldr	r1, .L53+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-24]
	ldr	r3, .L53+36
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, .L53+36
	ldr	r3, [r3]
	cmp	r2, r3
	bhi	.L45
	ldr	r3, .L53+36
	ldr	r4, [r3]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	b	.L46
.L45:
	mov	r3, #0
.L46:
	str	r3, [fp, #-16]
	mov	r2, #3
	ldr	r1, .L53+40
	ldr	r0, [fp, #-28]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	ldr	r1, .L53+44
	ldr	r0, .L53+48
	bl	raw
	b	.L40
.L47:
	mov	r2, #4
	ldr	r1, .L53+52
	ldr	r0, [fp, #-28]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	ldr	r3, [fp, #-20]
	sub	r1, r3, #3
	ldr	r3, [fp, #-32]
	ldr	r2, .L53+56
	ldr	r0, .L53+60
	bl	printw
	b	.L40
.L48:
	mov	r2, #4
	ldr	r1, .L53+64
	ldr	r0, [fp, #-28]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-20]
	sub	r1, r3, #3
	ldr	r3, [fp, #-32]
	ldr	r2, .L53+56
	ldr	r0, .L53+68
	bl	printw
	b	.L40
.L49:
	mov	r2, #7
	ldr	r1, .L53+72
	ldr	r0, [fp, #-28]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L53+76
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, .L53+56
	ldr	r1, [fp, #-16]
	ldr	r0, .L53+80
	bl	printw
	b	.L40
.L50:
	mov	r2, #7
	ldr	r1, .L53+72
	ldr	r0, [fp, #-28]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r1, .L53+44
	ldr	r0, [fp, #-24]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-36]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-24]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, .L53+56
	ldr	r1, [fp, #-16]
	ldr	r0, .L53+84
	bl	printw
	b	.L40
.L51:
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, .L53+56
	ldr	r1, [fp, #-16]
	ldr	r0, .L53+88
	bl	printw
	b	.L40
.L52:
	nop
.L40:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L54:
	.align	2
.L53:
	.word	verb
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC13
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	gutl
	.word	.LC25
	.word	chan
	.word	.LC26
	.word	.LC27
	.word	.LC14
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	nick
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	raw_parser, .-raw_parser
	.local	message_buffer
	.comm	message_buffer,513,4
	.local	message_end
	.comm	message_end,4,4
	.section	.rodata
	.align	2
.LC35:
	.ascii	"read\000"
	.align	2
.LC36:
	.ascii	"Connection closed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_server_message, %function
handle_server_message:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
.L65:
	ldr	r3, .L66
	ldr	r0, [r3]
	ldr	r3, .L66+4
	ldr	r3, [r3]
	ldr	r2, .L66+8
	add	r1, r3, r2
	ldr	r3, .L66+4
	ldr	r3, [r3]
	rsb	r3, r3, #512
	mov	r2, r3
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L56
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L57
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L58
.L57:
	mov	r3, #0
	b	.L59
.L58:
	ldr	r0, .L66+12
	bl	perror
	mvn	r3, #1
	b	.L59
.L56:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L60
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L66+20
	bl	fwrite
	mvn	r3, #0
	b	.L59
.L60:
	ldr	r3, .L66+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L66+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L66+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	b	.L61
.L63:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L66+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L62
	ldr	r2, .L66+8
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L62
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L66+8
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L66+8
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, .L66+8
	bl	raw_parser
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, .L66+8
	ldrb	r2, [fp, #-17]
	strb	r2, [r1, r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L66+8
	add	r1, r3, r2
	ldr	r3, .L66+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L66+8
	bl	memmove
	ldr	r3, .L66+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L66+4
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-16]
.L62:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L61:
	ldr	r3, .L66+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcc	.L63
	ldr	r3, .L66+4
	ldr	r3, [r3]
	cmp	r3, #512
	bne	.L65
	ldr	r3, .L66+4
	mov	r2, #0
	str	r2, [r3]
	b	.L65
.L59:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	conn
	.word	message_end
	.word	message_buffer
	.word	.LC35
	.word	stderr
	.word	.LC36
	.size	handle_server_message, .-handle_server_message
	.section	.rodata
	.align	2
.LC37:
	.ascii	"/%[m] %s %[^\012]\012\000"
	.align	2
.LC38:
	.ascii	"/%[xuMQhqnjp] %[^\012]\012\000"
	.align	2
.LC39:
	.ascii	"quit\015\012\000"
	.align	2
.LC40:
	.ascii	"<message>                   Send a message to the c"
	.ascii	"urrent channel.\012/m <nick|channel> <message> Send"
	.ascii	" a message to a specified channel or nick.\012/M <m"
	.ascii	"essage>                Send a message to NickServ.\012"
	.ascii	"/Q <message>                Send a message and clos"
	.ascii	"e the host connection.\012/x <message>             "
	.ascii	"   Send a message directly to the server.\012/j <ch"
	.ascii	"annel>                Join a specified channel.\012"
	.ascii	"/p <channel>                Leave (part) a specifie"
	.ascii	"d channel.\012/u <channel>                Assign ne"
	.ascii	"w default message channel.\012/n                   "
	.ascii	"       List all users on the current channel.\012/q"
	.ascii	"                          Close the host connection"
	.ascii	".\012/h                          Print a list of av"
	.ascii	"ailable kirc commands.\000"
	.align	2
.LC41:
	.ascii	"quit %s\015\012\000"
	.align	2
.LC42:
	.ascii	"join %s\015\012\000"
	.align	2
.LC43:
	.ascii	"part %s\015\012\000"
	.align	2
.LC44:
	.ascii	"names #%s\015\012\000"
	.align	2
.LC45:
	.ascii	"privmsg nickserv :%s\015\012\000"
	.align	2
.LC46:
	.ascii	"privmsg %s :%s\015\012\000"
	.align	2
.LC47:
	.ascii	"privmsg #%s :%s\015\012\000"
	.align	2
.LC48:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_user_input, %function
handle_user_input:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L86+4
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #9
	sub	r0, fp, #520
	sub	r1, fp, #832
	str	r1, [sp]
	ldr	r1, .L86+8
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	bgt	.L70
	sub	r3, fp, #832
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #9
	sub	r0, fp, #520
	ldr	r1, .L86+12
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	ble	.L69
.L70:
	ldrb	r3, [fp, #-1037]	@ zero_extendqisi2
	sub	r3, r3, #77
	cmp	r3, #43
	ldrls	pc, [pc, r3, asl #2]
	b	.L83
.L73:
	.word	.L82
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L81
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L80
	.word	.L83
	.word	.L79
	.word	.L83
	.word	.L83
	.word	.L78
	.word	.L77
	.word	.L83
	.word	.L76
	.word	.L75
	.word	.L83
	.word	.L83
	.word	.L83
	.word	.L74
	.word	.L83
	.word	.L83
	.word	.L72
.L72:
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L86+16
	bl	raw
	b	.L71
.L75:
	ldr	r0, .L86+20
	bl	raw
	b	.L71
.L80:
	ldr	r0, .L86+24
	bl	puts
	b	.L71
.L74:
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L86+28
	bl	strcpy
	b	.L71
.L81:
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L86+32
	bl	raw
	b	.L71
.L79:
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L86+36
	bl	raw
	b	.L71
.L76:
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L86+40
	bl	raw
	b	.L71
.L77:
	ldr	r1, .L86+28
	ldr	r0, .L86+44
	bl	raw
	b	.L71
.L82:
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L86+48
	bl	raw
	b	.L71
.L78:
	sub	r2, fp, #832
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L86+52
	bl	raw
	nop
.L71:
	b	.L83
.L69:
	sub	r3, fp, #520
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-516]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L84
	ldr	r3, [fp, #-1036]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-516]
.L84:
	sub	r3, fp, #520
	mov	r2, r3
	ldr	r1, .L86+28
	ldr	r0, .L86+56
	bl	raw
.L83:
	nop
	ldr	r3, .L86
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L85
	bl	__stack_chk_fail
.L85:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC48
	.word	stdin
	.word	.LC37
	.word	.LC38
	.word	.LC20
	.word	.LC39
	.word	.LC40
	.word	chan
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.size	handle_user_input, .-handle_user_input
	.section	.rodata
	.align	2
.LC49:
	.ascii	"0.0.9\000"
	.align	2
.LC50:
	.ascii	"kirc %s\012\000"
	.align	2
.LC51:
	.ascii	"kirc [-s hostname] [-p port] [-c channel] [-n nick]"
	.ascii	" [-r real name] [-u username] [-k password] [-x ini"
	.ascii	"t command] [-w columns] [-W columns] [-o path] [-h|"
	.ascii	"v|V]\000"
	.align	2
.LC52:
	.ascii	"usage: %s\012\000"
	.align	2
.LC53:
	.ascii	"s:p:o:n:k:c:u:r:x:w:W:hvV\000"
	.align	2
.LC54:
	.ascii	"Nick not specified\012\000"
	.align	2
.LC55:
	.ascii	"NICK %s\015\012\000"
	.align	2
.LC56:
	.ascii	"USER %s - - :%s\015\012\000"
	.align	2
.LC57:
	.ascii	"PASS %s\015\012\000"
	.align	2
.LC58:
	.ascii	"poll\000"
	.align	2
.LC59:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L125
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L89
.L107:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #63
	cmp	r3, #57
	ldrls	pc, [pc, r3, asl #2]
	b	.L89
.L91:
	.word	.L105
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L104
	.word	.L103
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L102
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L89
	.word	.L101
	.word	.L89
	.word	.L89
	.word	.L100
	.word	.L89
	.word	.L89
	.word	.L99
	.word	.L98
	.word	.L97
	.word	.L89
	.word	.L96
	.word	.L95
	.word	.L89
	.word	.L94
	.word	.L93
	.word	.L92
	.word	.L90
.L104:
	ldr	r3, .L125+4
	mov	r2, #1
	str	r2, [r3]
	b	.L89
.L95:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+12
	str	r3, [r2]
	b	.L89
.L92:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L125+16
	str	r2, [r3]
	b	.L89
.L103:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L125+20
	str	r2, [r3]
	b	.L89
.L97:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+24
	str	r3, [r2]
	b	.L89
.L96:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+28
	str	r3, [r2]
	b	.L89
.L94:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+32
	str	r3, [r2]
	b	.L89
.L98:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+36
	str	r3, [r2]
	b	.L89
.L99:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+40
	str	r3, [r2]
	b	.L89
.L100:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+44
	str	r3, [r2]
	b	.L89
.L102:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L125+48
	bl	strcpy
	b	.L89
.L90:
	ldr	r3, .L125+8
	ldr	r3, [r3]
	ldr	r2, .L125+52
	str	r3, [r2]
	b	.L89
.L93:
	ldr	r1, .L125+56
	ldr	r0, .L125+60
	bl	printf
	mov	r3, #0
	b	.L122
.L101:
	ldr	r1, .L125+64
	ldr	r0, .L125+68
	bl	printf
	mov	r3, #0
	b	.L122
.L105:
	mov	r3, #1
	b	.L122
.L89:
	ldr	r2, .L125+72
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	__posix_getopt
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L107
	ldr	r3, .L125+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L108
	ldr	r3, .L125+76
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L125+80
	bl	fwrite
	mov	r3, #1
	b	.L122
.L108:
	bl	connection_initialize
	mov	r3, r0
	cmp	r3, #0
	beq	.L109
	mov	r3, #1
	b	.L122
.L109:
	ldr	r3, .L125+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L125+84
	bl	raw
	ldr	r3, .L125+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L110
	ldr	r3, .L125+32
	ldr	r3, [r3]
	b	.L111
.L110:
	ldr	r3, .L125+40
	ldr	r3, [r3]
.L111:
	ldr	r2, .L125+28
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L112
	ldr	r2, .L125+28
	ldr	r2, [r2]
	b	.L113
.L112:
	ldr	r2, .L125+40
	ldr	r2, [r2]
.L113:
	mov	r1, r3
	ldr	r0, .L125+88
	bl	raw
	ldr	r3, .L125+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L114
	ldr	r3, .L125+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L125+92
	bl	raw
.L114:
	ldr	r3, .L125+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L115
	ldr	r3, .L125+52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L125+96
	bl	raw
.L115:
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L125+100
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #1
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-12]	@ movhi
.L121:
	sub	r3, fp, #24
	mvn	r2, #0
	mov	r1, #2
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	beq	.L116
	ldrsh	r3, [fp, #-18]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L117
	bl	handle_user_input
.L117:
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L121
	bl	handle_server_message
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L121
	ldr	r3, [fp, #-28]
	cmn	r3, #2
	bne	.L119
	mov	r3, #1
	b	.L122
.L119:
	mov	r3, #0
	b	.L122
.L116:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L124
	ldr	r0, .L125+104
	bl	perror
	mov	r3, #1
	b	.L122
.L124:
	nop
	b	.L121
.L122:
	ldr	r2, .L125
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L123
	bl	__stack_chk_fail
.L123:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L126:
	.align	2
.L125:
	.word	.LC59
	.word	verb
	.word	optarg
	.word	host
	.word	gutl
	.word	cmax
	.word	port
	.word	real
	.word	user
	.word	olog
	.word	nick
	.word	pass
	.word	chan
	.word	inic
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	stderr
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC20
	.word	conn
	.word	.LC58
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
