	.file	"144726.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Jan"
.LC1:
	.string	"Feb"
.LC2:
	.string	"Mar"
.LC3:
	.string	"Apr"
.LC4:
	.string	"May"
.LC5:
	.string	"Jun"
.LC6:
	.string	"Jul"
.LC7:
	.string	"Aug"
.LC8:
	.string	"Sep"
.LC9:
	.string	"Oct"
.LC10:
	.string	"Nov"
.LC11:
	.string	"Dec"
	.section	.data.rel.local,"aw"
	.align 32
	.type	months, @object
	.size	months, 96
months:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.local	shared_data
	.comm	shared_data,1360,32
	.text
	.type	debugprintf, @function
debugprintf:
.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, 224
	mov	QWORD PTR -216[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	.L2
	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
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	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
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	debugprintf, .-debugprintf
	.type	set_defaults, @function
set_defaults:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 255
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 255
.L6:
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 1288[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 1280[rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_defaults, .-set_defaults
	.section	.rodata
.LC12:
	.string	"rb"
.LC13:
	.string	"/proc/self/cmdline"
.LC14:
	.string	"%1023s"
	.text
	.type	init_progname, @function
init_progname:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rsi, .LC12[rip]
	lea	rdi, .LC13[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 255[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_progname, .-init_progname
	.section	.rodata
	.align 8
.LC15:
	.string	"liblogfaf: gethostname() error"
	.text
	.type	init_hostname, @function
init_hostname:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	gethostname@PLT
	test	eax, eax
	je	.L11
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	init_hostname, .-init_hostname
	.section	.rodata
.LC16:
	.string	"LIBLOGFAF_SERVER"
.LC17:
	.string	"localhost"
.LC18:
	.string	"LIBLOGFAF_PORT"
.LC19:
	.string	"514"
.LC20:
	.string	"LIBLOGFAF_BIND_IP"
	.align 8
.LC21:
	.string	"liblogfaf: getaddrinfo() failed: %s\n"
	.align 8
.LC22:
	.string	"liblogfaf: cannot create socket"
	.align 8
.LC23:
	.string	"liblogfaf: getaddrinfo() failed for LIBLOGFAF_BIND_IP: %s\n"
.LC24:
	.string	"liblogfaf: bind() failed"
	.text
	.type	init_connection, @function
init_connection:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC16[rip]
	call	getenv@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L15
	lea	rax, .LC17[rip]
	mov	QWORD PTR -88[rbp], rax
.L15:
	lea	rdi, .LC18[rip]
	call	getenv@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L16
	lea	rax, .LC19[rip]
	mov	QWORD PTR -80[rbp], rax
.L16:
	lea	rdi, .LC20[rip]
	call	getenv@PLT
	mov	QWORD PTR -72[rbp], rax
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 2
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, 1296[rax]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 1296[rax]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 1296[rax]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 1296[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	rdx, QWORD PTR -104[rbp]
	mov	DWORD PTR 1312[rdx], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 1312[rax]
	test	eax, eax
	jns	.L18
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	cmp	QWORD PTR -72[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, 1304[rax]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L20
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 1304[rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 1304[rax]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 1312[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L22
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	init_connection, .-init_connection
	.section	.rodata
	.align 8
.LC25:
	.string	"liblogfaf: logmessage(%d, %s)\n"
	.align 8
.LC26:
	.string	"<%u>%s %2d %02d:%02d:%02d %s %s: %s"
	.text
	.type	logmessage, @function
logmessage:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	add	rsp, -128
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -65656[rbp], rdi
	mov	DWORD PTR -65660[rbp], esi
	mov	QWORD PTR -65672[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -65672[rbp]
	mov	eax, DWORD PTR -65660[rbp]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	debugprintf
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -65640[rbp], rax
	lea	rdx, -65632[rbp]
	lea	rax, -65640[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	localtime_r@PLT
	mov	rax, QWORD PTR -65656[rbp]
	mov	r9, QWORD PTR 1288[rax]
	mov	r8, QWORD PTR -65656[rbp]
	mov	edi, DWORD PTR -65632[rbp]
	mov	esi, DWORD PTR -65628[rbp]
	mov	ecx, DWORD PTR -65624[rbp]
	mov	r11d, DWORD PTR -65620[rbp]
	mov	eax, DWORD PTR -65616[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, months[rip]
	mov	r10, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -65656[rbp]
	mov	eax, DWORD PTR 1280[rax]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -65660[rbp]
	add	edx, eax
	lea	rax, -65568[rbp]
	push	QWORD PTR -65672[rbp]
	push	r9
	push	r8
	push	rdi
	push	rsi
	push	rcx
	mov	r9d, r11d
	mov	r8, r10
	mov	ecx, edx
	lea	rdx, .LC26[rip]
	mov	esi, 65536
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	rsp, 48
	mov	rax, QWORD PTR -65656[rbp]
	mov	rax, QWORD PTR 1296[rax]
	mov	r12d, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -65656[rbp]
	mov	rax, QWORD PTR 1296[rax]
	mov	rbx, QWORD PTR 24[rax]
	lea	rax, -65568[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -65656[rbp]
	mov	eax, DWORD PTR 1312[rax]
	lea	rsi, -65568[rbp]
	mov	r9d, r12d
	mov	r8, rbx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	logmessage, .-logmessage
	.section	.rodata
.LC27:
	.string	"liblogfaf: init()\n"
	.align 8
.LC28:
	.string	"liblogfaf: pthread_mutex_init() failed\n"
	.text
	.type	_liblogfaf_init, @function
_liblogfaf_init:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	debugprintf
	lea	rdi, shared_data[rip]
	call	init_progname
	lea	rdi, shared_data[rip]
	call	init_hostname
	lea	rdi, shared_data[rip]
	call	init_connection
	mov	esi, 0
	lea	rdi, shared_data[rip+1320]
	call	pthread_mutex_init@PLT
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	lea	rdi, shared_data[rip]
	call	set_defaults
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	_liblogfaf_init, .-_liblogfaf_init
	.section	.init_array,"aw"
	.align 8
	.quad	_liblogfaf_init
	.section	.rodata
.LC29:
	.string	"liblogfaf: fini()\n"
	.align 8
.LC30:
	.string	"liblogfaf: pthread_mutex_destroy() failed\n"
	.text
	.type	_liblogfaf_fini, @function
_liblogfaf_fini:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	debugprintf
	lea	rdi, shared_data[rip+1320]
	call	pthread_mutex_destroy@PLT
	test	eax, eax
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	rax, QWORD PTR shared_data[rip+1296]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	_liblogfaf_fini, .-_liblogfaf_fini
	.section	.fini_array,"aw"
	.align 8
	.quad	_liblogfaf_fini
	.section	.rodata
	.align 8
.LC31:
	.string	"liblogfaf: openlog(%s, %d, %d)\n"
	.align 8
.LC32:
	.string	"liblogfaf: pthread_mutex_lock() failed\n"
	.align 8
.LC33:
	.string	"liblogfaf: pthread_mutex_unlock() failed\n"
	.text
	.globl	openlog
	.type	openlog, @function
openlog:
.LFB14:
	.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	debugprintf
	lea	rdi, shared_data[rip+1320]
	call	pthread_mutex_lock@PLT
	test	eax, eax
	je	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR shared_data[rip+1280], eax
	cmp	QWORD PTR -8[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR shared_data[rip+1288], rax
.L31:
	lea	rdi, shared_data[rip+1320]
	call	pthread_mutex_unlock@PLT
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	openlog, .-openlog
	.section	.rodata
.LC34:
	.string	"liblogfaf: closelog()\n"
	.text
	.globl	closelog
	.type	closelog, @function
closelog:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	debugprintf
	lea	rdi, shared_data[rip+1320]
	call	pthread_mutex_lock@PLT
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	lea	rdi, shared_data[rip]
	call	set_defaults
	lea	rdi, shared_data[rip+1320]
	call	pthread_mutex_unlock@PLT
	test	eax, eax
	je	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L37:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	closelog, .-closelog
	.section	.rodata
	.align 8
.LC35:
	.string	"liblogfaf: __syslog_chk(%d, %d, %s)\n"
	.text
	.globl	__syslog_chk
	.type	__syslog_chk, @function
__syslog_chk:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -65536[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 240
	mov	DWORD PTR -65764[rbp], edi
	mov	DWORD PTR -65768[rbp], esi
	mov	QWORD PTR -65776[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L39
	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
.L39:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -65776[rbp]
	mov	edx, DWORD PTR -65768[rbp]
	mov	eax, DWORD PTR -65764[rbp]
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	debugprintf
	mov	DWORD PTR -65752[rbp], 24
	mov	DWORD PTR -65748[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -65744[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -65736[rbp], rax
	lea	rcx, -65752[rbp]
	mov	rdx, QWORD PTR -65776[rbp]
	lea	rax, -65728[rbp]
	mov	esi, 65536
	mov	rdi, rax
	call	vsnprintf@PLT
	lea	rdx, -65728[rbp]
	mov	eax, DWORD PTR -65764[rbp]
	mov	esi, eax
	lea	rdi, shared_data[rip]
	call	logmessage
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	__syslog_chk, .-__syslog_chk
	.section	.rodata
.LC36:
	.string	"liblogfaf: syslog(%d, %s)\n"
	.text
	.globl	syslog
	.type	syslog, @function
syslog:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -65536[rsp]
.LPSRL2:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL2
	sub	rsp, 240
	mov	DWORD PTR -65764[rbp], edi
	mov	QWORD PTR -65776[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	.L42
	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
.L42:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -65776[rbp]
	mov	eax, DWORD PTR -65764[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	debugprintf
	mov	DWORD PTR -65752[rbp], 16
	mov	DWORD PTR -65748[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -65744[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -65736[rbp], rax
	lea	rcx, -65752[rbp]
	mov	rdx, QWORD PTR -65776[rbp]
	lea	rax, -65728[rbp]
	mov	esi, 65536
	mov	rdi, rax
	call	vsnprintf@PLT
	lea	rdx, -65728[rbp]
	mov	eax, DWORD PTR -65764[rbp]
	mov	esi, eax
	lea	rdi, shared_data[rip]
	call	logmessage
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	syslog, .-syslog
	.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	"144726.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Jan\000"
	.align	2
.LC1:
	.ascii	"Feb\000"
	.align	2
.LC2:
	.ascii	"Mar\000"
	.align	2
.LC3:
	.ascii	"Apr\000"
	.align	2
.LC4:
	.ascii	"May\000"
	.align	2
.LC5:
	.ascii	"Jun\000"
	.align	2
.LC6:
	.ascii	"Jul\000"
	.align	2
.LC7:
	.ascii	"Aug\000"
	.align	2
.LC8:
	.ascii	"Sep\000"
	.align	2
.LC9:
	.ascii	"Oct\000"
	.align	2
.LC10:
	.ascii	"Nov\000"
	.align	2
.LC11:
	.ascii	"Dec\000"
	.data
	.align	2
	.type	months, %object
	.size	months, 48
months:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.local	shared_data
	.comm	shared_data,1324,4
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	debugprintf, %function
debugprintf:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L3+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L3+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L4:
	.align	2
.L3:
	.word	.LC12
	.word	stderr
	.size	debugprintf, .-debugprintf
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_defaults, %function
set_defaults:
	@ 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]
	add	r3, r3, #255
	mov	r1, #47
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	b	.L7
.L6:
	ldr	r3, [fp, #-16]
	add	r3, r3, #255
.L7:
	ldr	r2, [fp, #-16]
	str	r3, [r2, #1284]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #1280]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	set_defaults, .-set_defaults
	.section	.rodata
	.align	2
.LC13:
	.ascii	"rb\000"
	.align	2
.LC14:
	.ascii	"/proc/self/cmdline\000"
	.align	2
.LC15:
	.ascii	"%1023s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_progname, %function
init_progname:
	@ 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	r1, .L11
	ldr	r0, .L11+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	add	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L11+8
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-8]
	bl	fclose
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	init_progname, .-init_progname
	.section	.rodata
	.align	2
.LC16:
	.ascii	"liblogfaf: gethostname() error\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_hostname, %function
init_hostname:
	@ 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]
	mov	r1, #255
	mov	r0, r3
	bl	gethostname
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L17
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-16]
	mov	r1, #46
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC16
	.size	init_hostname, .-init_hostname
	.section	.rodata
	.align	2
.LC17:
	.ascii	"LIBLOGFAF_SERVER\000"
	.align	2
.LC18:
	.ascii	"localhost\000"
	.align	2
.LC19:
	.ascii	"LIBLOGFAF_PORT\000"
	.align	2
.LC20:
	.ascii	"514\000"
	.align	2
.LC21:
	.ascii	"LIBLOGFAF_BIND_IP\000"
	.align	2
.LC22:
	.ascii	"liblogfaf: getaddrinfo() failed: %s\012\000"
	.align	2
.LC23:
	.ascii	"liblogfaf: cannot create socket\000"
	.align	2
.LC24:
	.ascii	"liblogfaf: getaddrinfo() failed for LIBLOGFAF_BIND_"
	.ascii	"IP: %s\012\000"
	.align	2
.LC25:
	.ascii	"liblogfaf: bind() failed\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_connection, %function
init_connection:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L28+4
	bl	getenv
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L28+8
	str	r3, [fp, #-64]
.L20:
	ldr	r0, .L28+12
	bl	getenv
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L28+16
	str	r3, [fp, #-60]
.L21:
	ldr	r0, .L28+20
	bl	getenv
	str	r0, [fp, #-56]
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #2
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1280
	add	r3, r3, #8
	sub	r2, fp, #48
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-64]
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L28+24
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L28+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L22:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1288]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1288]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1288]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	mov	r2, r0
	ldr	r3, [fp, #-72]
	str	r2, [r3, #1296]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1296]
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L28+32
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-72]
	add	r3, r3, #1280
	add	r3, r3, #12
	sub	r2, fp, #48
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L28+24
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L28+36
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L25:
	ldr	r3, [fp, #-72]
	ldr	r0, [r3, #1296]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1292]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1292]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L28+40
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC26
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	stderr
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	init_connection, .-init_connection
	.section	.rodata
	.align	2
.LC27:
	.ascii	"liblogfaf: logmessage(%d, %s)\012\000"
	.align	2
.LC28:
	.ascii	"<%u>%s %2d %02d:%02d:%02d %s %s: %s\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	logmessage, %function
logmessage:
	@ args = 0, pretend = 0, frame = 65608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #65536
	sub	sp, sp, #104
	sub	r3, fp, #65536
	sub	r3, r3, #20
	str	r0, [r3, #-60]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	str	r1, [r3, #-64]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	str	r2, [r3, #-68]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r2, #-68]
	ldr	r1, [r3, #-64]
	ldr	r0, .L32+4
	bl	debugprintf
	mov	r0, #0
	bl	time
	mov	r3, r0
	sub	r2, fp, #65536
	sub	r2, r2, #20
	str	r3, [r2, #-52]
	sub	r2, fp, #65536
	sub	r2, r2, #20
	sub	r2, r2, #48
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #52
	mov	r1, r2
	mov	r0, r3
	bl	localtime_r
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	ldr	r3, [r3, #1280]
	lsl	r2, r3, #3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-64]
	add	r7, r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-32]
	ldr	r2, .L32+8
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-36]
	sub	r1, fp, #65536
	sub	r1, r1, #20
	ldr	r1, [r1, #-40]
	sub	r0, fp, #65536
	sub	r0, r0, #20
	ldr	ip, [r0, #-44]
	sub	r0, fp, #65536
	sub	r0, r0, #20
	ldr	lr, [r0, #-48]
	sub	r0, fp, #65536
	sub	r0, r0, #20
	ldr	r4, [r0, #-60]
	sub	r0, fp, #65536
	sub	r0, r0, #20
	ldr	r0, [r0, #-60]
	ldr	r5, [r0, #1284]
	sub	r0, fp, #65536
	sub	r0, r0, #20
	sub	r0, r0, #4
	sub	r6, fp, #65536
	sub	r6, r6, #20
	ldr	r6, [r6, #-68]
	str	r6, [sp, #28]
	str	r5, [sp, #24]
	str	r4, [sp, #20]
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r7
	ldr	r2, .L32+12
	mov	r1, #65536
	bl	snprintf
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	ldr	r4, [r3, #1296]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	ldr	r3, [r3, #1288]
	ldr	r3, [r3, #20]
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-60]
	ldr	r2, [r2, #1288]
	ldr	r2, [r2, #16]
	sub	r1, fp, #65536
	sub	r1, r1, #20
	sub	r1, r1, #4
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r0
	mov	r0, r4
	bl	sendto
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC29
	.word	.LC27
	.word	months
	.word	.LC28
	.size	logmessage, .-logmessage
	.section	.rodata
	.align	2
.LC30:
	.ascii	"liblogfaf: init()\012\000"
	.align	2
.LC31:
	.ascii	"liblogfaf: pthread_mutex_init() failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_liblogfaf_init, %function
_liblogfaf_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L36
	bl	debugprintf
	ldr	r0, .L36+4
	bl	init_progname
	ldr	r0, .L36+4
	bl	init_hostname
	ldr	r0, .L36+4
	bl	init_connection
	mov	r1, #0
	ldr	r0, .L36+8
	bl	pthread_mutex_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L36+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L35:
	ldr	r0, .L36+4
	bl	set_defaults
	nop
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC30
	.word	shared_data
	.word	shared_data+1300
	.word	stderr
	.word	.LC31
	.size	_liblogfaf_init, .-_liblogfaf_init
	.section	.init_array,"aw",%init_array
	.align	2
	.word	_liblogfaf_init(target1)
	.section	.rodata
	.align	2
.LC32:
	.ascii	"liblogfaf: fini()\012\000"
	.align	2
.LC33:
	.ascii	"liblogfaf: pthread_mutex_destroy() failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_liblogfaf_fini, %function
_liblogfaf_fini:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L40
	bl	debugprintf
	ldr	r0, .L40+4
	bl	pthread_mutex_destroy
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L40+8
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L40+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L39:
	ldr	r3, .L40+16
	ldr	r3, [r3, #1288]
	mov	r0, r3
	bl	freeaddrinfo
	nop
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC32
	.word	shared_data+1300
	.word	stderr
	.word	.LC33
	.word	shared_data
	.size	_liblogfaf_fini, .-_liblogfaf_fini
	.section	.fini_array,"aw",%fini_array
	.align	2
	.word	_liblogfaf_fini(target1)
	.section	.rodata
	.align	2
.LC34:
	.ascii	"liblogfaf: openlog(%s, %d, %d)\012\000"
	.align	2
.LC35:
	.ascii	"liblogfaf: pthread_mutex_lock() failed\012\000"
	.align	2
.LC36:
	.ascii	"liblogfaf: pthread_mutex_unlock() failed\012\000"
	.text
	.align	2
	.global	openlog
	.syntax unified
	.arm
	.fpu softvfp
	.type	openlog, %function
openlog:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L47
	bl	debugprintf
	ldr	r0, .L47+4
	bl	pthread_mutex_lock
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L47+8
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L47+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L43:
	ldr	r2, .L47+16
	ldr	r3, [fp, #-16]
	str	r3, [r2, #1280]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L44
	ldr	r2, .L47+16
	ldr	r3, [fp, #-8]
	str	r3, [r2, #1284]
.L44:
	ldr	r0, .L47+4
	bl	pthread_mutex_unlock
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L47+8
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L47+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L46:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC34
	.word	shared_data+1300
	.word	stderr
	.word	.LC35
	.word	shared_data
	.word	.LC36
	.size	openlog, .-openlog
	.section	.rodata
	.align	2
.LC37:
	.ascii	"liblogfaf: closelog()\012\000"
	.text
	.align	2
	.global	closelog
	.syntax unified
	.arm
	.fpu softvfp
	.type	closelog, %function
closelog:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L53
	bl	debugprintf
	ldr	r0, .L53+4
	bl	pthread_mutex_lock
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L53+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L50:
	ldr	r0, .L53+16
	bl	set_defaults
	ldr	r0, .L53+4
	bl	pthread_mutex_unlock
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L53+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L52:
	nop
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC37
	.word	shared_data+1300
	.word	stderr
	.word	.LC35
	.word	shared_data
	.word	.LC36
	.size	closelog, .-closelog
	.section	.rodata
	.align	2
.LC38:
	.ascii	"liblogfaf: __syslog_chk(%d, %d, %s)\012\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__syslog_chk
	.syntax unified
	.arm
	.fpu softvfp
	.type	__syslog_chk, %function
__syslog_chk:
	@ args = 4, pretend = 8, frame = 65560
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #65536
	sub	sp, sp, #24
	sub	r3, fp, #65536
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #65536
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	sub	r3, fp, #65536
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-20]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #4
	sub	r2, fp, #65536
	sub	r2, r2, #4
	sub	r1, fp, #65536
	sub	r1, r1, #4
	ldr	r3, [r3, #-20]
	ldr	r2, [r2, #-16]
	ldr	r1, [r1, #-12]
	ldr	r0, .L57+4
	bl	debugprintf
	add	r3, fp, #8
	sub	r2, fp, #65536
	sub	r2, r2, #4
	str	r3, [r2, #-8]
	sub	r3, fp, #65536
	sub	r3, r3, #4
	sub	r2, fp, #65536
	sub	r2, r2, #4
	sub	r0, fp, #65536
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [r3, #-8]
	ldr	r2, [r2, #-20]
	mov	r1, #65536
	bl	vsnprintf
	sub	r3, fp, #65536
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #65536
	sub	r2, r2, #4
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-12]
	ldr	r0, .L57+8
	bl	logmessage
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L58:
	.align	2
.L57:
	.word	.LC39
	.word	.LC38
	.word	shared_data
	.size	__syslog_chk, .-__syslog_chk
	.section	.rodata
	.align	2
.LC40:
	.ascii	"liblogfaf: syslog(%d, %s)\012\000"
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	syslog
	.syntax unified
	.arm
	.fpu softvfp
	.type	syslog, %function
syslog:
	@ args = 4, pretend = 12, frame = 65552
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #65536
	sub	sp, sp, #20
	sub	r3, fp, #65536
	sub	r3, r3, #8
	str	r0, [r3, #-12]
	sub	r3, fp, #65536
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-16]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #8
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #8
	ldr	r2, [r2, #-16]
	ldr	r1, [r3, #-12]
	ldr	r0, .L61+4
	bl	debugprintf
	add	r3, fp, #8
	sub	r2, fp, #65536
	sub	r2, r2, #8
	str	r3, [r2, #-8]
	sub	r3, fp, #65536
	sub	r3, r3, #8
	sub	r2, fp, #65536
	sub	r2, r2, #8
	sub	r0, fp, #65536
	sub	r0, r0, #8
	sub	r0, r0, #4
	ldr	r3, [r3, #-8]
	ldr	r2, [r2, #-16]
	mov	r1, #65536
	bl	vsnprintf
	sub	r3, fp, #65536
	sub	r3, r3, #8
	sub	r3, r3, #4
	sub	r2, fp, #65536
	sub	r2, r2, #8
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-12]
	ldr	r0, .L61+8
	bl	logmessage
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L62:
	.align	2
.L61:
	.word	.LC41
	.word	.LC40
	.word	shared_data
	.size	syslog, .-syslog
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
