	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TREEVIEW_NaturalHeight
_TREEVIEW_NaturalHeight:                ## @TREEVIEW_NaturalHeight
	.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	%rdi, %r14
	xorl	%edi, %edi
	callq	_GetDC
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_SelectObject
	movl	%eax, %r15d
	leaq	-32(%rbp), %rsi
	movl	%ebx, %edi
	callq	_GetTextMetricsW
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_SelectObject
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_ReleaseDC
	movl	-28(%rbp), %ecx
	addl	-32(%rbp), %ecx
	movq	_TVHEIGHT_MIN@GOTPCREL(%rip), %rax
	movq	_TVHEIGHT_FONT_ADJUST@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	(%r14), %eax
	cmpl	%eax, %ecx
	cmovlel	%eax, %ecx
	movq	_TVS_NONEVENHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	4(%r14), %edx
	movl	%ecx, %eax
	andl	$-2, %eax
	testl	%edx, %edx
	cmovnel	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVHEIGHT_MIN,4,2               ## @TVHEIGHT_MIN
	.comm	_TVHEIGHT_FONT_ADJUST,4,2       ## @TVHEIGHT_FONT_ADJUST
	.comm	_TVS_NONEVENHEIGHT,4,2          ## @TVS_NONEVENHEIGHT
	.no_dead_strip	_TREEVIEW_NaturalHeight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TREEVIEW_NaturalHeight
_TREEVIEW_NaturalHeight:                ; @TREEVIEW_NaturalHeight
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w0, #0
	bl	_GetDC
	mov	x20, x0
	ldr	w1, [x19, #8]
	bl	_SelectObject
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_GetTextMetricsW
	mov	x0, x20
	mov	x1, x21
	bl	_SelectObject
	mov	w0, #0
	mov	x1, x20
	bl	_ReleaseDC
Lloh0:
	adrp	x8, _TVHEIGHT_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVHEIGHT_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [sp, #8]
Lloh3:
	adrp	x11, _TVHEIGHT_FONT_ADJUST@GOTPAGE
Lloh4:
	ldr	x11, [x11, _TVHEIGHT_FONT_ADJUST@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	add	w9, w10, w9
	add	w9, w9, w11
	cmp	w8, w9
	csel	w8, w8, w9, gt
	ldp	w9, w10, [x19]
Lloh6:
	adrp	x11, _TVS_NONEVENHEIGHT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TVS_NONEVENHEIGHT@GOTPAGEOFF]
	cmp	w8, w9
	csel	w8, w8, w9, gt
Lloh8:
	ldr	w9, [x11]
	and	w11, w8, #0xfffffffe
	tst	w9, w10
	csel	w0, w11, w8, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TVHEIGHT_MIN,4,2               ; @TVHEIGHT_MIN
	.comm	_TVHEIGHT_FONT_ADJUST,4,2       ; @TVHEIGHT_FONT_ADJUST
	.comm	_TVS_NONEVENHEIGHT,4,2          ; @TVS_NONEVENHEIGHT
	.no_dead_strip	_TREEVIEW_NaturalHeight
.subsections_via_symbols
