	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnTreeExpanding                ## -- Begin function OnTreeExpanding
	.p2align	4, 0x90
_OnTreeExpanding:                       ## @OnTreeExpanding
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, _OnTreeExpanding.expanding(%rip)
	je	LBB0_2
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %r12
	jmp	LBB0_23
LBB0_2:
	movq	%rsi, %r13
	movq	_TVIS_EXPANDEDONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_4
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_23
LBB0_4:
	movl	%edi, %r15d
	movq	_TRUE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, _OnTreeExpanding.expanding(%rip)
	movq	_IDC_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_LoadCursor
	movl	%eax, %edi
	callq	_SetCursor
	movl	%eax, %ebx
	movq	_WM_SETREDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	8(%r13), %rsi
	leaq	-72(%rbp), %rdx
	movl	%r15d, %edi
	callq	_GetItemPath
	testq	%rax, %rax
	je	LBB0_22
## %bb.5:
	cmpq	$0, (%rax)
	movl	-72(%rbp), %edi
	je	LBB0_8
## %bb.6:
	movq	_KEY_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-44(%rbp), %r8
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.7:
	movl	-44(%rbp), %edi
	jmp	LBB0_9
LBB0_8:
	movl	%edi, -44(%rbp)
LBB0_9:
	leaq	-60(%rbp), %r8
	leaq	-48(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	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
	jne	LBB0_22
## %bb.10:
	incl	-48(%rbp)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-48(%rbp), %edx
	shll	$2, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movq	%rax, %r14
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	cmpl	$0, -60(%rbp)
	jle	LBB0_21
## %bb.12:
	xorl	%ebx, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$0, -52(%rbp)
	xorl	%r8d, %r8d
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r13), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_AddEntryToTree
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	cmpl	-60(%rbp), %ebx
	jge	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-44(%rbp), %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	leaq	-68(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_RegEnumKeyExW
	addq	$16, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %edi
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	xorl	%edx, %edx
	leaq	-56(%rbp), %r8
	callq	_RegOpenKeyExW
	movq	%rax, %r14
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-56(%rbp), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-52(%rbp), %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_RegQueryInfoKeyW
	addq	$48, %rsp
	movq	%rax, %r14
	movl	-56(%rbp), %edi
	callq	_RegCloseKey
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rax, %r14
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-52(%rbp), %r8d
	jmp	LBB0_19
LBB0_21:
	movq	_TVM_SORTCHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %ecx
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_SendMessageW
	movl	-44(%rbp), %edi
	callq	_RegCloseKey
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
LBB0_22:
	movq	_WM_SETREDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	%ebx, %edi
	callq	_SetCursor
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _OnTreeExpanding.expanding(%rip)
LBB0_23:
	movl	(%r12), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_OnTreeExpanding.expanding,4,2 ## @OnTreeExpanding.expanding
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TVIS_EXPANDEDONCE,4,2          ## @TVIS_EXPANDEDONCE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_IDC_WAIT,4,2                   ## @IDC_WAIT
	.comm	_WM_SETREDRAW,4,2               ## @WM_SETREDRAW
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_TVM_SORTCHILDREN,4,2           ## @TVM_SORTCHILDREN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnTreeExpanding                ; -- Begin function OnTreeExpanding
	.p2align	2
_OnTreeExpanding:                       ; @OnTreeExpanding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	adrp	x25, _OnTreeExpanding.expanding@PAGE
	ldr	w8, [x25, _OnTreeExpanding.expanding@PAGEOFF]
Lloh0:
	adrp	x26, _FALSE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	mov	x27, x26
	cbnz	w8, LBB0_21
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1]
Lloh2:
	adrp	x9, _TVIS_EXPANDEDONCE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TVIS_EXPANDEDONCE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x27, _TRUE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.2:
	mov	x19, x0
	ldr	w8, [x27]
	str	w8, [x25, _OnTreeExpanding.expanding@PAGEOFF]
Lloh7:
	adrp	x8, _IDC_WAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDC_WAIT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_LoadCursor
	bl	_SetCursor
	mov	x20, x0
Lloh10:
	adrp	x23, _WM_SETREDRAW@GOTPAGE
Lloh11:
	ldr	x23, [x23, _WM_SETREDRAW@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #0
	bl	_SendMessageW
	ldr	x1, [x21, #8]
	add	x2, sp, #36
	mov	x0, x19
	bl	_GetItemPath
	cbz	x0, LBB0_20
; %bb.3:
	mov	x1, x0
	ldr	x8, [x0]
	ldr	w0, [sp, #36]
Lloh12:
	adrp	x28, _ERROR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ERROR_SUCCESS@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.4:
Lloh14:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x4, sp, #32
	mov	w2, #0
	bl	_RegOpenKeyExW
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.5:
	ldr	w0, [sp, #32]
	b	LBB0_7
LBB0_6:
	str	w0, [sp, #32]
LBB0_7:
	stp	xzr, xzr, [sp]
	add	x4, sp, #44
	add	x5, sp, #40
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w6, #0
	mov	w7, #0
	bl	_RegQueryInfoKeyW
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.8:
	ldr	w8, [sp, #40]
	add	w8, w8, #1
	str	w8, [sp, #40]
	bl	_GetProcessHeap
	ldr	w8, [sp, #40]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_20
; %bb.9:
	mov	x22, x0
	ldr	w8, [sp, #44]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.10:
	mov	w23, #0
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w4, #0
	str	wzr, [sp, #20]
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x21, #8]
	mov	x0, x19
	mov	x2, x22
	mov	x3, #0
	bl	_AddEntryToTree
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w23, w23, #1
	ldr	w8, [sp, #44]
	cmp	w23, w8
	b.ge	LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #40]
	str	w8, [sp, #24]
	ldr	w0, [sp, #32]
	add	x3, sp, #24
	mov	x1, x23
	mov	x2, x22
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_RegEnumKeyExW
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [sp, #32]
Lloh17:
	adrp	x8, _KEY_QUERY_VALUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x1, x22
	mov	w2, #0
	bl	_RegOpenKeyExW
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [sp, #28]
	stp	xzr, xzr, [sp]
	add	x4, sp, #20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_RegQueryInfoKeyW
	mov	x24, x0
	ldr	w0, [sp, #28]
	bl	_RegCloseKey
	ldr	x8, [x28]
	cmp	x24, x8
	b.ne	LBB0_11
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x24, x0
	cmp	x24, x8
	b.ne	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w4, [sp, #20]
	b	LBB0_12
LBB0_19:
Lloh20:
	adrp	x8, _TVM_SORTCHILDREN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TVM_SORTCHILDREN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w3, [x21, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_SendMessageW
	ldr	w0, [sp, #32]
	bl	_RegCloseKey
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
Lloh23:
	adrp	x23, _WM_SETREDRAW@GOTPAGE
Lloh24:
	ldr	x23, [x23, _WM_SETREDRAW@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x23]
	ldr	w2, [x27]
	mov	x0, x19
	mov	w3, #0
	bl	_SendMessageW
	mov	x0, x20
	bl	_SetCursor
	ldr	w8, [x26]
	str	w8, [x25, _OnTreeExpanding.expanding@PAGEOFF]
LBB0_21:
	ldr	w0, [x27]
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_OnTreeExpanding.expanding,4,2 ; @OnTreeExpanding.expanding
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TVIS_EXPANDEDONCE,4,2          ; @TVIS_EXPANDEDONCE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_IDC_WAIT,4,2                   ; @IDC_WAIT
	.comm	_WM_SETREDRAW,4,2               ; @WM_SETREDRAW
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_TVM_SORTCHILDREN,4,2           ; @TVM_SORTCHILDREN
.subsections_via_symbols
