// File: /workspace/github_c_makefile_star2_O1/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, 0x1fb4e3(%rip)    # 0x6025b0
movq %rbx, %rdi
callq 0x404bcc
movl %eax, 0x1fb4d9(%rip)    # 0x6025b4
movl 0x1fb4cf(%rip), %esi    # 0x6025b0
cmpl %esi, %eax
cmovgel %esi, %eax
movl %eax, 0x1fb4cc(%rip)    # 0x6025b8
leaq 0x1fb4cd(%rip), %rdi    # 0x6025c0
movl $0x3, %edx
callq 0x40c0bd
movslq 0x1fb4ac(%rip), %r12    # 0x6025b0
leaq 0x1(%r12), %rdi
callq 0x40d060
leaq (,%r12,4), %r15
testq %r12, %r12
movq %rax, 0x1fb4d8(%rip)    # 0x6025f8
movq $-0x1, %r12
cmovsq %r12, %r15
movq %r15, %rdi
callq 0x40d060
movq %rax, 0x1fb4ce(%rip)    # 0x602608
movq %r15, %rdi
callq 0x40d060
movq %rax, 0x1fb487(%rip)    # 0x6025d0
movl 0x1fb465(%rip), %esi    # 0x6025b4
leaq 0x1fb472(%rip), %rdi    # 0x6025c8
movl $0x3, %edx
callq 0x40c0bd
movslq 0x1fb44d(%rip), %r13    # 0x6025b4
leaq 0x1(%r13), %rdi
callq 0x40d060
leaq (,%r13,4), %r15
testq %r13, %r13
movq %rax, 0x1fb47e(%rip)    # 0x602600
cmovsq %r12, %r15
movq %r15, %rdi
callq 0x40d060
movq %rax, 0x1fb443(%rip)    # 0x6025d8
movq %r15, %rdi
callq 0x40d060
movq %rax, 0x1fb46c(%rip)    # 0x602610
movq 0x1fb415(%rip), %rsi    # 0x6025c0
movq 0x1fb446(%rip), %rdx    # 0x6025f8
movq 0x1fb417(%rip), %rcx    # 0x6025d0
movq %r14, %rdi
callq 0x404e30
movq 0x1fb400(%rip), %rsi    # 0x6025c8
movq 0x1fb431(%rip), %rdx    # 0x602600
movq 0x1fb402(%rip), %rcx    # 0x6025d8
movq %rbx, %rdi
callq 0x404e30
movl 0x1fb3d4(%rip), %esi    # 0x6025b8
leaq 0x1fb42d(%rip), %rdi    # 0x602618
movl $0x3, %edx
callq 0x40c0bd
movl 0x1fb3bd(%rip), %esi    # 0x6025b8
leaq 0x1fb41e(%rip), %rdi    # 0x602620
movl $0x3, %edx
callq 0x40c0bd
movl 0x1fb3a6(%rip), %esi    # 0x6025b8
leaq 0x1fb3c7(%rip), %rdi    # 0x6025e0
movl $0x3, %edx
callq 0x40c0bd
movl 0x1fb38f(%rip), %esi    # 0x6025b8
leaq 0x1fb3b8(%rip), %rdi    # 0x6025e8
movl $0x3, %edx
callq 0x40c0bd
movl 0x1fb370(%rip), %esi    # 0x6025b0
leaq 0x1fb3a9(%rip), %rdi    # 0x6025f0
movl $0x3, %edx
callq 0x40c0bd
movl 0x1fb359(%rip), %esi    # 0x6025b0
incl %esi
movl 0x1fb355(%rip), %edx    # 0x6025b4
incl %edx
leaq 0x1fb330(%rip), %rdi    # 0x602598
callq 0x40c0bd
movl 0x1fb33d(%rip), %esi    # 0x6025b0
incl %esi
movl 0x1fb339(%rip), %edx    # 0x6025b4
incl %edx
leaq 0x1fb31c(%rip), %rdi    # 0x6025a0
callq 0x40c12a
movl 0x1fb321(%rip), %esi    # 0x6025b0
incl %esi
movl 0x1fb31d(%rip), %edx    # 0x6025b4
incl %edx
leaq 0x1fb308(%rip), %rdi    # 0x6025a8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x40c0bd