// File: thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvg__parseNameValue(NSVGparser*, char const*, char const*)
static int nsvg__parseNameValue(NSVGparser* p, const char* start, const char* end)
{
	const char* str;
	const char* val;
	char name[512];
	char value[512];
	int n;

	str = start;
	while (str < end && *str != ':') ++str;

	val = str;

	// Right Trim
	while (str > start &&  (*str == ':' || nsvg__isspace(*str))) --str;
	++str;

	n = (int)(str - start);
	if (n > 511) n = 511;
	if (n) memcpy(name, start, n);
	name[n] = 0;

	while (val < end && (*val == ':' || nsvg__isspace(*val))) ++val;

	n = (int)(end - val);
	if (n > 511) n = 511;
	if (n) memcpy(value, val, n);
	value[n] = 0;

	return nsvg__parseAttr(p, name, value);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x440, %rsp            # imm = 0x440
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq -0x18(%rbp), %rcx
movb %al, -0x435(%rbp)
jae 0x7aa54
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
setne %al
movb %al, -0x435(%rbp)
movb -0x435(%rbp), %al
testb $0x1, %al
jne 0x7aa60
jmp 0x7aa6e
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x7aa2f
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x436(%rbp)
jbe 0x7aac0
movq -0x20(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x3a, %ecx
movb %al, -0x437(%rbp)
je 0x7aab4
movq -0x20(%rbp), %rax
movsbl (%rax), %edi
callq 0x76fd0
cmpl $0x0, %eax
setne %al
movb %al, -0x437(%rbp)
movb -0x437(%rbp), %al
movb %al, -0x436(%rbp)
movb -0x436(%rbp), %al
testb $0x1, %al
jne 0x7aacc
jmp 0x7aada
movq -0x20(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x7aa76
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x434(%rbp)
cmpl $0x1ff, -0x434(%rbp)    # imm = 0x1FF
jle 0x7ab0d
movl $0x1ff, -0x434(%rbp)    # imm = 0x1FF
cmpl $0x0, -0x434(%rbp)
je 0x7ab2d
leaq -0x230(%rbp), %rdi
movq -0x10(%rbp), %rsi
movslq -0x434(%rbp), %rdx
callq 0x9490
movslq -0x434(%rbp), %rax
movb $0x0, -0x230(%rbp,%rax)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x18(%rbp), %rcx
movb %al, -0x438(%rbp)
jae 0x7ab86
movq -0x28(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x3a, %ecx
movb %al, -0x439(%rbp)
je 0x7ab7a
movq -0x28(%rbp), %rax
movsbl (%rax), %edi
callq 0x76fd0
cmpl $0x0, %eax
setne %al
movb %al, -0x439(%rbp)
movb -0x439(%rbp), %al
movb %al, -0x438(%rbp)
movb -0x438(%rbp), %al
testb $0x1, %al
jne 0x7ab92
jmp 0x7aba0
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x7ab3c
movq -0x18(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x434(%rbp)
cmpl $0x1ff, -0x434(%rbp)    # imm = 0x1FF
jle 0x7abc7
movl $0x1ff, -0x434(%rbp)    # imm = 0x1FF
cmpl $0x0, -0x434(%rbp)
je 0x7abe7
leaq -0x430(%rbp), %rdi
movq -0x28(%rbp), %rsi
movslq -0x434(%rbp), %rdx
callq 0x9490
movslq -0x434(%rbp), %rax
movb $0x0, -0x430(%rbp,%rax)
movq -0x8(%rbp), %rdi
leaq -0x230(%rbp), %rsi
leaq -0x430(%rbp), %rdx
callq 0x79b90
addq $0x440, %rsp            # imm = 0x440
popq %rbp
retq
nopw %cs:(%rax,%rax)