// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/lib/mafFromAxt.c
// Function: mafFromAxt
struct mafAli *mafFromAxt(struct axt *axt, int tSize, 
	char *tPrefix, int qSize, char *qPrefix)
/* Make up a maf file from axt.  Slower than mafFromAxtTemp,
 * but the axt and maf are independent afterwards. */
{
struct mafAli *maf;
struct mafComp *mc;
char name[256];
AllocVar(maf);
maf->score = axt->score;
maf->textSize = axt->symCount;
AllocVar(mc);
if (qPrefix == NULL)
    mc->src = cloneString(axt->qName);
else
    {
    safef(name, sizeof(name), "%s.%s", qPrefix, axt->qName);
    mc->src = cloneString(name);
    }
mc->srcSize = qSize;
mc->strand = axt->qStrand;
mc->start = axt->qStart;
mc->size = axt->qEnd - axt->qStart;
mc->text = cloneStringZ(axt->qSym, axt->symCount);
slAddHead(&maf->components, mc);
AllocVar(mc);
if (tPrefix == NULL)
    mc->src = cloneString(axt->tName);
else
    {
    safef(name, sizeof(name), "%s.%s", tPrefix, axt->tName);
    mc->src = cloneString(name);
    }
mc->srcSize = tSize;
mc->strand = axt->tStrand;
mc->start = axt->tStart;
mc->size = axt->tEnd - axt->tStart;
mc->text = cloneStringZ(axt->tSym, axt->symCount);
slAddHead(&maf->components, mc);
return maf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movl $0x28, %edi
callq 0x40c50
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
cvtsi2sdl 0x34(%rax), %xmm0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x8(%rax)
movq -0x8(%rbp), %rax
movl 0x38(%rax), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x18(%rax)
movl $0x40, %edi
callq 0x40c50
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x406aa
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2a450
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x406e7
leaq -0x140(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %r8
movl $0x100, %esi            # imm = 0x100
leaq 0x9b1b5(%rip), %rdx     # 0xdb87e
movb $0x0, %al
callq 0x31090
leaq -0x140(%rbp), %rdi
callq 0x2a450
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x8(%rbp), %rax
movb 0x18(%rax), %cl
movq -0x38(%rbp), %rax
movb %cl, 0x14(%rax)
movq -0x8(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %ecx
movq -0x8(%rbp), %rax
subl 0x10(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x38(%rax), %esi
callq 0x2a3a0
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x30(%rbp), %rdi
addq $0x10, %rdi
movq -0x38(%rbp), %rsi
callq 0x405f0
movl $0x40, %edi
callq 0x40c50
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x40781
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x2a450
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x407be
leaq -0x140(%rbp), %rdi
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %r8
movl $0x100, %esi            # imm = 0x100
leaq 0x9b0de(%rip), %rdx     # 0xdb87e
movb $0x0, %al
callq 0x31090
leaq -0x140(%rbp), %rdi
callq 0x2a450
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0xc(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x8(%rbp), %rax
movb 0x30(%rax), %cl
movq -0x38(%rbp), %rax
movb %cl, 0x14(%rax)
movq -0x8(%rbp), %rax
movl 0x28(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %ecx
movq -0x8(%rbp), %rax
subl 0x28(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x38(%rax), %esi
callq 0x2a3a0
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x30(%rbp), %rdi
addq $0x10, %rdi
movq -0x38(%rbp), %rsi
callq 0x405f0
movq -0x30(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)