	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TV2_AddDependantsToTree        ## -- Begin function TV2_AddDependantsToTree
	.p2align	4, 0x90
_TV2_AddDependantsToTree:               ## @TV2_AddDependantsToTree
	.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	%rsi, %r12
	movq	%rdi, %r15
	leaq	-56(%rbp), %rsi
	movl	%edx, %edi
	callq	_TV2_GetDependants
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, -56(%rbp)
	je	LBB0_4
## %bb.2:
	movq	%r14, %rbx
	addq	$16, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx), %rdi
	callq	_TV2_HasDependantServices
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movq	-8(%rbx), %rcx
	movl	-16(%rbx), %r8d
	movq	%r12, %rsi
	movl	%eax, %r9d
	callq	_AddItemToTreeView
	incq	%r13
	addq	$24, %rbx
	cmpq	-56(%rbp), %r13
	jb	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	jmp	LBB0_7
LBB0_5:
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:
	movq	_hInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IDS_NO_DEPENDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	callq	_AllocAndLoadString
	movl	(%r15), %edi
	movl	-44(%rbp), %edx
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_AddItemToTreeView
	movl	-44(%rbp), %edi
	callq	_LocalFree
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_EnableWindow
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hInstance,4,2                  ## @hInstance
	.comm	_IDS_NO_DEPENDS,4,2             ## @IDS_NO_DEPENDS
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TV2_AddDependantsToTree        ; -- Begin function TV2_AddDependantsToTree
	.p2align	2
_TV2_AddDependantsToTree:               ; @TV2_AddDependantsToTree
	.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	x21, x1
	mov	x19, x0
	mov	x1, sp
	mov	x0, x2
	bl	_TV2_GetDependants
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [sp]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x22, #0
	add	x23, x20, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_TV2_HasDependantServices
	mov	x5, x0
	ldr	w0, [x19]
	ldr	w2, [x23, #8]
	ldr	x3, [x23]
	ldur	w4, [x23, #-8]
	mov	x1, x21
	bl	_AddItemToTreeView
	add	x22, x22, #1
	ldr	x8, [sp]
	add	x23, x23, #24
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_4:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	b	LBB0_7
LBB0_5:
	cbnz	x21, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _hInstance@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hInstance@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IDS_NO_DEPENDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDS_NO_DEPENDS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_AllocAndLoadString
	ldr	w0, [x19]
	ldr	w2, [sp, #12]
Lloh6:
	adrp	x20, _FALSE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	ldr	w5, [x20]
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_AddItemToTreeView
	ldr	w0, [sp, #12]
	bl	_LocalFree
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_EnableWindow
LBB0_7:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hInstance,4,2                  ; @hInstance
	.comm	_IDS_NO_DEPENDS,4,2             ; @IDS_NO_DEPENDS
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
