// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvg__parseXML(char*, void (*)(void*, char const*, char const**), void (*)(void*, char const*), void (*)(void*, char const*), void*)
int nsvg__parseXML(char* input,
				   void (*startelCb)(void* ud, const char* el, const char** attr),
				   void (*endelCb)(void* ud, const char* el),
				   void (*contentCb)(void* ud, const char* s),
				   void* ud)
{
	char* s = input;
	char* mark = s;
	int state = NSVG_XML_CONTENT;
	while (*s) {
		if (*s == '<' && state == NSVG_XML_CONTENT) {
			// Start of a tag
			*s++ = '\0';
			nsvg__parseContent(mark, contentCb, ud);
			mark = s;
			state = NSVG_XML_TAG;
		} else if (*s == '>' && state == NSVG_XML_TAG) {
			// Start of a content or new tag.
			*s++ = '\0';
			nsvg__parseElement(mark, startelCb, endelCb, ud);
			mark = s;
			state = NSVG_XML_CONTENT;
		} else {
			s++;
		}
	}

	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x858, %rsp            # imm = 0x858
movq %rsi, 0x48(%rsp)
movb (%rdi), %al
testb %al, %al
je 0x2a1a6
movq %r8, %r13
movq %rcx, %r12
movq %rdi, %rbp
movl $0x2, %ebx
movq %rdi, %r14
movq %rdx, 0x28(%rsp)
cmpb $0x3c, %al
sete %cl
cmpl $0x2, %ebx
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x29efc
movb $0x0, (%r14)
incq %r14
movb (%rbp), %al
movl $0x1, %ebx
testb %al, %al
je 0x29f63
movsbl %al, %esi
movl $0x7, %edx
leaq 0x15d89(%rip), %rdi     # 0x3fc73
callq 0x74b0
testq %rax, %rax
je 0x29f55
movb 0x1(%rbp), %al
incq %rbp
jmp 0x29ed3
cmpb $0x3e, %al
sete %al
cmpl $0x1, %ebx
sete %cl
andb %al, %cl
leaq 0x1(%r14), %rsi
cmpb $0x1, %cl
jne 0x29f50
movb $0x0, (%r14)
movb (%rbp), %bl
testb %bl, %bl
je 0x29f68
movq %rsi, %r14
movsbl %bl, %esi
movl $0x7, %edx
leaq 0x15d44(%rip), %rdi     # 0x3fc73
callq 0x74b0
testq %rax, %rax
je 0x29f45
movb 0x1(%rbp), %bl
incq %rbp
testb %bl, %bl
jne 0x29f20
xorl %ebx, %ebx
movq %r14, %rsi
cmpb $0x2f, %bl
setne %bl
jmp 0x29f6a
movq %rbp, %r14
jmp 0x29f94
testq %r12, %r12
je 0x29f63
movq %r13, %rdi
movq %rbp, %rsi
callq *%r12
movq %r14, %rsi
jmp 0x29f94
movb $0x1, %bl
movl %ebx, %eax
xorb $0x1, %al
movzbl %al, %ecx
movzbl (%rbp,%rcx), %eax
cmpq $0x3f, %rax
ja 0x29fa9
movabsq $-0x7ffffffdffffffff, %rdx # imm = 0x8000000200000001
btq %rax, %rdx
jae 0x29fa9
movl $0x2, %ebx
movq %rsi, %r14
movb (%rsi), %al
movq %r14, %rbp
movq %rsi, %r14
testb %al, %al
jne 0x29eb2
jmp 0x2a1a6
movq %rsi, 0x10(%rsp)
leaq (%rcx,%rbp), %r14
addq %rbp, %rcx
incq %rcx
movq %rcx, %r15
movsbl %al, %esi
movl $0x7, %edx
leaq 0x15ca9(%rip), %rdi     # 0x3fc73
callq 0x74b0
testq %rax, %rax
jne 0x29fe1
movb (%r15), %al
leaq 0x1(%r15), %rcx
testb %al, %al
jne 0x29fb8
jmp 0x29fe6
movb $0x0, -0x1(%r15)
testb %bl, %bl
je 0x2a123
movq %r12, 0x30(%rsp)
movb (%r15), %r12b
testb %r12b, %r12b
je 0x2a13d
xorl %ecx, %ecx
movq %r13, 0x18(%rsp)
movq %r14, 0x8(%rsp)
movq %rcx, 0x20(%rsp)
leaq 0x1(%r15), %r13
leaq 0x2(%r15), %rbx
movq %r15, %r14
movsbl %r12b, %esi
movl $0x7, %edx
leaq 0x15c48(%rip), %rdi     # 0x3fc73
callq 0x74b0
testq %rax, %rax
je 0x2a04c
movb 0x1(%r14), %r12b
incq %r14
incq %r13
incq %rbx
testb %r12b, %r12b
jne 0x2a01b
jmp 0x2a12f
cmpb $0x2f, %r12b
sete %al
movq %rax, 0x40(%rsp)
je 0x2a1a2
movq %r13, %r15
movq %rbx, 0x38(%rsp)
movsbl %r12b, %ebx
movl $0x7, %edx
leaq 0x15bfd(%rip), %rdi     # 0x3fc73
movl %ebx, %esi
callq 0x74b0
cmpb $0x3d, %bl
je 0x2a09e
testq %rax, %rax
jne 0x2a09e
movb (%r15), %r12b
leaq 0x1(%r15), %r13
movq 0x38(%rsp), %rsi
leaq 0x1(%rsi), %rbx
testb %r12b, %r12b
jne 0x2a05e
jmp 0x2a0a8
movb $0x0, -0x1(%r15)
movq 0x38(%rsp), %rsi
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %rdx
movq 0x40(%rsp), %rbx
movzbl (%r15), %eax
testl %eax, %eax
je 0x2a143
cmpl $0x22, %eax
je 0x2a0d5
cmpl $0x27, %eax
je 0x2a0d5
incq %r15
incq %rsi
jmp 0x2a0b7
movq %rsi, %r15
movb (%r15), %cl
incq %r15
testb %cl, %cl
je 0x2a0e6
cmpb %al, %cl
jne 0x2a0d8
leaq -0x1(%r15), %rax
testb %cl, %cl
je 0x2a0f3
movb $0x0, (%rax)
jmp 0x2a0f6
movq %rax, %r15
movq %r14, 0x50(%rsp,%rdx,8)
movq %rsi, 0x58(%rsp,%rdx,8)
leaq 0x2(%rdx), %rax
movb (%r15), %r12b
testb %r12b, %r12b
je 0x2a148
cmpq $0xfb, %rdx
movq %rax, %rcx
movq 0x8(%rsp), %r14
jb 0x2a00b
jmp 0x2a14d
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movb $0x1, %bl
jmp 0x2a174
xorl %ebx, %ebx
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %r13
jmp 0x2a148
xorl %eax, %eax
xorl %ebx, %ebx
jmp 0x2a14d
xorl %ebx, %ebx
movq %rdx, %rax
movq 0x8(%rsp), %r14
andl $-0x2, %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp,%rax,8)
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x2a16f
movq %r13, %rdi
movq %rbp, %rsi
leaq 0x50(%rsp), %rdx
callq *%rax
movq 0x30(%rsp), %r12
movq 0x28(%rsp), %r15
movq 0x10(%rsp), %rsi
testq %r15, %r15
je 0x29f8c
testb %bl, %bl
je 0x29f8c
movq %r13, %rdi
movq %r14, %rsi
callq *%r15
movq 0x10(%rsp), %rsi
jmp 0x29f8c
movb $0x1, %bl
jmp 0x2a131
movl $0x1, %eax
addq $0x858, %rsp            # imm = 0x858
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq