	.file	"extr_ui_shared.c_Item_OwnerDraw_Paint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Item_OwnerDraw_Paint
	.type	Item_OwnerDraw_Paint, @function
Item_OwnerDraw_Paint:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rax, QWORD PTR DC[rip]
	cmp	QWORD PTR 16[rax], 0
	je	.L1
	mov	rax, QWORD PTR 24[rdi]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rbx, rdi
	lea	rcx, 72[rdi]
	mov	rbp, QWORD PTR 136[rdi]
	mov	r9d, DWORD PTR qtrue[rip]
	lea	rdi, 16[rdi]
	lea	rsi, 24[rax]
	mov	eax, DWORD PTR 12[rbp]
	mov	r8d, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR 20[rbp]
	push	rax
	.cfi_def_cfa_offset 64
	call	Fade@PLT
	lea	r12, 16[rsp]
	mov	edx, 8
	lea	rsi, 24[rbx]
	mov	rdi, r12
	call	memcpy@PLT
	cmp	QWORD PTR [rbx], 0
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	jle	.L7
	mov	rax, QWORD PTR DC[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR 40[rbx]
	call	rax
	mov	rdx, QWORD PTR [rbx]
	test	rdx, rdx
	jle	.L7
	mov	rsi, QWORD PTR 128[rbx]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L8:
	comiss	xmm0, DWORD PTR [rsi]
	jb	.L4
	movss	xmm1, DWORD PTR 4[rsi]
	comiss	xmm1, xmm0
	jnb	.L30
.L4:
	add	rax, 1
	add	rsi, 16
	cmp	rdx, rax
	jne	.L8
.L7:
	mov	eax, DWORD PTR 16[rbx]
	test	DWORD PTR WINDOW_HASFOCUS[rip], eax
	jne	.L31
	mov	eax, DWORD PTR ITEM_TEXTSTYLE_BLINK[rip]
	cmp	DWORD PTR 12[rbx], eax
	je	.L32
.L10:
	mov	esi, DWORD PTR CVAR_ENABLE[rip]
	mov	eax, DWORD PTR CVAR_DISABLE[rip]
	or	eax, esi
	test	DWORD PTR 8[rbx], eax
	jne	.L33
.L12:
	cmp	QWORD PTR 120[rbx], 0
	je	.L14
	mov	rdi, rbx
	call	Item_Text_Paint@PLT
	mov	rax, QWORD PTR 120[rbx]
	mov	ecx, DWORD PTR 48[rbx]
	mov	edx, DWORD PTR 52[rbx]
	mov	esi, DWORD PTR 56[rbx]
	cmp	QWORD PTR [rax], 0
	mov	rdi, QWORD PTR 104[rbx]
	jne	.L34
	add	rdi, QWORD PTR 112[rbx]
.L28:
	mov	eax, DWORD PTR 12[rbx]
	xor	r8d, r8d
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR 32[rbx]
	push	rax
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 80[rbx]
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 72
	push	rax
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 84[rbx]
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 88[rbx]
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 36[rbx]
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 40[rbx]
	push	rax
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR DC[rip]
	mov	r9d, DWORD PTR 92[rbx]
	call	[QWORD PTR 16[rax]]
	add	rsp, 64
	.cfi_def_cfa_offset 48
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rbx]
	mov	ecx, DWORD PTR 48[rbx]
	mov	edx, DWORD PTR 52[rbx]
	mov	esi, DWORD PTR 56[rbx]
	mov	rdi, QWORD PTR 64[rbx]
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR 32[rbx]
	push	rax
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 80[rbx]
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 72
	push	rax
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 84[rbx]
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 88[rbx]
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 36[rbx]
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 40[rbx]
	push	rax
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR DC[rip]
	mov	r9d, DWORD PTR 92[rbx]
	mov	r8d, DWORD PTR 96[rbx]
	call	[QWORD PTR 16[rax]]
	add	rsp, 64
	.cfi_def_cfa_offset 48
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	add	rdi, QWORD PTR 112[rbx]
	add	rdi, 8
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR DC[rip]
	mov	edi, DWORD PTR 8[rax]
	mov	eax, edi
	cdq
	idiv	DWORD PTR BLINK_DIVISOR[rip]
	test	al, 1
	jne	.L10
	mov	rax, QWORD PTR 24[rbx]
	movsd	xmm0, QWORD PTR .LC0[rip]
	xor	r12d, r12d
	movsd	xmm1, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR [r12], xmm1
	movsd	xmm1, QWORD PTR 8[rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 8[r12], xmm1
	movsd	xmm1, QWORD PTR 16[rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 16[r12], xmm1
	mulsd	xmm0, QWORD PTR 24[rax]
	mov	eax, edi
	cdq
	idiv	DWORD PTR PULSE_DIVISOR[rip]
	movsd	QWORD PTR 24[r12], xmm0
	mov	edi, eax
	call	sin@PLT
	mov	rdi, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r12
	movsd	xmm1, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	addsd	xmm0, xmm1
	call	LerpColor@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, rbx
	call	Item_EnableShowViaCvar@PLT
	test	eax, eax
	jne	.L12
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rsp]
	mov	edx, 8
	call	Com_Memcpy@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rax, QWORD PTR 0[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	xor	r12d, r12d
	movsd	xmm1, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR [r12], xmm1
	movsd	xmm1, QWORD PTR 8[rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 8[r12], xmm1
	movsd	xmm1, QWORD PTR 16[rax]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 16[r12], xmm1
	mulsd	xmm0, QWORD PTR 24[rax]
	mov	rax, QWORD PTR DC[rip]
	mov	eax, DWORD PTR 8[rax]
	cdq
	idiv	DWORD PTR PULSE_DIVISOR[rip]
	movsd	QWORD PTR 24[r12], xmm0
	mov	edi, eax
	call	sin@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r12
	movsd	xmm1, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	addsd	xmm0, xmm1
	call	LerpColor@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	add	rsi, 8
	mov	edx, 8
	mov	rdi, r12
	call	memcpy@PLT
	jmp	.L7
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Item_OwnerDraw_Paint, .-Item_OwnerDraw_Paint
	.comm	qtrue,4,4
	.comm	WINDOW_HASFOCUS,4,4
	.comm	PULSE_DIVISOR,4,4
	.comm	ITEM_TEXTSTYLE_BLINK,4,4
	.comm	DC,8,8
	.comm	CVAR_ENABLE,4,4
	.comm	CVAR_DISABLE,4,4
	.comm	BLINK_DIVISOR,4,4
	.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_OwnerDraw_Paint.c"
	.text
	.global	__aeabi_fcmple
	.global	__aeabi_fcmpge
	.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_OwnerDraw_Paint
	.syntax unified
	.arm
	.fpu softvfp
	.type	Item_OwnerDraw_Paint, %function
Item_OwnerDraw_Paint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L38
	sub	sp, sp, #48
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L1
	ldr	r8, .L38+4
	ldr	r3, [r8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L1
	ldr	r10, [r4, #88]
	ldr	r3, .L38+8
	ldr	r1, [r10, #8]
	ldr	r3, [r3]
	ldr	r2, [r10, #16]
	str	r1, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [r10, #12]
	ldr	r1, [r4, #16]
	add	r0, r4, #12
	str	r3, [sp]
	add	r1, r1, #24
	add	r3, r4, #48
	bl	Fade
	mov	r2, #4
	add	r0, sp, #40
	add	r1, r4, #16
	bl	memcpy
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L4
	ldr	r3, [r8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [r4, #28]
	blx	r3
	ldr	r9, [r4]
	mov	r7, r0
	cmp	r9, #0
	ble	.L4
	mov	r6, #0
	ldr	r5, [r4, #84]
.L9:
	mov	r1, r7
	ldr	r0, [r5]	@ float
	bl	__aeabi_fcmple
	cmp	r0, #0
	beq	.L6
	mov	r1, r7
	ldr	r0, [r5, #4]	@ float
	bl	__aeabi_fcmpge
	cmp	r0, #0
	bne	.L33
.L6:
	add	r6, r6, #1
	cmp	r6, r9
	add	r5, r5, #12
	bne	.L9
.L4:
	ldr	r3, .L38+12
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	ldr	r5, [sp, #40]
	tst	r2, r3
	bne	.L34
	ldr	r3, .L38+16
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L35
.L11:
	ldr	r2, .L38+20
	ldr	r3, .L38+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	orr	r3, r1, r3
	tst	r3, r2
	bne	.L36
.L13:
	ldr	r3, [r4, #80]
	cmp	r3, #0
	beq	.L15
	mov	r0, r4
	bl	Item_Text_Paint
	ldr	r3, [r4, #80]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	mov	r1, #0
	ldr	r0, [r4, #8]
	ldr	r2, [r4, #20]
	str	r5, [sp, #28]
	ldr	ip, [r4, #52]
	str	r1, [sp]
	ldr	r1, [r4, #56]
	str	r0, [sp, #36]
	ldr	r0, [r4, #60]
	str	r2, [sp, #32]
	ldr	r2, [r4, #24]
	str	ip, [sp, #24]
	ldr	ip, [r4, #28]
	str	r1, [sp, #20]
	ldr	r1, [r4, #64]
	str	r0, [sp, #16]
	ldr	r0, [r4, #76]
	str	r2, [sp, #12]
	ldr	r2, [r4, #72]
	stmib	sp, {r1, ip}
	ldr	r3, [r8]
	add	r0, r0, r2
	ldr	r5, [r3, #8]
	ldr	r2, [r4, #36]
	ldr	r3, [r4, #32]
	ldr	r1, [r4, #40]
	add	r0, r0, #8
	blx	r5
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r2, [r4, #8]
	ldr	ip, [r4, #20]
	ldr	r0, [r4, #52]
	str	r5, [sp, #28]
	ldr	r1, [r4, #56]
	str	r2, [sp, #36]
	ldr	r2, [r4, #60]
	str	ip, [sp, #32]
	ldr	ip, [r4, #24]
	str	r0, [sp, #24]
	ldr	r0, [r4, #28]
	str	r1, [sp, #20]
	ldr	r1, [r4, #64]
	str	r2, [sp, #16]
	ldr	r2, [r4, #68]
	ldr	r3, [r8]
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	ldr	r5, [r3, #8]
	ldr	r2, [r4, #36]
	ldr	r3, [r4, #32]
	ldr	r1, [r4, #40]
	ldr	r0, [r4, #44]
	blx	r5
	b	.L1
.L16:
	ldr	r0, [r4, #8]
	ldr	lr, [r4, #20]
	str	r5, [sp, #28]
	ldr	ip, [r4, #52]
	str	r3, [sp]
	ldr	r1, [r4, #56]
	str	r0, [sp, #36]
	ldr	r0, [r4, #60]
	str	lr, [sp, #32]
	ldr	r3, [r4, #24]
	str	ip, [sp, #24]
	ldr	ip, [r4, #28]
	str	r1, [sp, #20]
	ldr	r1, [r4, #64]
	str	r0, [sp, #16]
	ldr	r0, [r4, #76]
	str	r3, [sp, #12]
	ldr	r3, [r4, #72]
	stmib	sp, {r1, ip}
	ldr	r2, [r8]
	ldr	r1, [r4, #40]
	ldr	r5, [r2, #8]
	add	r0, r0, r3
	ldr	r2, [r4, #36]
	ldr	r3, [r4, #32]
	blx	r5
	b	.L1
.L35:
	ldr	r2, [r8]
	ldr	r3, .L38+28
	ldr	r7, [r2, #4]
	ldr	r1, [r3]
	mov	r0, r7
	bl	__aeabi_idiv
	tst	r0, #1
	bne	.L11
	ldr	r9, [r4, #16]
	ldr	r2, .L38+32
	ldmia	r9, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	mov	r6, #0
	stm	r6, {r0-r1}
	ldr	r2, .L38+32
	add	r1, r9, #8
	ldmia	r1, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	str	r0, [r6, #8]
	str	r1, [r6, #12]
	ldr	r2, .L38+32
	add	r1, r9, #16
	ldmia	r1, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	str	r0, [r6, #16]
	str	r1, [r6, #20]
	ldr	r2, .L38+32
	add	r1, r9, #24
	ldmia	r1, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	ldr	r3, .L38+40
	str	r0, [r6, #24]
	str	r1, [r6, #28]
	ldr	r1, [r3]
	mov	r0, r7
	bl	__aeabi_idiv
	bl	sin
	mov	r2, #0
	ldr	r3, .L38+44
	bl	__aeabi_dmul
	mov	r2, #0
	ldr	r3, .L38+44
	bl	__aeabi_dadd
	mov	r2, r5
	stm	sp, {r0-r1}
	mov	r1, r6
	mov	r0, r9
	bl	LerpColor
	b	.L11
.L36:
	mov	r0, r4
	bl	Item_EnableShowViaCvar
	cmp	r0, #0
	bne	.L13
	mov	r2, #4
	mov	r0, r5
	ldr	r1, [r10, #4]
	bl	Com_Memcpy
	b	.L13
.L34:
	ldr	r7, [r10]
	ldr	r2, .L38+32
	ldmia	r7, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	mov	r6, #0
	stm	r6, {r0-r1}
	ldr	r2, .L38+32
	add	r1, r7, #8
	ldmia	r1, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	str	r0, [r6, #8]
	str	r1, [r6, #12]
	ldr	r2, .L38+32
	add	r1, r7, #16
	ldmia	r1, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	str	r0, [r6, #16]
	str	r1, [r6, #20]
	ldr	r2, .L38+32
	add	r1, r7, #24
	ldmia	r1, {r0-r1}
	ldr	r3, .L38+36
	bl	__aeabi_dmul
	ldr	r2, [r8]
	ldr	r3, .L38+40
	str	r0, [r6, #24]
	str	r1, [r6, #28]
	ldr	r0, [r2, #4]
	ldr	r1, [r3]
	bl	__aeabi_idiv
	bl	sin
	mov	r2, #0
	ldr	r3, .L38+44
	bl	__aeabi_dmul
	mov	r2, #0
	ldr	r3, .L38+44
	bl	__aeabi_dadd
	mov	r2, r5
	stm	sp, {r0-r1}
	mov	r1, r6
	mov	r0, r7
	bl	LerpColor
	b	.L11
.L33:
	mov	r2, #4
	add	r1, r5, #8
	add	r0, sp, #40
	bl	memcpy
	b	.L4
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC0
	.word	DC
	.word	qtrue
	.word	WINDOW_HASFOCUS
	.word	ITEM_TEXTSTYLE_BLINK
	.word	CVAR_ENABLE
	.word	CVAR_DISABLE
	.word	BLINK_DIVISOR
	.word	-1717986918
	.word	1072273817
	.word	PULSE_DIVISOR
	.word	1071644672
	.size	Item_OwnerDraw_Paint, .-Item_OwnerDraw_Paint
	.comm	qtrue,4,4
	.comm	WINDOW_HASFOCUS,4,4
	.comm	PULSE_DIVISOR,4,4
	.comm	ITEM_TEXTSTYLE_BLINK,4,4
	.comm	DC,4,4
	.comm	CVAR_ENABLE,4,4
	.comm	CVAR_DISABLE,4,4
	.comm	BLINK_DIVISOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
