	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DoUnregServer
_DoUnregServer:                         ## @DoUnregServer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SERVICES_ACTIVE_DATABASEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SC_MANAGER_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_OpenSCManagerW
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_DoUnregServer.msiserverW(%rip), %rsi
	movl	%r14d, %edi
	callq	_OpenServiceW
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DeleteService
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$1, %r15d
LBB0_5:
	movl	%ebx, %edi
	callq	_CloseServiceHandle
	jmp	LBB0_8
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_SERVICE_DOES_NOT_EXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	$1, %r15d
LBB0_8:
	movl	%r14d, %edi
	callq	_CloseServiceHandle
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_DoUnregServer.msiserverW:              ## @DoUnregServer.msiserverW
	.asciz	"MSIServer"

	.comm	_SERVICES_ACTIVE_DATABASEW,4,2  ## @SERVICES_ACTIVE_DATABASEW
	.comm	_SC_MANAGER_CONNECT,4,2         ## @SC_MANAGER_CONNECT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open service control manager\n"

	.comm	_DELETE,4,2                     ## @DELETE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to delete MSI service\n"

	.comm	_ERROR_SERVICE_DOES_NOT_EXIST,8,3 ## @ERROR_SERVICE_DOES_NOT_EXIST
L_.str.2:                               ## @.str.2
	.asciz	"Failed to open MSI service\n"

	.no_dead_strip	_DoUnregServer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DoUnregServer
_DoUnregServer:                         ; @DoUnregServer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _SERVICES_ACTIVE_DATABASEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERVICES_ACTIVE_DATABASEW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SC_MANAGER_CONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC_MANAGER_CONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_OpenSCManagerW
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _DELETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DELETE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, _DoUnregServer.msiserverW@PAGE
Lloh10:
	add	x1, x1, _DoUnregServer.msiserverW@PAGEOFF
	bl	_OpenServiceW
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_DeleteService
	cbz	w0, LBB0_7
; %bb.3:
	mov	w21, #0
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w21, #1
	b	LBB0_11
LBB0_5:
	bl	_GetLastError
Lloh16:
	adrp	x8, _ERROR_SERVICE_DOES_NOT_EXIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR_SERVICE_DOES_NOT_EXIST@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:
	mov	w21, #0
	b	LBB0_10
LBB0_7:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w21, #1
LBB0_8:
	mov	x0, x20
	bl	_CloseServiceHandle
	b	LBB0_10
LBB0_9:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w21, #1
LBB0_10:
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_DoUnregServer.msiserverW:              ; @DoUnregServer.msiserverW
	.asciz	"MSIServer"

	.comm	_SERVICES_ACTIVE_DATABASEW,4,2  ; @SERVICES_ACTIVE_DATABASEW
	.comm	_SC_MANAGER_CONNECT,4,2         ; @SC_MANAGER_CONNECT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open service control manager\n"

	.comm	_DELETE,4,2                     ; @DELETE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to delete MSI service\n"

	.comm	_ERROR_SERVICE_DOES_NOT_EXIST,8,3 ; @ERROR_SERVICE_DOES_NOT_EXIST
l_.str.2:                               ; @.str.2
	.asciz	"Failed to open MSI service\n"

	.no_dead_strip	_DoUnregServer
.subsections_via_symbols
