	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BuildListOfServicesToStop
_BuildListOfServicesToStop:             ## @BuildListOfServicesToStop
	.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	%esi, %eax
	movq	%rdi, %r12
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_TV2_GetDependants
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.2:
	addq	$8, %rbx
	xorl	%r13d, %r13d
	movq	_SERVICE_STOPPED@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$16, %rbx
	cmpq	%rax, %r13
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	cmpq	(%r14), %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SERVICE_STOP_PENDING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-8(%rbx), %esi
	movq	%r12, %rdi
	callq	_AddServiceToList
	movl	%eax, (%r12)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-48(%rbp), %rax
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_HeapFree
LBB0_8:
	movl	%r15d, %eax
	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	_SERVICE_STOPPED,8,3            ## @SERVICE_STOPPED
	.comm	_SERVICE_STOP_PENDING,8,3       ## @SERVICE_STOP_PENDING
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_BuildListOfServicesToStop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BuildListOfServicesToStop
_BuildListOfServicesToStop:             ; @BuildListOfServicesToStop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x8, x1
	mov	x21, x0
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x9]
	add	x1, sp, #8
	mov	x0, x8
	bl	_TV2_GetDependants
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x22, #0
	add	x23, x20, #8
Lloh3:
	adrp	x24, _SERVICE_STOPPED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SERVICE_STOPPED@GOTPAGEOFF]
Lloh5:
	adrp	x25, _SERVICE_STOP_PENDING@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SERVICE_STOP_PENDING@GOTPAGEOFF]
Lloh7:
	adrp	x26, _TRUE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	add	x23, x23, #16
	cmp	x22, x8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldr	x10, [x24]
	ldr	x11, [x25]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w1, [x23, #-8]
	mov	x0, x21
	bl	_AddServiceToList
	str	w0, [x21]
	ldr	w19, [x26]
	ldr	x8, [sp, #8]
	b	LBB0_3
LBB0_6:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SERVICE_STOPPED,8,3            ; @SERVICE_STOPPED
	.comm	_SERVICE_STOP_PENDING,8,3       ; @SERVICE_STOP_PENDING
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_BuildListOfServicesToStop
.subsections_via_symbols
