	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmOpenServiceKey              ## -- Begin function ScmOpenServiceKey
	.p2align	4, 0x90
_ScmOpenServiceKey:                     ## @ScmOpenServiceKey
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	$0, (%rdx)
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str(%rip), %rsi
	leaq	-40(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movq	%r12, %r8
	callq	_RegOpenKeyExW
	movq	%rax, %rbx
	movq	-40(%rbp), %rdi
	callq	_RegCloseKey
LBB0_2:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_LOCAL_MACHINE,8,3         ## @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	67                              ## 0x43
	.long	117                             ## 0x75
	.long	114                             ## 0x72
	.long	114                             ## 0x72
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	108                             ## 0x6c
	.long	83                              ## 0x53
	.long	101                             ## 0x65
	.long	116                             ## 0x74
	.long	92                              ## 0x5c
	.long	83                              ## 0x53
	.long	101                             ## 0x65
	.long	114                             ## 0x72
	.long	118                             ## 0x76
	.long	105                             ## 0x69
	.long	99                              ## 0x63
	.long	101                             ## 0x65
	.long	115                             ## 0x73
	.long	0                               ## 0x0

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmOpenServiceKey              ; -- Begin function ScmOpenServiceKey
	.p2align	2
_ScmOpenServiceKey:                     ; @ScmOpenServiceKey
	.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, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	str	xzr, [x2]
Lloh0:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	w2, #0
	bl	_RegOpenKeyExW
	mov	x22, 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	x0, [sp, #8]
	mov	x1, x21
	mov	w2, #0
	mov	x3, x20
	mov	x4, x19
	bl	_RegOpenKeyExW
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_RegCloseKey
LBB0_2:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_LOCAL_MACHINE,8,3         ; @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	67                              ; 0x43
	.long	117                             ; 0x75
	.long	114                             ; 0x72
	.long	114                             ; 0x72
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	108                             ; 0x6c
	.long	83                              ; 0x53
	.long	101                             ; 0x65
	.long	116                             ; 0x74
	.long	92                              ; 0x5c
	.long	83                              ; 0x53
	.long	101                             ; 0x65
	.long	114                             ; 0x72
	.long	118                             ; 0x76
	.long	105                             ; 0x69
	.long	99                              ; 0x63
	.long	101                             ; 0x65
	.long	115                             ; 0x73
	.long	0                               ; 0x0

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