	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function StartOneService
_StartOneService:                       ## @StartOneService
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	movq	_SERVICES_ACTIVE_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SC_MANAGER_ENUMERATE_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_OpenSCManagerW
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	16(%rbx), %rsi
	movq	_SERVICE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_OpenServiceW
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	-16(,%r12,8), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.5:
	movq	%rax, %r15
	cmpl	$3, %r12d
	jl	LBB0_20
## %bb.6:
	movl	%r12d, %eax
	leaq	-2(%rax), %r8
	movl	$2, %ecx
	cmpq	$4, %r8
	jb	LBB0_16
## %bb.7:
	movq	%r15, %rdx
	subq	%rbx, %rdx
	addq	$-16, %rdx
	cmpq	$32, %rdx
	jb	LBB0_16
## %bb.8:
	movq	%r8, %rcx
	andq	$-4, %rcx
	leaq	-4(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$12, %rdi
	jae	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %r14
	movl	$1, %ebx
	cmpq	(%r15), %r14
	jne	LBB0_26
	jmp	LBB0_27
LBB0_3:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %r14
	movl	$1, %ebx
	jmp	LBB0_24
LBB0_28:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %r14
	movl	$1, %ebx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_10:
	andq	$-4, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	16(%rbx,%rdi,8), %xmm0
	movups	32(%rbx,%rdi,8), %xmm1
	movups	%xmm0, (%r15,%rdi,8)
	movups	%xmm1, 16(%r15,%rdi,8)
	movups	48(%rbx,%rdi,8), %xmm0
	movups	64(%rbx,%rdi,8), %xmm1
	movups	%xmm0, 32(%r15,%rdi,8)
	movups	%xmm1, 48(%r15,%rdi,8)
	movups	80(%rbx,%rdi,8), %xmm0
	movups	96(%rbx,%rdi,8), %xmm1
	movups	%xmm0, 64(%r15,%rdi,8)
	movups	%xmm1, 80(%r15,%rdi,8)
	movups	112(%rbx,%rdi,8), %xmm0
	movups	128(%rbx,%rdi,8), %xmm1
	movups	%xmm0, 96(%r15,%rdi,8)
	movups	%xmm1, 112(%r15,%rdi,8)
	addq	$16, %rdi
	addq	$-4, %rsi
	jne	LBB0_11
LBB0_12:
	testq	%rdx, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rdi,8), %rsi
	orq	$16, %rsi
	movups	(%rbx,%rsi), %xmm0
	movups	16(%rbx,%rsi), %xmm1
	movups	%xmm0, (%r15,%rdi,8)
	movups	%xmm1, 16(%r15,%rdi,8)
	addq	$4, %rdi
	decq	%rdx
	jne	LBB0_13
LBB0_14:
	cmpq	%rcx, %r8
	je	LBB0_20
## %bb.15:
	orq	$2, %rcx
LBB0_16:
	movl	%eax, %esi
	subl	%ecx, %esi
	movq	%rcx, %rdx
	notq	%rdx
	addq	%rax, %rdx
	andq	$3, %rsi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rdi
	movq	%rdi, -16(%r15,%rcx,8)
	incq	%rcx
	decq	%rsi
	jne	LBB0_17
LBB0_18:
	cmpq	$3, %rdx
	jb	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rdx
	movq	%rdx, -16(%r15,%rcx,8)
	movq	8(%rbx,%rcx,8), %rdx
	movq	%rdx, -8(%r15,%rcx,8)
	movq	16(%rbx,%rcx,8), %rdx
	movq	%rdx, (%r15,%rcx,8)
	movq	24(%rbx,%rcx,8), %rdx
	movq	%rdx, 8(%r15,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_19
LBB0_20:
	movslq	%r12d, %rsi
	addq	$-2, %rsi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_StartServiceW
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %r14
	movl	$1, %ebx
LBB0_22:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_HeapFree
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
LBB0_23:
	movq	%r12, %rdi
	callq	_CloseServiceHandle
LBB0_24:
	movq	%r13, %rdi
	callq	_CloseServiceHandle
	cmpq	(%r15), %r14
	je	LBB0_27
LBB0_26:
	movq	_StdErr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	l_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_ConPrintf
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_SERVICES_ACTIVE_DATABASE,4,2   ## @SERVICES_ACTIVE_DATABASE
	.comm	_SC_MANAGER_ENUMERATE_SERVICE,4,2 ## @SC_MANAGER_ENUMERATE_SERVICE
	.comm	_SERVICE_START,4,2              ## @SERVICE_START
	.comm	_StdErr,4,2                     ## @StdErr
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	69                              ## 0x45
	.long	114                             ## 0x72
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	58                              ## 0x3a
	.long	32                              ## 0x20
	.long	37                              ## 0x25
	.long	108                             ## 0x6c
	.long	117                             ## 0x75
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.no_dead_strip	_StartOneService
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function StartOneService
_StartOneService:                       ; @StartOneService
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x19, [x25]
Lloh2:
	adrp	x8, _SERVICES_ACTIVE_DATABASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SERVICES_ACTIVE_DATABASE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SC_MANAGER_ENUMERATE_SERVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SC_MANAGER_ENUMERATE_SERVICE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_OpenSCManagerW
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x1, [x24, #16]
Lloh8:
	adrp	x8, _SERVICE_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SERVICE_START@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_OpenServiceW
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	bl	_GetProcessHeap
	lsl	w8, w22, #3
	sub	w2, w8, #16
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x23, x0
	cmp	w22, #3
	b.lt	LBB0_9
; %bb.4:
	mov	w8, w22
	sub	x10, x8, #2
	cmp	x10, #8
	b.lo	LBB0_6
; %bb.5:
	sub	x9, x23, x24
	sub	x9, x9, #16
	cmp	x9, #64
	b.hs	LBB0_21
LBB0_6:
	mov	w9, #2
LBB0_7:
	lsl	x11, x9, #3
	add	x10, x24, x11
	add	x11, x11, x23
	sub	x11, x11, #16
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x10], #8
	str	x9, [x11], #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	sxtw	x8, w22
	sub	x1, x8, #2
	mov	x0, x21
	mov	x2, x23
	bl	_StartServiceW
	cbz	w0, LBB0_14
; %bb.10:
	mov	w22, #0
	b	LBB0_15
LBB0_11:
	mov	w22, #1
	bl	_GetLastError
	mov	x19, x0
	b	LBB0_18
LBB0_12:
	mov	w22, #1
	bl	_GetLastError
	mov	x19, x0
	b	LBB0_17
LBB0_13:
	mov	w22, #1
	bl	_GetLastError
	mov	x19, x0
	b	LBB0_16
LBB0_14:
	mov	w22, #1
	bl	_GetLastError
	mov	x19, x0
LBB0_15:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapFree
LBB0_16:
	mov	x0, x21
	bl	_CloseServiceHandle
LBB0_17:
	mov	x0, x20
	bl	_CloseServiceHandle
LBB0_18:
	ldr	x8, [x25]
	cmp	x19, x8
	b.eq	LBB0_20
; %bb.19:
Lloh11:
	adrp	x8, _StdErr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _StdErr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_ConPrintf
LBB0_20:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	and	x11, x10, #0xfffffffffffffff8
	orr	x9, x11, #0x2
	add	x12, x24, #64
	add	x13, x23, #32
	mov	x14, x11
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-48]
	ldp	q2, q3, [x12, #-16]
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	add	x12, x12, #64
	subs	x14, x14, #8
	b.ne	LBB0_22
; %bb.23:
	cmp	x10, x11
	b.eq	LBB0_9
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_SERVICES_ACTIVE_DATABASE,4,2   ; @SERVICES_ACTIVE_DATABASE
	.comm	_SC_MANAGER_ENUMERATE_SERVICE,4,2 ; @SC_MANAGER_ENUMERATE_SERVICE
	.comm	_SERVICE_START,4,2              ; @SERVICE_START
	.comm	_StdErr,4,2                     ; @StdErr
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	69                              ; 0x45
	.long	114                             ; 0x72
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	58                              ; 0x3a
	.long	32                              ; 0x20
	.long	37                              ; 0x25
	.long	108                             ; 0x6c
	.long	117                             ; 0x75
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.no_dead_strip	_StartOneService
.subsections_via_symbols
