	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateTreeView                 ## -- Begin function CreateTreeView
	.p2align	4, 0x90
_CreateTreeView:                        ## @CreateTreeView
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-40(%rbp), %rsi
	callq	_GetClientRect
	movq	_WS_VISIBLE@GOTPCREL(%rip), %rax
	movq	_WS_CHILD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WS_TABSTOP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_TVS_HASLINES@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WS_EX_CLIENTEDGE@GOTPCREL(%rip), %rax
	movq	_TVS_HASBUTTONS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rax), %edi
	movq	_TVS_LINESATROOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WC_TREEVIEW@GOTPCREL(%rip), %rax
	movq	_TVS_EDITLABELS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rax), %esi
	movq	_TVS_SHOWSELALWAYS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %r10d
	movq	_hInst@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	%r15
	pushq	%r12
	pushq	%rax
	pushq	%r10
	callq	_CreateWindowExW
	addq	$48, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_InitTreeViewImageLists
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_InitTreeViewItems
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_DestroyWindow
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_EX_CLIENTEDGE,4,2           ## @WS_EX_CLIENTEDGE
	.comm	_WC_TREEVIEW,4,2                ## @WC_TREEVIEW
	.comm	_WS_VISIBLE,4,2                 ## @WS_VISIBLE
	.comm	_WS_CHILD,4,2                   ## @WS_CHILD
	.comm	_WS_TABSTOP,4,2                 ## @WS_TABSTOP
	.comm	_TVS_HASLINES,4,2               ## @TVS_HASLINES
	.comm	_TVS_HASBUTTONS,4,2             ## @TVS_HASBUTTONS
	.comm	_TVS_LINESATROOT,4,2            ## @TVS_LINESATROOT
	.comm	_TVS_EDITLABELS,4,2             ## @TVS_EDITLABELS
	.comm	_TVS_SHOWSELALWAYS,4,2          ## @TVS_SHOWSELALWAYS
	.comm	_hInst,4,2                      ## @hInst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateTreeView                 ; -- Begin function CreateTreeView
	.p2align	2
_CreateTreeView:                        ; @CreateTreeView
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x1, sp, #24
	bl	_GetClientRect
Lloh0:
	adrp	x8, _WS_EX_CLIENTEDGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WS_EX_CLIENTEDGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _WC_TREEVIEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WC_TREEVIEW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _WS_VISIBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WS_VISIBLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _WS_CHILD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WS_CHILD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _WS_TABSTOP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WS_TABSTOP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _TVS_HASLINES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TVS_HASLINES@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _TVS_HASBUTTONS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TVS_HASBUTTONS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _TVS_LINESATROOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TVS_LINESATROOT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _TVS_EDITLABELS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _TVS_EDITLABELS@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _TVS_SHOWSELALWAYS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TVS_SHOWSELALWAYS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldp	w7, w6, [sp, #24]
Lloh30:
	adrp	x8, _hInst@GOTPAGE
Lloh31:
	ldr	x8, [x8, _hInst@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	xzr, [sp, #16]
	stp	w20, w8, [sp, #8]
	str	x21, [sp]
	mov	x2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_CreateWindowExW
	mov	x20, x0
	bl	_InitTreeViewImageLists
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_InitTreeViewItems
	cbnz	w0, LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_DestroyWindow
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_EX_CLIENTEDGE,4,2           ; @WS_EX_CLIENTEDGE
	.comm	_WC_TREEVIEW,4,2                ; @WC_TREEVIEW
	.comm	_WS_VISIBLE,4,2                 ; @WS_VISIBLE
	.comm	_WS_CHILD,4,2                   ; @WS_CHILD
	.comm	_WS_TABSTOP,4,2                 ; @WS_TABSTOP
	.comm	_TVS_HASLINES,4,2               ; @TVS_HASLINES
	.comm	_TVS_HASBUTTONS,4,2             ; @TVS_HASBUTTONS
	.comm	_TVS_LINESATROOT,4,2            ; @TVS_LINESATROOT
	.comm	_TVS_EDITLABELS,4,2             ; @TVS_EDITLABELS
	.comm	_TVS_SHOWSELALWAYS,4,2          ; @TVS_SHOWSELALWAYS
	.comm	_hInst,4,2                      ; @hInst
.subsections_via_symbols
