// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/expat-2.0.1/lib/xmltok_ns.c
// Function: XmlParseXmlDecl
int
NS(XmlParseXmlDecl)(int isGeneralTextEntity,
                    const ENCODING *enc,
                    const char *ptr,
                    const char *end,
                    const char **badPtr,
                    const char **versionPtr,
                    const char **versionEndPtr,
                    const char **encodingName,
                    const ENCODING **encoding,
                    int *standalone)
{
  return doParseXmlDecl(NS(findEncoding),
                        isGeneralTextEntity,
                        enc,
                        ptr,
                        end,
                        badPtr,
                        versionPtr,
                        versionEndPtr,
                        encodingName,
                        encoding,
                        standalone);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r9, %r13
movq %r8, 0x38(%rsp)
movq %rcx, %r14
movq %rsi, %r15
leaq 0x20(%rsp), %r9
andq $0x0, (%r9)
leaq 0x28(%rsp), %rbx
andq $0x0, (%rbx)
leaq 0x18(%rsp), %r8
andq $0x0, (%r8)
movl %edi, 0x14(%rsp)
movslq 0x80(%rsi), %rax
leaq (%rax,%rax,4), %rsi
addq %rdx, %rsi
leaq 0x8(%rsp), %rbp
movq %rsi, (%rbp)
addq %rax, %rax
subq %rax, %r14
movq %rbp, (%rsp)
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x20c4ef
testl %eax, %eax
setne %al
movq (%rbx), %r12
testq %r12, %r12
setne %cl
testb %cl, %al
je 0x203b72
movq 0x18(%rsp), %rbx
leaq 0x16a1f1(%rip), %rcx    # 0x36db73
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x30(%r15)
testl %eax, %eax
je 0x2039f1
movq 0x110(%rsp), %rax
testq %r13, %r13
je 0x2039a9
movq 0x20(%rsp), %rcx
movq %rcx, (%r13)
movq 0x8(%rsp), %rsi
testq %rax, %rax
je 0x2039b6
movq %rsi, (%rax)
movq %rbp, (%rsp)
leaq 0x28(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x20(%rsp), %r9
movq %r15, %rdi
movq %r14, %rdx
callq 0x20c4ef
testl %eax, %eax
je 0x203b72
movq 0x28(%rsp), %r12
testq %r12, %r12
je 0x203b67
movq 0x18(%rsp), %rbx
jmp 0x2039fc
cmpl $0x0, 0x14(%rsp)
je 0x203b77
leaq 0x16a178(%rip), %rcx    # 0x36db7b
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x30(%r15)
testl %eax, %eax
je 0x203b0a
movq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x20c6eb
andl $-0x21, %eax
addl $-0x41, %eax
cmpl $0x19, %eax
ja 0x203b77
movq 0x118(%rsp), %rax
testq %rax, %rax
je 0x203a4a
movq %r12, (%rax)
movq 0x8(%rsp), %rsi
cmpq $0x0, 0x120(%rsp)
je 0x203ad5
movslq 0x80(%r15), %rax
movq %rsi, 0x30(%rsp)
movq %rsi, %rbx
subq %rax, %rbx
leaq 0x48(%rsp), %r13
movq %r12, (%r13)
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rax
movaps %xmm0, 0x70(%rax)
movaps %xmm0, 0x60(%rax)
movaps %xmm0, 0x50(%rax)
movaps %xmm0, 0x40(%rax)
movaps %xmm0, 0x30(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
leaq 0x40(%rsp), %rcx
movq %rax, (%rcx)
leaq 0xcf(%rsp), %r8
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq *0x70(%r15)
cmpq %rbx, (%r13)
je 0x203bfc
xorl %eax, %eax
movq 0x120(%rsp), %rcx
movq %rax, (%rcx)
movq 0x30(%rsp), %rsi
movq %rbp, (%rsp)
leaq 0x28(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x20(%rsp), %r9
movq %r15, %rdi
movq %r14, %rdx
callq 0x20c4ef
testl %eax, %eax
je 0x203b72
movq 0x28(%rsp), %r12
testq %r12, %r12
je 0x203bf7
movq 0x18(%rsp), %rbx
leaq 0x16a073(%rip), %rcx    # 0x36db84
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x30(%r15)
cmpl $0x0, 0x14(%rsp)
jne 0x203b77
testl %eax, %eax
je 0x203b77
movq 0x128(%rsp), %rbx
movq 0x20(%rsp), %r12
movq 0x8(%rsp), %r13
movslq 0x80(%r15), %rax
movq %r13, %rdx
subq %rax, %rdx
leaq 0x16a040(%rip), %rcx    # 0x36db8f
movq %r15, %rdi
movq %r12, %rsi
callq *0x30(%r15)
testl %eax, %eax
je 0x203b93
testq %rbx, %rbx
je 0x203bbe
pushq $0x1
popq %rax
jmp 0x203bbc
cmpl $0x0, 0x14(%rsp)
je 0x203bf7
movq 0x8(%rsp), %r12
movq 0x38(%rsp), %rax
movq %r12, (%rax)
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq 0x80(%r15), %rax
movq %r13, %rdx
subq %rax, %rdx
leaq 0x169fec(%rip), %rcx    # 0x36db93
movq %r15, %rdi
movq %r12, %rsi
callq *0x30(%r15)
testl %eax, %eax
je 0x203b77
xorl %eax, %eax
testq %rbx, %rbx
je 0x203bbe
movl %eax, (%rbx)
movabsq $0x100002600, %rbx      # imm = 0x100002600
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x20c6eb
cmpl $0x20, %eax
ja 0x203bef
movl %eax, %eax
btq %rax, %rbx
jae 0x203bef
movslq 0x80(%r15), %rax
addq %rax, %r13
jmp 0x203bc8
movq %r13, %r12
cmpq %r14, %r13
jne 0x203b77
pushq $0x1
popq %rax
jmp 0x203b81
movq 0x40(%rsp), %rax
movb $0x0, (%rax)
leaq 0x169f4f(%rip), %rsi    # 0x36db5a
leaq 0x50(%rsp), %rdi
callq 0x20c263
testl %eax, %eax
je 0x203c2a
cmpl $0x2, 0x80(%r15)
movq %r15, %rax
je 0x203ac5
leaq 0x50(%rsp), %rdi
callq 0x20386f
cmpl $-0x1, %eax
je 0x203ac3
cltq
leaq 0x23133a(%rip), %rcx    # 0x434f80
movq (%rcx,%rax,8), %rax
jmp 0x203ac5