	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auditd_read_dirs               ## -- Begin function auditd_read_dirs
	.p2align	4, 0x90
_auditd_read_dirs:                      ## @auditd_read_dirs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXNAMLEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_auditd_minval@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	je	LBB0_1
LBB0_2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	_auditd_hostlen@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_auditd_set_host
LBB0_4:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_free_dir_q
	xorl	%eax, %eax
	callq	_endac
	leaq	-80(%rbp), %r12
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_getacdir
	testq	%rax, %rax
	js	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_statfs
	testq	%rax, %rax
	js	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	-80(%rbp), %r13d
	movq	_auditd_minval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	-76(%rbp), %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movq	_AUDIT_HARD_LIMIT_FREE_BLOCKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpl	%r15d, %r13d
	setl	-50(%rbp)                       ## 1-byte Folded Spill
	cmpl	%eax, %r13d
	setl	-49(%rbp)                       ## 1-byte Folded Spill
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	-56(%rbp)                       ## 4-byte Folded Spill
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r15d, %r13d
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	*%r15
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	-60(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movzbl	-49(%rbp), %eax                 ## 1-byte Folded Reload
	movb	%al, (%r13)
	movzbl	-50(%rbp), %eax                 ## 1-byte Folded Reload
	movb	%al, 1(%r13)
	movl	(%r14), %edi
	callq	_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strlcpy
	movq	%r13, %rdi
	callq	_insert_orderly
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	incl	%r13d
	jmp	LBB0_5
LBB0_21:
	cmpl	%r13d, -60(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.22:
	movq	_ADE_HARDLIM@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_1:
	xorl	%eax, %eax
	callq	_auditd_set_minfree
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_2
LBB0_23:
	xorl	%eax, %eax
	cmpl	%r13d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.24:
	movq	_ADE_SOFTLIM@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_ADE_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_19:
	movq	%r13, %rdi
	callq	_free
	movq	_ADE_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXNAMLEN,4,2                  ## @MAXNAMLEN
	.comm	_auditd_minval,4,2              ## @auditd_minval
	.comm	_auditd_hostlen,4,2             ## @auditd_hostlen
	.comm	_AUDIT_HARD_LIMIT_FREE_BLOCKS,4,2 ## @AUDIT_HARD_LIMIT_FREE_BLOCKS
	.comm	_ADE_NOMEM,4,2                  ## @ADE_NOMEM
	.comm	_ADE_HARDLIM,4,2                ## @ADE_HARDLIM
	.comm	_ADE_SOFTLIM,4,2                ## @ADE_SOFTLIM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auditd_read_dirs               ; -- Begin function auditd_read_dirs
	.p2align	2
_auditd_read_dirs:                      ; @auditd_read_dirs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x23, _MAXNAMLEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAXNAMLEN@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x24, _auditd_minval@GOTPAGE
Lloh8:
	ldr	x24, [x24, _auditd_minval@GOTPAGEOFF]
	ldr	w8, [x24]
	cmn	w8, #1
	b.eq	LBB0_21
LBB0_1:
	stur	x20, [x29, #-112]               ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _auditd_hostlen@GOTPAGE
Lloh10:
	ldr	x8, [x8, _auditd_hostlen@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.2:
	bl	_auditd_set_host
LBB0_3:
	bl	_free_dir_q
	bl	_endac
	mov	w25, #0
	stur	wzr, [x29, #-100]               ; 4-byte Folded Spill
	mov	w27, #0
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	w28, #34079
	movk	w28, #20971, lsl #16
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x23]
	mov	x0, x21
	bl	_getacdir
	tbnz	x0, #63, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	sub	x1, x29, #96
	mov	x0, x21
	bl	_statfs
	tbnz	x0, #63, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x19
	ldp	w22, w8, [x29, #-96]
	mov	x26, x24
	ldr	w9, [x24]
	mul	w8, w9, w8
	smull	x8, w8, w28
	lsr	x9, x8, #63
	asr	x8, x8, #37
Lloh12:
	adrp	x10, _AUDIT_HARD_LIMIT_FREE_BLOCKS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AUDIT_HARD_LIMIT_FREE_BLOCKS@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x10]
	cmp	w22, w19
	cset	w28, lt
	add	w8, w8, w9
	cmp	w22, w8
	cset	w24, lt
	b.ge	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	blr	x8
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	add	w8, w8, #1
	stur	w8, [x29, #-100]                ; 4-byte Folded Spill
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w19
	b.ge	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x20
	cbz	x20, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	blr	x19
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x20
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_26
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	strb	w24, [x0]
	strb	w28, [x0, #1]
	ldr	w0, [x23]
	bl	_malloc
	str	x0, [x22, #8]
	cbz	x0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x23]
	mov	x1, x21
	bl	_strlcpy
	mov	x0, x22
	bl	_insert_orderly
	add	w25, w25, #1
	mov	x24, x26
	b	LBB0_4
LBB0_19:
	cmp	w27, w25
	b.ne	LBB0_22
; %bb.20:
Lloh15:
	adrp	x8, _ADE_HARDLIM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADE_HARDLIM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_21:
	bl	_auditd_set_minfree
	cbnz	w0, LBB0_23
	b	LBB0_1
LBB0_22:
Lloh18:
	adrp	x8, _ADE_SOFTLIM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADE_SOFTLIM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldur	w9, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w9, w25
	csel	w0, w8, wzr, eq
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.24:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	x0, x22
	bl	_free
LBB0_26:
Lloh24:
	adrp	x8, _ADE_NOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADE_NOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXNAMLEN,4,2                  ; @MAXNAMLEN
	.comm	_auditd_minval,4,2              ; @auditd_minval
	.comm	_auditd_hostlen,4,2             ; @auditd_hostlen
	.comm	_AUDIT_HARD_LIMIT_FREE_BLOCKS,4,2 ; @AUDIT_HARD_LIMIT_FREE_BLOCKS
	.comm	_ADE_NOMEM,4,2                  ; @ADE_NOMEM
	.comm	_ADE_HARDLIM,4,2                ; @ADE_HARDLIM
	.comm	_ADE_SOFTLIM,4,2                ; @ADE_SOFTLIM
.subsections_via_symbols
