	.file	"83336.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"HOME"
.LC1:
	.string	"socket"
.LC2:
	.string	"connect"
.LC3:
	.string	"read"
.LC4:
	.string	"Notification too long!\n"
.LC5:
	.string	"Dazibao changed: "
	.align 8
.LC6:
	.string	"Unknown notification type %c.\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, 1184
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1152[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1152[rbp], 1
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	rcx, rax
	lea	rax, -1152[rbp]
	add	rax, 2
	mov	edx, 107
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -1152[rbp]
	add	rax, 2
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1152[rbp]
	add	rax, 2
	add	rax, rdx
	mov	WORD PTR [rax], 47
	lea	rax, -1152[rbp]
	add	rax, 2
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1152[rbp]
	add	rax, 2
	add	rax, rdx
	movabs	rsi, 8025804216115225646
	movabs	rdi, 7163369285420543533
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rsi, 8030812512870560865
	mov	QWORD PTR 16[rax], rsi
	mov	DWORD PTR 24[rax], 1952803683
	mov	BYTE PTR 28[rax], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -1168[rbp], eax
	cmp	DWORD PTR -1168[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rcx, -1152[rbp]
	mov	eax, DWORD PTR -1168[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -1164[rbp], eax
	cmp	DWORD PTR -1164[rbp], 0
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	DWORD PTR -1172[rbp], 0
.L14:
	mov	eax, 1024
	sub	eax, DWORD PTR -1172[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	lea	rcx, -1040[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -1168[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1164[rbp], eax
	cmp	DWORD PTR -1164[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L18
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	cmp	DWORD PTR -1164[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -1164[rbp]
	add	DWORD PTR -1172[rbp], eax
	mov	eax, DWORD PTR -1172[rbp]
	movsx	rdx, eax
	lea	rax, -1040[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	memchr@PLT
	mov	QWORD PTR -1160[rbp], rax
	cmp	QWORD PTR -1160[rbp], 0
	jne	.L9
	cmp	DWORD PTR -1172[rbp], 1023
	jle	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	movzx	eax, BYTE PTR -1040[rbp]
	cmp	al, 67
	jne	.L11
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdout[rip]
	lea	rcx, -1040[rbp]
	mov	rax, QWORD PTR -1160[rbp]
	sub	rax, rcx
	mov	rsi, rax
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L12
.L11:
	movzx	eax, BYTE PTR -1040[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L12:
	mov	rax, QWORD PTR -1160[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	lea	rcx, -1040[rbp]
	add	rax, rcx
	cmp	rdx, rax
	jb	.L13
	mov	DWORD PTR -1172[rbp], 0
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	lea	rdx, -1040[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -1160[rbp]
	lea	rcx, 1[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -1160[rbp]
	lea	rcx, 1[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, DWORD PTR -1172[rbp]
	mov	rdx, QWORD PTR -1160[rbp]
	add	rdx, 1
	lea	rcx, -1040[rbp]
	sub	rdx, rcx
	sub	eax, edx
	mov	DWORD PTR -1172[rbp], eax
	jmp	.L14
.L18:
	nop
	jmp	.L14
.L20:
	nop
	jmp	.L14
.L19:
	nop
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"83336.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"HOME\000"
	.align	2
.LC1:
	.ascii	"/\000"
	.align	2
.LC2:
	.ascii	".dazibao-notification-socket\000"
	.align	2
.LC3:
	.ascii	"socket\000"
	.align	2
.LC4:
	.ascii	"connect\000"
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.ascii	"Notification too long!\012\000"
	.align	2
.LC7:
	.ascii	"Dazibao changed: \000"
	.align	2
.LC8:
	.ascii	"Unknown notification type %c.\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1152
	sub	sp, sp, #8
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r0, .L21+4
	bl	getenv
	mov	r1, r0
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r2, #107
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L21+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L21+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #29
	mov	r2, r3
	bl	memcpy
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L21+16
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-1156]
	bl	connect
	str	r0, [fp, #-1152]
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L21+20
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-1160]
.L14:
	ldr	r2, [fp, #-1160]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r1, r3, r2
	ldr	r3, [fp, #-1160]
	rsb	r3, r3, #1024
	mov	r2, r3
	ldr	r0, [fp, #-1156]
	bl	read
	str	r0, [fp, #-1152]
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L18
	ldr	r0, .L21+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	beq	.L19
	ldr	r2, [fp, #-1160]
	ldr	r3, [fp, #-1152]
	add	r3, r2, r3
	str	r3, [fp, #-1160]
	ldr	r2, [fp, #-1160]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #10
	mov	r0, r3
	bl	memchr
	str	r0, [fp, #-1148]
	ldr	r3, [fp, #-1148]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-1160]
	cmp	r3, #1024
	blt	.L20
	ldr	r3, .L21+28
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L21+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	ldrb	r3, [fp, #-1032]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L11
	ldr	r0, .L21+36
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1148]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L21+40
	ldr	r3, [r3]
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r1, #1
	bl	fwrite
	mov	r0, #10
	bl	putchar
	ldr	r3, .L21+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L12
.L11:
	ldr	r3, .L21+28
	ldr	r3, [r3]
	ldrb	r2, [fp, #-1032]	@ zero_extendqisi2
	ldr	r1, .L21+44
	mov	r0, r3
	bl	fprintf
.L12:
	ldr	r3, [fp, #-1148]
	add	r2, r3, #1
	ldr	r1, [fp, #-1160]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r1
	cmp	r2, r3
	bcc	.L13
	mov	r3, #0
	str	r3, [fp, #-1160]
	b	.L14
.L13:
	ldr	r3, [fp, #-1148]
	add	r1, r3, #1
	ldr	r2, [fp, #-1160]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-1148]
	add	r3, r3, #1
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-1148]
	add	r2, r3, #1
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r3, r2, r3
	ldr	r2, [fp, #-1160]
	sub	r3, r2, r3
	str	r3, [fp, #-1160]
	b	.L14
.L18:
	nop
	b	.L14
.L20:
	nop
	b	.L14
.L19:
	nop
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	stdout
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
