	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateServiceStatus
_UpdateServiceStatus:                   ## @UpdateServiceStatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SERVICE_WIN32_OWN_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ServiceStatus@GOTPCREL(%rip), %rax
	movl	%ecx, 40(%rax)
	movq	%rdi, 32(%rax)
	movl	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	$0, 24(%rax)
	movq	_SERVICE_START_PENDING@GOTPCREL(%rip), %r8
	movq	_SERVICE_STOP_PENDING@GOTPCREL(%rip), %r9
	movq	_SERVICE_CONTINUE_PENDING@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	%rdi, (%rsi)
	movq	_SERVICE_PAUSE_PENDING@GOTPCREL(%rip), %rsi
	movl	$10000, %edx                    ## imm = 0x2710
	cmovel	%edx, %ecx
	cmpq	%rdi, (%rsi)
	cmovel	%edx, %ecx
	cmpq	%rdi, (%r9)
	cmovel	%edx, %ecx
	cmpq	%rdi, (%r8)
	cmovel	%edx, %ecx
	movl	%ecx, 4(%rax)
	movq	_SERVICE_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_SERVICE_ACCEPT_STOP@GOTPCREL(%rip), %rcx
	movq	_SERVICE_ACCEPT_SHUTDOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
LBB0_2:
	movq	_ServiceStatusHandle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ServiceStatus@GOTPCREL(%rip), %rsi
	popq	%rbp
	jmp	_SetServiceStatus               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVICE_WIN32_OWN_PROCESS,4,2  ## @SERVICE_WIN32_OWN_PROCESS
	.comm	_ServiceStatus,48,3             ## @ServiceStatus
	.comm	_SERVICE_START_PENDING,8,3      ## @SERVICE_START_PENDING
	.comm	_SERVICE_STOP_PENDING,8,3       ## @SERVICE_STOP_PENDING
	.comm	_SERVICE_PAUSE_PENDING,8,3      ## @SERVICE_PAUSE_PENDING
	.comm	_SERVICE_CONTINUE_PENDING,8,3   ## @SERVICE_CONTINUE_PENDING
	.comm	_SERVICE_RUNNING,8,3            ## @SERVICE_RUNNING
	.comm	_SERVICE_ACCEPT_STOP,4,2        ## @SERVICE_ACCEPT_STOP
	.comm	_SERVICE_ACCEPT_SHUTDOWN,4,2    ## @SERVICE_ACCEPT_SHUTDOWN
	.comm	_ServiceStatusHandle,4,2        ## @ServiceStatusHandle
	.no_dead_strip	_UpdateServiceStatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateServiceStatus
_UpdateServiceStatus:                   ; @UpdateServiceStatus
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _SERVICE_WIN32_OWN_PROCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SERVICE_WIN32_OWN_PROCESS@GOTPAGEOFF]
Lloh2:
	adrp	x8, _ServiceStatus@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ServiceStatus@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x8, #40]
	stp	xzr, x0, [x8, #24]
	stp	xzr, xzr, [x8, #8]
Lloh5:
	adrp	x9, _SERVICE_START_PENDING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SERVICE_START_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _SERVICE_STOP_PENDING@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SERVICE_STOP_PENDING@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _SERVICE_PAUSE_PENDING@GOTPAGE
Lloh12:
	ldr	x11, [x11, _SERVICE_PAUSE_PENDING@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
Lloh14:
	adrp	x12, _SERVICE_CONTINUE_PENDING@GOTPAGE
Lloh15:
	ldr	x12, [x12, _SERVICE_CONTINUE_PENDING@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	cmp	x12, x0
	ccmp	x11, x0, #4, ne
	ccmp	x10, x0, #4, ne
	ccmp	x9, x0, #4, ne
	mov	w9, #10000
	csel	w9, w9, wzr, eq
	stp	wzr, w9, [x8]
Lloh17:
	adrp	x9, _SERVICE_RUNNING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SERVICE_RUNNING@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x0
	b.ne	LBB0_2
; %bb.1:
Lloh20:
	adrp	x9, _SERVICE_ACCEPT_STOP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SERVICE_ACCEPT_STOP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _SERVICE_ACCEPT_SHUTDOWN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SERVICE_ACCEPT_SHUTDOWN@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_2:
Lloh26:
	adrp	x8, _ServiceStatusHandle@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ServiceStatusHandle@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, _ServiceStatus@GOTPAGE
Lloh30:
	ldr	x1, [x1, _ServiceStatus@GOTPAGEOFF]
	b	_SetServiceStatus
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVICE_WIN32_OWN_PROCESS,4,2  ; @SERVICE_WIN32_OWN_PROCESS
	.comm	_ServiceStatus,48,3             ; @ServiceStatus
	.comm	_SERVICE_START_PENDING,8,3      ; @SERVICE_START_PENDING
	.comm	_SERVICE_STOP_PENDING,8,3       ; @SERVICE_STOP_PENDING
	.comm	_SERVICE_PAUSE_PENDING,8,3      ; @SERVICE_PAUSE_PENDING
	.comm	_SERVICE_CONTINUE_PENDING,8,3   ; @SERVICE_CONTINUE_PENDING
	.comm	_SERVICE_RUNNING,8,3            ; @SERVICE_RUNNING
	.comm	_SERVICE_ACCEPT_STOP,4,2        ; @SERVICE_ACCEPT_STOP
	.comm	_SERVICE_ACCEPT_SHUTDOWN,4,2    ; @SERVICE_ACCEPT_SHUTDOWN
	.comm	_ServiceStatusHandle,4,2        ; @ServiceStatusHandle
	.no_dead_strip	_UpdateServiceStatus
.subsections_via_symbols
