	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CmdStartService
_CmdStartService:                       ## @CmdStartService
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SC_MANAGER_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManager
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_openvpn_service@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	_SERVICE_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_OpenService
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartService
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_TEXT
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_TEXT
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetLastErrorText
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	_TEXT
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetLastErrorText
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_TEXT
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetLastErrorText
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movl	$1, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_CloseServiceHandle
LBB0_8:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_MANAGER_ALL_ACCESS,4,2      ## @SC_MANAGER_ALL_ACCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenSCManager failed - %s\n"

	.comm	_openvpn_service,8,3            ## @openvpn_service
	.comm	_SERVICE_ALL_ACCESS,4,2         ## @SERVICE_ALL_ACCESS
L_.str.1:                               ## @.str.1
	.asciz	"Service Started\n"

L_.str.2:                               ## @.str.2
	.asciz	"StartService failed - %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"OpenService failed - %s\n"

	.no_dead_strip	_CmdStartService
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CmdStartService
_CmdStartService:                       ; @CmdStartService
	.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	x20, x0
Lloh0:
	adrp	x8, _SC_MANAGER_ALL_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC_MANAGER_ALL_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManager
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _openvpn_service@GOTPAGE
Lloh4:
	ldr	x8, [x8, _openvpn_service@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, x20, lsl #2]
Lloh6:
	adrp	x8, _SERVICE_ALL_ACCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SERVICE_ALL_ACCESS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_OpenService
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	w1, #0
	mov	x2, #0
	bl	_StartService
	cbz	x0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TEXT
	bl	__tprintf
	mov	w21, #0
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEXT
	mov	x19, x0
	bl	_GetLastErrorText
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	__tprintf
	mov	w21, #1
	b	LBB0_9
LBB0_5:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TEXT
	mov	x20, x0
	bl	_GetLastErrorText
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	bl	__tprintf
	mov	w21, #1
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TEXT
	mov	x21, x0
	bl	_GetLastErrorText
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	bl	__tprintf
	mov	w21, #1
LBB0_7:
	mov	x0, x20
	bl	_CloseServiceHandle
LBB0_8:
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_9:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_MANAGER_ALL_ACCESS,4,2      ; @SC_MANAGER_ALL_ACCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenSCManager failed - %s\n"

	.comm	_openvpn_service,8,3            ; @openvpn_service
	.comm	_SERVICE_ALL_ACCESS,4,2         ; @SERVICE_ALL_ACCESS
l_.str.1:                               ; @.str.1
	.asciz	"Service Started\n"

l_.str.2:                               ; @.str.2
	.asciz	"StartService failed - %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"OpenService failed - %s\n"

	.no_dead_strip	_CmdStartService
.subsections_via_symbols
