	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FD31_Validate
_FD31_Validate:                         ## @FD31_Validate
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	32(%rdi), %r13d
	movq	24(%rdi), %r14
	movq	_BUFFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	16(%r14), %edi
	movl	$24, %esi
	callq	_min
	leaq	-104(%rbp), %rdi
	movq	%r14, %rsi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	callq	_memcpy
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_lstrcpynW
	jmp	LBB0_3
LBB0_2:
	movq	_edt1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_GetDlgItemTextW
LBB0_3:
	movq	%r12, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_lst1@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_FD31_TestPath
	testl	%eax, %eax
	je	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_FD31_UpdateResult
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.7:
	movl	16(%rbx), %r14d
	movq	_CD_LBSELCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_MAKELONG
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_FD31_CallWindowProc
	jmp	LBB0_16
LBB0_8:
	movq	%rbx, %rdi
	callq	_FD31_UpdateFileTitle
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.9:
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_FD31_CallWindowProc
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %r15
LBB0_16:
	movl	(%r15), %eax
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r14), %eax
	movq	_OFN_ALLOWMULTISELECT@GOTPCREL(%rip), %rcx
	movq	_TRUE@GOTPCREL(%rip), %r15
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.13:
	movq	_OFN_EXPLORER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.14:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_wcsrchr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_lstrlenW
	cltq
	movb	$0, 1(%rax,%rbx)
	movb	$0, (%r14)
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFILE,4,2                    ## @BUFFILE
	.comm	_edt1,4,2                       ## @edt1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got filename = %s\n"

	.comm	_lst1,4,2                       ## @lst1
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CD_LBSELCHANGE,4,2             ## @CD_LBSELCHANGE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_OFN_ALLOWMULTISELECT,4,2       ## @OFN_ALLOWMULTISELECT
	.comm	_OFN_EXPLORER,4,2               ## @OFN_EXPLORER
	.no_dead_strip	_FD31_Validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FD31_Validate
_FD31_Validate:                         ; @FD31_Validate
	.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	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x26, x1
	mov	x20, x0
	mov	x28, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w27, [x0, #32]
	ldr	x19, [x0, #24]
Lloh3:
	adrp	x8, _BUFFILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFILE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w0, [x19, #16]
	mov	w1, #24
	bl	_min
	mov	x24, x0
	sub	x0, x29, #112
	mov	x1, x19
	mov	x2, x24
	bl	_memcpy
	cbz	w26, LBB0_2
; %bb.1:
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_lstrcpynW
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _edt1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _edt1@GOTPAGEOFF]
Lloh10:
	ldr	w26, [x8]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	bl	_GetDlgItemTextW
LBB0_3:
	mov	x0, x25
	bl	_debugstr_w
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh13:
	adrp	x8, _lst1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lst1@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x25
	bl	_FD31_TestPath
	cbz	w0, LBB0_12
LBB0_5:
	mov	x0, x20
	mov	x1, x25
	bl	_FD31_UpdateResult
	cbz	x23, LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w19, [x20, #16]
Lloh16:
	adrp	x8, _CD_LBSELCHANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CD_LBSELCHANGE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MAKELONG
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_FD31_CallWindowProc
LBB0_8:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	bl	_FD31_UpdateFileTitle
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.10:
	ldp	w3, w1, [x20]
	mov	x0, x20
	mov	w2, #0
	bl	_FD31_CallWindowProc
	cbz	x0, LBB0_15
; %bb.11:
	sub	x1, x29, #112
	mov	x0, x19
	mov	x2, x24
	bl	_memcpy
LBB0_12:
Lloh21:
	adrp	x8, _FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	mov	sp, x28
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.14:
	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_15:
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _OFN_ALLOWMULTISELECT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _OFN_ALLOWMULTISELECT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.16:
Lloh29:
	adrp	x9, _OFN_EXPLORER@GOTPAGE
Lloh30:
	ldr	x9, [x9, _OFN_EXPLORER@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.17:
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_8
; %bb.18:
	mov	x0, x19
	mov	w1, #92
	bl	_wcsrchr
	mov	x20, x0
	mov	x0, x19
	bl	_lstrlenW
	add	x8, x19, w0, sxtw
	strb	wzr, [x8, #1]
	strb	wzr, [x20]
	b	LBB0_8
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFILE,4,2                    ; @BUFFILE
	.comm	_edt1,4,2                       ; @edt1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got filename = %s\n"

	.comm	_lst1,4,2                       ; @lst1
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CD_LBSELCHANGE,4,2             ; @CD_LBSELCHANGE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_OFN_ALLOWMULTISELECT,4,2       ; @OFN_ALLOWMULTISELECT
	.comm	_OFN_EXPLORER,4,2               ; @OFN_EXPLORER
	.no_dead_strip	_FD31_Validate
.subsections_via_symbols
