	.file	"extr_auditd_lib.c_auditd_read_dirs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	auditd_read_dirs
	.type	auditd_read_dirs, @function
auditd_read_dirs:
.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
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -88[rbp], rdi
	mov	rsi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXNAMLEN[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L36:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L36
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L37
.L4:
	cmp	DWORD PTR auditd_minval[rip], -1
	mov	rbx, rsp
	je	.L5
	cmp	DWORD PTR auditd_hostlen[rip], -1
	je	.L38
.L7:
	xor	eax, eax
	lea	r15, -64[rbp]
	call	free_dir_q@PLT
	xor	eax, eax
	call	endac@PLT
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR MAXNAMLEN[rip]
	mov	rdi, rbx
	call	getacdir@PLT
	test	rax, rax
	js	.L39
	mov	rsi, r15
	mov	rdi, rbx
	call	statfs@PLT
	test	rax, rax
	js	.L11
	mov	edx, DWORD PTR -60[rbp]
	imul	edx, DWORD PTR auditd_minval[rip]
	mov	ecx, DWORD PTR -64[rbp]
	mov	r12d, DWORD PTR AUDIT_HARD_LIMIT_FREE_BLOCKS[rip]
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1374389535
	sar	rax, 37
	sub	eax, edx
	cmp	ecx, eax
	setl	r14b
	cmp	ecx, r12d
	setl	r13b
	cmp	ecx, eax
	jge	.L12
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	je	.L13
	mov	DWORD PTR -72[rbp], ecx
	mov	rdi, rbx
	call	rax
	mov	ecx, DWORD PTR -72[rbp]
.L13:
	add	DWORD PTR -80[rbp], 1
.L12:
	cmp	ecx, r12d
	jge	.L14
	mov	rax, QWORD PTR -96[rbp]
	test	rax, rax
	je	.L15
	mov	rdi, rbx
	call	rax
.L15:
	add	DWORD PTR -76[rbp], 1
.L14:
	mov	edi, 16
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L33
	mov	BYTE PTR [rax], r14b
	mov	BYTE PTR 1[rax], r13b
	mov	edi, DWORD PTR MAXNAMLEN[rip]
	call	malloc@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rdi, rax
	test	rax, rax
	je	.L40
	mov	edx, DWORD PTR MAXNAMLEN[rip]
	mov	rsi, rbx
	call	strlcpy@PLT
	mov	rdi, r12
	call	insert_orderly@PLT
	add	DWORD PTR -68[rbp], 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r12
	call	free@PLT
.L33:
	mov	eax, DWORD PTR ADE_NOMEM[rip]
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L41
	lea	rsp, -40[rbp]
	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
.L39:
	.cfi_restore_state
	mov	esi, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR ADE_HARDLIM[rip]
	cmp	DWORD PTR -76[rbp], esi
	je	.L1
	mov	ebx, DWORD PTR -68[rbp]
	mov	eax, 0
	cmp	DWORD PTR -80[rbp], ebx
	cmove	eax, DWORD PTR ADE_SOFTLIM[rip]
	jmp	.L1
.L5:
	xor	eax, eax
	call	auditd_set_minfree@PLT
	test	eax, eax
	jne	.L1
	cmp	DWORD PTR auditd_hostlen[rip], -1
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L38:
	xor	eax, eax
	call	auditd_set_host@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L37:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	auditd_read_dirs, .-auditd_read_dirs
	.comm	auditd_minval,4,4
	.comm	auditd_hostlen,4,4
	.comm	MAXNAMLEN,4,4
	.comm	AUDIT_HARD_LIMIT_FREE_BLOCKS,4,4
	.comm	ADE_SOFTLIM,4,4
	.comm	ADE_NOMEM,4,4
	.comm	ADE_HARDLIM,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_auditd_lib.c_auditd_read_dirs.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	auditd_read_dirs
	.syntax unified
	.arm
	.fpu softvfp
	.type	auditd_read_dirs, %function
auditd_read_dirs:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r5, .L35
	ldr	r10, .L35+4
	ldr	r3, [r5]
	ldr	r2, [r10]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L35+8
	str	r0, [fp, #-68]
	str	r1, [fp, #-72]
	cmn	r2, #1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r4, sp
	beq	.L2
	ldr	r3, .L35+12
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L30
.L4:
	mov	r6, #0
	str	r6, [fp, #-60]
	bl	free_dir_q
	str	r6, [fp, #-64]
	bl	endac
.L8:
	mov	r0, r4
	ldr	r1, [r5]
	bl	getacdir
	cmp	r0, #0
	blt	.L31
	mov	r0, r4
	sub	r1, fp, #48
	bl	statfs
	cmp	r0, #0
	blt	.L8
	ldr	r2, [r10]
	ldr	r3, [fp, #-44]
	ldr	r1, .L35+16
	mul	r3, r2, r3
	smull	r2, r1, r3, r1
	ldr	r2, .L35+20
	ldr	r9, [fp, #-48]
	asr	r3, r3, #31
	rsb	r3, r3, r1, asr #5
	ldr	r2, [r2]
	cmp	r9, r3
	movge	r8, #0
	movlt	r8, #1
	cmp	r9, r2
	movge	r7, #0
	movlt	r7, #1
	cmp	r9, r3
	bge	.L9
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L10
	mov	r0, r4
	str	r2, [fp, #-56]
	blx	r3
	ldr	r2, [fp, #-56]
.L10:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L9:
	cmp	r9, r2
	bge	.L11
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L12
	mov	r0, r4
	blx	r3
.L12:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L11:
	mov	r0, #8
	bl	malloc
	subs	r9, r0, #0
	beq	.L27
	ldr	r2, [r5]
	strb	r8, [r9]
	mov	r0, r2
	strb	r7, [r9, #1]
	str	r2, [fp, #-56]
	bl	malloc
	cmp	r0, #0
	ldr	r2, [fp, #-56]
	str	r0, [r9, #4]
	beq	.L32
	mov	r1, r4
	bl	strlcpy
	mov	r0, r9
	bl	insert_orderly
	add	r6, r6, #1
	b	.L8
.L31:
	ldr	r3, [fp, #-60]
	cmp	r3, r6
	beq	.L33
	ldr	r3, [fp, #-64]
	cmp	r3, r6
	movne	r0, #0
	ldreq	r3, .L35+24
	ldreq	r0, [r3]
.L1:
	ldr	r3, .L35+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	bl	auditd_set_minfree
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L35+12
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
.L30:
	bl	auditd_set_host
	b	.L4
.L33:
	ldr	r3, .L35+28
	ldr	r0, [r3]
	b	.L1
.L32:
	mov	r0, r9
	bl	free
.L27:
	ldr	r3, .L35+32
	ldr	r0, [r3]
	b	.L1
.L34:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	MAXNAMLEN
	.word	auditd_minval
	.word	.LC0
	.word	auditd_hostlen
	.word	1374389535
	.word	AUDIT_HARD_LIMIT_FREE_BLOCKS
	.word	ADE_SOFTLIM
	.word	ADE_HARDLIM
	.word	ADE_NOMEM
	.size	auditd_read_dirs, .-auditd_read_dirs
	.comm	auditd_minval,4,4
	.comm	auditd_hostlen,4,4
	.comm	MAXNAMLEN,4,4
	.comm	AUDIT_HARD_LIMIT_FREE_BLOCKS,4,4
	.comm	ADE_SOFTLIM,4,4
	.comm	ADE_NOMEM,4,4
	.comm	ADE_HARDLIM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
