	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FD31_MapOfnStructA
_FD31_MapOfnStructA:                    ## @FD31_MapOfnStructA
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	108(%rdi), %eax
	movl	%eax, 116(%rsi)
	movl	104(%rdi), %eax
	movl	%eax, 112(%rsi)
	movq	96(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_FD31_MapStringPairsToW
	movq	%rax, 104(%r14)
LBB0_2:
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.4:
	movq	80(%rbx), %rsi
	callq	_FD31_MapStringPairsToW
	movq	%rax, 96(%r14)
LBB0_5:
	movq	80(%rbx), %rax
	movq	%rax, 88(%r14)
	movl	72(%rbx), %eax
	movl	%eax, 80(%r14)
	movl	(%rbx), %esi
	movl	%esi, (%r14)
	movl	68(%rbx), %edi
	callq	_FD31_DupToW
	movq	%rax, 72(%r14)
	movl	4(%rbx), %esi
	movl	%esi, 4(%r14)
	movl	64(%rbx), %edi
	callq	_FD31_DupToW
	movq	%rax, 64(%r14)
	movq	56(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	leaq	-120(%rbp), %rdi
	callq	_RtlCreateUnicodeStringFromAsciiz
	movl	-120(%rbp), %eax
	movl	%eax, 60(%r14)
LBB0_7:
	movq	48(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	leaq	-120(%rbp), %rdi
	callq	_RtlCreateUnicodeStringFromAsciiz
	movl	-120(%rbp), %r15d
	jmp	LBB0_13
LBB0_9:
	movq	_COMDLG32_hInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testq	%r15, %r15
	jne	LBB0_10
## %bb.11:
	movq	_IDS_SAVE_AS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_IDS_OPEN_FILE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r15d
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_LoadStringW
	movq	%r13, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r12d
	movl	%r12d, %edi
	callq	_heap_alloc
	movl	%eax, %r15d
	movl	%eax, %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_13:
	movl	%r15d, 56(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	40(%rbx), %eax
	movl	%eax, 52(%r14)
	movl	36(%rbx), %eax
	movl	%eax, 48(%r14)
	movl	32(%rbx), %edi
	movl	$3, %esi
	callq	_FD31_DupToW
	movq	%rax, 40(%r14)
	movq	_OFN_ENABLETEMPLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_18
## %bb.14:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.15:
	callq	_IS_INTRESOURCE
	movq	24(%rbx), %rsi
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	leaq	-120(%rbp), %rdi
	callq	_RtlCreateUnicodeStringFromAsciiz
	movl	-120(%rbp), %esi
LBB0_17:
	movl	%esi, 36(%r14)
LBB0_18:
	movq	16(%r14), %rax
	movq	_OPENFILENAME_SIZE_VERSION_400W@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_20
## %bb.19:
	movl	20(%rbx), %eax
	movl	%eax, 32(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 28(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 24(%r14)
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMDLG32_hInstance,4,2         ## @COMDLG32_hInstance
	.comm	_IDS_OPEN_FILE,4,2              ## @IDS_OPEN_FILE
	.comm	_IDS_SAVE_AS,4,2                ## @IDS_SAVE_AS
	.comm	_OFN_ENABLETEMPLATE,4,2         ## @OFN_ENABLETEMPLATE
	.comm	_OPENFILENAME_SIZE_VERSION_400W,8,3 ## @OPENFILENAME_SIZE_VERSION_400W
	.no_dead_strip	_FD31_MapOfnStructA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FD31_MapOfnStructA
_FD31_MapOfnStructA:                    ; @FD31_MapOfnStructA
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	d0, [x0, #104]
	str	d0, [x1, #112]
	ldr	x0, [x0, #96]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, #0
	bl	_FD31_MapStringPairsToW
	str	x0, [x19, #104]
LBB0_2:
	ldr	x0, [x20, #88]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x1, [x20, #80]
	bl	_FD31_MapStringPairsToW
	str	x0, [x19, #96]
LBB0_5:
	ldr	x8, [x20, #80]
	str	x8, [x19, #88]
	ldr	w8, [x20, #72]
	str	w8, [x19, #80]
	ldr	w1, [x20]
	str	w1, [x19]
	ldr	w0, [x20, #68]
	bl	_FD31_DupToW
	str	x0, [x19, #72]
	ldr	w1, [x20, #4]
	str	w1, [x19, #4]
	ldr	w0, [x20, #64]
	bl	_FD31_DupToW
	str	x0, [x19, #64]
	ldr	x1, [x20, #56]
	cbz	x1, LBB0_7
; %bb.6:
	mov	x0, sp
	bl	_RtlCreateUnicodeStringFromAsciiz
	ldr	w8, [sp]
	str	w8, [x19, #60]
LBB0_7:
	ldr	x1, [x20, #48]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, sp
	bl	_RtlCreateUnicodeStringFromAsciiz
	ldr	w21, [sp]
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _COMDLG32_hInstance@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMDLG32_hInstance@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IDS_OPEN_FILE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IDS_OPEN_FILE@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
Lloh8:
	adrp	x8, _IDS_SAVE_AS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IDS_SAVE_AS@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_LoadStringW
	add	x0, sp, #8
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w22, w8, #4
	mov	x0, x22
	bl	_heap_alloc
	mov	x21, x0
	add	x1, sp, #8
	mov	x2, x22
	bl	_memcpy
LBB0_10:
	str	w21, [x19, #56]
	ldr	w8, [x20, #8]
	str	w8, [x19, #8]
	ldur	d0, [x20, #36]
	str	d0, [x19, #48]
	ldr	w0, [x20, #32]
	mov	w1, #3
	bl	_FD31_DupToW
	str	x0, [x19, #40]
	ldr	w8, [x20, #8]
Lloh10:
	adrp	x9, _OFN_ENABLETEMPLATE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OFN_ENABLETEMPLATE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_15
; %bb.12:
	bl	_IS_INTRESOURCE
	ldr	x1, [x20, #24]
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, sp
	bl	_RtlCreateUnicodeStringFromAsciiz
	ldr	w1, [sp]
LBB0_14:
	str	w1, [x19, #36]
LBB0_15:
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _OPENFILENAME_SIZE_VERSION_400W@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OPENFILENAME_SIZE_VERSION_400W@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_17
; %bb.16:
	ldr	w8, [x20, #20]
	str	w8, [x19, #32]
	ldur	d0, [x20, #12]
	str	d0, [x19, #24]
LBB0_17:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_COMDLG32_hInstance,4,2         ; @COMDLG32_hInstance
	.comm	_IDS_OPEN_FILE,4,2              ; @IDS_OPEN_FILE
	.comm	_IDS_SAVE_AS,4,2                ; @IDS_SAVE_AS
	.comm	_OFN_ENABLETEMPLATE,4,2         ; @OFN_ENABLETEMPLATE
	.comm	_OPENFILENAME_SIZE_VERSION_400W,8,3 ; @OPENFILENAME_SIZE_VERSION_400W
	.no_dead_strip	_FD31_MapOfnStructA
.subsections_via_symbols
