	.file	"extr_ui_shared.c_Item_TextField_Paint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Item_TextField_Paint
	.type	Item_TextField_Paint, @function
Item_TextField_Paint:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 1056
	.cfi_def_cfa_offset 1104
	mov	r12, QWORD PTR 72[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	call	Item_Text_Paint@PLT
	mov	rdi, QWORD PTR 64[rbx]
	mov	BYTE PTR 16[rsp], 0
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR DC[rip]
	mov	edx, 1024
	mov	rsi, r13
	call	[QWORD PTR 32[rax]]
.L2:
	mov	eax, DWORD PTR 40[rbx]
	test	DWORD PTR WINDOW_HASFOCUS[rip], eax
	je	.L3
	mov	r14, QWORD PTR 56[rbx]
	movsd	xmm0, QWORD PTR .LC0[rip]
	xor	ebp, ebp
	mov	rax, QWORD PTR [r14]
	movsd	xmm1, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 0[rbp], xmm1
	movsd	xmm1, QWORD PTR 8[rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 8[rbp], xmm1
	movsd	xmm1, QWORD PTR 16[rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 16[rbp], xmm1
	mulsd	xmm0, QWORD PTR 24[rax]
	mov	rax, QWORD PTR DC[rip]
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	DWORD PTR PULSE_DIVISOR[rip]
	movsd	QWORD PTR 24[rbp], xmm0
	mov	edi, eax
	call	sin@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [r14]
	mov	rsi, rbp
	movsd	xmm1, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	addsd	xmm0, xmm1
	call	LerpColor@PLT
.L4:
	mov	rax, QWORD PTR 48[rbx]
	xor	ebp, ebp
	test	rax, rax
	je	.L5
	mov	rbp, QWORD PTR [rax]
	mov	eax, 8
	test	rbp, rbp
	cmovne	rbp, rax
.L5:
	mov	r10, QWORD PTR DC[rip]
	mov	eax, DWORD PTR 40[rbx]
	test	DWORD PTR WINDOW_HASFOCUS[rip], eax
	je	.L6
	cmp	QWORD PTR g_editingField[rip], 0
	jne	.L23
.L6:
	mov	ecx, DWORD PTR 4[rbx]
	movsx	rax, DWORD PTR [r12]
	xor	r9d, r9d
	mov	rdi, QWORD PTR 24[rbx]
	add	rdi, QWORD PTR 32[rbx]
	push	rcx
	.cfi_def_cfa_offset 1112
	mov	ecx, DWORD PTR 4[r12]
	add	rdi, rbp
	lea	r8, 0[r13+rax]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 16[rbx]
	push	rcx
	.cfi_def_cfa_offset 1120
	mov	rcx, QWORD PTR 24[rsp]
	call	[QWORD PTR 8[r10]]
	pop	rax
	.cfi_def_cfa_offset 1112
	pop	rdx
	.cfi_def_cfa_offset 1104
.L1:
	mov	rax, QWORD PTR 1048[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 1056
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rsi, 44[rbx]
	lea	rdi, 8[rsp]
	mov	edx, 8
	call	memcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	xor	eax, eax
	call	[QWORD PTR 24[r10]]
	mov	r8d, DWORD PTR 4[rbx]
	movsx	rcx, DWORD PTR [r12]
	cmp	rax, 1
	mov	r9d, DWORD PTR [rbx]
	mov	r10d, DWORD PTR 8[rbx]
	sbb	eax, eax
	sub	rsp, 8
	.cfi_def_cfa_offset 1112
	mov	rdi, QWORD PTR 24[rbx]
	add	rdi, QWORD PTR 32[rbx]
	push	r8
	.cfi_def_cfa_offset 1120
	and	eax, 29
	mov	r8d, DWORD PTR 4[r12]
	sub	r9d, ecx
	add	eax, 95
	mov	esi, DWORD PTR 16[rbx]
	add	rdi, rbp
	mov	edx, r10d
	push	r8
	.cfi_def_cfa_offset 1128
	lea	r8, 0[r13+rcx]
	push	rax
	.cfi_def_cfa_offset 1136
	mov	rax, QWORD PTR DC[rip]
	mov	rcx, QWORD PTR 40[rsp]
	call	[QWORD PTR 16[rax]]
	add	rsp, 32
	.cfi_def_cfa_offset 1104
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Item_TextField_Paint, .-Item_TextField_Paint
	.comm	g_editingField,8,8
	.comm	WINDOW_HASFOCUS,4,4
	.comm	PULSE_DIVISOR,4,4
	.comm	DC,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	2576980378
	.long	1072273817
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ui_shared.c_Item_TextField_Paint.c"
	.text
	.global	__aeabi_dmul
	.global	__aeabi_idiv
	.global	__aeabi_dadd
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Item_TextField_Paint
	.syntax unified
	.arm
	.fpu softvfp
	.type	Item_TextField_Paint, %function
Item_TextField_Paint:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L28
	mov	r4, r0
	sub	sp, sp, #1056
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #1060]
	mov	r3,#0
	ldr	r7, [r0, #44]
	bl	Item_Text_Paint
	mov	r3, #0
	ldr	r0, [r4, #40]
	strb	r3, [sp, #36]
	cmp	r0, r3
	bne	.L23
	add	r3, sp, #36
	ldr	r5, .L28+4
	add	r9, sp, #40
	str	r3, [sp, #28]
.L2:
	ldr	fp, .L28+8
	ldr	r8, [r4, #24]
	ldr	r3, [fp]
	ldr	r6, [r5]
	ands	r8, r8, r3
	beq	.L3
	ldr	r1, [r4, #36]
	ldr	r2, .L28+12
	ldr	r9, [r1]
	ldr	r3, .L28+16
	ldmia	r9, {r0-r1}
	bl	__aeabi_dmul
	mov	r8, #0
	stm	r8, {r0-r1}
	ldr	r2, .L28+12
	add	r1, r9, #8
	ldmia	r1, {r0-r1}
	ldr	r3, .L28+16
	bl	__aeabi_dmul
	str	r0, [r8, #8]
	str	r1, [r8, #12]
	ldr	r2, .L28+12
	add	r1, r9, #16
	ldmia	r1, {r0-r1}
	ldr	r3, .L28+16
	bl	__aeabi_dmul
	str	r0, [r8, #16]
	str	r1, [r8, #20]
	ldr	r2, .L28+12
	add	r1, r9, #24
	ldmia	r1, {r0-r1}
	ldr	r3, .L28+16
	bl	__aeabi_dmul
	ldr	r3, .L28+20
	str	r0, [r8, #24]
	str	r1, [r8, #28]
	ldr	r1, [r3]
	ldr	r0, [r6]
	bl	__aeabi_idiv
	ldr	r10, [sp, #32]
	bl	sin
	mov	r2, #0
	ldr	r3, .L28+24
	bl	__aeabi_dmul
	ldr	r3, .L28+24
	mov	r2, #0
	bl	__aeabi_dadd
	mov	r2, r10
	stm	sp, {r0-r1}
	mov	r0, r9
	mov	r1, r8
	bl	LerpColor
	ldr	r3, [r4, #32]
	cmp	r3, r8
	beq	.L26
	ldr	r1, [r3]
	ldr	r2, [fp]
	ldr	r3, [r4, #24]
	cmp	r1, #0
	movne	r8, #8
	ldr	r6, [r5]
	and	r3, r3, r2
	beq	.L5
.L6:
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L28+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [r6, #12]
	blx	r3
	cmp	r0, #0
	movne	lr, #95
	moveq	lr, #124
	ldr	r3, [r4, #4]
	ldr	r2, [r7]
	str	r3, [sp, #16]
	ldr	r3, [r4]
	ldr	ip, [sp, #28]
	ldr	r0, [r4, #20]
	ldr	r6, [r7, #4]
	add	ip, ip, r2
	sub	r3, r3, r2
	ldr	r2, [r4, #16]
	ldr	r1, [r5]
	add	r0, r0, r2
	str	r3, [sp, #4]
	str	lr, [sp, #8]
	str	r6, [sp, #12]
	str	ip, [sp]
	ldr	r5, [r1, #8]
	mov	r3, r10
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	add	r0, r0, r8
	blx	r5
	b	.L1
.L23:
	ldr	r5, .L28+4
	add	r9, sp, #40
	ldr	r3, [r5]
	sub	r1, r9, #4
	mov	r2, #1024
	ldr	r3, [r3, #16]
	str	r1, [sp, #28]
	blx	r3
	b	.L2
.L3:
	mov	r2, #4
	sub	r0, r9, #8
	add	r1, r4, #28
	bl	memcpy
	ldr	r3, [r4, #32]
	cmp	r3, #0
	beq	.L7
	ldr	r8, [r3]
	ldr	r10, [sp, #32]
	cmp	r8, #0
	movne	r8, #8
.L8:
	mov	r1, #0
	ldr	r2, [r4, #4]
	ldr	ip, [sp, #28]
	str	r2, [sp, #12]
	ldr	r2, [r7, #4]
	mov	r3, r10
	stmib	sp, {r1, r2}
	ldr	r2, [r7]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #20]
	add	r2, ip, r2
	str	r2, [sp]
	add	r0, r0, r1
	ldr	r5, [r6, #4]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	add	r0, r0, r8
	blx	r5
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #1060]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #1056
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r2, [fp]
	ldr	r3, [r4, #24]
	ldr	r6, [r5]
	and	r3, r3, r2
.L5:
	mov	r8, #0
	b	.L6
.L7:
	ldr	r10, [sp, #32]
	b	.L8
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	DC
	.word	WINDOW_HASFOCUS
	.word	-1717986918
	.word	1072273817
	.word	PULSE_DIVISOR
	.word	1071644672
	.word	g_editingField
	.size	Item_TextField_Paint, .-Item_TextField_Paint
	.comm	g_editingField,4,4
	.comm	WINDOW_HASFOCUS,4,4
	.comm	PULSE_DIVISOR,4,4
	.comm	DC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
