	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_default_action
_on_default_action:                     ## @on_default_action
	.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	$168, %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)
	movq	$0, -160(%rbp)
	movq	_E_FAIL@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	leaq	-176(%rbp), %rsi
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	callq	_get_file_name
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	-176(%rbp), %rdi
	leaq	-160(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	movl	%eax, %esi
	callq	_COMDLG32_SplitFileNames
	movl	%eax, %ebx
	movq	-176(%rbp), %rdi
	callq	_CoTaskMemFree
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	72(%r12), %rdi
	leaq	-152(%rbp), %rsi
	callq	_SHGetIDListFromObject
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-160(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	jmp	LBB0_60
LBB0_2:
	movl	(%r15), %r13d
	jmp	LBB0_61
LBB0_5:
	movl	%r14d, -148(%rbp)               ## 4-byte Spill
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_TRACE
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	(,%rbx,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	$129, %r14d
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	testl	%ebx, %ebx
	movq	%r12, %rbx
	jle	LBB0_27
## %bb.6:
	movq	-160(%rbp), %r13
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -200(%rbp)                ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	$0, -168(%rbp)
	movl	-152(%rbp), %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_COMDLG32_GetCanonicalPath
	movl	(%rbx), %eax
	movq	_FOS_NOVALIDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movq	_FOS_FILEMUSTEXIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	sete	%bl
	andb	%dl, %bl
	movzbl	%bl, %edx
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	$130, %r9d
	subl	%edx, %r9d
	movl	44(%rbx), %edx
	notl	%ecx
	andl	%eax, %ecx
	movq	8(%rbx), %rax
	xorl	%r8d, %r8d
	movq	_ITEMDLG_TYPE_SAVE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%r8b
	movq	%r15, %rdi
	leaq	-168(%rbp), %rsi
	callq	_FILEDLG95_ValidatePathAction
	movl	%eax, %r14d
	cmpl	$129, %eax
	jne	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rax
	movq	_ITEMDLG_TYPE_SAVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rsp, -192(%rbp)                ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	$0, 64(%rbx)
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rax
	movq	56(%rbx), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%r14, %rdi
	callq	_get_first_ext_from_spec
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %eax
	movl	$129, %r14d
	movq	_FOS_NOVALIDATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_FOS_FILEMUSTEXIST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_PathFileExistsW
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	leaq	_on_default_action.dotW(%rip), %rsi
	callq	_lstrcatW
	movq	24(%rbx), %rsi
	movq	%r15, %rdi
	callq	_lstrcatW
	movq	%r15, %rdi
	callq	_PathFileExistsW
	testl	%eax, %eax
	jne	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	44(%rbx), %edi
	movq	_IDS_FILENOTEXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_FILEDLG95_OnOpenMessage
	movl	$130, %r14d
	jmp	LBB0_22
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	leaq	_on_default_action.dotW(%rip), %rsi
	callq	_lstrcpyW
	movq	24(%rbx), %rsi
	movq	%r14, %rdi
	callq	_lstrcatW
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_PathFindExtensionW
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_lstrcmpW
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_lstrcatW
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-192(%rbp), %rsp                ## 8-byte Reload
	movl	$129, %r14d
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_COMDLG32_SHSimpleIDListFromPathAW
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, -4(%rcx,%r12,4)
	movq	-168(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$130, %r14d
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	callq	_IShellFolder_Release
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_lstrlenW
	movq	-200(%rbp), %rsp                ## 8-byte Reload
	cmpq	-136(%rbp), %r12                ## 8-byte Folded Reload
	jae	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movsbl	%al, %eax
	cltq
	leaq	4(%r13,%rax,4), %r13
	incq	%r12
	cmpl	$129, %r14d
	je	LBB0_7
LBB0_27:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-160(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movl	-152(%rbp), %edi
	callq	_ILFree
	movq	_FOS_PICKFOLDERS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	$130, %r14d
	movl	$129, %ecx
	cmovnel	%r14d, %ecx
	testl	%eax, (%rbx)
	cmovel	%r14d, %ecx
	cmpl	$130, %ecx
	je	LBB0_31
## %bb.28:
	cmpl	$129, %ecx
	movl	-148(%rbp), %r13d               ## 4-byte Reload
	je	LBB0_34
## %bb.29:
	cmpl	$128, %ecx
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_55
## %bb.30:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_56
LBB0_31:
	movl	48(%rbx), %edi
	movq	-168(%rbp), %rsi
	movq	_SBSP_DEFBROWSER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IExplorerBrowser_BrowseToObject
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	movl	-148(%rbp), %r13d               ## 4-byte Reload
	je	LBB0_33
## %bb.32:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ERR
LBB0_33:
	movq	-168(%rbp), %rdi
	callq	_IShellFolder_Release
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_56
LBB0_34:
	leaq	-184(%rbp), %rdi
	callq	_SHGetDesktopFolder
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_56
## %bb.35:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leaq	32(%rax), %r14
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	movq	-120(%rbp), %r12                ## 8-byte Reload
	je	LBB0_37
## %bb.36:
	callq	_IShellItemArray_Release
	movq	$0, (%r14)
LBB0_37:
	movq	-184(%rbp), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movq	%r14, %r8
	callq	_SHCreateShellItemArray
	movl	%eax, %r12d
	movq	-184(%rbp), %rdi
	callq	_IShellFolder_Release
	movl	%r12d, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_39
LBB0_38:
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_56
LBB0_55:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
LBB0_56:
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	-136(%rbp), %r15                ## 8-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_59
## %bb.57:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	callq	_ILFree
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_58
LBB0_59:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
LBB0_60:
	callq	_HeapFree
LBB0_61:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_64
## %bb.62:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %eax
	testl	%eax, (%r15)
	je	LBB0_42
## %bb.40:
	movq	(%r14), %rdi
	movq	_SIATTRIBFLAGS_AND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SFGAO_FOLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-204(%rbp), %rcx
	callq	_IShellItemArray_GetAttributes
	movl	%eax, %r12d
	movq	_S_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_63
## %bb.41:
	movl	(%rbx), %eax
LBB0_42:
	movq	_FOS_OVERWRITEPROMPT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_54
## %bb.43:
	movq	8(%rbx), %rax
	movq	_ITEMDLG_TYPE_SAVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_54
## %bb.44:
	movl	%r12d, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_53
## %bb.45:
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_53
## %bb.46:
	movl	$1, %ebx
	leaq	-112(%rbp), %r15
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %esi
	movq	(%r14), %rdi
	movq	%r15, %rdx
	callq	_IShellItemArray_GetItemAt
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_51
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movq	-112(%rbp), %rdi
	callq	_shell_item_exists
	testl	%eax, %eax
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_47 Depth=1
	movq	-112(%rbp), %rsi
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_events_OnOverwrite
	movl	%eax, %r12d
LBB0_50:                                ##   in Loop: Header=BB0_47 Depth=1
	movq	-112(%rbp), %rdi
	callq	_IShellItem_Release
LBB0_51:                                ##   in Loop: Header=BB0_47 Depth=1
	movl	%r12d, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_47 Depth=1
	leal	1(%rbx), %eax
	cmpl	-128(%rbp), %ebx                ## 4-byte Folded Reload
	movl	%eax, %ebx
	jl	LBB0_47
LBB0_53:
	movl	%r12d, %edi
	callq	_FAILED
	testq	%rax, %rax
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_38
LBB0_54:
	movq	%rbx, %rdi
	callq	_events_OnFileOk
	movq	_S_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovel	%ecx, %r13d
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_56
LBB0_63:
	movq	_COMDLG32_hInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IDS_INVALID_FOLDERNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_LoadStringW
	movl	40(%rbx), %edx
	movl	44(%rbx), %edi
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONEXCLAMATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rsi
	callq	_MessageBoxW
	movq	32(%rbx), %rdi
	callq	_IShellItemArray_Release
	movq	$0, 32(%rbx)
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_56
LBB0_64:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get pidl for current directory.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Acting on %d file(s).\n"

	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FOS_NOVALIDATE,4,2             ## @FOS_NOVALIDATE
	.comm	_FOS_FILEMUSTEXIST,4,2          ## @FOS_FILEMUSTEXIST
	.comm	_ITEMDLG_TYPE_SAVE,8,3          ## @ITEMDLG_TYPE_SAVE
	.section	__TEXT,__const
_on_default_action.dotW:                ## @on_default_action.dotW
	.asciz	"."

	.comm	_IDS_FILENOTEXISTING,4,2        ## @IDS_FILENOTEXISTING
	.comm	_FOS_PICKFOLDERS,4,2            ## @FOS_PICKFOLDERS
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Filtering not implemented.\n"

	.comm	_SBSP_DEFBROWSER,4,2            ## @SBSP_DEFBROWSER
L_.str.3:                               ## @.str.3
	.asciz	"Failed to browse to directory: %08x\n"

	.comm	_SIATTRIBFLAGS_AND,4,2          ## @SIATTRIBFLAGS_AND
	.comm	_SFGAO_FOLDER,4,2               ## @SFGAO_FOLDER
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_COMDLG32_hInstance,4,2         ## @COMDLG32_hInstance
	.comm	_IDS_INVALID_FOLDERNAME,4,2     ## @IDS_INVALID_FOLDERNAME
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONEXCLAMATION,4,2         ## @MB_ICONEXCLAMATION
	.comm	_FOS_OVERWRITEPROMPT,4,2        ## @FOS_OVERWRITEPROMPT
L_.str.4:                               ## @.str.4
	.asciz	"Failed.\n"

	.no_dead_strip	_on_default_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_default_action
_on_default_action:                     ; @on_default_action
	.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, #144
	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]
	stur	xzr, [x29, #-184]
Lloh3:
	adrp	x19, _E_FAIL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _E_FAIL@GOTPAGEOFF]
	ldr	w20, [x19]
	sub	x1, x29, #192
	bl	_get_file_name
	cbz	w0, LBB0_4
; %bb.1:
	mov	x1, x0
	ldur	x0, [x29, #-192]
	sub	x2, x29, #184
	sub	x3, x29, #152
	bl	_COMDLG32_SplitFileNames
	mov	x23, x0
	ldur	x0, [x29, #-192]
	bl	_CoTaskMemFree
	cbz	w23, LBB0_4
; %bb.2:
	ldr	x0, [x22, #72]
	sub	x1, x29, #172
	bl	_SHGetIDListFromObject
	mov	x21, x0
	bl	_FAILED
	cbz	x0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	bl	_GetProcessHeap
	ldur	x2, [x29, #-184]
	mov	w1, #0
	b	LBB0_53
LBB0_4:
	ldr	w21, [x19]
	b	LBB0_54
LBB0_5:
	stur	w20, [x29, #-212]               ; 4-byte Folded Spill
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	bl	_GetProcessHeap
	lsl	w2, w23, #2
	mov	w1, #0
	bl	_HeapAlloc
	mov	x20, x0
	mov	w27, w23
	stur	w23, [x29, #-216]               ; 4-byte Folded Spill
	cmp	w23, #1
	stur	x0, [x29, #-208]                ; 8-byte Folded Spill
	b.lt	LBB0_28
; %bb.6:
	mov	x24, #0
	ldur	x23, [x29, #-184]
Lloh9:
	adrp	x19, _FOS_NOVALIDATE@GOTPAGE
Lloh10:
	ldr	x19, [x19, _FOS_NOVALIDATE@GOTPAGEOFF]
Lloh11:
	adrp	x21, _ITEMDLG_TYPE_SAVE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ITEMDLG_TYPE_SAVE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, sp
Lloh13:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	stur	xzr, [x29, #-160]
	ldur	w0, [x29, #-172]
	mov	x1, x23
	mov	x2, x25
	bl	_COMDLG32_GetCanonicalPath
	ldr	w8, [x22]
	ldr	w9, [x19]
	and	w9, w9, w8
Lloh18:
	adrp	x10, _FOS_FILEMUSTEXIST@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FOS_FILEMUSTEXIST@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w8
	ccmp	w9, #0, #4, eq
	mov	w9, #129
	cinc	w5, w9, eq
	ldr	w2, [x22, #44]
	bic	w3, w8, w10
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w4, eq
	sub	x1, x29, #160
	mov	x0, x25
	bl	_FILEDLG95_ValidatePathAction
	mov	x26, x0
	cmp	w0, #129
	b.ne	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, sp
Lloh21:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	mov	x9, x8
Lloh24:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh25:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	ldr	x8, [x22, #64]
	cbz	x8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #56]
	ldr	x9, [x22, #16]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x26
	bl	_get_first_ext_from_spec
	mov	x26, x0
	cbnz	x0, LBB0_15
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_23
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w26, #129
	b	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
Lloh26:
	adrp	x1, _on_default_action.dotW@PAGE
Lloh27:
	add	x1, x1, _on_default_action.dotW@PAGEOFF
	bl	_lstrcpyW
	ldr	x1, [x22, #24]
	mov	x0, x26
	bl	_lstrcatW
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_PathFindExtensionW
	mov	x1, x26
	bl	_lstrcmpW
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_lstrcatW
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	sp, x20
	mov	w26, #129
	ldur	x20, [x29, #-208]               ; 8-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_COMDLG32_SHSimpleIDListFromPathAW
	str	w0, [x20, x24, lsl #2]
	ldur	x0, [x29, #-160]
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w26, #130
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_IShellFolder_Release
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_lstrlenW
	mov	sp, x28
	add	x24, x24, #1
	cmp	x24, x27
	b.hs	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	sxtb	w8, w0
	add	w8, w8, #1
	add	x23, x23, w8, sxtw #2
	cmp	w26, #129
	b.eq	LBB0_7
	b	LBB0_29
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh28:
	adrp	x9, _FOS_FILEMUSTEXIST@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FOS_FILEMUSTEXIST@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_PathFileExistsW
	cbnz	w0, LBB0_12
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
Lloh31:
	adrp	x1, _on_default_action.dotW@PAGE
Lloh32:
	add	x1, x1, _on_default_action.dotW@PAGEOFF
	bl	_lstrcatW
	ldr	x1, [x22, #24]
	mov	x0, x25
	bl	_lstrcatW
	mov	x0, x25
	bl	_PathFileExistsW
	cbnz	w0, LBB0_12
LBB0_27:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22, #44]
Lloh33:
	adrp	x8, _IDS_FILENOTEXISTING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IDS_FILENOTEXISTING@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_FILEDLG95_OnOpenMessage
	mov	w26, #130
	b	LBB0_18
LBB0_28:
	mov	w26, #129
LBB0_29:
	bl	_GetProcessHeap
	ldur	x2, [x29, #-184]
	mov	w1, #0
	bl	_HeapFree
	ldur	w0, [x29, #-172]
	bl	_ILFree
	ldr	w8, [x22]
Lloh36:
	adrp	x19, _FOS_PICKFOLDERS@GOTPAGE
Lloh37:
	ldr	x19, [x19, _FOS_PICKFOLDERS@GOTPAGEOFF]
	ldr	w9, [x19]
	and	w8, w9, w8
	cmp	w26, #130
	ccmp	w8, #0, #4, eq
	mov	w8, #129
	csel	w8, w8, w26, ne
	cmp	w8, #130
	b.eq	LBB0_33
; %bb.30:
	cmp	w8, #129
	ldp	w25, w21, [x29, #-216]          ; 8-byte Folded Reload
	b.eq	LBB0_36
; %bb.31:
	cmp	w8, #128
	b.ne	LBB0_48
; %bb.32:
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	b	LBB0_49
LBB0_33:
	ldr	w0, [x22, #48]
	ldur	x1, [x29, #-160]
Lloh40:
	adrp	x8, _SBSP_DEFBROWSER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SBSP_DEFBROWSER@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	bl	_IExplorerBrowser_BrowseToObject
	mov	x22, x0
	bl	_FAILED
	ldp	w25, w21, [x29, #-216]          ; 8-byte Folded Reload
	cbz	x0, LBB0_35
; %bb.34:
	str	x22, [sp, #-16]!
Lloh43:
	adrp	x0, l_.str.3@PAGE
Lloh44:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	add	sp, sp, #16
LBB0_35:
	ldur	x0, [x29, #-160]
	bl	_IShellFolder_Release
	b	LBB0_49
LBB0_36:
	sub	x0, x29, #168
	bl	_SHGetDesktopFolder
	bl	_SUCCEEDED
	cbz	w0, LBB0_49
; %bb.37:
	mov	x23, x22
	ldr	x0, [x23, #32]!
	cbz	x0, LBB0_39
; %bb.38:
	bl	_IShellItemArray_Release
	str	xzr, [x23]
LBB0_39:
	ldur	x1, [x29, #-168]
	mov	x0, #0
	mov	x2, x25
	mov	x3, x20
	mov	x4, x23
	bl	_SHCreateShellItemArray
	mov	x24, x0
	ldur	x0, [x29, #-168]
	bl	_IShellFolder_Release
	mov	x0, x24
	bl	_FAILED
	cbnz	x0, LBB0_49
; %bb.40:
	ldr	w8, [x22]
	ldr	w9, [x19]
Lloh45:
	adrp	x19, _S_OK@GOTPAGE
Lloh46:
	ldr	x19, [x19, _S_OK@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.41:
	ldr	x0, [x23]
Lloh47:
	adrp	x8, _SIATTRIBFLAGS_AND@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SIATTRIBFLAGS_AND@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _SFGAO_FOLDER@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SFGAO_FOLDER@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	sub	x3, x29, #196
	bl	_IShellItemArray_GetAttributes
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_61
; %bb.42:
	mov	x24, x0
	ldr	w8, [x22]
LBB0_43:
Lloh53:
	adrp	x9, _FOS_OVERWRITEPROMPT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _FOS_OVERWRITEPROMPT@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_63
; %bb.44:
	ldr	x8, [x22, #8]
Lloh56:
	adrp	x9, _ITEMDLG_TYPE_SAVE@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ITEMDLG_TYPE_SAVE@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_63
; %bb.45:
	mov	x0, x24
	bl	_SUCCEEDED
	cbz	w0, LBB0_62
; %bb.46:
	cmp	w25, #1
	b.lt	LBB0_62
; %bb.47:
	mov	w20, #1
	b	LBB0_58
LBB0_48:
Lloh59:
	adrp	x0, l_.str.4@PAGE
Lloh60:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ERR
LBB0_49:
	cmp	w25, #1
	b.lt	LBB0_52
; %bb.50:
	mov	x19, x20
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19], #4
	bl	_ILFree
	subs	x27, x27, #1
	b.ne	LBB0_51
LBB0_52:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
LBB0_53:
	bl	_HeapFree
LBB0_54:
	ldur	x8, [x29, #-88]
Lloh61:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh62:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_64
; %bb.55:
	mov	x0, x21
	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_56:                                ;   in Loop: Header=BB0_58 Depth=1
	ldur	x0, [x29, #-152]
	bl	_IShellItem_Release
LBB0_57:                                ;   in Loop: Header=BB0_58 Depth=1
	mov	x0, x24
	bl	_SUCCEEDED
	cmp	w0, #0
	ccmp	w20, w25, #0, ne
	add	w20, w20, #1
	b.ge	LBB0_62
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	sub	w1, w20, #1
	ldr	x0, [x23]
	sub	x2, x29, #152
	bl	_IShellItemArray_GetItemAt
	mov	x24, x0
	bl	_SUCCEEDED
	cbz	w0, LBB0_57
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	ldur	x0, [x29, #-152]
	bl	_shell_item_exists
	cbz	w0, LBB0_56
; %bb.60:                               ;   in Loop: Header=BB0_58 Depth=1
	ldur	x1, [x29, #-152]
	mov	x0, x22
	bl	_events_OnOverwrite
	mov	x24, x0
	b	LBB0_56
LBB0_61:
Lloh64:
	adrp	x8, _COMDLG32_hInstance@GOTPAGE
Lloh65:
	ldr	x8, [x8, _COMDLG32_hInstance@GOTPAGEOFF]
Lloh66:
	ldr	w23, [x8]
Lloh67:
	adrp	x8, _IDS_INVALID_FOLDERNAME@GOTPAGE
Lloh68:
	ldr	x8, [x8, _IDS_INVALID_FOLDERNAME@GOTPAGEOFF]
Lloh69:
	ldr	w24, [x8]
	sub	x0, x29, #152
	bl	_ARRAY_SIZE
	mov	x3, x0
	sub	x2, x29, #152
	mov	x0, x23
	mov	x1, x24
	bl	_LoadStringW
Lloh70:
	adrp	x8, _MB_OK@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
	ldp	w2, w0, [x22, #40]
Lloh72:
	ldr	w8, [x8]
Lloh73:
	adrp	x9, _MB_ICONEXCLAMATION@GOTPAGE
Lloh74:
	ldr	x9, [x9, _MB_ICONEXCLAMATION@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	orr	w3, w9, w8
	sub	x1, x29, #152
	bl	_MessageBoxW
	ldr	x0, [x22, #32]
	bl	_IShellItemArray_Release
	str	xzr, [x22, #32]
	b	LBB0_49
LBB0_62:
	mov	x0, x24
	bl	_FAILED
	ldur	x20, [x29, #-208]               ; 8-byte Folded Reload
	cbnz	x0, LBB0_49
LBB0_63:
	mov	x0, x22
	bl	_events_OnFileOk
	ldr	w8, [x19]
	cmp	w0, w8
	csel	w21, w8, w21, eq
	b	LBB0_49
LBB0_64:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get pidl for current directory.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Acting on %d file(s).\n"

	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FOS_NOVALIDATE,4,2             ; @FOS_NOVALIDATE
	.comm	_FOS_FILEMUSTEXIST,4,2          ; @FOS_FILEMUSTEXIST
	.comm	_ITEMDLG_TYPE_SAVE,8,3          ; @ITEMDLG_TYPE_SAVE
	.section	__TEXT,__const
_on_default_action.dotW:                ; @on_default_action.dotW
	.asciz	"."

	.comm	_IDS_FILENOTEXISTING,4,2        ; @IDS_FILENOTEXISTING
	.comm	_FOS_PICKFOLDERS,4,2            ; @FOS_PICKFOLDERS
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Filtering not implemented.\n"

	.comm	_SBSP_DEFBROWSER,4,2            ; @SBSP_DEFBROWSER
l_.str.3:                               ; @.str.3
	.asciz	"Failed to browse to directory: %08x\n"

	.comm	_SIATTRIBFLAGS_AND,4,2          ; @SIATTRIBFLAGS_AND
	.comm	_SFGAO_FOLDER,4,2               ; @SFGAO_FOLDER
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_COMDLG32_hInstance,4,2         ; @COMDLG32_hInstance
	.comm	_IDS_INVALID_FOLDERNAME,4,2     ; @IDS_INVALID_FOLDERNAME
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONEXCLAMATION,4,2         ; @MB_ICONEXCLAMATION
	.comm	_FOS_OVERWRITEPROMPT,4,2        ; @FOS_OVERWRITEPROMPT
l_.str.4:                               ; @.str.4
	.asciz	"Failed.\n"

	.no_dead_strip	_on_default_action
.subsections_via_symbols
