	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartStopService               ## -- Begin function StartStopService
	.p2align	4, 0x90
_StartStopService:                      ## @StartStopService
	.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
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SC_MANAGER_CREATE_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManager
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	movq	_SERVICE_START@GOTPCREL(%rip), %rax
	movq	_DELETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SERVICE_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_OpenService
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r15
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.7:
	movq	_SERVICE_CONTROL_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ControlService
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartService
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	callq	_eprintf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	callq	_eprintf
LBB0_11:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
	movq	%r15, %rdi
	callq	_DeleteService
LBB0_12:
	movq	%r13, %rdi
	callq	_CloseServiceHandle
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SC_MANAGER_CREATE_SERVICE,4,2  ## @SC_MANAGER_CREATE_SERVICE
	.comm	_SERVICE_START,4,2              ## @SERVICE_START
	.comm	_DELETE,4,2                     ## @DELETE
	.comm	_SERVICE_STOP,4,2               ## @SERVICE_STOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Service started [OK]\n"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"Service started [FAIL]\n"

	.comm	_SERVICE_CONTROL_STOP,4,2       ## @SERVICE_CONTROL_STOP
L_.str.2:                               ## @.str.2
	.asciz	"Service Stopped [OK]\n"

L_.str.3:                               ## @.str.3
	.asciz	"Service Stopped [FAIL]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartStopService               ; -- Begin function StartStopService
	.p2align	2
_StartStopService:                      ; @StartStopService
	.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	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _SC_MANAGER_CREATE_SERVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC_MANAGER_CREATE_SERVICE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManager
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _SERVICE_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SERVICE_START@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DELETE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DELETE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _SERVICE_STOP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SERVICE_STOP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x1, x21
	bl	_OpenService
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	cbz	w22, LBB0_5
; %bb.3:
Lloh15:
	adrp	x8, _SERVICE_CONTROL_STOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SERVICE_CONTROL_STOP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_ControlService
	cbz	x0, LBB0_8
; %bb.4:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	bl	_StartService
	cbz	x0, LBB0_9
; %bb.6:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_eprintf
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	b	LBB0_11
LBB0_8:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_eprintf
LBB0_11:
	mov	x0, x21
	bl	_CloseServiceHandle
	mov	x0, x21
	bl	_DeleteService
LBB0_12:
	mov	x0, x20
	bl	_CloseServiceHandle
LBB0_13:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SC_MANAGER_CREATE_SERVICE,4,2  ; @SC_MANAGER_CREATE_SERVICE
	.comm	_SERVICE_START,4,2              ; @SERVICE_START
	.comm	_DELETE,4,2                     ; @DELETE
	.comm	_SERVICE_STOP,4,2               ; @SERVICE_STOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Service started [OK]\n"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"Service started [FAIL]\n"

	.comm	_SERVICE_CONTROL_STOP,4,2       ; @SERVICE_CONTROL_STOP
l_.str.2:                               ; @.str.2
	.asciz	"Service Stopped [OK]\n"

l_.str.3:                               ; @.str.3
	.asciz	"Service Stopped [FAIL]\n"

.subsections_via_symbols
