	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DoControlService               ## -- Begin function DoControlService
	.p2align	4, 0x90
_DoControlService:                      ## @DoControlService
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %ebx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -104(%rbp)
	cmpq	$128, %rdx
	je	LBB0_1
## %bb.2:
	cmpq	$129, %r12
	jne	LBB0_7
## %bb.3:
	movq	_SERVICE_RUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_SERVICE_PAUSED@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r13
	movq	_SC_MANAGER_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManagerW
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r14d
	movq	_SERVICE_PAUSE_CONTINUE@GOTPCREL(%rip), %rax
	movq	_SERVICE_INTERROGATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SERVICE_QUERY_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_OpenServiceW
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	%eax, %ebx
	leaq	-116(%rbp), %rdx
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_ControlService
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	_DEFAULT_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IncrementProgressBar
LBB0_12:
	movq	_SC_STATUS_PROCESS_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	leaq	-104(%rbp), %r8
	movl	%ebx, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$24, %ecx
	callq	_QueryServiceStatusEx
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_WAIT_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_GetTickCount
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpq	%r13, -72(%rbp)
	je	LBB0_31
## %bb.15:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_DEFAULT_STEP@GOTPCREL(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_IncrementProgressBar
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %r13
	cmpq	%r12, -72(%rbp)
	je	LBB0_27
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	-64(%rbp), %ecx
	movw	$1000, %ax                      ## imm = 0x3E8
	cmpl	$10000, %ecx                    ## imm = 0x2710
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ecx, %eax
	movl	$3435973837, %ecx               ## imm = 0xCCCCCCCD
	imulq	%rcx, %rax
	shrq	$35, %rax
	cmpl	$10000, %eax                    ## imm = 0x2710
	movl	$10000, %ecx                    ## imm = 0x2710
	cmovgel	%ecx, %eax
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movzwl	%ax, %eax
	shrl	$3, %eax
	imull	$8389, %eax, %ebx               ## imm = 0x20C5
	shrl	$20, %ebx
	incq	%rbx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=2
	decq	%rbx
	cmpq	$1, %rbx
	jle	LBB0_22
LBB0_19:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_Sleep
	testq	%r15, %r15
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_IncrementProgressBar
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_SC_STATUS_PROCESS_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	leaq	-80(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$24, %ecx
	leaq	-104(%rbp), %r8
	callq	_QueryServiceStatusEx
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %r12
	movq	-80(%rbp), %rbx
	xorl	%eax, %eax
	callq	_GetTickCount
	movq	%rax, %r13
	cmpq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	jg	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	cmpq	%rax, %r13
	jl	LBB0_26
## %bb.29:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	%r12, %r13
	jmp	LBB0_30
LBB0_6:
	movl	%r14d, %edi
	callq	_CloseServiceHandle
LBB0_7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_35
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_34
LBB0_13:
	xorl	%r15d, %r15d
	cmpq	%r13, -72(%rbp)
	je	LBB0_33
	jmp	LBB0_34
LBB0_23:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_31
LBB0_27:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_30:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_31:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r13, -72(%rbp)
	jne	LBB0_34
LBB0_33:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_34:
	movl	%ebx, %edi
	callq	_CloseServiceHandle
	movl	%r14d, %edi
	callq	_CloseServiceHandle
LBB0_35:
	movq	%r15, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVICE_PAUSED,8,3             ## @SERVICE_PAUSED
	.comm	_SERVICE_RUNNING,8,3            ## @SERVICE_RUNNING
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_SC_MANAGER_CONNECT,4,2         ## @SC_MANAGER_CONNECT
	.comm	_SERVICE_PAUSE_CONTINUE,4,2     ## @SERVICE_PAUSE_CONTINUE
	.comm	_SERVICE_INTERROGATE,4,2        ## @SERVICE_INTERROGATE
	.comm	_SERVICE_QUERY_STATUS,4,2       ## @SERVICE_QUERY_STATUS
	.comm	_DEFAULT_STEP,4,2               ## @DEFAULT_STEP
	.comm	_SC_STATUS_PROCESS_INFO,4,2     ## @SC_STATUS_PROCESS_INFO
	.comm	_MAX_WAIT_TIME,8,3              ## @MAX_WAIT_TIME
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DoControlService               ; -- Begin function DoControlService
	.p2align	2
_DoControlService:                      ; @DoControlService
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #56]
	str	xzr, [sp, #24]
	cmp	x2, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_26
; %bb.2:
Lloh0:
	adrp	x8, _SERVICE_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERVICE_RUNNING@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _SERVICE_PAUSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SERVICE_PAUSED@GOTPAGEOFF]
LBB0_4:
	ldr	x24, [x8]
Lloh4:
	adrp	x8, _SC_MANAGER_CONNECT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SC_MANAGER_CONNECT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManagerW
	cbz	w0, LBB0_26
; %bb.5:
	mov	x19, x0
Lloh7:
	adrp	x8, _SERVICE_PAUSE_CONTINUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SERVICE_PAUSE_CONTINUE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SERVICE_INTERROGATE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SERVICE_INTERROGATE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _SERVICE_QUERY_STATUS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SERVICE_QUERY_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x1, x21
	bl	_OpenServiceW
	cbz	w0, LBB0_25
; %bb.6:
	mov	x21, x0
	add	x2, sp, #36
	mov	x1, x22
	bl	_ControlService
	cbz	x0, LBB0_27
; %bb.7:
	cbz	x20, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _DEFAULT_STEP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEFAULT_STEP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IncrementProgressBar
LBB0_9:
Lloh19:
	adrp	x8, _SC_STATUS_PROCESS_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SC_STATUS_PROCESS_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #40
	add	x4, sp, #24
	mov	x0, x21
	mov	w3, #24
	bl	_QueryServiceStatusEx
	cbz	x0, LBB0_28
; %bb.10:
Lloh22:
	adrp	x8, _FALSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh24:
	ldr	x23, [x8]
Lloh25:
	adrp	x8, _MAX_WAIT_TIME@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAX_WAIT_TIME@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x28, [sp, #40]
	bl	_GetTickCount
	ldr	x8, [sp, #48]
	cmp	x8, x24
	b.eq	LBB0_29
; %bb.11:
	mov	x22, x0
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	w25, #10000
Lloh28:
	adrp	x27, _DEFAULT_STEP@GOTPAGE
Lloh29:
	ldr	x27, [x27, _DEFAULT_STEP@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x28, [sp, #40]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_IncrementProgressBar
	mov	x22, x23
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #48]
	cmp	x8, x24
	b.eq	LBB0_24
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w8, [sp, #56]
	cmp	w8, w25
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #1000
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #35
	cmp	w8, w25
	csel	w8, w8, w25, lt
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ubfx	w8, w8, #3, #13
	mov	w9, #8389
	mul	w8, w8, w9
	lsr	w8, w8, #20
	add	x23, x8, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	sub	x23, x23, #1
	cmp	x23, #1
	b.le	LBB0_21
LBB0_19:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #1000
	bl	_Sleep
	cbz	x20, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w1, [x27]
	mov	x0, x20
	bl	_IncrementProgressBar
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh30:
	adrp	x8, _SC_STATUS_PROCESS_INFO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SC_STATUS_PROCESS_INFO@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x2, sp, #40
	add	x4, sp, #24
	mov	x0, x21
	mov	w3, #24
	bl	_QueryServiceStatusEx
	cbz	x0, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x26, [sp, #40]
	bl	_GetTickCount
	mov	x23, x0
	cmp	x26, x28
	b.gt	LBB0_12
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x22, x8
	cmp	x23, x8
	b.lt	LBB0_13
LBB0_24:
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_29
LBB0_25:
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_26:
Lloh33:
	adrp	x8, _FALSE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh35:
	ldr	x20, [x8]
	b	LBB0_31
LBB0_27:
	mov	x20, #0
	b	LBB0_30
LBB0_28:
	mov	x23, #0
LBB0_29:
	ldr	x8, [sp, #48]
Lloh36:
	adrp	x9, _TRUE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x24
	csel	x20, x9, x23, eq
LBB0_30:
	mov	x0, x21
	bl	_CloseServiceHandle
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_31:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVICE_PAUSED,8,3             ; @SERVICE_PAUSED
	.comm	_SERVICE_RUNNING,8,3            ; @SERVICE_RUNNING
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_SC_MANAGER_CONNECT,4,2         ; @SC_MANAGER_CONNECT
	.comm	_SERVICE_PAUSE_CONTINUE,4,2     ; @SERVICE_PAUSE_CONTINUE
	.comm	_SERVICE_INTERROGATE,4,2        ; @SERVICE_INTERROGATE
	.comm	_SERVICE_QUERY_STATUS,4,2       ; @SERVICE_QUERY_STATUS
	.comm	_DEFAULT_STEP,4,2               ; @DEFAULT_STEP
	.comm	_SC_STATUS_PROCESS_INFO,4,2     ; @SC_STATUS_PROCESS_INFO
	.comm	_MAX_WAIT_TIME,8,3              ; @MAX_WAIT_TIME
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
