	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetServiceDescription          ## -- Begin function GetServiceDescription
	.p2align	4, 0x90
_GetServiceDescription:                 ## @GetServiceDescription
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	_SC_MANAGER_ENUMERATE_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManagerW
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	movq	_SERVICE_QUERY_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_OpenServiceW
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r14
	movq	_SERVICE_CONFIG_DESCRIPTION@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r8
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_QueryServiceConfig2W
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_INSUFFICIENT_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.4:
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %r12
	movl	(%r13), %esi
	movl	-44(%rbp), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_QueryServiceConfig2W
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.7:
	callq	_wcslen
	movl	%eax, %r13d
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	4(,%r13,4), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	incl	%r13d
	movq	(%r12), %rdx
	movq	%rax, %rdi
	movl	%r13d, %esi
	movq	%rax, %rbx
	callq	_StringCchCopyW
	jmp	LBB0_13
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetError
	jmp	LBB0_15
LBB0_10:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
LBB0_14:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
	movq	%r14, %rdi
	callq	_CloseServiceHandle
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_MANAGER_ENUMERATE_SERVICE,4,2 ## @SC_MANAGER_ENUMERATE_SERVICE
	.comm	_SERVICE_QUERY_CONFIG,4,2       ## @SERVICE_QUERY_CONFIG
	.comm	_SERVICE_CONFIG_DESCRIPTION,4,2 ## @SERVICE_CONFIG_DESCRIPTION
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ## @ERROR_INSUFFICIENT_BUFFER
	.comm	_ProcessHeap,4,2                ## @ProcessHeap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetServiceDescription          ; -- Begin function GetServiceDescription
	.p2align	2
_GetServiceDescription:                 ; @GetServiceDescription
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	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
	.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	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _SC_MANAGER_ENUMERATE_SERVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC_MANAGER_ENUMERATE_SERVICE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManagerW
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _SERVICE_QUERY_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SERVICE_QUERY_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_OpenServiceW
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x23, _SERVICE_CONFIG_DESCRIPTION@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SERVICE_CONFIG_DESCRIPTION@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x4, sp, #12
	mov	x2, #0
	mov	w3, #0
	bl	_QueryServiceConfig2W
	mov	x22, #0
	cbnz	x0, LBB0_14
; %bb.3:
	bl	_GetLastError
Lloh8:
	adrp	x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.4:
Lloh11:
	adrp	x24, _ProcessHeap@GOTPAGE
Lloh12:
	ldr	x24, [x24, _ProcessHeap@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w2, [sp, #12]
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x21, x0
	ldr	w1, [x23]
	ldr	w3, [sp, #12]
	add	x4, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_QueryServiceConfig2W
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x0, [x21]
	cbz	x0, LBB0_12
; %bb.7:
	bl	_wcslen
	add	w23, w0, #1
	ldr	w0, [x24]
	lsl	w2, w23, #2
	mov	w1, #0
	bl	_HeapAlloc
	mov	x22, x0
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x2, [x21]
	mov	x0, x22
	mov	x1, x23
	bl	_StringCchCopyW
	b	LBB0_13
LBB0_9:
	bl	_GetError
	mov	x22, #0
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_CloseServiceHandle
	mov	x22, #0
	b	LBB0_15
LBB0_11:
	mov	x22, #0
	b	LBB0_14
LBB0_12:
	mov	x22, #0
LBB0_13:
	ldr	w0, [x24]
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_14:
	mov	x0, x19
	bl	_CloseServiceHandle
	mov	x0, x20
	bl	_CloseServiceHandle
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_MANAGER_ENUMERATE_SERVICE,4,2 ; @SC_MANAGER_ENUMERATE_SERVICE
	.comm	_SERVICE_QUERY_CONFIG,4,2       ; @SERVICE_QUERY_CONFIG
	.comm	_SERVICE_CONFIG_DESCRIPTION,4,2 ; @SERVICE_CONFIG_DESCRIPTION
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ; @ERROR_INSUFFICIENT_BUFFER
	.comm	_ProcessHeap,4,2                ; @ProcessHeap
.subsections_via_symbols
