	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Start                          ## -- Begin function Start
	.p2align	4, 0x90
_Start:                                 ## @Start
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_SC_MANAGER_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManager
	testq	%rax, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.4:
	movq	%rax, %rdi
	movq	_SERVICE_START@GOTPCREL(%rip), %rax
	movq	_SERVICE_QUERY_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r12d, %esi
	callq	_OpenService
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	testq	%r14, %r14
	cmoveq	%r14, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_StartService
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%r12d, %edi
	callq	_QueryService
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_PrintService
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	__T
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movl	%eax, %ebx
LBB0_3:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_10:
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_ReportLastError
LBB0_12:
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_CloseServiceHandle
LBB0_16:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SC_MANAGER_CONNECT,4,2         ## @SC_MANAGER_CONNECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SC] OpenSCManager FAILED %lu:\n\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_SERVICE_START,4,2              ## @SERVICE_START
	.comm	_SERVICE_QUERY_STATUS,4,2       ## @SERVICE_QUERY_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

L_.str.2:                               ## @.str.2
	.asciz	"[SC] StartService FAILED %lu:\n\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Start                          ; -- Begin function Start
	.p2align	2
_Start:                                 ; @Start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x26, _TRUE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	x20, [x26]
Lloh2:
	adrp	x8, _SC_MANAGER_CONNECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SC_MANAGER_CONNECT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManager
	mov	x19, x0
Lloh5:
	adrp	x25, _FALSE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
Lloh7:
	adrp	x8, _SERVICE_START@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SERVICE_START@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SERVICE_QUERY_STATUS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SERVICE_QUERY_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x1, x22
	bl	_OpenService
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.2:
	cmp	x23, #0
	csel	x2, xzr, x24, eq
	mov	x0, x21
	mov	x1, x23
	bl	_StartService
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_QueryService
	cbz	x0, LBB0_10
; %bb.4:
	mov	x23, x0
	ldr	x3, [x26]
	mov	x0, x22
	mov	x1, #0
	mov	x2, x23
	bl	_PrintService
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapFree
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x20, x0
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	bl	__tprintf
	mov	x21, #0
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	__T
	mov	x20, x0
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	bl	__tprintf
LBB0_9:
	ldr	x20, [x25]
LBB0_10:
	ldr	x8, [x25]
	cmp	x20, x8
	b.ne	LBB0_12
; %bb.11:
	bl	_ReportLastError
LBB0_12:
	cbz	x21, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_CloseServiceHandle
LBB0_14:
	cbz	x19, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SC_MANAGER_CONNECT,4,2         ; @SC_MANAGER_CONNECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SC] OpenSCManager FAILED %lu:\n\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_SERVICE_START,4,2              ; @SERVICE_START
	.comm	_SERVICE_QUERY_STATUS,4,2       ; @SERVICE_QUERY_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

l_.str.2:                               ; @.str.2
	.asciz	"[SC] StartService FAILED %lu:\n\n"

.subsections_via_symbols
