// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tektag.c
// Function: tektagsave
void
tektagsave(int fil)
{
     int  i;

     write(fil,&numanimates,sizeof(int));
     for (i=0 ; i < numanimates ; i++) {
          write(fil,&animpic[i],sizeof(struct animpic));
     }
     write(fil,&numdelayfuncs,sizeof(short));
     for (i=0 ; i < numdelayfuncs ; i++) {
          write(fil,&delayfunc[i],sizeof(struct delayfunc));
     }
     write(fil,onelev,MAXPLAYERS);
     write(fil,&secnt,sizeof(int));
     for (i=0 ; i < secnt ; i++) {
          write(fil,&sectoreffect[i],sizeof(struct sectoreffect));
     }
     write(fil,sexref,MAXSECTORS*sizeof(int));
     write(fil,&numdoors,sizeof(int));
     for (i=0 ; i < numdoors ; i++) {
          write(fil,&doortype[i],sizeof(struct doortype));
     }
     write(fil,&numfloordoors,sizeof(int));
     for (i=0 ; i < numfloordoors ; i++) {
          write(fil,&floordoor[i],sizeof(struct floordoor));
     }
     write(fil,fdxref,MAXSECTORS*sizeof(int));
     write(fil,&numvehicles,sizeof(int));
     for (i=0 ; i < numvehicles ; i++) {
          write(fil,&sectorvehicle[i],sizeof(struct sectorvehicle));
     }
     write(fil,elevator,MAXSECTORS*sizeof(struct elevatortype));
     write(fil,&sprelevcnt,sizeof(int));
     for (i=0 ; i < sprelevcnt ; i++) {
          write(fil,&spriteelev[i],sizeof(struct spriteelev));
     }
     write(fil,&totalmapsndfx,sizeof(int));
     for (i=0 ; i < totalmapsndfx ; i++) {
          write(fil,&mapsndfx[i],sizeof(struct mapsndfxtype));
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %edi
leaq 0x333baf(%rip), %rsi    # 0x3773d4
movl $0x4, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0x333b95(%rip), %eax    # 0x3773d4
jge 0x4386b
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x333b91(%rip), %rsi    # 0x3773e0
imulq $0x18, %rax, %rax
addq %rax, %rsi
movl $0x18, %edx
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x43836
movl -0x4(%rbp), %edi
leaq 0x333f6b(%rip), %rsi    # 0x3777e0
movl $0x2, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
movswl 0x333f50(%rip), %ecx    # 0x3777e0
cmpl %ecx, %eax
jge 0x438be
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x333f4e(%rip), %rsi    # 0x3777f0
shlq $0x4, %rax
addq %rax, %rsi
movl $0x10, %edx
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x43886
movl -0x4(%rbp), %edi
leaq 0x334238(%rip), %rsi    # 0x377b00
movl $0x10, %edx
callq 0x8e40
movl -0x4(%rbp), %edi
leaq 0x2c5bc8(%rip), %rsi    # 0x3094a4
movl $0x4, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0x2c5bae(%rip), %eax    # 0x3094a4
jge 0x43922
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x2c9baa(%rip), %rsi    # 0x30d4b0
imulq $0x3c, %rax, %rax
addq %rax, %rsi
movl $0x3c, %edx
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x438ed
movl -0x4(%rbp), %edi
leaq 0x2c5b84(%rip), %rsi    # 0x3094b0
movl $0x4000, %edx           # imm = 0x4000
callq 0x8e40
movl -0x4(%rbp), %edi
leaq 0x327a80(%rip), %rsi    # 0x36b3c0
movl $0x4, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0x327a66(%rip), %eax    # 0x36b3c0
jge 0x43986
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x315b46(%rip), %rsi    # 0x3594b0
imulq $0x64, %rax, %rax
addq %rax, %rsi
movl $0x64, %edx
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x43951
movl -0x4(%rbp), %edi
leaq 0x31af80(%rip), %rsi    # 0x35e910
movl $0x4, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0x31af66(%rip), %eax    # 0x35e910
jge 0x439d6
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x31ef66(%rip), %rsi    # 0x362920
imulq $0x1c, %rax, %rax
addq %rax, %rsi
movl $0x1c, %edx
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x439a1
movl -0x4(%rbp), %edi
leaq 0x31af40(%rip), %rsi    # 0x35e920
movl $0x4000, %edx           # imm = 0x4000
callq 0x8e40
movl -0x4(%rbp), %edi
leaq 0x32149c(%rip), %rsi    # 0x364e90
movl $0x4, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0x321482(%rip), %eax    # 0x364e90
jge 0x43a3d
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x321482(%rip), %rsi    # 0x364ea0
imulq $0xa14, %rax, %rax      # imm = 0xA14
addq %rax, %rsi
movl $0xa14, %edx            # imm = 0xA14
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x43a05
movl -0x4(%rbp), %edi
leaq 0x327989(%rip), %rsi    # 0x36b3d0
movl $0x8000, %edx           # imm = 0x8000
callq 0x8e40
movl -0x4(%rbp), %edi
leaq 0x333975(%rip), %rsi    # 0x3773d0
movl $0x4, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0x33395b(%rip), %eax    # 0x3773d0
jge 0x43aa4
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x31f22b(%rip), %rsi    # 0x362cb0
imulq $0x124, %rax, %rax      # imm = 0x124
addq %rax, %rsi
movl $0x124, %edx            # imm = 0x124
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x43a6c
movl -0x4(%rbp), %edi
leaq 0x2c59f2(%rip), %rsi    # 0x3094a0
movl $0x4, %edx
callq 0x8e40
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0x2c59d8(%rip), %eax    # 0x3094a0
jge 0x43af4
movl -0x4(%rbp), %edi
movslq -0x8(%rbp), %rax
leaq 0x320f38(%rip), %rsi    # 0x364a10
imulq $0x1c, %rax, %rax
addq %rax, %rsi
movl $0x1c, %edx
callq 0x8e40
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x43abf
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)