	.file	"18673.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"none"
.LC2:
	.string	"%1x%1x%1x"
.LC3:
	.string	"%2x%2x%2x"
.LC4:
	.string	"%i,%i,%i"
.LC5:
	.string	"%f%%,%f%%,%f%%"
	.text
	.globl	LICE_RGBA_from_SVG
	.type	LICE_RGBA_from_SVG, @function
LICE_RGBA_from_SVG:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	mov	QWORD PTR -16[rbp], 0
	cmp	DWORD PTR -76[rbp], 4
	jne	.L2
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 4
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L2
	mov	eax, 0
	jmp	.L12
.L2:
	cmp	DWORD PTR -76[rbp], 4
	jne	.L4
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L4
	mov	rax, QWORD PTR -72[rbp]
	lea	rdi, 1[rax]
	lea	rcx, -44[rbp]
	lea	rdx, -48[rbp]
	lea	rax, -52[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	jne	.L6
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 4
	movzx	edx, al
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 12
	movzx	eax, ax
	or	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	sal	eax, 20
	and	eax, 16711680
	or	eax, edx
	or	eax, -16777216
	jmp	.L12
.L4:
	cmp	DWORD PTR -76[rbp], 7
	jne	.L7
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L7
	mov	rax, QWORD PTR -72[rbp]
	lea	rdi, 1[rax]
	lea	rcx, -44[rbp]
	lea	rdx, -48[rbp]
	lea	rax, -52[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	jne	.L6
	mov	eax, DWORD PTR -44[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 8
	movzx	eax, ax
	or	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	sal	eax, 16
	and	eax, 16711680
	or	eax, edx
	or	eax, -16777216
	jmp	.L12
.L7:
	cmp	DWORD PTR -76[rbp], 9
	jle	.L9
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	jne	.L9
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 103
	jne	.L9
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L9
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 40
	jne	.L9
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 41
	jne	.L9
	mov	rax, QWORD PTR -72[rbp]
	lea	rdi, 4[rax]
	lea	rcx, -44[rbp]
	lea	rdx, -48[rbp]
	lea	rax, -52[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	jne	.L10
	mov	eax, DWORD PTR -44[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 8
	movzx	eax, ax
	or	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	sal	eax, 16
	and	eax, 16711680
	or	eax, edx
	or	eax, -16777216
	jmp	.L12
.L10:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdi, 4[rax]
	lea	rcx, -24[rbp]
	lea	rdx, -32[rbp]
	lea	rax, -40[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	jne	.L14
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -44[rbp], eax
	movsd	xmm1, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -48[rbp], eax
	movsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 8
	movzx	eax, ax
	or	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	sal	eax, 16
	and	eax, 16711680
	or	eax, edx
	or	eax, -16777216
	jmp	.L12
.L9:
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	svgtiny_color_lookup@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	jmp	.L12
.L14:
	nop
.L6:
	mov	eax, 0
.L12:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	LICE_RGBA_from_SVG, .-LICE_RGBA_from_SVG
	.section	.rodata
	.align 8
.LC6:
	.long	1717986918
	.long	1074030182
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"18673.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"none\000"
	.align	2
.LC1:
	.ascii	"%1x%1x%1x\000"
	.align	2
.LC2:
	.ascii	"%2x%2x%2x\000"
	.align	2
.LC3:
	.ascii	"%i,%i,%i\000"
	.align	2
.LC4:
	.ascii	"%f%%,%f%%,%f%%\000"
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LICE_RGBA_from_SVG
	.syntax unified
	.arm
	.fpu softvfp
	.type	LICE_RGBA_from_SVG, %function
LICE_RGBA_from_SVG:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	cmp	r3, #4
	bne	.L2
	mov	r2, #4
	ldr	r1, .L15+4
	ldr	r0, [fp, #-56]
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L12
.L2:
	ldr	r3, [fp, #-60]
	cmp	r3, #4
	bne	.L4
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L4
	ldr	r3, [fp, #-56]
	add	r0, r3, #1
	sub	r1, fp, #48
	sub	r2, fp, #52
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L15+8
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	bne	.L6
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #12
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #20
	and	r3, r3, #16711680
	orr	r3, r2, r3
	orr	r3, r3, #-16777216
	b	.L12
.L4:
	ldr	r3, [fp, #-60]
	cmp	r3, #7
	bne	.L7
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L7
	ldr	r3, [fp, #-56]
	add	r0, r3, #1
	sub	r1, fp, #48
	sub	r2, fp, #52
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L15+12
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	bne	.L6
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #16
	and	r3, r3, #16711680
	orr	r3, r2, r3
	orr	r3, r3, #-16777216
	b	.L12
.L7:
	ldr	r3, [fp, #-60]
	cmp	r3, #9
	ble	.L9
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L9
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #103
	bne	.L9
	ldr	r3, [fp, #-56]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L9
	ldr	r3, [fp, #-56]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L9
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L9
	ldr	r3, [fp, #-56]
	add	r0, r3, #4
	sub	r1, fp, #48
	sub	r2, fp, #52
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L15+16
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	bne	.L10
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #16
	and	r3, r3, #16711680
	orr	r3, r2, r3
	orr	r3, r3, #-16777216
	b	.L12
.L10:
	ldr	r3, [fp, #-56]
	add	r0, r3, #4
	sub	r1, fp, #28
	sub	r2, fp, #36
	sub	r3, fp, #20
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L15+20
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	bne	.L14
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	ldr	r2, .L15+24
	ldr	r3, .L15+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-44]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	ldr	r2, .L15+24
	ldr	r3, .L15+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-48]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	ldr	r2, .L15+24
	ldr	r3, .L15+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #16
	and	r3, r3, #16711680
	orr	r3, r2, r3
	orr	r3, r3, #-16777216
	b	.L12
.L9:
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	svgtiny_color_lookup
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	b	.L12
.L14:
	nop
.L6:
	mov	r3, #0
.L12:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1717986918
	.word	1074030182
	.size	LICE_RGBA_from_SVG, .-LICE_RGBA_from_SVG
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
