	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetCurrentScreenSaverValue
_GetCurrentScreenSaverValue:            ## @GetCurrentScreenSaverValue
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_KEY_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	leaq	-28(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.1:
	movl	-28(%rbp), %edi
	xorl	%r15d, %r15d
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %r9
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_RegQueryValueEx
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-36(%rbp), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movl	-28(%rbp), %edi
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %r9
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rax, %r8
	callq	_RegQueryValueEx
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movl	-28(%rbp), %edi
	callq	_RegCloseKey
LBB0_7:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Control Panel\\Desktop"

	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.no_dead_strip	_GetCurrentScreenSaverValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetCurrentScreenSaverValue
_GetCurrentScreenSaverValue:            ; @GetCurrentScreenSaverValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #4]
Lloh3:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh8:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x20
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh11:
	adrp	x21, _ERROR_SUCCESS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	w0, [sp, #12]
	add	x3, sp, #4
	add	x5, sp, #8
	mov	x1, x19
	mov	w2, #0
	mov	x4, #0
	bl	_RegQueryValueEx
	mov	x20, #0
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	bl	_GetProcessHeap
	ldr	w2, [sp, #8]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #12]
	add	x3, sp, #4
	add	x5, sp, #8
	mov	x1, x19
	mov	w2, #0
	mov	x4, x20
	bl	_RegQueryValueEx
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	mov	x20, #0
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Control Panel\\Desktop"

	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.no_dead_strip	_GetCurrentScreenSaverValue
.subsections_via_symbols
