	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TREEVIEW_ComputeItemInternalMetrics
_TREEVIEW_ComputeItemInternalMetrics:   ## @TREEVIEW_ComputeItemInternalMetrics
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TVS_LINESATROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TVS_HASLINES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	_TVS_HASBUTTONS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	%rsi, %r15
	movq	%rdi, %r14
	andl	(%rdi), %ecx
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	setle	%dl
	movslq	4(%rdi), %rax
	movslq	(%rsi), %rbx
	subq	%rdx, %rbx
	imulq	%rax, %rbx
	subq	24(%rdi), %rbx
	movq	%rbx, 40(%rsi)
	addq	%rax, %rbx
	movq	%rbx, 32(%rsi)
	movl	24(%rsi), %edi
	callq	_STATEIMAGEINDEX
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	16(%r14), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	%rbx, %rax
	movq	%rax, 8(%r15)
	addq	8(%r14), %rax
	movq	%rax, 16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVS_LINESATROOT,4,2            ## @TVS_LINESATROOT
	.comm	_TVS_HASLINES,4,2               ## @TVS_HASLINES
	.comm	_TVS_HASBUTTONS,4,2             ## @TVS_HASBUTTONS
	.no_dead_strip	_TREEVIEW_ComputeItemInternalMetrics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TREEVIEW_ComputeItemInternalMetrics
_TREEVIEW_ComputeItemInternalMetrics:   ; @TREEVIEW_ComputeItemInternalMetrics
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TVS_LINESATROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVS_LINESATROOT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TVS_HASLINES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TVS_HASLINES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh6:
	adrp	x10, _TVS_HASBUTTONS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TVS_HASBUTTONS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldp	w10, w11, [x0]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	and	w9, w9, w10
	cmp	w9, w8
	cset	w8, le
	ldrsw	x9, [x1]
	sub	x8, x9, x8
	ldr	x9, [x0, #24]
	neg	x9, x9
	madd	x8, x8, x11, x9
	add	x21, x8, x11
	stp	x21, x8, [x1, #32]
	ldr	w0, [x1, #24]
	bl	_STATEIMAGEINDEX
	cbz	x0, LBB0_2
; %bb.1:
	ldrsw	x8, [x20, #16]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
	ldr	x9, [x20, #8]
	add	x8, x8, x21
	add	x9, x9, x8
	stp	x8, x9, [x19, #8]
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TVS_LINESATROOT,4,2            ; @TVS_LINESATROOT
	.comm	_TVS_HASLINES,4,2               ; @TVS_HASLINES
	.comm	_TVS_HASBUTTONS,4,2             ; @TVS_HASBUTTONS
	.no_dead_strip	_TREEVIEW_ComputeItemInternalMetrics
.subsections_via_symbols
