	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TREEVIEW_RecalculateVisibleOrder
_TREEVIEW_RecalculateVisibleOrder:      ## @TREEVIEW_RecalculateVisibleOrder
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r15
	movl	(%rsi), %r12d
	jmp	LBB0_2
LBB0_9:
	movq	8(%r14), %rax
	movq	(%rax), %r15
	xorl	%r12d, %r12d
	testq	%r15, %r15
	je	LBB0_10
LBB0_2:
	movq	%r15, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, (%rbx)
	addl	8(%rbx), %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TREEVIEW_GetNextListItem
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ISVISIBLE
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TREEVIEW_ComputeItemInternalMetrics
	jmp	LBB0_6
LBB0_7:
	movl	%r12d, (%r14)
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_TREEVIEW_ComputeItemRect
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_TREEVIEW_GetNextListItem
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_8
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$0, (%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_TREEVIEW_RecalculateVisibleOrder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TREEVIEW_RecalculateVisibleOrder
_TREEVIEW_RecalculateVisibleOrder:      ; @TREEVIEW_RecalculateVisibleOrder
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	w22, [x1]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	cbz	x20, LBB0_12
; %bb.3:
	mov	w22, #0
LBB0_4:
	mov	x21, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w22, [x21]
	ldr	w8, [x21, #8]
	add	w22, w22, w8
	mov	x0, x19
	mov	x1, x21
	bl	_TREEVIEW_GetNextListItem
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ISVISIBLE
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_TREEVIEW_ComputeItemInternalMetrics
	b	LBB0_5
LBB0_9:
	str	w22, [x19]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_TREEVIEW_ComputeItemRect
	mov	x0, x19
	mov	x1, x20
	bl	_TREEVIEW_GetNextListItem
	mov	x20, x0
	cbnz	x0, LBB0_10
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	str	wzr, [x19]
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_TREEVIEW_RecalculateVisibleOrder
.subsections_via_symbols
