	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Text_Paint                ## -- Begin function Item_Text_Paint
	.p2align	4, 0x90
_Item_Text_Paint:                       ## @Item_Text_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	%r14
	pushq	%rbx
	subq	$1056, %rsp                     ## imm = 0x420
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	32(%rdi), %eax
	movq	_WINDOW_WRAPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_13
## %bb.2:
	movq	%rbx, %rdi
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Item_Text_Wrapped_Paint        ## TAILCALL
LBB0_3:
	movq	_WINDOW_AUTOWRAPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_13
## %bb.5:
	movq	%rbx, %rdi
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Item_Text_AutoWrapped_Paint    ## TAILCALL
LBB0_6:
	movq	(%rbx), %r14
	testq	%r14, %r14
	jne	LBB0_9
## %bb.7:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:
	leaq	-1056(%rbp), %r14
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	*8(%rax)
LBB0_9:
	leaq	-1064(%rbp), %rsi
	leaq	-1068(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_Item_SetTextExtents
	cmpb	$0, (%r14)
	je	LBB0_11
## %bb.10:
	leaq	-1060(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_Item_TextColor
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movl	20(%rbx), %edi
	movl	16(%rbx), %esi
	movl	8(%rbx), %eax
	movl	12(%rbx), %edx
	movl	-1060(%rbp), %ecx
	movq	%r14, %r8
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	*(%r10)
	addq	$16, %rsp
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_WRAPPED,4,2             ## @WINDOW_WRAPPED
	.comm	_WINDOW_AUTOWRAPPED,4,2         ## @WINDOW_AUTOWRAPPED
	.comm	_DC,8,3                         ## @DC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Text_Paint                ; -- Begin function Item_Text_Paint
	.p2align	2
_Item_Text_Paint:                       ; @Item_Text_Paint
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #1056
	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, #-40]
	ldr	w8, [x0, #32]
Lloh3:
	adrp	x9, _WINDOW_WRAPPED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINDOW_WRAPPED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.2:
	mov	x0, x19
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	b	_Item_Text_Wrapped_Paint
LBB0_3:
Lloh9:
	adrp	x9, _WINDOW_AUTOWRAPPED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINDOW_AUTOWRAPPED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.5:
	mov	x0, x19
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	b	_Item_Text_AutoWrapped_Paint
LBB0_6:
	ldr	x20, [x19]
	cbnz	x20, LBB0_9
; %bb.7:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.8:
	add	x20, sp, #24
Lloh15:
	adrp	x8, _DC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DC@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x1, sp, #24
	mov	w2, #1024
	blr	x8
LBB0_9:
	add	x1, sp, #16
	add	x2, sp, #20
	mov	x0, x19
	mov	x3, x20
	bl	_Item_SetTextExtents
	ldrb	w8, [x20]
	cbz	w8, LBB0_11
; %bb.10:
	add	x1, sp, #12
	mov	x0, x19
	bl	_Item_TextColor
Lloh18:
	adrp	x8, _DC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DC@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w1, w0, [x19, #16]
	ldr	w3, [sp, #12]
	ldp	w7, w2, [x19, #8]
	mov	x4, x20
	mov	w5, #0
	mov	w6, #0
	blr	x8
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_WRAPPED,4,2             ; @WINDOW_WRAPPED
	.comm	_WINDOW_AUTOWRAPPED,4,2         ; @WINDOW_AUTOWRAPPED
	.comm	_DC,8,3                         ; @DC
.subsections_via_symbols
