	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmCreateServiceKey            ## -- Begin function ScmCreateServiceKey
	.p2align	4, 0x90
_ScmCreateServiceKey:                   ## @ScmCreateServiceKey
	.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
	movl	%edi, %r15d
	movq	$0, -40(%rbp)
	movq	$0, (%rdx)
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movq	_KEY_CREATE_SUB_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%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	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r9d
	pushq	%rax
	pushq	%r12
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	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,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	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	_KEY_CREATE_SUB_KEY,4,2         ## @KEY_CREATE_SUB_KEY
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_ERROR_SERVICE_EXISTS,8,3       ## @ERROR_SERVICE_EXISTS
	.comm	_REG_OPENED_EXISTING_KEY,8,3    ## @REG_OPENED_EXISTING_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmCreateServiceKey            ; -- Begin function ScmCreateServiceKey
	.p2align	2
_ScmCreateServiceKey:                   ; @ScmCreateServiceKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #24]
	str	xzr, [x2]
Lloh0:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _KEY_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KEY_READ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _KEY_CREATE_SUB_KEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KEY_CREATE_SUB_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #24
	mov	w2, #0
	bl	_RegOpenKeyExW
	mov	x22, x0
Lloh11:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [sp, #24]
Lloh14:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	add	x8, sp, #16
	str	x8, [sp]
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	mov	x5, x20
	mov	x6, #0
	mov	x7, x19
	bl	_RegCreateKeyExW
	mov	x22, x0
	ldr	x0, [sp, #24]
	bl	_RegCloseKey
LBB0_2:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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	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	_KEY_CREATE_SUB_KEY,4,2         ; @KEY_CREATE_SUB_KEY
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_ERROR_SERVICE_EXISTS,8,3       ; @ERROR_SERVICE_EXISTS
	.comm	_REG_OPENED_EXISTING_KEY,8,3    ; @REG_OPENED_EXISTING_KEY
.subsections_via_symbols
