	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Text_AutoWrapped_Paint    ## -- Begin function Item_Text_AutoWrapped_Paint
	.p2align	4, 0x90
_Item_Text_AutoWrapped_Paint:           ## @Item_Text_AutoWrapped_Paint
	.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	$2136, %rsp                     ## imm = 0x858
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	movq	%rdi, -2104(%rbp)               ## 8-byte Spill
	je	LBB0_1
## %bb.3:
	cmpb	$0, (%rbx)
	jne	LBB0_4
	jmp	LBB0_25
LBB0_1:
	movq	64(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.2:
	leaq	-1072(%rbp), %rbx
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	*16(%rax)
	movq	-2104(%rbp), %rdi               ## 8-byte Reload
	cmpb	$0, (%rbx)
	je	LBB0_25
LBB0_4:
	leaq	-2112(%rbp), %rsi
	callq	_Item_TextColor
	leaq	-2156(%rbp), %rsi
	leaq	-2116(%rbp), %rdx
	movq	-2104(%rbp), %rdi               ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_Item_SetTextExtents
	movq	-2104(%rbp), %rdx               ## 8-byte Reload
	movss	8(%rdx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -2108(%rbp)              ## 4-byte Spill
	movb	$0, -2096(%rbp)
	leaq	40(%rdx), %rax
	movq	%rax, -2128(%rbp)               ## 8-byte Spill
	leaq	32(%rdx), %rax
	movq	%rax, -2152(%rbp)               ## 8-byte Spill
	leaq	48(%rdx), %rax
	movq	%rax, -2144(%rbp)               ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -2136(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%r12), %eax
	cmpq	$32, %rax
	ja	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movabsq	$4294968833, %rcx               ## imm = 0x100000601
	btq	%rax, %rcx
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%rbx,%r12), %rax
	incq	%rax
	movq	%rax, -2136(%rbp)               ## 8-byte Spill
	movl	%r12d, %r15d
	movl	%r13d, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	28(%rdx), %esi
	leaq	-2096(%rbp), %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	-2104(%rbp), %rdx               ## 8-byte Reload
	movl	%eax, %r13d
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	48(%rdx), %r13d
	jg	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movzbl	(%rbx,%r12), %eax
	cmpb	$10, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	testb	%al, %al
	je	LBB0_13
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=2
	movb	%al, -2096(%rbp,%r12)
	movb	$0, -2095(%rbp,%r12)
	incq	%r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rdx), %rax
	movq	_ITEM_ALIGN_LEFT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rdx), %rax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ITEM_ALIGN_RIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rdx), %rax
	movslq	%r14d, %rcx
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ITEM_ALIGN_CENTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-2128(%rbp), %rdi               ## 8-byte Reload
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rdx), %rax
	movl	%r14d, %ecx
	shrl	$31, %ecx
	addl	%r14d, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	subq	%rcx, %rax
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-2128(%rbp), %rdi               ## 8-byte Reload
	movq	%rax, (%rdi)
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movss	-2108(%rbp), %xmm0              ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 32(%rdx)
	movq	-2152(%rbp), %rsi               ## 8-byte Reload
	movq	-2144(%rbp), %rdx               ## 8-byte Reload
	callq	_ToWindowCoords
	movslq	%r15d, %rax
	movb	$0, -2096(%rbp,%rax)
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-2104(%rbp), %rcx               ## 8-byte Reload
	movq	40(%rcx), %rdi
	movq	-2104(%rbp), %rcx               ## 8-byte Reload
	movss	32(%rcx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	-2104(%rbp), %rcx               ## 8-byte Reload
	movl	24(%rcx), %ecx
	movq	-2104(%rbp), %rdx               ## 8-byte Reload
	movl	28(%rdx), %esi
	movl	-2112(%rbp), %edx
	movl	%ecx, (%rsp)
	leaq	-2096(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*8(%rax)
	movq	-2104(%rbp), %rdx               ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, (%rbx,%r12)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-2116(%rbp), %eax
	addl	$5, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-2108(%rbp), %xmm1              ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -2108(%rbp)              ## 4-byte Spill
	movq	-2136(%rbp), %rax               ## 8-byte Reload
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.26:
	addq	$2136, %rsp                     ## imm = 0x858
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_ITEM_ALIGN_LEFT,8,3            ## @ITEM_ALIGN_LEFT
	.comm	_ITEM_ALIGN_RIGHT,8,3           ## @ITEM_ALIGN_RIGHT
	.comm	_ITEM_ALIGN_CENTER,8,3          ## @ITEM_ALIGN_CENTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Text_AutoWrapped_Paint    ; -- Begin function Item_Text_AutoWrapped_Paint
	.p2align	2
_Item_Text_AutoWrapped_Paint:           ; @Item_Text_AutoWrapped_Paint
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #2112
	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, #-112]
	ldr	x20, [x0]
	cbz	x20, LBB0_2
; %bb.1:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_4
	b	LBB0_21
LBB0_2:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_21
; %bb.3:
	add	x20, sp, #1072
Lloh3:
	adrp	x8, _DC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	add	x1, sp, #1072
	mov	w2, #1024
	blr	x8
	ldrb	w8, [x20]
	cbz	w8, LBB0_21
LBB0_4:
	add	x1, sp, #36
	mov	x0, x19
	bl	_Item_TextColor
	add	x1, sp, #44
	add	x2, sp, #40
	mov	x0, x19
	mov	x3, x20
	bl	_Item_SetTextExtents
	mov	w24, #0
	mov	x25, #0
	ldr	s8, [x19, #8]
	strb	wzr, [sp, #48]
	add	x9, x19, #40
	add	x8, x19, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x8, x19, #48
	stp	x9, x8, [sp, #8]                ; 16-byte Folded Spill
	mov	x27, #1537
	movk	x27, #1, lsl #32
Lloh6:
	adrp	x28, _DC@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DC@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x23, #0
	mov	w22, #0
	mov	w21, #0
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20, x23]
	cmp	w8, #32
	mov	w9, #1
	lsl	x8, x9, x8
	and	x8, x8, x27
	ccmp	x8, #0, #4, ls
	add	x8, x20, x23
	csel	w26, w23, w23, ne
	csinc	x25, x25, x8, eq
	csel	w21, w23, w21, ne
	csel	w22, w24, w22, ne
	ldr	x8, [x28]
	ldr	x8, [x8]
	ldr	w1, [x19, #28]
	add	x0, sp, #48
	mov	w2, #0
	blr	x8
	mov	x24, x0
	cbz	w21, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x19, #48]
	cmp	w24, w8
	b.gt	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldrb	w8, [x20, x23]
	cmp	w8, #10
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x9, sp, #48
	add	x9, x9, x23
	add	x23, x23, #1
	strb	w8, [x9]
	strb	wzr, [x9, #1]
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w26, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _ITEM_ALIGN_LEFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ITEM_ALIGN_LEFT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #56]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x9, _ITEM_ALIGN_RIGHT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ITEM_ALIGN_RIGHT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #56]
	sub	x8, x8, w22, sxtw
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x9, _ITEM_ALIGN_CENTER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ITEM_ALIGN_CENTER@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #56]
	cmp	w22, #0
	cinc	w9, w22, lt
	asr	w9, w9, #1
	sub	x8, x8, w9, sxtw
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x0]
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	str	s8, [x19, #32]
	ldp	x2, x1, [sp, #16]               ; 16-byte Folded Reload
	bl	_ToWindowCoords
	add	x8, sp, #48
	strb	wzr, [x8, w21, sxtw]
	ldr	x8, [x28]
	ldr	x8, [x8, #8]
	ldr	x0, [x19, #40]
	ldr	s0, [x19, #32]
	ldr	w2, [sp, #36]
	ldp	w6, w1, [x19, #24]
	add	x3, sp, #48
	mov	w4, #0
	mov	w5, #0
	blr	x8
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20, x23]
	cbz	w8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #40]
	add	w8, w8, #5
	scvtf	s0, w8
	fadd	s8, s8, s0
	mov	x20, x25
	cbnz	x25, LBB0_5
LBB0_21:
	ldur	x8, [x29, #-112]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	add	sp, sp, #2112
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_ITEM_ALIGN_LEFT,8,3            ; @ITEM_ALIGN_LEFT
	.comm	_ITEM_ALIGN_RIGHT,8,3           ; @ITEM_ALIGN_RIGHT
	.comm	_ITEM_ALIGN_CENTER,8,3          ; @ITEM_ALIGN_CENTER
.subsections_via_symbols
