	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddEntryToTree
_AddEntryToTree:                        ## @AddEntryToTree
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	%r8, -48(%rbp)
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_RegQueryInfoKeyW
	addq	$48, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	$0, -48(%rbp)
LBB0_3:
	movq	_TVIF_TEXT@GOTPCREL(%rip), %rax
	movq	_TVIF_IMAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_TVIF_SELECTEDIMAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_TVIF_CHILDREN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_TVIF_PARAM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_wcslen
	movq	_Image_Closed@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_Image_Open@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	-48(%rbp), %rsi
	movl	%ebx, -88(%rbp)
	movq	%r13, -80(%rbp)
	movq	%rsi, -72(%rbp)
	movl	%edx, -64(%rbp)
	movl	%ecx, -60(%rbp)
	movl	%r12d, -56(%rbp)
	movl	%eax, -52(%rbp)
	testq	%r13, %r13
	jne	LBB0_4
## %bb.5:
	movq	_TVI_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_TVI_LAST@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	%r15, -104(%rbp)
	leaq	-104(%rbp), %rsi
	movl	%r14d, %edi
	callq	_TreeView_InsertItem
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_TVIF_TEXT,4,2                  ## @TVIF_TEXT
	.comm	_TVIF_IMAGE,4,2                 ## @TVIF_IMAGE
	.comm	_TVIF_SELECTEDIMAGE,4,2         ## @TVIF_SELECTEDIMAGE
	.comm	_TVIF_CHILDREN,4,2              ## @TVIF_CHILDREN
	.comm	_TVIF_PARAM,4,2                 ## @TVIF_PARAM
	.comm	_Image_Closed,4,2               ## @Image_Closed
	.comm	_Image_Open,4,2                 ## @Image_Open
	.comm	_TVI_LAST,8,3                   ## @TVI_LAST
	.comm	_TVI_FIRST,8,3                  ## @TVI_FIRST
	.no_dead_strip	_AddEntryToTree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddEntryToTree
_AddEntryToTree:                        ; @AddEntryToTree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	stur	x4, [x29, #-56]
	cbz	x3, LBB0_3
; %bb.1:
	stp	xzr, xzr, [sp]
	sub	x4, x29, #56
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_RegQueryInfoKeyW
Lloh0:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	stur	xzr, [x29, #-56]
LBB0_3:
Lloh3:
	adrp	x8, _TVIF_TEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TVIF_TEXT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TVIF_IMAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TVIF_IMAGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _TVIF_SELECTEDIMAGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TVIF_SELECTEDIMAGE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _TVIF_CHILDREN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TVIF_CHILDREN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _TVIF_PARAM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TVIF_PARAM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w23, w8, w9
	mov	x0, x22
	bl	_wcslen
Lloh18:
	adrp	x8, _Image_Closed@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Image_Closed@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _Image_Open@GOTPAGE
Lloh22:
	ldr	x9, [x9, _Image_Open@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldur	x10, [x29, #-56]
	str	w23, [sp, #32]
	stp	x21, x10, [sp, #40]
	stp	w9, w8, [sp, #56]
Lloh24:
	adrp	x8, _TVI_LAST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TVI_LAST@GOTPAGEOFF]
Lloh26:
	adrp	x9, _TVI_FIRST@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TVI_FIRST@GOTPAGEOFF]
	stp	w22, w0, [sp, #64]
	cmp	x21, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	stp	x20, x8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_TreeView_InsertItem
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_TVIF_TEXT,4,2                  ; @TVIF_TEXT
	.comm	_TVIF_IMAGE,4,2                 ; @TVIF_IMAGE
	.comm	_TVIF_SELECTEDIMAGE,4,2         ; @TVIF_SELECTEDIMAGE
	.comm	_TVIF_CHILDREN,4,2              ; @TVIF_CHILDREN
	.comm	_TVIF_PARAM,4,2                 ; @TVIF_PARAM
	.comm	_Image_Closed,4,2               ; @Image_Closed
	.comm	_Image_Open,4,2                 ; @Image_Open
	.comm	_TVI_LAST,8,3                   ; @TVI_LAST
	.comm	_TVI_FIRST,8,3                  ; @TVI_FIRST
	.no_dead_strip	_AddEntryToTree
.subsections_via_symbols
