	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnCommandSettingsPage          ## -- Begin function OnCommandSettingsPage
	.p2align	4, 0x90
_OnCommandSettingsPage:                 ## @OnCommandSettingsPage
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_LOWORD
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	_IDC_KEYLAYOUT_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_LVIF_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LVNI_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ListView_GetNextItem
	movq	%rax, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ListView_GetItem
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.15:
	movq	-64(%rbp), %rdi
	callq	_InputList_SetDefault
	jmp	LBB0_7
LBB0_4:
	movq	_IDC_KEYLAYOUT_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_LVIF_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LVNI_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ListView_GetNextItem
	movq	%rax, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ListView_GetItem
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.6:
	movq	-64(%rbp), %rdi
	callq	_InputList_Remove
LBB0_7:
	movq	%rbx, %rdi
	jmp	LBB0_8
LBB0_9:
	movq	_IDC_KEYLAYOUT_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_LVIF_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LVNI_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ListView_GetNextItem
	movq	%rax, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ListView_GetItem
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.11:
	movq	_hApplet@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IDD_INPUT_LANG_PROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movq	_EditDialogProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_DialogBoxParamW
	movq	_IDOK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.12:
	movq	%r14, %rdi
	jmp	LBB0_8
LBB0_16:
	movq	_hApplet@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IDD_KEYSETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movq	_KeySettingsDialogProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_DialogBoxW
	jmp	LBB0_17
LBB0_2:
	movq	_hApplet@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IDD_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movq	_AddDialogProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_DialogBoxW
	movq	_IDOK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.3:
	movq	_IDC_KEYLAYOUT_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	movq	%rax, %rdi
LBB0_8:
	callq	_UpdateInputListView
	movq	%r15, %rdi
	callq	_GetParent
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_PropSheet_Changed
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_16
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_hApplet,4,2                    ## @hApplet
	.comm	_IDD_ADD,4,2                    ## @IDD_ADD
	.comm	_AddDialogProc,4,2              ## @AddDialogProc
	.comm	_IDOK,4,2                       ## @IDOK
	.comm	_IDC_KEYLAYOUT_LIST,4,2         ## @IDC_KEYLAYOUT_LIST
	.comm	_LVIF_PARAM,8,3                 ## @LVIF_PARAM
	.comm	_LVNI_SELECTED,4,2              ## @LVNI_SELECTED
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IDD_INPUT_LANG_PROP,4,2        ## @IDD_INPUT_LANG_PROP
	.comm	_EditDialogProc,4,2             ## @EditDialogProc
	.comm	_IDD_KEYSETTINGS,4,2            ## @IDD_KEYSETTINGS
	.comm	_KeySettingsDialogProc,4,2      ## @KeySettingsDialogProc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnCommandSettingsPage          ; -- Begin function OnCommandSettingsPage
	.p2align	2
_OnCommandSettingsPage:                 ; @OnCommandSettingsPage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	mov	x0, x1
	bl	_LOWORD
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_16
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _IDC_KEYLAYOUT_LIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IDC_KEYLAYOUT_LIST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	cbz	x0, LBB0_16
; %bb.3:
	mov	x20, x0
	movi.2d	v0, #0000000000000000
Lloh5:
	adrp	x8, _LVIF_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LVIF_PARAM@GOTPAGEOFF]
	stp	q0, q0, [sp]
Lloh7:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh8:
	adrp	x8, _LVNI_SELECTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LVNI_SELECTED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_ListView_GetNextItem
	str	x0, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	bl	_ListView_GetItem
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.4:
	ldr	x0, [sp]
	bl	_InputList_SetDefault
	b	LBB0_11
LBB0_5:
Lloh14:
	adrp	x8, _IDC_KEYLAYOUT_LIST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IDC_KEYLAYOUT_LIST@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	cbz	x0, LBB0_16
; %bb.6:
	mov	x20, x0
	movi.2d	v0, #0000000000000000
Lloh17:
	adrp	x8, _LVIF_PARAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LVIF_PARAM@GOTPAGEOFF]
	stp	q0, q0, [sp]
Lloh19:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh20:
	adrp	x8, _LVNI_SELECTED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LVNI_SELECTED@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_ListView_GetNextItem
	str	x0, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	bl	_ListView_GetItem
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.7:
	ldr	x0, [sp]
	bl	_InputList_Remove
	b	LBB0_11
LBB0_8:
Lloh26:
	adrp	x8, _IDC_KEYLAYOUT_LIST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IDC_KEYLAYOUT_LIST@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	cbz	x0, LBB0_16
; %bb.9:
	mov	x20, x0
	movi.2d	v0, #0000000000000000
Lloh29:
	adrp	x8, _LVIF_PARAM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LVIF_PARAM@GOTPAGEOFF]
	stp	q0, q0, [sp]
Lloh31:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh32:
	adrp	x8, _LVNI_SELECTED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LVNI_SELECTED@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_ListView_GetNextItem
	str	x0, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	bl	_ListView_GetItem
Lloh35:
	adrp	x8, _FALSE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.10:
Lloh38:
	adrp	x8, _hApplet@GOTPAGE
Lloh39:
	ldr	x8, [x8, _hApplet@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
Lloh41:
	adrp	x8, _IDD_INPUT_LANG_PROP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IDD_INPUT_LANG_PROP@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
Lloh44:
	adrp	x8, _EditDialogProc@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EditDialogProc@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	ldr	x4, [sp]
	mov	x0, x21
	mov	x2, x19
	bl	_DialogBoxParamW
Lloh47:
	adrp	x8, _IDOK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IDOK@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
LBB0_11:
	mov	x0, x20
	b	LBB0_15
LBB0_12:
Lloh50:
	adrp	x8, _hApplet@GOTPAGE
Lloh51:
	ldr	x8, [x8, _hApplet@GOTPAGEOFF]
Lloh52:
	ldr	w20, [x8]
Lloh53:
	adrp	x8, _IDD_KEYSETTINGS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IDD_KEYSETTINGS@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
Lloh56:
	adrp	x8, _KeySettingsDialogProc@GOTPAGE
Lloh57:
	ldr	x8, [x8, _KeySettingsDialogProc@GOTPAGEOFF]
Lloh58:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_DialogBoxW
	b	LBB0_16
LBB0_13:
Lloh59:
	adrp	x8, _hApplet@GOTPAGE
Lloh60:
	ldr	x8, [x8, _hApplet@GOTPAGEOFF]
Lloh61:
	ldr	w20, [x8]
Lloh62:
	adrp	x8, _IDD_ADD@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IDD_ADD@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
Lloh65:
	adrp	x8, _AddDialogProc@GOTPAGE
Lloh66:
	ldr	x8, [x8, _AddDialogProc@GOTPAGEOFF]
Lloh67:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_DialogBoxW
Lloh68:
	adrp	x8, _IDOK@GOTPAGE
Lloh69:
	ldr	x8, [x8, _IDOK@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.14:
Lloh71:
	adrp	x8, _IDC_KEYLAYOUT_LIST@GOTPAGE
Lloh72:
	ldr	x8, [x8, _IDC_KEYLAYOUT_LIST@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
LBB0_15:
	bl	_UpdateInputListView
	mov	x0, x19
	bl	_GetParent
	mov	x1, x19
	bl	_PropSheet_Changed
LBB0_16:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_hApplet,4,2                    ; @hApplet
	.comm	_IDD_ADD,4,2                    ; @IDD_ADD
	.comm	_AddDialogProc,4,2              ; @AddDialogProc
	.comm	_IDOK,4,2                       ; @IDOK
	.comm	_IDC_KEYLAYOUT_LIST,4,2         ; @IDC_KEYLAYOUT_LIST
	.comm	_LVIF_PARAM,8,3                 ; @LVIF_PARAM
	.comm	_LVNI_SELECTED,4,2              ; @LVNI_SELECTED
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IDD_INPUT_LANG_PROP,4,2        ; @IDD_INPUT_LANG_PROP
	.comm	_EditDialogProc,4,2             ; @EditDialogProc
	.comm	_IDD_KEYSETTINGS,4,2            ; @IDD_KEYSETTINGS
	.comm	_KeySettingsDialogProc,4,2      ; @KeySettingsDialogProc
.subsections_via_symbols
