	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_TextField_Paint           ## -- Begin function Item_TextField_Paint
	.p2align	4, 0x90
_Item_TextField_Paint:                  ## @Item_TextField_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	%r12
	pushq	%rbx
	subq	$1056, %rsp                     ## imm = 0x420
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	72(%rdi), %r15
	callq	_Item_Text_Paint
	movb	$0, -1072(%rbp)
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1072(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	*32(%rax)
LBB0_2:
	leaq	44(%rbx), %rsi
	leaq	-1080(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	48(%rbx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rax)
	setne	%r14b
	shlq	$3, %r14
LBB0_4:
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DC@GOTPCREL(%rip), %r12
	movq	(%r12), %r10
	testl	%eax, 40(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_g_editingField@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	*24(%r10)
	movq	(%r12), %r10
	addq	32(%rbx), %r14
	addq	24(%rbx), %r14
	movl	16(%rbx), %esi
	movl	8(%rbx), %edx
	movq	-1080(%rbp), %rcx
	movslq	(%r15), %rdi
	movl	(%rbx), %r9d
	movl	4(%rbx), %r11d
	subl	%edi, %r9d
	movl	4(%r15), %ebx
	subq	$8, %rsp
	testq	%rax, %rax
	leaq	-1072(%rbp,%rdi), %r8
	movl	$124, %edi
	movl	$95, %eax
	cmovel	%edi, %eax
	movq	%r14, %rdi
	pushq	%r11
	pushq	%rbx
	pushq	%rax
	callq	*16(%r10)
	addq	$32, %rsp
	jmp	LBB0_8
LBB0_7:
	addq	32(%rbx), %r14
	addq	24(%rbx), %r14
	movl	16(%rbx), %esi
	movl	4(%rbx), %eax
	movl	8(%rbx), %edx
	movq	-1080(%rbp), %rcx
	movslq	(%r15), %rdi
	leaq	(%rdi,%rbp), %r8
	addq	$-1072, %r8                     ## imm = 0xFBD0
	movl	4(%r15), %ebx
	movq	%r14, %rdi
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	*8(%r10)
	addq	$16, %rsp
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
	.comm	_PULSE_DIVISOR,4,2              ## @PULSE_DIVISOR
	.comm	_g_editingField,8,3             ## @g_editingField
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_TextField_Paint           ; -- Begin function Item_TextField_Paint
	.p2align	2
_Item_TextField_Paint:                  ; @Item_TextField_Paint
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	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, #-56]
	ldr	x20, [x0, #72]
	bl	_Item_Text_Paint
	strb	wzr, [sp, #24]
	ldr	x0, [x19, #64]
Lloh3:
	adrp	x21, _DC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DC@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8, #32]
	add	x1, sp, #24
	mov	w2, #1024
	blr	x8
LBB0_2:
	add	x1, x19, #44
	add	x0, sp, #16
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	lsl	x22, x8, #3
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
	ldr	w8, [x19, #40]
Lloh5:
	adrp	x9, _WINDOW_HASFOCUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WINDOW_HASFOCUS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh8:
	adrp	x8, _g_editingField@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_editingField@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
	ldr	x8, [x21]
	cmp	w9, #0
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x8, #8]
	ldp	x10, x9, [x19, #24]
	add	x9, x9, x22
	add	x0, x9, x10
	ldr	w1, [x19, #16]
	ldr	x3, [sp, #16]
	add	x9, sp, #24
	ldp	w10, w6, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x4, x9, x10
	ldp	w7, w2, [x19, #4]
	mov	w5, #0
	blr	x8
	b	LBB0_8
LBB0_7:
	ldr	x8, [x8, #24]
	blr	x8
	ldr	x8, [x21]
	ldr	x9, [x8, #16]
	ldp	x10, x8, [x19, #24]
	add	x8, x8, x22
	add	x8, x8, x10
	ldr	w1, [x19, #16]
	ldp	w12, w2, [x19, #4]
	add	x10, sp, #24
	ldp	w11, w7, [x20]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	add	x4, x10, x11
	ldr	w10, [x19]
	sub	w5, w10, w11
	ldr	x3, [sp, #16]
	str	w12, [sp]
	cmp	x0, #0
	mov	w10, #95
	mov	w11, #124
	csel	w6, w11, w10, eq
	mov	x0, x8
	blr	x9
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #1056
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
	.comm	_PULSE_DIVISOR,4,2              ; @PULSE_DIVISOR
	.comm	_g_editingField,8,3             ; @g_editingField
.subsections_via_symbols
