	.file	"extr_ipmon.c_read_loginfo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a"
.LC1:
	.string	"read: %m\n"
.LC2:
	.string	"read"
.LC3:
	.string	"aborting logging\n"
	.text
	.p2align 4
	.type	read_loginfo, @function
read_loginfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR DEFAULT_IPFLOGSIZE[rip]
	mov	rcx, rsp
	shr	rax, 2
	lea	rbx, 1[rax]
	lea	rax, 19[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L63:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L63
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L64
.L4:
	mov	eax, DWORD PTR 56[r15]
	lea	r13, -60[rbp]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, r13
	mov	QWORD PTR -88[rbp], rsp
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR 48[r15]
	lea	rdi, 1[rax]
	call	select@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	r12d, eax
	test	eax, eax
	je	.L60
	lea	eax, 0[0+rbx*4]
	xor	ebx, ebx
	mov	DWORD PTR -68[rbp], eax
	lea	rax, -64[rbp]
	mov	QWORD PTR -80[rbp], rax
	cmp	r12d, -1
	je	.L65
.L25:
	mov	r14, QWORD PTR 40[r15]
	add	r14, rbx
	cmp	DWORD PTR [r14], -1
	je	.L9
	mov	edi, DWORD PTR 16[r14]
	mov	rsi, r13
	call	FD_ISSET@PLT
	test	eax, eax
	je	.L9
	cmp	QWORD PTR 24[r14], 0
	mov	edi, DWORD PTR 16[r14]
	je	.L11
	mov	edx, DWORD PTR SEEK_CUR[rip]
	xor	esi, esi
	call	lseek@PLT
	cmp	rax, QWORD PTR 8[r14]
	jl	.L13
	mov	eax, DWORD PTR ipmonopts[rip]
	test	DWORD PTR IPMON_TAIL[rip], eax
	je	.L61
.L13:
	mov	edi, DWORD PTR 16[r14]
.L11:
	mov	ecx, DWORD PTR -68[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	DWORD PTR -64[rbp], 0
	mov	rsi, QWORD PTR -80[rbp]
	call	read_log@PLT
	cmp	QWORD PTR donehup[rip], 0
	mov	r12d, eax
	je	.L14
	mov	rdi, QWORD PTR 32[r15]
	test	rdi, rdi
	je	.L15
	mov	r10, QWORD PTR [r15]
	test	r10, r10
	je	.L16
	mov	rdi, r10
	call	fclose@PLT
	mov	QWORD PTR [r15], 0
	mov	rdi, QWORD PTR 32[r15]
.L16:
	lea	rsi, .LC0[rip]
	call	fopen@PLT
	mov	QWORD PTR [r15], rax
.L15:
	mov	rdi, QWORD PTR 16[r15]
	test	rdi, rdi
	je	.L17
	mov	r10, QWORD PTR 24[r15]
	test	r10, r10
	je	.L18
	mov	rdi, r10
	call	fclose@PLT
	mov	QWORD PTR 24[r15], 0
	mov	rdi, QWORD PTR 16[r15]
.L18:
	lea	rsi, .LC0[rip]
	call	fopen@PLT
	mov	QWORD PTR 24[r15], rax
.L17:
	xor	eax, eax
	call	init_tabs@PLT
	mov	rdi, QWORD PTR 8[r15]
	test	rdi, rdi
	je	.L19
	call	load_config@PLT
.L19:
	mov	QWORD PTR donehup[rip], 0
.L14:
	test	r12d, r12d
	je	.L20
	cmp	r12d, 1
	je	.L21
	cmp	r12d, -1
	je	.L66
.L9:
	add	rbx, 32
	cmp	rbx, 96
	jne	.L25
	mov	eax, DWORD PTR ipmonopts[rip]
	test	DWORD PTR IPMON_TAIL[rip], eax
	jne	.L67
.L60:
	mov	r12d, 1
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L68
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L65:
	.cfi_restore_state
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L1
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L64:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L66:
	mov	r12d, DWORD PTR ipmonopts[rip]
	and	r12d, DWORD PTR IPMON_SYSLOG[rip]
	je	.L22
	mov	edi, DWORD PTR LOG_CRIT[rip]
	lea	rsi, .LC1[rip]
	xor	r12d, r12d
	call	syslog@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r12d, DWORD PTR ipmonopts[rip]
	and	r12d, DWORD PTR IPMON_SYSLOG[rip]
	jne	.L69
	mov	rdi, QWORD PTR [r15]
	test	rdi, rdi
	je	.L61
	lea	rsi, .LC3[rip]
	call	fprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L69:
	mov	edi, DWORD PTR LOG_CRIT[rip]
	lea	rsi, .LC3[rip]
	call	syslog@PLT
.L61:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, DWORD PTR -64[rbp]
	test	ecx, ecx
	jle	.L9
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, r14
	mov	rdi, r15
	call	print_log@PLT
	mov	eax, DWORD PTR ipmonopts[rip]
	test	DWORD PTR IPMON_SYSLOG[rip], eax
	jne	.L9
	mov	rdi, QWORD PTR [r15]
	call	fflush@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 16[r14]
	lea	rsi, .LC2[rip]
	call	ipferror@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L67:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L60
.L68:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_loginfo, .-read_loginfo
	.comm	ipmonopts,4,4
	.comm	errno,8,8
	.comm	donehup,8,8
	.comm	SEEK_CUR,4,4
	.comm	LOG_CRIT,4,4
	.comm	IPMON_TAIL,4,4
	.comm	IPMON_SYSLOG,4,4
	.comm	EINTR,8,8
	.comm	DEFAULT_IPFLOGSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ipmon.c_read_loginfo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"a\000"
	.align	2
.LC1:
	.ascii	"read: %m\012\000"
	.align	2
.LC2:
	.ascii	"read\000"
	.align	2
.LC3:
	.ascii	"aborting logging\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_loginfo, %function
read_loginfo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	r5, r0
	mov	r4, #0
	ldr	r3, .L67
	ldr	r0, [r0, #24]
	ldr	r6, [r3]
	ldr	ip, [r5, #28]
	bic	r6, r6, #3
	add	r3, r6, #11
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	lr, .L67+4
	str	r4, [sp]
	mov	r3, r4
	mov	r2, r4
	add	r0, r0, #1
	sub	r1, fp, #44
	ldr	lr, [lr]
	str	lr, [fp, #-40]
	mov	lr,#0
	str	ip, [fp, #-44]
	bl	select
	cmp	r0, r4
	str	r0, [fp, #-48]
	beq	.L59
	cmn	r0, #1
	mov	r9, r0
	beq	.L62
	ldr	r10, .L67+8
	add	r6, r6, #4
	add	r8, sp, #8
.L3:
	ldr	r7, [r5, #20]
	ldr	r3, [r7, r4]
	add	r7, r7, r4
	cmn	r3, #1
	beq	.L6
	ldr	r0, [r7, #8]
	sub	r1, fp, #44
	bl	FD_ISSET
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r7, #12]
	ldr	r0, [r7, #8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L67+12
	mov	r1, #0
	ldr	r2, [r3]
	bl	lseek
	ldr	r3, [r7, #4]
	cmp	r0, r3
	blt	.L10
	ldr	r3, .L67+16
	ldr	r2, [r3]
	ldr	r3, .L67+20
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L60
.L10:
	ldr	r0, [r7, #8]
.L8:
	mov	ip, #0
	mov	r3, r6
	mov	r2, r8
	sub	r1, fp, #48
	str	ip, [fp, #-48]
	bl	read_log
	ldr	r3, [r10]
	mov	r9, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, [r5, #16]
	cmp	r0, #0
	beq	.L12
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L13
	mov	r0, r3
	bl	fclose
	mov	ip, #0
	ldr	r0, [r5, #16]
	str	ip, [r5]
.L13:
	ldr	r1, .L67+24
	bl	fopen
	str	r0, [r5]
.L12:
	ldr	r0, [r5, #8]
	cmp	r0, #0
	beq	.L14
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L15
	mov	r0, r3
	bl	fclose
	mov	r3, #0
	ldr	r0, [r5, #8]
	str	r3, [r5, #12]
.L15:
	ldr	r1, .L67+24
	bl	fopen
	str	r0, [r5, #12]
.L14:
	bl	init_tabs
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L16
	bl	load_config
.L16:
	mov	r3, #0
	str	r3, [r10]
.L11:
	cmp	r9, #0
	beq	.L17
	cmp	r9, #1
	beq	.L18
	cmn	r9, #1
	beq	.L63
.L6:
	add	r4, r4, #16
	cmp	r4, #48
	bne	.L3
	ldr	r3, .L67+20
	ldr	r2, .L67+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r2, r3
	bne	.L64
.L59:
	mov	r9, #1
.L1:
	ldr	r3, .L67+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L65
	mov	r0, r9
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L62:
	ldr	r2, .L67+28
	ldr	r3, .L67+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L1
	b	.L59
.L17:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L6
	mov	r2, r8
	mov	r1, r7
	mov	r0, r5
	bl	print_log
	ldr	r3, .L67+16
	ldr	r2, [r3]
	ldr	r3, .L67+36
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L6
	ldr	r0, [r5]
	bl	fflush
	b	.L6
.L63:
	ldr	r3, .L67+36
	ldr	r2, .L67+16
	ldr	r0, [r3]
	ldr	r9, [r2]
	ands	r9, r9, r0
	beq	.L19
	ldr	r3, .L67+40
	ldr	r1, .L67+44
	ldr	r0, [r3]
	bl	syslog
	mov	r9, #0
	b	.L1
.L18:
	ldr	r3, .L67+36
	ldr	r2, .L67+16
	ldr	r0, [r3]
	ldr	r9, [r2]
	ands	r9, r9, r0
	bne	.L66
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L60
	ldr	r1, .L67+48
	bl	fprintf
	b	.L1
.L66:
	ldr	r3, .L67+40
	ldr	r1, .L67+48
	ldr	r0, [r3]
	bl	syslog
.L60:
	mov	r9, #0
	b	.L1
.L19:
	ldr	r0, [r7, #8]
	ldr	r1, .L67+52
	bl	ipferror
	b	.L1
.L64:
	mov	r0, #1
	bl	sleep
	b	.L59
.L65:
	bl	__stack_chk_fail
.L68:
	.align	2
.L67:
	.word	DEFAULT_IPFLOGSIZE
	.word	.LC4
	.word	donehup
	.word	SEEK_CUR
	.word	ipmonopts
	.word	IPMON_TAIL
	.word	.LC0
	.word	errno
	.word	EINTR
	.word	IPMON_SYSLOG
	.word	LOG_CRIT
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	read_loginfo, .-read_loginfo
	.comm	ipmonopts,4,4
	.comm	errno,4,4
	.comm	donehup,4,4
	.comm	SEEK_CUR,4,4
	.comm	LOG_CRIT,4,4
	.comm	IPMON_TAIL,4,4
	.comm	IPMON_SYSLOG,4,4
	.comm	EINTR,4,4
	.comm	DEFAULT_IPFLOGSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
