	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnumDepend                     ## -- Begin function EnumDepend
	.p2align	4, 0x90
_EnumDepend:                            ## @EnumDepend
	.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
	movl	%edi, %ebx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_SC_MANAGER_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OpenSCManager
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_SERVICE_ENUMERATE_DEPENDENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_OpenService
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_SERVICE_STATE_ALL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_EnumDependentServices
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	cmpq	$0, -56(%rbp)
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	__T
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_10:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-56(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	-56(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_EnumDependentServices
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	callq	__T
	movq	-48(%rbp), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	cmpq	$0, -48(%rbp)
	jle	LBB0_18
## %bb.15:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	addq	$16, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	__T
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	leaq	L_.str.6(%rip), %rdi
	callq	__T
	movq	-16(%rbx), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	leaq	L_.str.7(%rip), %rdi
	callq	__T
	movq	-8(%rbx), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	movq	%rbx, %rdi
	callq	_PrintServiceStatus
	incq	%r14
	addq	$24, %rbx
	cmpq	-48(%rbp), %r14
	jl	LBB0_16
## %bb.17:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_11:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	leaq	L_.str.3(%rip), %rdi
LBB0_8:
	callq	__T
	movl	%eax, %ebx
	xorl	%r12d, %r12d
LBB0_9:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_18:
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_ReportLastError
LBB0_20:
	testq	%r12, %r12
	je	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
LBB0_22:
	testq	%r15, %r15
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_CloseServiceHandle
LBB0_24:
	testq	%r14, %r14
	je	LBB0_26
## %bb.25:
	movq	%r14, %rdi
	callq	_CloseServiceHandle
LBB0_26:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SC_MANAGER_CONNECT,4,2         ## @SC_MANAGER_CONNECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SC] OpenSCManager FAILED %lu:\n\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_SERVICE_ENUMERATE_DEPENDENTS,4,2 ## @SERVICE_ENUMERATE_DEPENDENTS
L_.str.1:                               ## @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

	.comm	_SERVICE_STATE_ALL,4,2          ## @SERVICE_STATE_ALL
L_.str.2:                               ## @.str.2
	.asciz	"[SC] EnumDependentServices FAILED %lu:\n\n"

	.comm	_ERROR_OUTOFMEMORY,4,2          ## @ERROR_OUTOFMEMORY
L_.str.3:                               ## @.str.3
	.asciz	"[SC] HeapAlloc FAILED %lu:\n\n"

L_.str.4:                               ## @.str.4
	.asciz	"Enum: entriesRead = %lu\n"

L_.str.5:                               ## @.str.5
	.asciz	"\n"

L_.str.6:                               ## @.str.6
	.asciz	"SERVICE_NAME: %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"DISPLAY_NAME: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnumDepend                     ; -- Begin function EnumDepend
	.p2align	2
_EnumDepend:                            ; @EnumDepend
	.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, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	stp	xzr, xzr, [sp, #16]
Lloh3:
	adrp	x8, _SC_MANAGER_CONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC_MANAGER_CONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_OpenSCManager
	mov	x19, x0
Lloh6:
	adrp	x27, _FALSE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.1:
Lloh8:
	adrp	x8, _SERVICE_ENUMERATE_DEPENDENTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SERVICE_ENUMERATE_DEPENDENTS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_OpenService
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
Lloh11:
	adrp	x23, _SERVICE_STATE_ALL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SERVICE_STATE_ALL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_EnumDependentServices
	ldr	x8, [sp, #24]
	cmp	w0, #0
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_11
; %bb.3:
	bl	_GetProcessHeap
	ldr	x2, [sp, #24]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x22, x0
	cbz	x0, LBB0_23
; %bb.4:
	ldr	w1, [x23]
	ldr	x3, [sp, #24]
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x0, x20
	mov	x2, x22
	bl	_EnumDependentServices
	cbz	w0, LBB0_24
; %bb.5:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__T
	ldr	x8, [sp, #16]
	str	x8, [sp]
	bl	__tprintf
	ldr	x8, [sp, #16]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	x28, #0
	add	x23, x22, #16
Lloh15:
	adrp	x24, l_.str.5@PAGE
Lloh16:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh17:
	adrp	x25, l_.str.6@PAGE
Lloh18:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh19:
	adrp	x26, l_.str.7@PAGE
Lloh20:
	add	x26, x26, l_.str.7@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	__T
	bl	__tprintf
	mov	x0, x25
	bl	__T
	ldur	x8, [x23, #-16]
	str	x8, [sp]
	bl	__tprintf
	mov	x0, x26
	bl	__T
	ldur	x8, [x23, #-8]
	str	x8, [sp]
	bl	__tprintf
	mov	x0, x23
	bl	_PrintServiceStatus
	add	x28, x28, #1
	ldr	x8, [sp, #16]
	add	x23, x23, #24
	cmp	x28, x8
	b.lt	LBB0_7
	b	LBB0_14
LBB0_8:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	__T
	mov	x20, x0
	bl	_GetLastError
	str	x0, [sp]
	mov	x0, x20
	bl	__tprintf
	mov	x20, #0
	b	LBB0_12
LBB0_11:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x21, x0
	bl	_GetLastError
	str	x0, [sp]
	mov	x0, x21
	bl	__tprintf
LBB0_12:
	mov	x22, #0
LBB0_13:
	ldr	x21, [x27]
LBB0_14:
	ldr	x8, [x27]
	cmp	x21, x8
	b.ne	LBB0_16
; %bb.15:
	bl	_ReportLastError
LBB0_16:
	cbz	x22, LBB0_18
; %bb.17:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
LBB0_18:
	cbz	x20, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_CloseServiceHandle
LBB0_20:
	cbz	x19, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_CloseServiceHandle
LBB0_22:
	mov	x0, x21
	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
LBB0_23:
Lloh27:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_SetLastError
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_25:
	bl	__T
	mov	x21, x0
	bl	_GetLastError
	str	x0, [sp]
	mov	x0, x21
	bl	__tprintf
	b	LBB0_13
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SC_MANAGER_CONNECT,4,2         ; @SC_MANAGER_CONNECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SC] OpenSCManager FAILED %lu:\n\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_SERVICE_ENUMERATE_DEPENDENTS,4,2 ; @SERVICE_ENUMERATE_DEPENDENTS
l_.str.1:                               ; @.str.1
	.asciz	"[SC] OpenService FAILED %lu:\n\n"

	.comm	_SERVICE_STATE_ALL,4,2          ; @SERVICE_STATE_ALL
l_.str.2:                               ; @.str.2
	.asciz	"[SC] EnumDependentServices FAILED %lu:\n\n"

	.comm	_ERROR_OUTOFMEMORY,4,2          ; @ERROR_OUTOFMEMORY
l_.str.3:                               ; @.str.3
	.asciz	"[SC] HeapAlloc FAILED %lu:\n\n"

l_.str.4:                               ; @.str.4
	.asciz	"Enum: entriesRead = %lu\n"

l_.str.5:                               ; @.str.5
	.asciz	"\n"

l_.str.6:                               ; @.str.6
	.asciz	"SERVICE_NAME: %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"DISPLAY_NAME: %s\n"

.subsections_via_symbols
