// File: /workspace/github_c_makefile_star2_O3/asford[P]tmalign/./TMalign.h
// Function: load_PDB_allocate_memory(char*, char*)
void load_PDB_allocate_memory(char *xname, char *yname)
{    
    //------get length first------>
	xlen=get_PDB_len(xname);
	ylen=get_PDB_len(yname);
	minlen=min(xlen, ylen);

    //------allocate memory for x and y------>
	NewArray(&xa, xlen, 3);
    seqx   = new char[xlen+1];
	secx   = new int[xlen];
	xresno = new int[xlen];

	NewArray(&ya, ylen, 3);
	seqy    = new char[ylen+1];
	yresno  = new int[ylen];
	secy    = new int[ylen];

    
    
    //------load data------>  
    read_PDB(xname, xa, seqx, xresno);
    read_PDB(yname, ya, seqy, yresno);
    
    
    //------allocate memory for other temporary varialbes------>
 	NewArray(&r1, minlen, 3);
	NewArray(&r2, minlen, 3);
	NewArray(&xtm, minlen, 3);
	NewArray(&ytm, minlen, 3);
	NewArray(&xt, xlen, 3);

	NewArray(&score, xlen+1, ylen+1);
	NewArray(&path, xlen+1, ylen+1);
	NewArray(&val, xlen+1, ylen+1);  	
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x404bcc
movl %eax, 0x1fb5a3(%rip)    # 0x6025b0
movq %rbx, %rdi
callq 0x404bcc
movl %eax, 0x1fb599(%rip)    # 0x6025b4
movl 0x1fb58f(%rip), %esi    # 0x6025b0
cmpl %esi, %eax
cmovgel %esi, %eax
movl %eax, 0x1fb58c(%rip)    # 0x6025b8
leaq 0x1fb58d(%rip), %rdi    # 0x6025c0
movl $0x3, %edx
callq 0x40c35d
movslq 0x1fb56c(%rip), %r12    # 0x6025b0
leaq 0x1(%r12), %rdi
callq 0x40d300
leaq (,%r12,4), %r15
testq %r12, %r12
movq %rax, 0x1fb598(%rip)    # 0x6025f8
movq $-0x1, %r12
cmovsq %r12, %r15
movq %r15, %rdi
callq 0x40d300
movq %rax, 0x1fb58e(%rip)    # 0x602608
movq %r15, %rdi
callq 0x40d300
movq %rax, 0x1fb547(%rip)    # 0x6025d0
movl 0x1fb525(%rip), %esi    # 0x6025b4
leaq 0x1fb532(%rip), %rdi    # 0x6025c8
movl $0x3, %edx
callq 0x40c35d
movslq 0x1fb50d(%rip), %r13    # 0x6025b4
leaq 0x1(%r13), %rdi
callq 0x40d300
leaq (,%r13,4), %r15
testq %r13, %r13
movq %rax, 0x1fb53e(%rip)    # 0x602600
cmovsq %r12, %r15
movq %r15, %rdi
callq 0x40d300
movq %rax, 0x1fb503(%rip)    # 0x6025d8
movq %r15, %rdi
callq 0x40d300
movq %rax, 0x1fb52c(%rip)    # 0x602610
movq 0x1fb4d5(%rip), %rsi    # 0x6025c0
movq 0x1fb506(%rip), %rdx    # 0x6025f8
movq 0x1fb4d7(%rip), %rcx    # 0x6025d0
movq %r14, %rdi
callq 0x404e30
movq 0x1fb4c0(%rip), %rsi    # 0x6025c8
movq 0x1fb4f1(%rip), %rdx    # 0x602600
movq 0x1fb4c2(%rip), %rcx    # 0x6025d8
movq %rbx, %rdi
callq 0x404e30
movl 0x1fb494(%rip), %esi    # 0x6025b8
leaq 0x1fb4ed(%rip), %rdi    # 0x602618
movl $0x3, %edx
callq 0x40c35d
movl 0x1fb47d(%rip), %esi    # 0x6025b8
leaq 0x1fb4de(%rip), %rdi    # 0x602620
movl $0x3, %edx
callq 0x40c35d
movl 0x1fb466(%rip), %esi    # 0x6025b8
leaq 0x1fb487(%rip), %rdi    # 0x6025e0
movl $0x3, %edx
callq 0x40c35d
movl 0x1fb44f(%rip), %esi    # 0x6025b8
leaq 0x1fb478(%rip), %rdi    # 0x6025e8
movl $0x3, %edx
callq 0x40c35d
movl 0x1fb430(%rip), %esi    # 0x6025b0
leaq 0x1fb469(%rip), %rdi    # 0x6025f0
movl $0x3, %edx
callq 0x40c35d
movl 0x1fb419(%rip), %esi    # 0x6025b0
incl %esi
movl 0x1fb415(%rip), %edx    # 0x6025b4
incl %edx
leaq 0x1fb3f0(%rip), %rdi    # 0x602598
callq 0x40c35d
movl 0x1fb3fd(%rip), %esi    # 0x6025b0
incl %esi
movl 0x1fb3f9(%rip), %edx    # 0x6025b4
incl %edx
leaq 0x1fb3dc(%rip), %rdi    # 0x6025a0
callq 0x40c3c2
movl 0x1fb3e1(%rip), %esi    # 0x6025b0
incl %esi
movl 0x1fb3dd(%rip), %edx    # 0x6025b4
incl %edx
leaq 0x1fb3c8(%rip), %rdi    # 0x6025a8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x40c35d