	.file	"extr_ui_shared.c_Item_Text_Paint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Item_Text_Paint
	.type	Item_Text_Paint, @function
Item_Text_Paint:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 1064
	.cfi_def_cfa_offset 1088
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 32[rdi]
	test	DWORD PTR WINDOW_WRAPPED[rip], eax
	jne	.L14
	test	DWORD PTR WINDOW_AUTOWRAPPED[rip], eax
	jne	.L15
	mov	rbx, QWORD PTR [rdi]
	test	rbx, rbx
	je	.L16
.L5:
	lea	rdx, 4[rsp]
	lea	rsi, 8[rsp]
	mov	rcx, rbx
	mov	rdi, rbp
	call	Item_SetTextExtents@PLT
	cmp	BYTE PTR [rbx], 0
	jne	.L17
.L1:
	mov	rax, QWORD PTR 1048[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 1064
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rdi]
	test	rdi, rdi
	je	.L1
	mov	rax, QWORD PTR DC[rip]
	lea	rbx, 16[rsp]
	mov	edx, 1024
	mov	rsi, rbx
	call	[QWORD PTR 8[rax]]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, 12[rsp]
	mov	rdi, rbp
	call	Item_TextColor@PLT
	mov	eax, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	xor	r9d, r9d
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 20[rbp]
	mov	r8, rbx
	push	rax
	.cfi_def_cfa_offset 1096
	mov	rax, QWORD PTR DC[rip]
	push	0
	.cfi_def_cfa_offset 1104
	mov	ecx, DWORD PTR 28[rsp]
	call	[QWORD PTR [rax]]
	pop	rax
	.cfi_def_cfa_offset 1096
	pop	rdx
	.cfi_def_cfa_offset 1088
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	call	Item_Text_Wrapped_Paint@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	call	Item_Text_AutoWrapped_Paint@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Item_Text_Paint, .-Item_Text_Paint
	.comm	WINDOW_WRAPPED,4,4
	.comm	WINDOW_AUTOWRAPPED,4,4
	.comm	DC,8,8
	.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_Text_Paint.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Item_Text_Paint
	.syntax unified
	.arm
	.fpu softvfp
	.type	Item_Text_Paint, %function
Item_Text_Paint:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L24
	ldr	r3, [r0, #24]
	ldr	r2, [r2]
	ldr	r1, .L24+4
	sub	sp, sp, #1056
	tst	r3, r2
	ldr	r1, [r1]
	str	r1, [sp, #1052]
	mov	r1,#0
	bne	.L19
	ldr	r2, .L24+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L20
	ldr	r5, [r0]
	mov	r4, r0
	cmp	r5, #0
	addne	r6, sp, #32
	beq	.L21
.L5:
	mov	r3, r5
	mov	r0, r4
	add	r2, sp, #16
	sub	r1, r6, #12
	bl	Item_SetTextExtents
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L22
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #1052]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #1056
	@ sp needed
	pop	{r4, r5, r6, pc}
.L21:
	ldr	r0, [r0, #20]
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L24+12
	add	r1, sp, #28
	ldr	r3, [r3]
	mov	r2, #1024
	ldr	r3, [r3, #4]
	mov	r5, r1
	add	r6, sp, #32
	blx	r3
	b	.L5
.L22:
	sub	r1, r6, #8
	mov	r0, r4
	bl	Item_TextColor
	mov	r3, #0
	ldr	r2, .L24+12
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	str	r5, [sp]
	str	r1, [sp, #12]
	ldr	r5, [r2]
	ldr	r3, [sp, #24]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	blx	r5
	b	.L1
.L19:
	bl	Item_Text_Wrapped_Paint
	b	.L1
.L20:
	bl	Item_Text_AutoWrapped_Paint
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	WINDOW_WRAPPED
	.word	.LC0
	.word	WINDOW_AUTOWRAPPED
	.word	DC
	.size	Item_Text_Paint, .-Item_Text_Paint
	.comm	WINDOW_WRAPPED,4,4
	.comm	WINDOW_AUTOWRAPPED,4,4
	.comm	DC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
