	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScmSetLastKnownGoodControlSet
_ScmSetLastKnownGoodControlSet:         ## @ScmSetLastKnownGoodControlSet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, -24(%rbp)
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str(%rip), %rsi
	leaq	-12(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movl	-12(%rbp), %edi
	movq	_REG_DWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %r8
	leaq	l_.str.1(%rip), %rsi
	xorl	%edx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$8, %r9d
	callq	_RegSetValueExW
	movq	%rax, %rbx
	movl	-12(%rbp), %edi
	callq	_RegFlushKey
	movl	-12(%rbp), %edi
	callq	_RegCloseKey
LBB0_2:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	83                              ## 0x53
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	92                              ## 0x5c
	.long	83                              ## 0x53
	.long	101                             ## 0x65
	.long	108                             ## 0x6c
	.long	101                             ## 0x65
	.long	99                              ## 0x63
	.long	116                             ## 0x74
	.long	0                               ## 0x0

	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	76                              ## 0x4c
	.long	97                              ## 0x61
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	75                              ## 0x4b
	.long	110                             ## 0x6e
	.long	111                             ## 0x6f
	.long	119                             ## 0x77
	.long	110                             ## 0x6e
	.long	71                              ## 0x47
	.long	111                             ## 0x6f
	.long	111                             ## 0x6f
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
	.no_dead_strip	_ScmSetLastKnownGoodControlSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ScmSetLastKnownGoodControlSet
_ScmSetLastKnownGoodControlSet:         ; @ScmSetLastKnownGoodControlSet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _KEY_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #4
	mov	w2, #0
	bl	_RegOpenKeyExW
	mov	x19, x0
Lloh8:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [sp, #4]
Lloh11:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x4, sp, #8
	mov	w2, #0
	mov	w5, #8
	bl	_RegSetValueExW
	mov	x19, x0
	ldr	w0, [sp, #4]
	bl	_RegFlushKey
	ldr	w0, [sp, #4]
	bl	_RegCloseKey
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	83                              ; 0x53
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	92                              ; 0x5c
	.long	83                              ; 0x53
	.long	101                             ; 0x65
	.long	108                             ; 0x6c
	.long	101                             ; 0x65
	.long	99                              ; 0x63
	.long	116                             ; 0x74
	.long	0                               ; 0x0

	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	76                              ; 0x4c
	.long	97                              ; 0x61
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	75                              ; 0x4b
	.long	110                             ; 0x6e
	.long	111                             ; 0x6f
	.long	119                             ; 0x77
	.long	110                             ; 0x6e
	.long	71                              ; 0x47
	.long	111                             ; 0x6f
	.long	111                             ; 0x6f
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
	.no_dead_strip	_ScmSetLastKnownGoodControlSet
.subsections_via_symbols
