	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SaveSettings                   ## -- Begin function SaveSettings
	.p2align	4, 0x90
_SaveSettings:                          ## @SaveSettings
	.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	$24, %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, -56(%rbp)
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_szGeneralRegKey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_SET_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-56(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyEx
	addq	$32, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_hCharmapDlg@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_IDC_FONTCOMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movq	_hWnd@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movl	(%r12), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ComboBox_GetText
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	-56(%rbp), %r14
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	callq	_RegSetValueEx
LBB0_3:
	movl	(%r13), %edi
	movq	_IDC_COMBO_CHARSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, (%r15)
	movl	(%r12), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ComboBox_GetText
	cmpb	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %r14
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	callq	_RegSetValueEx
LBB0_5:
	movq	-56(%rbp), %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movq	_REG_DWORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	_Settings@GOTPCREL(%rip), %r8d
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueEx
	movq	-56(%rbp), %rdi
	callq	_RegCloseKey
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_g_szGeneralRegKey,4,2          ## @g_szGeneralRegKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_SET_VALUE,4,2              ## @KEY_SET_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_hCharmapDlg,4,2                ## @hCharmapDlg
	.comm	_IDC_FONTCOMBO,4,2              ## @IDC_FONTCOMBO
	.comm	_hWnd,4,2                       ## @hWnd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Font"

	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_IDC_COMBO_CHARSET,4,2          ## @IDC_COMBO_CHARSET
L_.str.1:                               ## @.str.1
	.asciz	"CodePage"

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

	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
	.comm	_Settings,4,2                   ## @Settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SaveSettings                   ; -- Begin function SaveSettings
	.p2align	2
_SaveSettings:                          ; @SaveSettings
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	xzr, [x29, #-80]
Lloh3:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _g_szGeneralRegKey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_szGeneralRegKey@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _KEY_SET_VALUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_SET_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	str	xzr, [sp, #-16]!
	sub	x7, x29, #80
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyEx
	add	sp, sp, #16
Lloh15:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	mov	x21, sp
Lloh18:
	adrp	x22, _MAX_PATH@GOTPAGE
Lloh19:
	ldr	x22, [x22, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh20:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh21:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh22:
	adrp	x24, _hCharmapDlg@GOTPAGE
Lloh23:
	ldr	x24, [x24, _hCharmapDlg@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh24:
	adrp	x8, _IDC_FONTCOMBO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IDC_FONTCOMBO@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_GetDlgItem
Lloh27:
	adrp	x25, _hWnd@GOTPAGE
Lloh28:
	ldr	x25, [x25, _hWnd@GOTPAGEOFF]
	str	w0, [x25]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_ComboBox_GetText
	ldrb	w8, [x19]
Lloh29:
	adrp	x23, _REG_SZ@GOTPAGE
Lloh30:
	ldr	x23, [x23, _REG_SZ@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.2:
	ldur	x20, [x29, #-80]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	w3, [x23]
	ldr	w5, [x22]
	mov	x0, x20
	mov	w2, #0
	mov	x4, x19
	bl	_RegSetValueEx
LBB0_3:
	ldr	w0, [x24]
Lloh33:
	adrp	x8, _IDC_COMBO_CHARSET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IDC_COMBO_CHARSET@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_GetDlgItem
	str	w0, [x25]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_ComboBox_GetText
	ldrb	w8, [x19]
	cbz	w8, LBB0_5
; %bb.4:
	ldur	x20, [x29, #-80]
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	w3, [x23]
	ldr	w5, [x22]
	mov	x0, x20
	mov	w2, #0
	mov	x4, x19
	bl	_RegSetValueEx
LBB0_5:
	ldur	x19, [x29, #-80]
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh40:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x4, _Settings@GOTPAGE
Lloh44:
	ldr	x4, [x4, _Settings@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	w5, #4
	bl	_RegSetValueEx
	ldur	x0, [x29, #-80]
	bl	_RegCloseKey
	mov	sp, x21
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_g_szGeneralRegKey,4,2          ; @g_szGeneralRegKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_SET_VALUE,4,2              ; @KEY_SET_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_hCharmapDlg,4,2                ; @hCharmapDlg
	.comm	_IDC_FONTCOMBO,4,2              ; @IDC_FONTCOMBO
	.comm	_hWnd,4,2                       ; @hWnd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Font"

	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_IDC_COMBO_CHARSET,4,2          ; @IDC_COMBO_CHARSET
l_.str.1:                               ; @.str.1
	.asciz	"CodePage"

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

	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
	.comm	_Settings,4,2                   ; @Settings
.subsections_via_symbols
