	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Adv_SaveData
_Adv_SaveData:                          ## @Adv_SaveData
	.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
	movl	%edi, %ebx
	movq	_IDC_SYSTRAYBATTERYMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IsDlgButtonChecked
	movq	%rax, %r13
	movq	_BST_CHECKED@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movq	_IDC_PASSWORDLOGON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_IsDlgButtonChecked
	movq	%rax, %r12
	movq	(%r14), %r14
	movq	_IDC_VIDEODIMDISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_IsDlgButtonChecked
	movq	_gGPP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_EnableSysTrayBatteryMeter@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %r13
	jne	LBB0_3
## %bb.1:
	testl	%ecx, %edx
	jne	LBB0_6
## %bb.2:
	addl	%edx, %ecx
	jmp	LBB0_5
LBB0_3:
	testl	%ecx, %edx
	je	LBB0_6
## %bb.4:
	subl	%edx, %ecx
LBB0_5:
	movl	%ecx, (%rbx)
LBB0_6:
	movq	_BST_CHECKED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_EnablePasswordLogon@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	%r14, %r12
	jne	LBB0_9
## %bb.7:
	testl	%ecx, %esi
	jne	LBB0_12
## %bb.8:
	addl	%esi, %ecx
	jmp	LBB0_11
LBB0_9:
	testl	%ecx, %esi
	je	LBB0_12
## %bb.10:
	subl	%esi, %ecx
LBB0_11:
	movl	%ecx, (%rbx)
LBB0_12:
	movq	_EnableVideoDimDisplay@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	%rdx, %rax
	jne	LBB0_15
## %bb.13:
	testl	%ecx, %esi
	jne	LBB0_18
## %bb.14:
	addl	%ecx, %esi
	jmp	LBB0_17
LBB0_15:
	testl	%ecx, %esi
	je	LBB0_18
## %bb.16:
	subl	%esi, %ecx
	movl	%ecx, %esi
LBB0_17:
	movl	%esi, (%rbx)
LBB0_18:
	xorl	%eax, %eax
	callq	_IsBatteryUsed
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	_IDC_POWERBUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_GetDlgItem
	leaq	20(%rbx), %rsi
	movl	%eax, %edi
	callq	_SaveCurrentPowerActionPolicy
	movq	_IDC_SLEEPBUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	addq	$16, %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_SaveCurrentPowerActionPolicy
LBB0_20:
	movq	_gGPP@GOTPCREL(%rip), %rdi
	callq	_WriteGlobalPwrPolicy
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_MessageBox
LBB0_22:
	xorl	%edi, %edi
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	sete	%dil
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetSystrayPowerIconState       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_SYSTRAYBATTERYMETER,4,2    ## @IDC_SYSTRAYBATTERYMETER
	.comm	_BST_CHECKED,8,3                ## @BST_CHECKED
	.comm	_IDC_PASSWORDLOGON,4,2          ## @IDC_PASSWORDLOGON
	.comm	_IDC_VIDEODIMDISPLAY,4,2        ## @IDC_VIDEODIMDISPLAY
	.comm	_gGPP,28,2                      ## @gGPP
	.comm	_EnableSysTrayBatteryMeter,4,2  ## @EnableSysTrayBatteryMeter
	.comm	_EnablePasswordLogon,4,2        ## @EnablePasswordLogon
	.comm	_EnableVideoDimDisplay,4,2      ## @EnableVideoDimDisplay
	.comm	_IDC_POWERBUTTON,4,2            ## @IDC_POWERBUTTON
	.comm	_IDC_SLEEPBUTTON,4,2            ## @IDC_SLEEPBUTTON
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	87                              ## 0x57
	.long	114                             ## 0x72
	.long	105                             ## 0x69
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	71                              ## 0x47
	.long	108                             ## 0x6c
	.long	111                             ## 0x6f
	.long	98                              ## 0x62
	.long	97                              ## 0x61
	.long	108                             ## 0x6c
	.long	80                              ## 0x50
	.long	119                             ## 0x77
	.long	114                             ## 0x72
	.long	80                              ## 0x50
	.long	111                             ## 0x6f
	.long	108                             ## 0x6c
	.long	105                             ## 0x69
	.long	99                              ## 0x63
	.long	121                             ## 0x79
	.long	32                              ## 0x20
	.long	102                             ## 0x66
	.long	97                              ## 0x61
	.long	105                             ## 0x69
	.long	108                             ## 0x6c
	.long	101                             ## 0x65
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_IDC_LIDCLOSE,4,2               ## @IDC_LIDCLOSE
	.no_dead_strip	_Adv_SaveData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Adv_SaveData
_Adv_SaveData:                          ; @Adv_SaveData
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IDC_SYSTRAYBATTERYMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_SYSTRAYBATTERYMETER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IsDlgButtonChecked
	mov	x20, x0
Lloh3:
	adrp	x24, _BST_CHECKED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BST_CHECKED@GOTPAGEOFF]
	ldr	x22, [x24]
Lloh5:
	adrp	x8, _IDC_PASSWORDLOGON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDC_PASSWORDLOGON@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IsDlgButtonChecked
	mov	x21, x0
	ldr	x25, [x24]
Lloh8:
	adrp	x8, _IDC_VIDEODIMDISPLAY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IDC_VIDEODIMDISPLAY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IsDlgButtonChecked
Lloh11:
	adrp	x23, _gGPP@GOTPAGE
Lloh12:
	ldr	x23, [x23, _gGPP@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh13:
	adrp	x9, _EnableSysTrayBatteryMeter@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EnableSysTrayBatteryMeter@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w10, w9, w8
	cmp	x20, x22
	b.ne	LBB0_3
; %bb.1:
	cbnz	w10, LBB0_6
; %bb.2:
	add	w8, w9, w8
	b	LBB0_5
LBB0_3:
	cbz	w10, LBB0_6
; %bb.4:
	sub	w8, w8, w9
LBB0_5:
	str	w8, [x23]
LBB0_6:
	ldr	x9, [x24]
Lloh16:
	adrp	x10, _EnablePasswordLogon@GOTPAGE
Lloh17:
	ldr	x10, [x10, _EnablePasswordLogon@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	and	w11, w10, w8
	cmp	x21, x25
	b.ne	LBB0_9
; %bb.7:
	cbnz	w11, LBB0_12
; %bb.8:
	add	w8, w10, w8
	b	LBB0_11
LBB0_9:
	cbz	w11, LBB0_12
; %bb.10:
	sub	w8, w8, w10
LBB0_11:
	str	w8, [x23]
LBB0_12:
Lloh19:
	adrp	x10, _EnableVideoDimDisplay@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EnableVideoDimDisplay@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w11, w10, w8
	cmp	x0, x9
	b.ne	LBB0_15
; %bb.13:
	cbnz	w11, LBB0_18
; %bb.14:
	add	w8, w10, w8
	b	LBB0_17
LBB0_15:
	cbz	w11, LBB0_18
; %bb.16:
	sub	w8, w8, w10
LBB0_17:
	str	w8, [x23]
LBB0_18:
	bl	_IsBatteryUsed
	cbnz	w0, LBB0_20
; %bb.19:
Lloh22:
	adrp	x8, _IDC_POWERBUTTON@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IDC_POWERBUTTON@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	add	x1, x23, #20
	bl	_SaveCurrentPowerActionPolicy
Lloh25:
	adrp	x8, _IDC_SLEEPBUTTON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IDC_SLEEPBUTTON@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	add	x1, x23, #16
	bl	_SaveCurrentPowerActionPolicy
LBB0_20:
Lloh28:
	adrp	x0, _gGPP@GOTPAGE
Lloh29:
	ldr	x0, [x0, _gGPP@GOTPAGEOFF]
	bl	_WriteGlobalPwrPolicy
	cbnz	w0, LBB0_22
; %bb.21:
Lloh30:
	adrp	x8, _MB_OK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_MessageBox
LBB0_22:
	cmp	x20, x22
	cset	w0, eq
	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
	b	_SetSystrayPowerIconState
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_SYSTRAYBATTERYMETER,4,2    ; @IDC_SYSTRAYBATTERYMETER
	.comm	_BST_CHECKED,8,3                ; @BST_CHECKED
	.comm	_IDC_PASSWORDLOGON,4,2          ; @IDC_PASSWORDLOGON
	.comm	_IDC_VIDEODIMDISPLAY,4,2        ; @IDC_VIDEODIMDISPLAY
	.comm	_gGPP,28,2                      ; @gGPP
	.comm	_EnableSysTrayBatteryMeter,4,2  ; @EnableSysTrayBatteryMeter
	.comm	_EnablePasswordLogon,4,2        ; @EnablePasswordLogon
	.comm	_EnableVideoDimDisplay,4,2      ; @EnableVideoDimDisplay
	.comm	_IDC_POWERBUTTON,4,2            ; @IDC_POWERBUTTON
	.comm	_IDC_SLEEPBUTTON,4,2            ; @IDC_SLEEPBUTTON
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	87                              ; 0x57
	.long	114                             ; 0x72
	.long	105                             ; 0x69
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	71                              ; 0x47
	.long	108                             ; 0x6c
	.long	111                             ; 0x6f
	.long	98                              ; 0x62
	.long	97                              ; 0x61
	.long	108                             ; 0x6c
	.long	80                              ; 0x50
	.long	119                             ; 0x77
	.long	114                             ; 0x72
	.long	80                              ; 0x50
	.long	111                             ; 0x6f
	.long	108                             ; 0x6c
	.long	105                             ; 0x69
	.long	99                              ; 0x63
	.long	121                             ; 0x79
	.long	32                              ; 0x20
	.long	102                             ; 0x66
	.long	97                              ; 0x61
	.long	105                             ; 0x69
	.long	108                             ; 0x6c
	.long	101                             ; 0x65
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_IDC_LIDCLOSE,4,2               ; @IDC_LIDCLOSE
	.no_dead_strip	_Adv_SaveData
.subsections_via_symbols
