	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetFileDialog95
_GetFileDialog95:                       ## @GetFileDialog95
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	64(%rdi), %rax
	movq	_OFN_NOCHANGEDIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_MAX_PATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_heap_alloc
	movq	%rax, %r15
	movl	(%rbx), %edi
	movq	%rax, %rsi
	callq	_GetCurrentDirectoryW
	cmpl	$128, %r14d
	je	LBB0_6
LBB0_4:
	cmpl	$129, %r14d
	je	LBB0_5
## %bb.7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_9
	jmp	LBB0_14
LBB0_1:
	xorl	%r15d, %r15d
	cmpl	$128, %r14d
	jne	LBB0_4
LBB0_6:
	movq	_FODPROP_SAVEDLG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 72(%r13)
LBB0_5:
	movq	%r13, %rdi
	callq	_GetFileName95
	movq	%rax, %r14
	testq	%r14, %r14
	je	LBB0_14
LBB0_9:
	movq	64(%r13), %r12
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.10:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	cmpq	$0, 56(%r13)
	je	LBB0_13
## %bb.12:
	callq	_PathFindFileNameW
	movq	8(%r12), %rdi
	movl	4(%r12), %edx
	movq	%rax, %rsi
	callq	_lstrcpynW
LBB0_14:
	testq	%r15, %r15
	je	LBB0_16
LBB0_15:
	movq	%r15, %rdi
	callq	_SetCurrentDirectoryW
	movq	%r15, %rdi
	callq	_heap_free
LBB0_16:
	cmpq	$0, 56(%r13)
	jne	LBB0_18
## %bb.17:
	movq	48(%r13), %rdi
	callq	_heap_free
	movq	40(%r13), %rdi
	callq	_heap_free
	movq	32(%r13), %rdi
	callq	_heap_free
	movq	24(%r13), %rdi
	callq	_heap_free
LBB0_18:
	movq	(%r13), %rdi
	callq	_heap_free
	movq	8(%r13), %rdi
	callq	_heap_free
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_ILFree
	incq	%rbx
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_20
LBB0_21:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%eax, %edi
	callq	_PathFindFileNameA
	movl	(%r12), %edx
	movl	4(%r12), %edi
	movq	%rax, %rsi
	callq	_lstrcpynA
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_OFN_NOCHANGEDIR,4,2            ## @OFN_NOCHANGEDIR
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FODPROP_SAVEDLG,4,2            ## @FODPROP_SAVEDLG
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_GetFileDialog95
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetFileDialog95
_GetFileDialog95:                       ; @GetFileDialog95
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #64]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _OFN_NOCHANGEDIR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OFN_NOCHANGEDIR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x22, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_PATH@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_heap_alloc
	mov	x21, x0
	ldr	w0, [x22]
	mov	x1, x21
	bl	_GetCurrentDirectoryW
	cmp	w20, #128
	b.eq	LBB0_5
LBB0_2:
	cmp	w20, #129
	b.eq	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	cbnz	x20, LBB0_7
	b	LBB0_11
LBB0_4:
	mov	x21, #0
	cmp	w20, #128
	b.ne	LBB0_2
LBB0_5:
Lloh8:
	adrp	x8, _FODPROP_SAVEDLG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FODPROP_SAVEDLG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #72]
	orr	w8, w9, w8
	str	w8, [x19, #72]
LBB0_6:
	mov	x0, x19
	bl	_GetFileName95
	mov	x20, x0
	cbz	x20, LBB0_11
LBB0_7:
	ldr	x22, [x19, #64]
	ldr	x0, [x22, #16]
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_19
; %bb.10:
	bl	_PathFindFileNameW
	mov	x1, x0
	ldr	x0, [x22, #8]
	ldr	w2, [x22, #4]
	bl	_lstrcpynW
LBB0_11:
	cbz	x21, LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_SetCurrentDirectoryW
	mov	x0, x21
	bl	_heap_free
LBB0_13:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_15
; %bb.14:
	ldr	x0, [x19, #48]
	bl	_heap_free
	ldr	x0, [x19, #40]
	bl	_heap_free
	ldr	x0, [x19, #32]
	bl	_heap_free
	ldr	x0, [x19, #24]
	bl	_heap_free
LBB0_15:
	ldr	x0, [x19]
	bl	_heap_free
	ldr	x0, [x19, #8]
	bl	_heap_free
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_18
; %bb.16:
	mov	x21, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x21, lsl #2]
	bl	_ILFree
	add	x21, x21, #1
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.lo	LBB0_17
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x8
	bl	_PathFindFileNameA
	mov	x1, x0
	ldp	w2, w0, [x22]
	bl	_lstrcpynA
	cbnz	x21, LBB0_12
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OFN_NOCHANGEDIR,4,2            ; @OFN_NOCHANGEDIR
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FODPROP_SAVEDLG,4,2            ; @FODPROP_SAVEDLG
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_GetFileDialog95
.subsections_via_symbols
