// File: /workspace/github_c_makefile_star2_O3/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 $0xe8, %rsp
movq %r9, %r13
movq %r8, %r14
movq %rsi, %r15
movl %edi, 0x2c(%rsp)
xorl %eax, %eax
leaq 0x40(%rsp), %r9
movq %rax, (%r9)
leaq 0x48(%rsp), %rbx
movq %rax, (%rbx)
leaq 0x38(%rsp), %r8
movq %rax, (%r8)
movslq 0x80(%rsi), %rax
leaq (%rax,%rax,4), %rsi
addq %rdx, %rsi
leaq 0x18(%rsp), %rbp
movq %rsi, (%rbp)
addq %rax, %rax
subq %rax, %rcx
movq %rbp, (%rsp)
movq %r15, %rdi
movq %rcx, 0x30(%rsp)
movq %rcx, %rdx
movq %rbx, %rcx
callq 0x25d840
testl %eax, %eax
setne %al
movq (%rbx), %r12
testq %r12, %r12
setne %cl
testb %cl, %al
je 0x254727
movq 0x38(%rsp), %rbx
leaq 0x1792d2(%rip), %rcx    # 0x3cd749
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x30(%r15)
testl %eax, %eax
je 0x2544e8
movq 0x120(%rsp), %rax
testq %r13, %r13
je 0x25449e
movq 0x40(%rsp), %rcx
movq %rcx, (%r13)
movq 0x18(%rsp), %rsi
testq %rax, %rax
je 0x2544ab
movq %rsi, (%rax)
movq %rbp, (%rsp)
leaq 0x48(%rsp), %rcx
leaq 0x38(%rsp), %r8
leaq 0x40(%rsp), %r9
movq %r15, %rdi
movq 0x30(%rsp), %rdx
callq 0x25d840
testl %eax, %eax
je 0x254727
movq 0x48(%rsp), %r12
testq %r12, %r12
je 0x2545ff
movq 0x38(%rsp), %rbx
jmp 0x2544f3
cmpl $0x0, 0x2c(%rsp)
je 0x25472c
leaq 0x179257(%rip), %rcx    # 0x3cd751
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x30(%r15)
testl %eax, %eax
je 0x2546c8
movq %r14, 0x10(%rsp)
movq 0x40(%rsp), %r12
leaq 0x60(%rsp), %r13
movq %r12, (%r13)
leaq 0x20(%rsp), %r14
leaq 0x50(%rsp), %rbx
movq %r14, (%rbx)
leaq 0x21(%rsp), %r8
movq %r15, %rdi
movq %r13, %rsi
movq 0x30(%rsp), %rdx
movq %rbx, %rcx
callq *0x70(%r15)
cmpq %r14, (%rbx)
je 0x25460f
movsbl 0x20(%rsp), %eax
andl $-0x21, %eax
addl $-0x41, %eax
cmpl $0x19, %eax
movq 0x10(%rsp), %r14
ja 0x25472c
movq 0x128(%rsp), %rax
testq %rax, %rax
je 0x254578
movq %r12, (%rax)
movq 0x18(%rsp), %rsi
cmpq $0x0, 0x130(%rsp)
je 0x254691
movslq 0x80(%r15), %rax
movq %rsi, 0x58(%rsp)
movq %rsi, %rbx
subq %rax, %rbx
leaq 0x50(%rsp), %rax
movq %r12, (%rax)
movq %rax, %r12
xorps %xmm0, %xmm0
leaq 0xdf(%rsp), %r8
movaps %xmm0, -0xf(%r8)
movaps %xmm0, -0x1f(%r8)
movaps %xmm0, -0x2f(%r8)
movaps %xmm0, -0x3f(%r8)
movaps %xmm0, -0x4f(%r8)
movaps %xmm0, -0x5f(%r8)
movaps %xmm0, -0x6f(%r8)
movaps %xmm0, -0x7f(%r8)
leaq 0x20(%rsp), %rcx
movq %r13, (%rcx)
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq *0x70(%r15)
cmpq %rbx, (%r12)
je 0x254619
xorl %r12d, %r12d
jmp 0x254681
cmpl $0x0, 0x2c(%rsp)
jne 0x254727
jmp 0x2547e6
movq 0x10(%rsp), %r14
jmp 0x25472c
movq 0x20(%rsp), %rax
movb $0x0, (%rax)
leaq 0x179108(%rip), %rsi    # 0x3cd730
leaq 0x60(%rsp), %rdi
callq 0x25d59b
testl %eax, %eax
je 0x254643
cmpl $0x2, 0x80(%r15)
movq %r15, %r12
je 0x254681
xorl %r12d, %r12d
leaq 0x261913(%rip), %r13    # 0x4b5f60
leaq 0x60(%rsp), %rbx
xorl %r14d, %r14d
movq (%r14,%r13), %rsi
movq %rbx, %rdi
callq 0x25d59b
testl %eax, %eax
jne 0x254671
addq $0x8, %r14
cmpq $0x30, %r14
jne 0x254655
jmp 0x25467c
leaq 0x261918(%rip), %rax    # 0x4b5f90
movq (%r14,%rax), %r12
movq 0x10(%rsp), %r14
movq 0x130(%rsp), %rax
movq %r12, (%rax)
movq 0x58(%rsp), %rsi
movq %rbp, (%rsp)
leaq 0x48(%rsp), %rcx
leaq 0x38(%rsp), %r8
leaq 0x40(%rsp), %r9
movq %r15, %rdi
movq 0x30(%rsp), %rdx
callq 0x25d840
testl %eax, %eax
je 0x254727
movq 0x48(%rsp), %r12
testq %r12, %r12
je 0x2547e6
movq 0x38(%rsp), %rbx
leaq 0x17908b(%rip), %rcx    # 0x3cd75a
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x30(%r15)
cmpl $0x0, 0x2c(%rsp)
jne 0x25472c
testl %eax, %eax
je 0x25472c
movq 0x138(%rsp), %rbx
movq 0x40(%rsp), %r12
movq 0x18(%rsp), %rbp
movslq 0x80(%r15), %rax
movq %rbp, %rdx
subq %rax, %rdx
leaq 0x179058(%rip), %rcx    # 0x3cd765
movq %r15, %rdi
movq %r12, %rsi
callq *0x30(%r15)
testl %eax, %eax
je 0x254743
movq %r14, 0x10(%rsp)
movl $0x1, %eax
jmp 0x25476c
movq 0x18(%rsp), %r12
movq %r12, (%r14)
xorl %eax, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq 0x80(%r15), %rax
movq %rbp, %rdx
subq %rax, %rdx
leaq 0x179012(%rip), %rcx    # 0x3cd769
movq %r15, %rdi
movq %r12, %rsi
callq *0x30(%r15)
testl %eax, %eax
je 0x25472c
movq %r14, 0x10(%rsp)
xorl %eax, %eax
testq %rbx, %rbx
je 0x254773
movl %eax, (%rbx)
leaq 0x20(%rsp), %r14
leaq 0x50(%rsp), %r13
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movabsq $0x100002600, %r12      # imm = 0x100002600
movq %rbp, 0x60(%rsp)
movq %r14, 0x50(%rsp)
movq %r15, %rdi
leaq 0x60(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r13, %rcx
leaq 0x21(%rsp), %r8
callq *0x70(%r15)
cmpq %r14, 0x50(%rsp)
movsbl 0x20(%rsp), %eax
cmovel %ebx, %eax
cmpl $0x20, %eax
ja 0x2547d3
btq %rax, %r12
jae 0x2547d3
movslq 0x80(%r15), %rax
addq %rax, %rbp
jmp 0x25478c
movq %rbp, %r12
cmpq 0x30(%rsp), %rbp
movq 0x10(%rsp), %r14
jne 0x25472c
movl $0x1, %eax
jmp 0x254731