	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DoSaveFileAs
_DoSaveFileAs:                          ## @DoSaveFileAs
	.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, %rbx
	movl	%edi, %r14d
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DPRINT1
	movq	8(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINT1
	leaq	-96(%rbp), %rdi
	movl	$48, %esi
	callq	_ZeroMemory
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	__tcscpy
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %edi
	movl	(%r13), %edx
	movq	%r15, %rsi
	callq	_GetWindowText
	leaq	L_.str.2(%rip), %rdi
	callq	_TEXT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	__tcscat
LBB0_3:
	movl	$48, -96(%rbp)
	movl	%r14d, -52(%rbp)
	movq	_hAppInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	l_.str.3(%rip), %rax
	movq	%rax, -88(%rbp)
	movq	_OFN_HIDEREADONLY@GOTPCREL(%rip), %rax
	movq	_OFN_PATHMUSTEXIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_OFN_OVERWRITEPROMPT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r15, -64(%rbp)
	movl	(%r13), %eax
	movl	%eax, -80(%rbp)
	movl	%ecx, -76(%rbp)
	leaq	l_.str.4(%rip), %rax
	movq	%rax, -72(%rbp)
	leaq	-96(%rbp), %rdi
	callq	_GetSaveFileName
	movq	_FALSE@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SetFileName
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_DoSaveFile
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SetFileName
LBB0_7:
	movl	(%r13), %eax
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pChildInfo %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"FileName %S\n"

L_.str.2:                               ## @.str.2
	.asciz	".msc"

	.comm	_hAppInstance,4,2               ## @hAppInstance
	.section	__TEXT,__const
	.p2align	2                               ## @.str.3
l_.str.3:
	.long	77                              ## 0x4d
	.long	83                              ## 0x53
	.long	67                              ## 0x43
	.long	32                              ## 0x20
	.long	70                              ## 0x46
	.long	105                             ## 0x69
	.long	108                             ## 0x6c
	.long	101                             ## 0x65
	.long	115                             ## 0x73
	.long	0                               ## 0x0
	.long	42                              ## 0x2a
	.long	46                              ## 0x2e
	.long	109                             ## 0x6d
	.long	115                             ## 0x73
	.long	99                              ## 0x63
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_OFN_HIDEREADONLY,4,2           ## @OFN_HIDEREADONLY
	.comm	_OFN_PATHMUSTEXIST,4,2          ## @OFN_PATHMUSTEXIST
	.comm	_OFN_OVERWRITEPROMPT,4,2        ## @OFN_OVERWRITEPROMPT
	.p2align	2                               ## @.str.4
l_.str.4:
	.long	109                             ## 0x6d
	.long	115                             ## 0x73
	.long	99                              ## 0x63
	.long	0                               ## 0x0

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_DoSaveFileAs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DoSaveFileAs
_DoSaveFileAs:                          ; @DoSaveFileAs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #64
	mov	x19, x1
	mov	x20, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT1
	ldr	x1, [x19, #8]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT1
	sub	x0, x29, #104
	mov	w1, #48
	bl	_ZeroMemory
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	__tcscpy
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
	ldr	w2, [x23]
	mov	x1, x21
	bl	_GetWindowText
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TEXT
	mov	x1, x0
	mov	x0, x21
	bl	__tcscat
LBB0_3:
	mov	w8, #48
	stur	w8, [x29, #-104]
Lloh13:
	adrp	x8, _hAppInstance@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hAppInstance@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	w8, w20, [x29, #-64]
Lloh16:
	adrp	x8, l_.str.3@PAGE
Lloh17:
	add	x8, x8, l_.str.3@PAGEOFF
	stur	x8, [x29, #-96]
Lloh18:
	adrp	x8, _OFN_HIDEREADONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OFN_HIDEREADONLY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _OFN_PATHMUSTEXIST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OFN_PATHMUSTEXIST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _OFN_OVERWRITEPROMPT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _OFN_OVERWRITEPROMPT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x23]
	stp	w9, w8, [x29, #-88]
Lloh27:
	adrp	x8, l_.str.4@PAGE
Lloh28:
	add	x8, x8, l_.str.4@PAGEOFF
	stp	x8, x21, [x29, #-80]
	sub	x0, x29, #104
	bl	_GetSaveFileName
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_SetFileName
	mov	x0, x20
	mov	x1, x19
	bl	_DoSaveFile
	cbz	x0, LBB0_6
; %bb.5:
Lloh29:
	adrp	x8, _TRUE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	bl	_SetFileName
LBB0_7:
Lloh31:
	adrp	x8, _FALSE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pChildInfo %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"FileName %S\n"

l_.str.2:                               ; @.str.2
	.asciz	".msc"

	.comm	_hAppInstance,4,2               ; @hAppInstance
	.section	__TEXT,__const
	.p2align	2                               ; @.str.3
l_.str.3:
	.long	77                              ; 0x4d
	.long	83                              ; 0x53
	.long	67                              ; 0x43
	.long	32                              ; 0x20
	.long	70                              ; 0x46
	.long	105                             ; 0x69
	.long	108                             ; 0x6c
	.long	101                             ; 0x65
	.long	115                             ; 0x73
	.long	0                               ; 0x0
	.long	42                              ; 0x2a
	.long	46                              ; 0x2e
	.long	109                             ; 0x6d
	.long	115                             ; 0x73
	.long	99                              ; 0x63
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_OFN_HIDEREADONLY,4,2           ; @OFN_HIDEREADONLY
	.comm	_OFN_PATHMUSTEXIST,4,2          ; @OFN_PATHMUSTEXIST
	.comm	_OFN_OVERWRITEPROMPT,4,2        ; @OFN_OVERWRITEPROMPT
	.p2align	2                               ; @.str.4
l_.str.4:
	.long	109                             ; 0x6d
	.long	115                             ; 0x73
	.long	99                              ; 0x63
	.long	0                               ; 0x0

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_DoSaveFileAs
.subsections_via_symbols
