// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdi
callq 0x405010
movl %eax, 0x201392(%rip)    # 0x60a5b0
movq 0x8(%rsp), %rdi
callq 0x405010
movl %eax, 0x201386(%rip)    # 0x60a5b4
leaq 0x20137b(%rip), %rdi    # 0x60a5b0
leaq 0x201378(%rip), %rsi    # 0x60a5b4
callq 0x410750
movl (%rax), %eax
movl %eax, 0x20136f(%rip)    # 0x60a5b8
movl 0x201361(%rip), %esi    # 0x60a5b0
leaq 0x20136a(%rip), %rdi    # 0x60a5c0
movl $0x3, %edx
callq 0x410790
movl 0x20134a(%rip), %eax    # 0x60a5b0
addl $0x1, %eax
movslq %eax, %rdi
callq 0x411b60
movq %rax, 0x201380(%rip)    # 0x60a5f8
movslq 0x201331(%rip), %rax    # 0x60a5b0
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x411b60
movq %rax, 0x201361(%rip)    # 0x60a608
movslq 0x201302(%rip), %rax    # 0x60a5b0
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x411b60
movq %rax, 0x2012fa(%rip)    # 0x60a5d0
movl 0x2012d8(%rip), %esi    # 0x60a5b4
leaq 0x2012e5(%rip), %rdi    # 0x60a5c8
movl $0x3, %edx
callq 0x410790
movl 0x2012c1(%rip), %eax    # 0x60a5b4
addl $0x1, %eax
movslq %eax, %rdi
callq 0x411b60
movq %rax, 0x2012fb(%rip)    # 0x60a600
movslq 0x2012a8(%rip), %rax    # 0x60a5b4
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x411b60
movq %rax, 0x2012a4(%rip)    # 0x60a5d8
movslq 0x201279(%rip), %rax    # 0x60a5b4
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x411b60
movq %rax, 0x2012ad(%rip)    # 0x60a610
movq 0x10(%rsp), %rdi
movq 0x201251(%rip), %rsi    # 0x60a5c0
movq 0x201282(%rip), %rdx    # 0x60a5f8
movq 0x201253(%rip), %rcx    # 0x60a5d0
callq 0x405340
movq 0x8(%rsp), %rdi
movq 0x20123a(%rip), %rsi    # 0x60a5c8
movq 0x20126b(%rip), %rdx    # 0x60a600
movq 0x20123c(%rip), %rcx    # 0x60a5d8
callq 0x405340
movl 0x201211(%rip), %esi    # 0x60a5b8
leaq 0x20126a(%rip), %rdi    # 0x60a618
movl $0x3, %edx
callq 0x410790
movl 0x2011fa(%rip), %esi    # 0x60a5b8
leaq 0x20125b(%rip), %rdi    # 0x60a620
movl $0x3, %edx
callq 0x410790
movl 0x2011e3(%rip), %esi    # 0x60a5b8
leaq 0x201204(%rip), %rdi    # 0x60a5e0
movl $0x3, %edx
callq 0x410790
movl 0x2011cc(%rip), %esi    # 0x60a5b8
leaq 0x2011f5(%rip), %rdi    # 0x60a5e8
movl $0x3, %edx
callq 0x410790
movl 0x2011ad(%rip), %esi    # 0x60a5b0
leaq 0x2011e6(%rip), %rdi    # 0x60a5f0
movl $0x3, %edx
callq 0x410790
movl 0x201196(%rip), %esi    # 0x60a5b0
addl $0x1, %esi
movl 0x201191(%rip), %edx    # 0x60a5b4
addl $0x1, %edx
leaq 0x20116b(%rip), %rdi    # 0x60a598
callq 0x410790
movl 0x201178(%rip), %esi    # 0x60a5b0
addl $0x1, %esi
movl 0x201173(%rip), %edx    # 0x60a5b4
addl $0x1, %edx
leaq 0x201155(%rip), %rdi    # 0x60a5a0
callq 0x410830
movl 0x20115a(%rip), %esi    # 0x60a5b0
addl $0x1, %esi
movl 0x201155(%rip), %edx    # 0x60a5b4
addl $0x1, %edx
leaq 0x20113f(%rip), %rdi    # 0x60a5a8
callq 0x410790
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)