	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Control                        ## -- Begin function Control
	.p2align	4, 0x90
_Control:                               ## @Control
	.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
	subq	$24, %rsp
	.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, %r13d
	movq	_TRUE@GOTPCREL(%rip), %rax
	leal	-128(%r13), %ecx
	cmpl	$8, %ecx
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_SERVICE_PAUSE_CONTINUE@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %r15d
LBB0_8:
	movl	(%rax), %ebx
	movq	_SC_MANAGER_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManager
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_OpenService
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r15
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_ControlService
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	leaq	-64(%rbp), %r13
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_CopyMemory
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_PrintService
	testl	%ebx, %ebx
	jne	LBB0_19
	jmp	LBB0_18
LBB0_9:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	callq	__T
	movl	%eax, %ebx
	xorl	%r15d, %r15d
LBB0_11:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_19
LBB0_18:
	xorl	%eax, %eax
	callq	_ReportLastError
LBB0_19:
	testq	%r15, %r15
	je	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
LBB0_21:
	testq	%r14, %r14
	je	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	callq	_CloseServiceHandle
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_SERVICE_STOP@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_SERVICE_INTERROGATE@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movl	%r13d, %ecx
	andl	$-128, %ecx
	xorl	%r15d, %r15d
	cmpl	$128, %ecx
	jne	LBB0_8
## %bb.6:
	movq	_SERVICE_USER_DEFINED_CONTROL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SERVICE_STOP,4,2               ## @SERVICE_STOP
	.comm	_SERVICE_PAUSE_CONTINUE,4,2     ## @SERVICE_PAUSE_CONTINUE
	.comm	_SERVICE_INTERROGATE,4,2        ## @SERVICE_INTERROGATE
	.comm	_SERVICE_USER_DEFINED_CONTROL,4,2 ## @SERVICE_USER_DEFINED_CONTROL
	.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,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Control                        ; -- Begin function Control
	.p2align	2
_Control:                               ; @Control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	sub	w8, w0, #128
	cmp	w8, #8
	b.hi	LBB0_19
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _SERVICE_PAUSE_CONTINUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SERVICE_PAUSE_CONTINUE@GOTPAGEOFF]
LBB0_3:
	ldr	w22, [x8]
LBB0_4:
Lloh7:
	adrp	x8, _SC_MANAGER_CONNECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SC_MANAGER_CONNECT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManager
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_OpenService
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.6:
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x23
	bl	_ControlService
	cbz	w0, LBB0_10
; %bb.7:
	add	x0, sp, #8
	add	x1, sp, #28
	mov	w2, #4
	bl	_CopyMemory
	stp	xzr, xzr, [sp, #8]
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, #0
	bl	_PrintService
	cbnz	w20, LBB0_14
	b	LBB0_13
LBB0_8:
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	x22, #0
	b	LBB0_12
LBB0_9:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	__T
	mov	x20, x0
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	bl	__tprintf
LBB0_12:
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	cbnz	w20, LBB0_14
LBB0_13:
	bl	_ReportLastError
LBB0_14:
	cbz	x22, LBB0_16
; %bb.15:
	mov	x0, x22
	bl	_CloseServiceHandle
LBB0_16:
	cbz	x19, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_18:
	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
	add	sp, sp, #96
	ret
LBB0_19:
	and	w8, w23, #0xffffff80
Lloh22:
	adrp	x9, _SERVICE_USER_DEFINED_CONTROL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SERVICE_USER_DEFINED_CONTROL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, #128
	csel	w22, w9, wzr, eq
	b	LBB0_4
LBB0_20:
Lloh25:
	adrp	x8, _SERVICE_STOP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SERVICE_STOP@GOTPAGEOFF]
	b	LBB0_3
LBB0_21:
Lloh27:
	adrp	x8, _SERVICE_INTERROGATE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SERVICE_INTERROGATE@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SERVICE_STOP,4,2               ; @SERVICE_STOP
	.comm	_SERVICE_PAUSE_CONTINUE,4,2     ; @SERVICE_PAUSE_CONTINUE
	.comm	_SERVICE_INTERROGATE,4,2        ; @SERVICE_INTERROGATE
	.comm	_SERVICE_USER_DEFINED_CONTROL,4,2 ; @SERVICE_USER_DEFINED_CONTROL
	.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,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

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

.subsections_via_symbols
