	.file	"extr_settings.c_LoadSettings.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Font"
.LC1:
	.string	"CodePage"
.LC2:
	.string	"Advanced"
.LC3:
	.string	"Arial"
	.text
	.p2align 4
	.globl	LoadSettings
	.type	LoadSettings, @function
LoadSettings:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	lea	r8, -72[rbp]
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	ecx, DWORD PTR KEY_READ[rip]
	mov	esi, DWORD PTR g_szGeneralRegKey[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	edi, DWORD PTR HKEY_CURRENT_USER[rip]
	mov	QWORD PTR -72[rbp], 0
	call	RegOpenKeyEx@PLT
	cmp	rax, QWORD PTR ERROR_SUCCESS[rip]
	je	.L20
	mov	esi, DWORD PTR IDC_FONTCOMBO[rip]
	mov	edi, DWORD PTR hCharmapDlg[rip]
	call	GetDlgItem@PLT
	lea	rdi, .LC3[rip]
	mov	DWORD PTR hWnd[rip], eax
	call	_T@PLT
	mov	edi, DWORD PTR hWnd[rip]
	mov	esi, -1
	mov	rdx, rax
	call	ComboBox_FindStringExact@PLT
	cmp	DWORD PTR CB_ERR[rip], eax
	mov	esi, eax
	jne	.L21
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, DWORD PTR hWnd[rip]
	call	ComboBox_SetCurSel@PLT
	mov	edi, DWORD PTR hCharmapDlg[rip]
	call	ChangeMapFont@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	movsx	rcx, DWORD PTR MAX_PATH[rip]
	mov	rdi, rsp
	mov	rbx, rsp
	lea	rax, 15[0+rcx*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L4
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L23
.L4:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L5
	or	QWORD PTR -8[rsp+rdx], 0
.L5:
	mov	rax, QWORD PTR REG_DWORD[rip]
	lea	rdi, .LC0[rip]
	mov	r12, rsp
	movabs	r13, 4611686018427387903
	and	r13, rcx
	mov	QWORD PTR -48[rbp], 1024
	mov	QWORD PTR -56[rbp], rax
	call	_T@PLT
	mov	esi, DWORD PTR g_szGeneralRegKey[rip]
	mov	r8d, r13d
	mov	rcx, r12
	mov	edi, DWORD PTR HKEY_CURRENT_USER[rip]
	mov	rdx, rax
	call	QueryStringValue@PLT
	cmp	rax, QWORD PTR ERROR_SUCCESS[rip]
	je	.L24
.L7:
	lea	rdi, .LC1[rip]
	call	_T@PLT
	mov	esi, DWORD PTR g_szGeneralRegKey[rip]
	mov	r8d, r13d
	mov	rcx, r12
	mov	edi, DWORD PTR HKEY_CURRENT_USER[rip]
	mov	rdx, rax
	call	QueryStringValue@PLT
	cmp	rax, QWORD PTR ERROR_SUCCESS[rip]
	je	.L25
.L10:
	lea	rdi, .LC2[rip]
	call	_T@PLT
	mov	rdi, QWORD PTR -72[rbp]
	lea	rcx, -56[rbp]
	xor	edx, edx
	mov	rsi, rax
	lea	r9, -48[rbp]
	lea	r8d, -64[rbp]
	call	RegQueryValueEx@PLT
	mov	rax, QWORD PTR FALSE[rip]
	cmp	QWORD PTR -64[rbp], rax
	je	.L12
	mov	ecx, DWORD PTR MF_CHECKED[rip]
	mov	edx, DWORD PTR BM_CLICK[rip]
	xor	r8d, r8d
	mov	esi, DWORD PTR IDC_CHECK_ADVANCED[rip]
	mov	edi, DWORD PTR hCharmapDlg[rip]
	call	SendDlgItemMessage@PLT
.L12:
	mov	rdi, QWORD PTR -72[rbp]
	call	RegCloseKey@PLT
	mov	rsp, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR IDC_COMBO_CHARSET[rip]
	mov	edi, DWORD PTR hCharmapDlg[rip]
	call	GetDlgItem@PLT
	mov	esi, -1
	mov	rdx, r12
	mov	edi, eax
	mov	DWORD PTR hWnd[rip], eax
	call	ComboBox_FindStringExact@PLT
	cmp	DWORD PTR CB_ERR[rip], eax
	mov	esi, eax
	je	.L10
	mov	edi, DWORD PTR hWnd[rip]
	call	ComboBox_SetCurSel@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR IDC_FONTCOMBO[rip]
	mov	edi, DWORD PTR hCharmapDlg[rip]
	call	GetDlgItem@PLT
	mov	esi, -1
	mov	rdx, r12
	mov	edi, eax
	mov	DWORD PTR hWnd[rip], eax
	call	ComboBox_FindStringExact@PLT
	cmp	DWORD PTR CB_ERR[rip], eax
	mov	esi, eax
	je	.L7
	mov	edi, DWORD PTR hWnd[rip]
	call	ComboBox_SetCurSel@PLT
	mov	edi, DWORD PTR hCharmapDlg[rip]
	call	ChangeMapFont@PLT
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	LoadSettings, .-LoadSettings
	.comm	hWnd,4,4
	.comm	hCharmapDlg,4,4
	.comm	g_szGeneralRegKey,4,4
	.comm	REG_DWORD,8,8
	.comm	MF_CHECKED,4,4
	.comm	MAX_PATH,4,4
	.comm	KEY_READ,4,4
	.comm	IDC_FONTCOMBO,4,4
	.comm	IDC_COMBO_CHARSET,4,4
	.comm	IDC_CHECK_ADVANCED,4,4
	.comm	HKEY_CURRENT_USER,4,4
	.comm	FALSE,8,8
	.comm	ERROR_SUCCESS,8,8
	.comm	CB_ERR,4,4
	.comm	BM_CLICK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_settings.c_LoadSettings.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Font\000"
	.align	2
.LC1:
	.ascii	"CodePage\000"
	.align	2
.LC2:
	.ascii	"Advanced\000"
	.align	2
.LC3:
	.ascii	"Arial\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LoadSettings
	.syntax unified
	.arm
	.fpu softvfp
	.type	LoadSettings, %function
LoadSettings:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r2, #0
	ldr	lr, .L20
	ldr	r3, .L20+4
	ldr	r5, .L20+8
	ldr	r6, .L20+12
	sub	ip, fp, #56
	ldr	lr, [lr]
	str	lr, [fp, #-40]
	mov	lr,#0
	ldr	r3, [r3]
	ldr	r1, [r5]
	ldr	r0, [r6]
	str	r2, [fp, #-56]
	str	ip, [sp]
	bl	RegOpenKeyEx
	ldr	r4, .L20+16
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L14
	ldr	r3, .L20+20
	ldr	r5, .L20+24
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	GetDlgItem
	mov	r4, r0
	ldr	r6, .L20+28
	ldr	r0, .L20+32
	str	r4, [r6]
	bl	_T
	mvn	r1, #0
	mov	r2, r0
	mov	r0, r4
	bl	ComboBox_FindStringExact
	ldr	r3, .L20+36
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L15
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r1, r0
	ldr	r0, [r6]
	bl	ComboBox_SetCurSel
	ldr	r0, [r5]
	bl	ChangeMapFont
	b	.L1
.L14:
	mov	r2, #1024
	ldr	r1, .L20+40
	ldr	r3, .L20+44
	ldr	r7, [r1]
	ldr	r1, [r3]
	lsl	r3, r7, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	str	r1, [fp, #-48]
	ldr	r1, [r5]
	mov	r8, sp
	ldr	r0, .L20+48
	sub	sp, sp, r3
	ldr	r10, [r6]
	str	r2, [fp, #-44]
	str	r1, [fp, #-64]
	bl	_T
	bic	r7, r7, #-1073741824
	str	r7, [sp]
	add	r9, sp, #8
	mov	r2, r0
	mov	r3, r9
	mov	r0, r10
	ldr	r1, [fp, #-64]
	bl	QueryStringValue
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L17
.L4:
	ldr	r0, .L20+52
	ldr	r6, [r6]
	ldr	r5, [r5]
	bl	_T
	mov	r3, r9
	mov	r2, r0
	mov	r1, r5
	mov	r0, r6
	str	r7, [sp]
	bl	QueryStringValue
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L18
.L7:
	ldr	r0, .L20+56
	ldr	r4, [fp, #-56]
	bl	_T
	sub	r2, fp, #44
	sub	r3, fp, #52
	mov	r1, r0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #0
	sub	r3, fp, #48
	mov	r0, r4
	bl	RegQueryValueEx
	ldr	r3, .L20+60
	ldr	r2, [fp, #-52]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L19
	ldr	r0, [fp, #-56]
	bl	RegCloseKey
	mov	sp, r8
	b	.L1
.L19:
	mov	ip, #0
	ldr	r3, .L20+64
	ldr	r2, .L20+68
	ldr	r1, .L20+72
	ldr	r0, .L20+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	ip, [sp]
	bl	SendDlgItemMessage
	ldr	r0, [fp, #-56]
	bl	RegCloseKey
	mov	sp, r8
	b	.L1
.L18:
	ldr	r3, .L20+24
	ldr	r2, .L20+76
	ldr	r0, [r3]
	ldr	r1, [r2]
	bl	GetDlgItem
	ldr	r4, .L20+28
	mov	r2, r9
	mvn	r1, #0
	str	r0, [r4]
	bl	ComboBox_FindStringExact
	ldr	r3, .L20+36
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	mov	r1, r0
	ldr	r0, [r4]
	bl	ComboBox_SetCurSel
	b	.L7
.L17:
	ldr	r3, .L20+20
	ldr	r10, .L20+24
	ldr	r1, [r3]
	ldr	r0, [r10]
	bl	GetDlgItem
	ldr	r3, .L20+28
	mov	r2, r9
	mvn	r1, #0
	str	r0, [r3]
	bl	ComboBox_FindStringExact
	ldr	r2, .L20+36
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L4
	ldr	r3, .L20+28
	mov	r1, r0
	ldr	r0, [r3]
	bl	ComboBox_SetCurSel
	ldr	r0, [r10]
	bl	ChangeMapFont
	b	.L4
.L16:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	KEY_READ
	.word	g_szGeneralRegKey
	.word	HKEY_CURRENT_USER
	.word	ERROR_SUCCESS
	.word	IDC_FONTCOMBO
	.word	hCharmapDlg
	.word	hWnd
	.word	.LC3
	.word	CB_ERR
	.word	MAX_PATH
	.word	REG_DWORD
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	FALSE
	.word	MF_CHECKED
	.word	BM_CLICK
	.word	IDC_CHECK_ADVANCED
	.word	IDC_COMBO_CHARSET
	.size	LoadSettings, .-LoadSettings
	.comm	hWnd,4,4
	.comm	hCharmapDlg,4,4
	.comm	g_szGeneralRegKey,4,4
	.comm	REG_DWORD,4,4
	.comm	MF_CHECKED,4,4
	.comm	MAX_PATH,4,4
	.comm	KEY_READ,4,4
	.comm	IDC_FONTCOMBO,4,4
	.comm	IDC_COMBO_CHARSET,4,4
	.comm	IDC_CHECK_ADVANCED,4,4
	.comm	HKEY_CURRENT_USER,4,4
	.comm	FALSE,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	CB_ERR,4,4
	.comm	BM_CLICK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
