	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmStartService                ## -- Begin function ScmStartService
	.p2align	4, 0x90
_ScmStartService:                       ## @ScmStartService
	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -40(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	_ControlServiceCriticalSection@GOTPCREL(%rip), %rdi
	callq	_EnterCriticalSection
	movq	_ScmInitialize@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_ScmAcquireServiceStartLock
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ScmLoadService
	movq	%rax, %rbx
	cmpq	$0, -40(%rbp)
	je	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rdi
	callq	_ScmReleaseServiceStartLock
LBB0_4:
	movq	_ControlServiceCriticalSection@GOTPCREL(%rip), %rdi
	callq	_LeaveCriticalSection
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ScmStartService() called\n"

L_.str.1:                               ## @.str.1
	.asciz	"Start Service %p (%S)\n"

	.comm	_ControlServiceCriticalSection,4,2 ## @ControlServiceCriticalSection
	.comm	_ScmInitialize,4,2              ## @ScmInitialize
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"ScmStartService() done (Error %lu)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmStartService                ; -- Begin function ScmStartService
	.p2align	2
_ScmStartService:                       ; @ScmStartService
	.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]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	ldr	w8, [x21]
	stp	x21, x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
Lloh4:
	adrp	x0, _ControlServiceCriticalSection@GOTPAGE
Lloh5:
	ldr	x0, [x0, _ControlServiceCriticalSection@GOTPAGEOFF]
	bl	_EnterCriticalSection
Lloh6:
	adrp	x8, _ScmInitialize@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ScmInitialize@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_ScmAcquireServiceStartLock
	mov	x22, x0
Lloh12:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ScmLoadService
	mov	x22, x0
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, sp, #24
	bl	_ScmReleaseServiceStartLock
LBB0_4:
Lloh15:
	adrp	x0, _ControlServiceCriticalSection@GOTPAGE
Lloh16:
	ldr	x0, [x0, _ControlServiceCriticalSection@GOTPAGEOFF]
	bl	_LeaveCriticalSection
	str	x22, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ScmStartService() called\n"

l_.str.1:                               ; @.str.1
	.asciz	"Start Service %p (%S)\n"

	.comm	_ControlServiceCriticalSection,4,2 ; @ControlServiceCriticalSection
	.comm	_ScmInitialize,4,2              ; @ScmInitialize
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"ScmStartService() done (Error %lu)\n"

.subsections_via_symbols
