	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_for_filters
_scan_for_filters:                      ## @scan_for_filters
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %r13
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	%rax, %rdi
	callq	_readdir
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_DT_REG@GOTPCREL(%rip), %r15
	movq	_DT_LNK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	sete	%cl
	cmpq	(%r12), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	addl	%eax, %ebx
	movq	$0, (%r14)
	movq	%r13, %rdi
	callq	_readdir
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	cmpq	$0, (%r14)
	jne	LBB0_28
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_24
LBB0_6:
	incl	%ebx
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_24
## %bb.7:
	movq	%r13, %rdi
	callq	_rewinddir
	movq	%r13, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_23
## %bb.8:
	movq	%rax, %r12
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_DT_REG@GOTPCREL(%rip), %r14
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_12 Depth=1
	movq	_DT_REG@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r12), %rsi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_strncpy
	movb	$0, -112(%rbp,%r15)
	movq	%rbx, %rdi
	callq	_strdup
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	cmpq	$1, %rax
	sbbl	$-1, %edx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_readdir
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_23
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_DT_LNK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r12), %rdi
	callq	_strlen
	movq	%rax, %r15
	cmpq	$3, %rax
	jb	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	-3(%r15), %rbx
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$6, %r15
	jb	LBB0_9
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rbx
	addq	$-5, %rbx
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rbx
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %r15
	cmpq	$63, %rbx
	movq	_DT_REG@GOTPCREL(%rip), %r14
	jbe	LBB0_10
	jmp	LBB0_11
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_DT_REG@GOTPCREL(%rip), %r14
	jmp	LBB0_11
LBB0_23:
	movq	%r13, %rdi
	callq	_closedir
	movq	_plat_target@GOTPCREL(%rip), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.25:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.27:
	leaq	L_.str.1(%rip), %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_perror                         ## TAILCALL
LBB0_28:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	testl	%ebx, %ebx
	jne	LBB0_6
	jmp	LBB0_24
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/etc/pandora/conf/dss_fir"

L_.str.1:                               ## @.str.1
	.asciz	"filter opendir"

	.comm	_errno,8,3                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"readdir"

	.comm	_DT_REG,8,3                     ## @DT_REG
	.comm	_DT_LNK,8,3                     ## @DT_LNK
L_.str.3:                               ## @.str.3
	.asciz	"_v3"

L_.str.4:                               ## @.str.4
	.asciz	"_v5"

L_.str.5:                               ## @.str.5
	.asciz	"_up_h"

	.comm	_plat_target,8,3                ## @plat_target
	.no_dead_strip	_scan_for_filters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_for_filters
_scan_for_filters:                      ; @scan_for_filters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_opendir
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x21, _errno@GOTPAGE
Lloh6:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	bl	_readdir
	mov	w20, #0
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x22, _DT_REG@GOTPAGE
Lloh8:
	ldr	x22, [x22, _DT_REG@GOTPAGEOFF]
Lloh9:
	adrp	x23, _DT_LNK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DT_LNK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	ldr	x9, [x23]
	ccmp	x8, x9, #4, ne
	cinc	w20, w20, eq
	str	xzr, [x21]
	mov	x0, x19
	bl	_readdir
	cbnz	x0, LBB0_3
LBB0_4:
	ldr	x8, [x21]
	cbnz	x8, LBB0_22
; %bb.5:
	cbz	w20, LBB0_18
LBB0_6:
	add	w0, w20, #1
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_18
; %bb.7:
	mov	x20, x0
	mov	x0, x19
	bl	_rewinddir
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_17
; %bb.8:
	mov	x24, x0
	mov	w26, #0
Lloh11:
	adrp	x27, _DT_REG@GOTPAGE
Lloh12:
	ldr	x27, [x27, _DT_REG@GOTPAGEOFF]
Lloh13:
	adrp	x28, _DT_LNK@GOTPAGE
Lloh14:
	ldr	x28, [x28, _DT_LNK@GOTPAGEOFF]
Lloh15:
	adrp	x21, l_.str.3@PAGE
Lloh16:
	add	x21, x21, l_.str.3@PAGEOFF
	add	x23, sp, #8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [x24, #8]
	add	x0, sp, #8
	mov	x2, x25
	bl	_strncpy
	strb	wzr, [x23, x25]
	add	x0, sp, #8
	bl	_strdup
	str	x0, [x20, w26, sxtw #3]
	cmp	x0, #0
	cinc	w26, w26, ne
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x24, #8]
	bl	_strlen
	mov	x25, x0
	subs	x22, x0, #3
	b.lo	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, #8]
	add	x0, x22, x8
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, #8]
	add	x0, x22, x8
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x25, #6
	b.lo	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, #8]
	sub	x22, x25, #5
	add	x0, x22, x8
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	csel	x25, x22, x25, eq
	cmp	x25, #63
	b.ls	LBB0_9
	b	LBB0_10
LBB0_17:
	mov	x0, x19
	bl	_closedir
Lloh21:
	adrp	x8, _plat_target@GOTPAGE
Lloh22:
	ldr	x8, [x8, _plat_target@GOTPAGEOFF]
Lloh23:
	str	x20, [x8]
LBB0_18:
	ldr	x8, [sp, #72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.19:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_20:
	ldr	x8, [sp, #72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.21:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_perror
LBB0_22:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	cbnz	w20, LBB0_6
	b	LBB0_18
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/etc/pandora/conf/dss_fir"

l_.str.1:                               ; @.str.1
	.asciz	"filter opendir"

	.comm	_errno,8,3                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"readdir"

	.comm	_DT_REG,8,3                     ; @DT_REG
	.comm	_DT_LNK,8,3                     ; @DT_LNK
l_.str.3:                               ; @.str.3
	.asciz	"_v3"

l_.str.4:                               ; @.str.4
	.asciz	"_v5"

l_.str.5:                               ; @.str.5
	.asciz	"_up_h"

	.comm	_plat_target,8,3                ; @plat_target
	.no_dead_strip	_scan_for_filters
.subsections_via_symbols
