	.file	"extr_cg_drawtools.c_UI_DrawBannerString2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	UI_DrawBannerString2, @function
UI_DrawBannerString2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	mov	rdi, rcx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	call	trap_R_SetColor@PLT
	mov	esi, DWORD PTR cgs[rip]
	movzx	eax, BYTE PTR [rbx]
	imul	ebp, esi
	add	ebp, DWORD PTR cgs[rip+4]
	imul	esi, r12d
	test	al, al
	je	.L2
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	movss	xmm8, DWORD PTR .LC0[rip]
	cvtsi2ss	xmm0, ebp
	cvtsi2ss	xmm1, esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	sub	eax, 65
	cmp	al, 25
	jbe	.L12
.L4:
	movzx	eax, BYTE PTR 1[rbx]
	add	rbx, 1
	test	al, al
	je	.L2
.L5:
	and	eax, 127
	cmp	al, 32
	jne	.L3
	pxor	xmm2, xmm2
	pxor	xmm3, xmm3
	movzx	eax, BYTE PTR 1[rbx]
	add	rbx, 1
	cvtsi2ss	xmm3, QWORD PTR PROPB_GAP_WIDTH[rip]
	cvtsi2ss	xmm2, QWORD PTR PROPB_SPACE_WIDTH[rip]
	addss	xmm2, xmm3
	pxor	xmm3, xmm3
	cvtsi2ss	xmm3, DWORD PTR cgs[rip]
	mulss	xmm2, xmm3
	addss	xmm0, xmm2
	test	al, al
	jne	.L5
.L2:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	trap_R_SetColor@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	pxor	xmm9, xmm9
	pxor	xmm4, xmm4
	pxor	xmm5, xmm5
	movzx	eax, al
	mov	rdx, QWORD PTR propMapB[rip]
	pxor	xmm6, xmm6
	pxor	xmm3, xmm3
	mov	edi, DWORD PTR cgs[rip+8]
	cvtsi2ss	xmm9, QWORD PTR PROPB_HEIGHT[rip]
	movss	DWORD PTR 8[rsp], xmm1
	mov	rax, QWORD PTR [rdx+rax*8]
	cvtsi2ss	xmm3, DWORD PTR cgs[rip]
	movss	DWORD PTR 4[rsp], xmm0
	cvtsi2ss	xmm6, QWORD PTR 16[rax]
	cvtsi2ss	xmm4, QWORD PTR [rax]
	movaps	xmm7, xmm9
	cvtsi2ss	xmm5, QWORD PTR 8[rax]
	mulss	xmm7, xmm8
	movaps	xmm2, xmm6
	mulss	xmm4, xmm8
	mulss	xmm5, xmm8
	mulss	xmm6, xmm8
	mulss	xmm2, xmm3
	mulss	xmm3, xmm9
	addss	xmm7, xmm5
	addss	xmm6, xmm4
	movss	DWORD PTR 12[rsp], xmm2
	call	trap_R_DrawStretchPic@PLT
	pxor	xmm3, xmm3
	pxor	xmm4, xmm4
	movss	xmm2, DWORD PTR 12[rsp]
	cvtsi2ss	xmm3, QWORD PTR PROPB_GAP_WIDTH[rip]
	movss	xmm0, DWORD PTR 4[rsp]
	movss	xmm8, DWORD PTR .LC0[rip]
	cvtsi2ss	xmm4, DWORD PTR cgs[rip]
	movss	xmm1, DWORD PTR 8[rsp]
	mulss	xmm3, xmm4
	addss	xmm3, xmm2
	addss	xmm0, xmm3
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	UI_DrawBannerString2, .-UI_DrawBannerString2
	.comm	propMapB,8,8
	.comm	cgs,12,8
	.comm	PROPB_SPACE_WIDTH,8,8
	.comm	PROPB_HEIGHT,8,8
	.comm	PROPB_GAP_WIDTH,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	998244352
	.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_cg_drawtools.c_UI_DrawBannerString2.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_fmul
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_DrawBannerString2, %function
UI_DrawBannerString2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r6, .L13
	mov	r0, r3
	sub	sp, sp, #36
	mov	r7, r1
	mov	r5, r2
	bl	trap_R_SetColor
	ldr	r8, [r6]
	ldr	r0, [r6, #4]
	mla	r0, r4, r8, r0
	bl	__aeabi_i2f
	mov	r4, r0
	mul	r0, r7, r8
	bl	__aeabi_i2f
	ldrb	r3, [r5]	@ zero_extendqisi2
	str	r0, [sp, #28]	@ float
	cmp	r3, #0
	beq	.L2
	mov	r10, #998244352
	b	.L5
.L3:
	sub	r3, r3, #65
	and	r3, r3, #255
	cmp	r3, #25
	bls	.L12
.L4:
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
.L5:
	and	r3, r3, #127
	cmp	r3, #32
	bne	.L3
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bl	__aeabi_i2f
	ldr	r3, .L13+8
	mov	r8, r0
	ldr	r0, [r3]
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r8
	bl	__aeabi_fadd
	mov	r8, r0
	ldr	r0, [r6]
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r8
	bl	__aeabi_fmul
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fadd
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	mov	r4, r0
	cmp	r3, #0
	bne	.L5
.L2:
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	trap_R_SetColor
.L12:
	ldr	r2, .L13+12
	ldr	r2, [r2]
	ldr	r8, [r2, r3, lsl #2]
	ldr	r0, [r8]
	bl	__aeabi_i2f
	mov	r1, r10
	bl	__aeabi_fmul
	mov	r9, r0
	ldr	r0, [r8, #4]
	bl	__aeabi_i2f
	mov	r1, r10
	bl	__aeabi_fmul
	mov	fp, r0
	ldr	r0, [r8, #8]
	bl	__aeabi_i2f
	ldr	r3, .L13+16
	mov	r7, r0
	ldr	r0, [r3]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r0, [r6]
	str	r3, [sp, #24]
	bl	__aeabi_i2f
	mov	r8, r0
	mov	r0, r7
	mov	r1, r8
	bl	__aeabi_fmul
	mov	ip, r0
	ldr	r3, [sp, #24]
	mov	r1, r8
	mov	r0, r3
	mov	r8, ip
	bl	__aeabi_fmul
	mov	lr, r0
	ldr	r3, [sp, #24]
	ldr	ip, [r6, #8]
	mov	r0, r3
	mov	r1, r10
	str	lr, [sp, #24]
	str	ip, [sp, #16]
	bl	__aeabi_fmul
	mov	r1, fp
	bl	__aeabi_fadd
	mov	ip, r0
	mov	r1, r10
	mov	r0, r7
	str	ip, [sp, #12]	@ float
	bl	__aeabi_fmul
	mov	r1, r9
	bl	__aeabi_fadd
	mov	r2, r8
	ldr	r1, [sp, #28]	@ float
	ldr	r3, [sp, #24]
	str	r9, [sp]	@ float
	str	r0, [sp, #8]	@ float
	str	fp, [sp, #4]	@ float
	mov	r0, r4
	bl	trap_R_DrawStretchPic
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bl	__aeabi_i2f
	mov	r9, r0
	ldr	r0, [r6]
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r9
	bl	__aeabi_fmul
	mov	r1, r8
	bl	__aeabi_fadd
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r4, r0
	b	.L4
.L14:
	.align	2
.L13:
	.word	cgs
	.word	PROPB_SPACE_WIDTH
	.word	PROPB_GAP_WIDTH
	.word	propMapB
	.word	PROPB_HEIGHT
	.size	UI_DrawBannerString2, .-UI_DrawBannerString2
	.comm	propMapB,4,4
	.comm	cgs,12,4
	.comm	PROPB_SPACE_WIDTH,4,4
	.comm	PROPB_HEIGHT,4,4
	.comm	PROPB_GAP_WIDTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
