	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetServiceList                 ## -- Begin function GetServiceList
	.p2align	4, 0x90
_GetServiceList:                        ## @GetServiceList
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$0, -48(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_FreeServiceList
	movq	_SC_MANAGER_ENUMERATE_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManagerW
	testq	%rax, %rax
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_SC_ENUM_PROCESS_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SERVICE_WIN32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SERVICE_STATE_ALL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-56(%rbp), %r10
	leaq	-44(%rbp), %rax
	leaq	-48(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r10
	pushq	%rax
	pushq	%rbx
	callq	_EnumServicesStatusEx
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movl	(%r15), %esi
	movq	_SERVICE_WIN32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movl	-48(%rbp), %r9d
	movq	%r12, %rdi
	movq	%r14, %r8
	pushq	$0
	leaq	-56(%rbp), %rax
	pushq	%rax
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	callq	_EnumServicesStatusEx
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_5:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r12, %rdi
	callq	_CloseServiceHandle
	movl	-44(%rbp), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %r15d
LBB0_9:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_HeapAlloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jle	LBB0_17
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	%r13, %rdi
	leaq	(%r14,%r13), %rsi
	movl	$4, %edx
	callq	_CopyMemory
	incq	%r15
	movslq	-44(%rbp), %rax
	addq	$24, %r13
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	16(%r14,%r13), %rdi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_HeapAlloc
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%rax, 16(%rcx,%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r14,%r13), %rsi
	movq	%rax, %rdi
	callq	_wcscpy
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%r14,%r13), %rdi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_HeapAlloc
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	%rax, 8(%rdi,%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r14,%r13), %rsi
	movq	%rax, %rdi
	callq	_wcscpy
	movq	8(%rbx), %rdi
	jmp	LBB0_16
LBB0_17:
	testq	%r14, %r14
	je	LBB0_19
LBB0_18:
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
LBB0_19:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SC_MANAGER_ENUMERATE_SERVICE,4,2 ## @SC_MANAGER_ENUMERATE_SERVICE
	.comm	_SC_ENUM_PROCESS_INFO,4,2       ## @SC_ENUM_PROCESS_INFO
	.comm	_SERVICE_WIN32,4,2              ## @SERVICE_WIN32
	.comm	_SERVICE_STATE_ALL,4,2          ## @SERVICE_STATE_ALL
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_ProcessHeap,4,2                ## @ProcessHeap
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetServiceList                 ; -- Begin function GetServiceList
	.p2align	2
_GetServiceList:                        ; @GetServiceList
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	bl	_FreeServiceList
Lloh3:
	adrp	x8, _SC_MANAGER_ENUMERATE_SERVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC_MANAGER_ENUMERATE_SERVICE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManagerW
Lloh6:
	adrp	x24, _ProcessHeap@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ProcessHeap@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
Lloh8:
	adrp	x23, _SC_ENUM_PROCESS_INFO@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SC_ENUM_PROCESS_INFO@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh10:
	adrp	x25, _SERVICE_WIN32@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SERVICE_WIN32@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh12:
	adrp	x26, _SERVICE_STATE_ALL@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SERVICE_STATE_ALL@GOTPAGEOFF]
	ldr	w3, [x26]
	str	wzr, [sp, #8]
	add	x8, sp, #24
	str	x8, [sp]
	add	x6, sp, #28
	add	x7, sp, #20
	mov	x4, #0
	mov	w5, #0
	bl	_EnumServicesStatusEx
	cbnz	x0, LBB0_5
; %bb.2:
	bl	_GetLastError
Lloh14:
	adrp	x8, _ERROR_MORE_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR_MORE_DATA@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x24]
	ldr	w2, [sp, #28]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w1, [x23]
	ldr	w2, [x25]
	ldr	w3, [x26]
	ldr	w5, [sp, #28]
	str	wzr, [sp, #8]
	add	x8, sp, #24
	str	x8, [sp]
	add	x6, sp, #28
	add	x7, sp, #20
	mov	x0, x22
	mov	x4, x21
	bl	_EnumServicesStatusEx
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w19, w19, w8, eq
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x22
	bl	_CloseServiceHandle
	ldr	w8, [sp, #20]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	b	LBB0_8
LBB0_7:
	mov	w2, #0
	mov	x21, #0
LBB0_8:
	ldr	w0, [x24]
Lloh20:
	adrp	x25, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh21:
	ldr	x25, [x25, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_HeapAlloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_16
; %bb.9:
	ldr	w8, [sp, #20]
	str	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x26, #0
	mov	x27, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x8, x26
	add	x1, x21, x26
	mov	w2, #4
	bl	_CopyMemory
	add	x27, x27, #1
	ldrsw	x8, [sp, #20]
	add	x26, x26, #24
	cmp	x27, x8
	b.ge	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x24]
	ldr	w23, [x25]
	add	x28, x21, x26
	ldr	x0, [x28, #16]
	bl	_wcslen
	lsl	w8, w0, #2
	add	w2, w8, #4
	mov	x0, x22
	mov	x1, x23
	bl	_HeapAlloc
	ldr	x8, [x20, #8]
	add	x8, x8, x26
	str	x0, [x8, #16]
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x1, [x28, #16]
	bl	_wcscpy
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w22, [x24]
	ldr	w23, [x25]
	ldr	x0, [x28, #8]
	bl	_wcslen
	lsl	w8, w0, #2
	add	w2, w8, #4
	mov	x0, x22
	mov	x1, x23
	bl	_HeapAlloc
	ldr	x8, [x20, #8]
	add	x9, x8, x26
	str	x0, [x9, #8]
	cbz	x0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x1, [x28, #8]
	bl	_wcscpy
	ldr	x8, [x20, #8]
	b	LBB0_11
LBB0_16:
	cbz	x21, LBB0_18
LBB0_17:
	ldr	w0, [x24]
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SC_MANAGER_ENUMERATE_SERVICE,4,2 ; @SC_MANAGER_ENUMERATE_SERVICE
	.comm	_SC_ENUM_PROCESS_INFO,4,2       ; @SC_ENUM_PROCESS_INFO
	.comm	_SERVICE_WIN32,4,2              ; @SERVICE_WIN32
	.comm	_SERVICE_STATE_ALL,4,2          ; @SERVICE_STATE_ALL
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_ProcessHeap,4,2                ; @ProcessHeap
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
.subsections_via_symbols
