	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FD31_ScanDir
_FD31_ScanDir:                          ## @FD31_ScanDir
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFFILE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_SetCurrentDirectoryW
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movl	12(%r14), %edi
	movl	8(%r14), %esi
	movq	(%r14), %rdx
	decq	%rdx
	callq	_FD31_GetFileType
	movl	(%r15), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_lstrcpynW
	movq	_IDC_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_LoadCursorA
	movl	%eax, %edi
	callq	_SetCursor
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_lst1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_GetDlgItem
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_LB_RESETCONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	_LB_DIR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r14, %rdi
	movl	$59, %esi
	callq	_wcschr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, (%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%r14), %r13d
	decq	%r14
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r13d
	cmpb	$32, 1(%r14)
	leaq	1(%r14), %r14
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_debugstr_w
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_SendMessageW
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$59, (%r15)
	incq	%r15
	movq	%r15, %r14
	jmp	LBB0_5
LBB0_11:
	movq	_FILE_star@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_lstrcpyW
	movq	_lst2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_GetDlgItem
	testq	%rax, %rax
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_13
## %bb.12:
	movl	(%r14), %edx
	movq	_stc1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DDL_EXCLUSIVE@GOTPCREL(%rip), %rax
	movq	_DDL_DIRECTORY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_DlgDirListW
	movl	%eax, %ebx
LBB0_13:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_SetCursor
	jmp	LBB0_14
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFILE,4,2                    ## @BUFFILE
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to change to %s\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IDC_WAIT,8,3                   ## @IDC_WAIT
	.comm	_lst1,4,2                       ## @lst1
L_.str.1:                               ## @.str.1
	.asciz	"Using filter %s\n"

	.comm	_LB_RESETCONTENT,4,2            ## @LB_RESETCONTENT
L_.str.2:                               ## @.str.2
	.asciz	"Using file spec %s\n"

	.comm	_LB_DIR,4,2                     ## @LB_DIR
	.comm	_FILE_star,4,2                  ## @FILE_star
	.comm	_lst2,4,2                       ## @lst2
	.comm	_stc1,4,2                       ## @stc1
	.comm	_DDL_EXCLUSIVE,4,2              ## @DDL_EXCLUSIVE
	.comm	_DDL_DIRECTORY,4,2              ## @DDL_DIRECTORY
	.no_dead_strip	_FD31_ScanDir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FD31_ScanDir
_FD31_ScanDir:                          ; @FD31_ScanDir
	.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, #16
	mov	x23, x2
	mov	x19, x1
	mov	x22, 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	x24, _BUFFILE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BUFFILE@GOTPAGEOFF]
	ldr	w8, [x24]
	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	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	mov	x0, x2
	bl	_debugstr_w
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldrb	w8, [x23]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_SetCurrentDirectoryW
	cbz	w0, LBB0_13
LBB0_2:
	ldp	w1, w0, [x22, #8]
	ldr	x8, [x22]
	sub	x2, x8, #1
	bl	_FD31_GetFileType
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x21
	bl	_lstrcpynW
Lloh12:
	adrp	x8, _IDC_WAIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDC_WAIT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_LoadCursorA
	bl	_SetCursor
	stur	w0, [x29, #-92]                 ; 4-byte Folded Spill
Lloh15:
	adrp	x8, _lst1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _lst1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	cbz	x0, LBB0_10
; %bb.3:
	mov	x23, x0
	mov	x0, x21
	bl	_debugstr_w
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh20:
	adrp	x8, _LB_RESETCONTENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LB_RESETCONTENT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	w28, #59
Lloh23:
	adrp	x22, _LB_DIR@GOTPAGE
Lloh24:
	ldr	x22, [x22, _LB_DIR@GOTPAGEOFF]
	mov	x27, x21
Lloh25:
	adrp	x24, l_.str.2@PAGE
Lloh26:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x27
	mov	w1, #59
	bl	_wcschr
	mov	x25, x0
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x25]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w26, w27, #1
	sub	x0, x27, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x0, #1]!
	add	w26, w26, #1
	cmp	w8, #32
	b.eq	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_debugstr_w
	mov	x1, x0
	mov	x0, x24
	bl	_TRACE
	ldr	w1, [x22]
	mov	x0, x23
	mov	w2, #0
	mov	x3, x26
	bl	_SendMessageW
	cbz	x25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w28, [x25], #1
	mov	x27, x25
	b	LBB0_4
LBB0_10:
Lloh27:
	adrp	x8, _FILE_star@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FILE_star@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_lstrcpyW
Lloh30:
	adrp	x22, _lst2@GOTPAGE
Lloh31:
	ldr	x22, [x22, _lst2@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_GetDlgItem
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w2, [x22]
Lloh32:
	adrp	x8, _stc1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stc1@GOTPAGEOFF]
Lloh34:
	adrp	x9, _DDL_EXCLUSIVE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DDL_EXCLUSIVE@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	ldr	w8, [x9]
Lloh38:
	adrp	x9, _DDL_DIRECTORY@GOTPAGE
Lloh39:
	ldr	x9, [x9, _DDL_DIRECTORY@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, x19
	mov	x1, x21
	bl	_DlgDirListW
	mov	x20, x0
LBB0_12:
	ldur	w0, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_SetCursor
	b	LBB0_14
LBB0_13:
Lloh41:
	adrp	x8, _FALSE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh43:
	ldr	w20, [x8]
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	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_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFILE,4,2                    ; @BUFFILE
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to change to %s\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IDC_WAIT,8,3                   ; @IDC_WAIT
	.comm	_lst1,4,2                       ; @lst1
l_.str.1:                               ; @.str.1
	.asciz	"Using filter %s\n"

	.comm	_LB_RESETCONTENT,4,2            ; @LB_RESETCONTENT
l_.str.2:                               ; @.str.2
	.asciz	"Using file spec %s\n"

	.comm	_LB_DIR,4,2                     ; @LB_DIR
	.comm	_FILE_star,4,2                  ; @FILE_star
	.comm	_lst2,4,2                       ; @lst2
	.comm	_stc1,4,2                       ; @stc1
	.comm	_DDL_EXCLUSIVE,4,2              ; @DDL_EXCLUSIVE
	.comm	_DDL_DIRECTORY,4,2              ; @DDL_DIRECTORY
	.no_dead_strip	_FD31_ScanDir
.subsections_via_symbols
