	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_SetTextExtents            ## -- Begin function Item_SetTextExtents
	.p2align	4, 0x90
_Item_SetTextExtents:                   ## @Item_SetTextExtents
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_19
LBB0_2:
	movl	32(%rbx), %eax
	movl	%eax, (%r15)
	movl	36(%rbx), %eax
	movl	%eax, (%r14)
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_ITEM_TYPE_OWNERDRAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.4:
	movq	16(%rbx), %rax
	movq	_ITEM_ALIGN_CENTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_5:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rdi
	movl	68(%rbx), %esi
	xorl	%edx, %edx
	callq	*(%rax)
	movl	%eax, %r13d
	movq	8(%rbx), %rax
	movq	_ITEM_TYPE_OWNERDRAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	16(%rbx), %rcx
	movq	_ITEM_ALIGN_CENTER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	movq	_ITEM_ALIGN_RIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
LBB0_9:
	movq	_ITEM_TYPE_EDITFIELD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	movq	16(%rbx), %rax
	movq	_ITEM_ALIGN_CENTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-304(%rbp), %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	*16(%rax)
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	68(%rbx), %esi
	leaq	-304(%rbp), %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	addl	%eax, %r13d
	jmp	LBB0_13
LBB0_8:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	24(%rbx), %edi
	movl	68(%rbx), %esi
	callq	*24(%rax)
	addl	%eax, %r13d
LBB0_13:
	movl	%r13d, -308(%rbp)               ## 4-byte Spill
	movq	_DC@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	68(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	movl	%eax, (%r15)
	movq	(%r13), %rax
	movl	68(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*8(%rax)
	movl	%eax, (%r14)
	movl	(%r15), %eax
	movl	%eax, 32(%rbx)
	movl	(%r14), %eax
	movl	%eax, 36(%rbx)
	movq	16(%rbx), %rcx
	movq	56(%rbx), %rax
	leaq	48(%rbx), %rdi
	movq	%rax, 48(%rbx)
	movl	64(%rbx), %edx
	leaq	40(%rbx), %rsi
	movl	%edx, 40(%rbx)
	movq	_ITEM_ALIGN_RIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.14:
	movl	-308(%rbp), %ecx                ## 4-byte Reload
	jmp	LBB0_17
LBB0_15:
	movq	_ITEM_ALIGN_CENTER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	-308(%rbp), %edx                ## 4-byte Reload
	jne	LBB0_18
## %bb.16:
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
LBB0_17:
	movslq	%ecx, %rcx
	subq	%rcx, %rax
	movq	%rax, (%rdi)
LBB0_18:
	addq	$24, %rbx
	movq	%rbx, %rdx
	callq	_ToWindowCoords
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ITEM_TYPE_OWNERDRAW,8,3        ## @ITEM_TYPE_OWNERDRAW
	.comm	_ITEM_ALIGN_CENTER,8,3          ## @ITEM_ALIGN_CENTER
	.comm	_DC,8,3                         ## @DC
	.comm	_ITEM_ALIGN_RIGHT,8,3           ## @ITEM_ALIGN_RIGHT
	.comm	_ITEM_TYPE_EDITFIELD,8,3        ## @ITEM_TYPE_EDITFIELD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_SetTextExtents            ; -- Begin function Item_SetTextExtents
	.p2align	2
_Item_SetTextExtents:                   ; @Item_SetTextExtents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbnz	x3, LBB0_2
; %bb.1:
	ldr	x22, [x19]
	cbz	x22, LBB0_17
LBB0_2:
	ldr	w8, [x19, #32]
	str	w8, [x21]
	ldr	w8, [x19, #36]
	str	w8, [x20]
	ldr	w8, [x21]
Lloh3:
	adrp	x24, _ITEM_TYPE_OWNERDRAW@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ITEM_TYPE_OWNERDRAW@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.4:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _ITEM_ALIGN_CENTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ITEM_ALIGN_CENTER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_5:
Lloh8:
	adrp	x25, _DC@GOTPAGE
Lloh9:
	ldr	x25, [x25, _DC@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	x0, [x19]
	ldr	w1, [x19, #68]
	mov	w2, #0
	blr	x8
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
Lloh10:
	adrp	x24, _ITEM_ALIGN_RIGHT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ITEM_ALIGN_RIGHT@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x19, #16]
Lloh12:
	adrp	x10, _ITEM_ALIGN_CENTER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ITEM_ALIGN_CENTER@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x11, [x24]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x25]
	ldr	x8, [x8, #24]
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #68]
	blr	x8
	add	w23, w23, w0
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x9, _ITEM_TYPE_EDITFIELD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ITEM_TYPE_EDITFIELD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	ldr	x8, [x19, #16]
Lloh18:
	adrp	x9, _ITEM_ALIGN_CENTER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ITEM_ALIGN_CENTER@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x25]
	ldr	x8, [x8, #16]
	add	x1, sp, #8
	mov	w2, #256
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w1, [x19, #68]
	add	x0, sp, #8
	mov	w2, #0
	blr	x8
	add	w23, w0, w23
LBB0_12:
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w1, [x19, #68]
	mov	x0, x22
	mov	w2, #0
	blr	x8
	str	w0, [x21]
	ldr	x8, [x25]
	ldr	x8, [x8, #8]
	ldr	w1, [x19, #68]
	mov	x0, x22
	mov	w2, #0
	blr	x8
	str	w0, [x20]
	ldr	w8, [x21]
	str	w8, [x19, #32]
	ldr	w8, [x20]
	ldr	w9, [x19, #64]
	mov	x1, x19
	str	w9, [x1, #40]!
	stur	w8, [x1, #-4]
	ldr	x8, [x1, #16]
	mov	x0, x1
	str	x8, [x0, #8]!
	ldur	x9, [x1, #-24]
	ldr	x10, [x24]
	cmp	x9, x10
	b.eq	LBB0_15
; %bb.13:
Lloh21:
	adrp	x10, _ITEM_ALIGN_CENTER@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ITEM_ALIGN_CENTER@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.14:
	cmp	w23, #0
	cinc	w9, w23, lt
	asr	w23, w9, #1
LBB0_15:
	sub	x8, x8, w23, sxtw
	str	x8, [x0]
LBB0_16:
	add	x2, x19, #24
	bl	_ToWindowCoords
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ITEM_TYPE_OWNERDRAW,8,3        ; @ITEM_TYPE_OWNERDRAW
	.comm	_ITEM_ALIGN_CENTER,8,3          ; @ITEM_ALIGN_CENTER
	.comm	_DC,8,3                         ; @DC
	.comm	_ITEM_ALIGN_RIGHT,8,3           ; @ITEM_ALIGN_RIGHT
	.comm	_ITEM_TYPE_EDITFIELD,8,3        ; @ITEM_TYPE_EDITFIELD
.subsections_via_symbols
