	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnNotifySettingsPage
_OnNotifySettingsPage:                  ## @OnNotifySettingsPage
	.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	$776, %rsp                      ## imm = 0x308
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.2:
	movq	%rsi, %rbx
	movl	8(%rsi), %eax
	movq	_IDC_KEYLAYOUT_LIST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.3:
	movl	4(%rbx), %edi
	movq	_LVNI_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	callq	_ListView_GetNextItem
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r15d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -560(%rbp)
	movq	$0, -544(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SetControlsState
	movq	_LVIF_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -544(%rbp)
	movl	%r15d, -560(%rbp)
	movl	4(%rbx), %edi
	leaq	-560(%rbp), %rsi
	callq	_ListView_GetItem
	movq	_FALSE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	je	LBB0_12
## %bb.5:
	movq	-552(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	_INPUT_LIST_NODE_FLAG_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.7:
	movq	_IDC_SET_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	jmp	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	callq	_InputList_Process
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	_hApplet@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	_IDS_REBOOT_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	callq	__countof
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_LoadStringW
	movl	(%r13), %r12d
	movq	_IDS_LANGUAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-816(%rbp), %r13
	movq	%r13, %rdi
	callq	__countof
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_LoadStringW
	movq	_MB_ICONINFORMATION@GOTPCREL(%rip), %rax
	movq	_MB_YESNOCANCEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_MessageBoxW
	movq	_IDYES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	movq	_SE_SHUTDOWN_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EnableProcessPrivileges
	movq	_EWX_REBOOT@GOTPCREL(%rip), %rax
	movq	_EWX_FORCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ExitWindowsEx
	jmp	LBB0_12
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SetControlsState
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$776, %rsp                      ## imm = 0x308
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_KEYLAYOUT_LIST,4,2         ## @IDC_KEYLAYOUT_LIST
	.comm	_LVNI_SELECTED,4,2              ## @LVNI_SELECTED
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_LVIF_PARAM,4,2                 ## @LVIF_PARAM
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_INPUT_LIST_NODE_FLAG_DEFAULT,4,2 ## @INPUT_LIST_NODE_FLAG_DEFAULT
	.comm	_IDC_SET_DEFAULT,4,2            ## @IDC_SET_DEFAULT
	.comm	_hApplet,4,2                    ## @hApplet
	.comm	_IDS_REBOOT_NOW,4,2             ## @IDS_REBOOT_NOW
	.comm	_IDS_LANGUAGE,4,2               ## @IDS_LANGUAGE
	.comm	_MB_ICONINFORMATION,4,2         ## @MB_ICONINFORMATION
	.comm	_MB_YESNOCANCEL,4,2             ## @MB_YESNOCANCEL
	.comm	_IDYES,4,2                      ## @IDYES
	.comm	_SE_SHUTDOWN_NAME,4,2           ## @SE_SHUTDOWN_NAME
	.comm	_EWX_REBOOT,4,2                 ## @EWX_REBOOT
	.comm	_EWX_FORCE,4,2                  ## @EWX_FORCE
	.no_dead_strip	_OnNotifySettingsPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnNotifySettingsPage
_OnNotifySettingsPage:                  ; @OnNotifySettingsPage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #784
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.2:
	mov	x20, x1
	ldr	w8, [x1, #8]
Lloh3:
	adrp	x9, _IDC_KEYLAYOUT_LIST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IDC_KEYLAYOUT_LIST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _LVNI_SELECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LVNI_SELECTED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_ListView_GetNextItem
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.4:
	mov	x21, x0
	stp	xzr, xzr, [sp, #264]
	str	xzr, [sp, #280]
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SetControlsState
Lloh12:
	adrp	x8, _LVIF_PARAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LVIF_PARAM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #280]
	str	w21, [sp, #264]
	ldr	w0, [x20, #4]
	add	x1, sp, #264
	bl	_ListView_GetItem
Lloh15:
	adrp	x20, _FALSE@GOTPAGE
Lloh16:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.5:
	ldr	x8, [sp, #272]
	cbz	x8, LBB0_12
; %bb.6:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _INPUT_LIST_NODE_FLAG_DEFAULT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INPUT_LIST_NODE_FLAG_DEFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.7:
Lloh20:
	adrp	x8, _IDC_SET_DEFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IDC_SET_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x20]
	bl	_EnableWindow
	b	LBB0_12
LBB0_8:
	bl	_InputList_Process
	cbz	w0, LBB0_12
; %bb.9:
Lloh23:
	adrp	x22, _hApplet@GOTPAGE
Lloh24:
	ldr	x22, [x22, _hApplet@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh25:
	adrp	x8, _IDS_REBOOT_NOW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IDS_REBOOT_NOW@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
	add	x0, sp, #264
	bl	__countof
	mov	x3, x0
	add	x2, sp, #264
	mov	x0, x20
	mov	x1, x21
	bl	_LoadStringW
	ldr	w20, [x22]
Lloh28:
	adrp	x8, _IDS_LANGUAGE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IDS_LANGUAGE@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	__countof
	mov	x3, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_LoadStringW
Lloh31:
	adrp	x8, _MB_ICONINFORMATION@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MB_ICONINFORMATION@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _MB_YESNOCANCEL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MB_YESNOCANCEL@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, sp, #264
	add	x2, sp, #8
	mov	x0, x19
	bl	_MessageBoxW
Lloh37:
	adrp	x8, _IDYES@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IDYES@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.10:
Lloh40:
	adrp	x8, _SE_SHUTDOWN_NAME@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SE_SHUTDOWN_NAME@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x8, _TRUE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_EnableProcessPrivileges
Lloh46:
	adrp	x8, _EWX_REBOOT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EWX_REBOOT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _EWX_FORCE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _EWX_FORCE@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w0, w9, w8
	mov	w1, #0
	bl	_ExitWindowsEx
	b	LBB0_12
LBB0_11:
Lloh52:
	adrp	x8, _FALSE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SetControlsState
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #784
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_KEYLAYOUT_LIST,4,2         ; @IDC_KEYLAYOUT_LIST
	.comm	_LVNI_SELECTED,4,2              ; @LVNI_SELECTED
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_LVIF_PARAM,4,2                 ; @LVIF_PARAM
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_INPUT_LIST_NODE_FLAG_DEFAULT,4,2 ; @INPUT_LIST_NODE_FLAG_DEFAULT
	.comm	_IDC_SET_DEFAULT,4,2            ; @IDC_SET_DEFAULT
	.comm	_hApplet,4,2                    ; @hApplet
	.comm	_IDS_REBOOT_NOW,4,2             ; @IDS_REBOOT_NOW
	.comm	_IDS_LANGUAGE,4,2               ; @IDS_LANGUAGE
	.comm	_MB_ICONINFORMATION,4,2         ; @MB_ICONINFORMATION
	.comm	_MB_YESNOCANCEL,4,2             ; @MB_YESNOCANCEL
	.comm	_IDYES,4,2                      ; @IDYES
	.comm	_SE_SHUTDOWN_NAME,4,2           ; @SE_SHUTDOWN_NAME
	.comm	_EWX_REBOOT,4,2                 ; @EWX_REBOOT
	.comm	_EWX_FORCE,4,2                  ; @EWX_FORCE
	.no_dead_strip	_OnNotifySettingsPage
.subsections_via_symbols
