	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateSCMStatus
_UpdateSCMStatus:                       ## @UpdateSCMStatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$64, %rsp
	movq	_SERVICE_WIN32_OWN_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	%rdi, -16(%rbp)
	movq	_SERVICE_START_PENDING@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%rdi, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_SERVICE_STOP_PENDING@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_SERVICE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_SERVICE_ACCEPT_STOP@GOTPCREL(%rip), %rcx
	movq	_SERVICE_ACCEPT_PAUSE_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_SERVICE_ACCEPT_SHUTDOWN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_4:
	movl	%eax, -56(%rbp)
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	_ERROR_SERVICE_SPECIFIC_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_6:
	movq	%rsi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movq	_hstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_SetServiceStatus
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_KillService
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$64, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVICE_WIN32_OWN_PROCESS,4,2  ## @SERVICE_WIN32_OWN_PROCESS
	.comm	_SERVICE_START_PENDING,8,3      ## @SERVICE_START_PENDING
	.comm	_SERVICE_STOP_PENDING,8,3       ## @SERVICE_STOP_PENDING
	.comm	_SERVICE_STOPPED,8,3            ## @SERVICE_STOPPED
	.comm	_SERVICE_ACCEPT_STOP,4,2        ## @SERVICE_ACCEPT_STOP
	.comm	_SERVICE_ACCEPT_PAUSE_CONTINUE,4,2 ## @SERVICE_ACCEPT_PAUSE_CONTINUE
	.comm	_SERVICE_ACCEPT_SHUTDOWN,4,2    ## @SERVICE_ACCEPT_SHUTDOWN
	.comm	_ERROR_SERVICE_SPECIFIC_ERROR,8,3 ## @ERROR_SERVICE_SPECIFIC_ERROR
	.comm	_hstatus,4,2                    ## @hstatus
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set service status\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_UpdateSCMStatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateSCMStatus
_UpdateSCMStatus:                       ; @UpdateSCMStatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _SERVICE_WIN32_OWN_PROCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERVICE_WIN32_OWN_PROCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	x0, [sp, #48]
Lloh3:
	adrp	x8, _SERVICE_START_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SERVICE_START_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SERVICE_STOP_PENDING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SERVICE_STOP_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _SERVICE_STOPPED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SERVICE_STOPPED@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	ccmp	x10, x0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _SERVICE_ACCEPT_STOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SERVICE_ACCEPT_STOP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SERVICE_ACCEPT_PAUSE_CONTINUE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SERVICE_ACCEPT_PAUSE_CONTINUE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _SERVICE_ACCEPT_SHUTDOWN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SERVICE_ACCEPT_SHUTDOWN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_3:
	str	w8, [sp, #8]
Lloh21:
	adrp	x8, _ERROR_SERVICE_SPECIFIC_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR_SERVICE_SPECIFIC_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x2, #0
	csel	x8, x1, x8, eq
	stp	x2, x8, [sp, #32]
	stp	xzr, xzr, [sp, #16]
Lloh24:
	adrp	x8, _hstatus@GOTPAGE
Lloh25:
	ldr	x8, [x8, _hstatus@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_SetServiceStatus
	cbz	w0, LBB0_5
; %bb.4:
Lloh27:
	adrp	x8, _TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	bl	_KillService
Lloh34:
	adrp	x8, _FALSE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVICE_WIN32_OWN_PROCESS,4,2  ; @SERVICE_WIN32_OWN_PROCESS
	.comm	_SERVICE_START_PENDING,8,3      ; @SERVICE_START_PENDING
	.comm	_SERVICE_STOP_PENDING,8,3       ; @SERVICE_STOP_PENDING
	.comm	_SERVICE_STOPPED,8,3            ; @SERVICE_STOPPED
	.comm	_SERVICE_ACCEPT_STOP,4,2        ; @SERVICE_ACCEPT_STOP
	.comm	_SERVICE_ACCEPT_PAUSE_CONTINUE,4,2 ; @SERVICE_ACCEPT_PAUSE_CONTINUE
	.comm	_SERVICE_ACCEPT_SHUTDOWN,4,2    ; @SERVICE_ACCEPT_SHUTDOWN
	.comm	_ERROR_SERVICE_SPECIFIC_ERROR,8,3 ; @ERROR_SERVICE_SPECIFIC_ERROR
	.comm	_hstatus,4,2                    ; @hstatus
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set service status\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_UpdateSCMStatus
.subsections_via_symbols
