// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
leaq 0x2fe402(%rip), %rsi    # 0x32b404
movl $0x4, %edx
callq 0x8f10
cmpl $0x0, 0x2fe3f1(%rip)    # 0x32b404
jle 0x2d041
leaq 0x2fe3f4(%rip), %r14    # 0x32b410
xorl %r15d, %r15d
movl $0x18, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2fe3cc(%rip), %rax    # 0x32b404
addq $0x18, %r14
cmpq %rax, %r15
jl 0x2d01f
leaq 0x2fe7c8(%rip), %rsi    # 0x32b810
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
cmpw $0x0, 0x2fe7b4(%rip)    # 0x32b810
jle 0x2d08b
leaq 0x2fe7bb(%rip), %r14    # 0x32b820
xorl %r15d, %r15d
movl $0x10, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movswq 0x2fe78e(%rip), %rax    # 0x32b810
addq $0x10, %r14
cmpq %rax, %r15
jl 0x2d068
leaq 0x2fea9e(%rip), %rsi    # 0x32bb30
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x29042f(%rip), %rsi    # 0x2bd4d4
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x29041c(%rip)    # 0x2bd4d4
jle 0x2d0e6
leaq 0x29441f(%rip), %r14    # 0x2c14e0
xorl %r15d, %r15d
movl $0x3c, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2903f7(%rip), %rax    # 0x2bd4d4
addq $0x3c, %r14
cmpq %rax, %r15
jl 0x2d0c4
leaq 0x2903f3(%rip), %rsi    # 0x2bd4e0
movl $0x4000, %edx           # imm = 0x4000
movl %ebx, %edi
callq 0x8f10
leaq 0x2f22f0(%rip), %rsi    # 0x31f3f0
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2f22dd(%rip)    # 0x31f3f0
jle 0x2d141
leaq 0x2e03c4(%rip), %r14    # 0x30d4e0
xorl %r15d, %r15d
movl $0x64, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2f22b8(%rip), %rax    # 0x31f3f0
addq $0x64, %r14
cmpq %rax, %r15
jl 0x2d11f
leaq 0x2e57f8(%rip), %rsi    # 0x312940
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2e57e5(%rip)    # 0x312940
jle 0x2d189
leaq 0x2e97ec(%rip), %r14    # 0x316950
xorl %r15d, %r15d
movl $0x1c, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2e57c0(%rip), %rax    # 0x312940
addq $0x1c, %r14
cmpq %rax, %r15
jl 0x2d167
leaq 0x2e57c0(%rip), %rsi    # 0x312950
movl $0x4000, %edx           # imm = 0x4000
movl %ebx, %edi
callq 0x8f10
leaq 0x2ebd1d(%rip), %rsi    # 0x318ec0
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2ebd0a(%rip)    # 0x318ec0
jle 0x2d1e7
leaq 0x2ebd11(%rip), %r14    # 0x318ed0
xorl %r15d, %r15d
movl $0xa14, %edx            # imm = 0xA14
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2ebce5(%rip), %rax    # 0x318ec0
addq $0xa14, %r14            # imm = 0xA14
cmpq %rax, %r15
jl 0x2d1c2
leaq 0x2f2212(%rip), %rsi    # 0x31f400
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
callq 0x8f10
leaq 0x2fe1ff(%rip), %rsi    # 0x32b400
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2fe1ec(%rip)    # 0x32b400
jle 0x2d245
leaq 0x2e9ac3(%rip), %r14    # 0x316ce0
xorl %r15d, %r15d
movl $0x124, %edx            # imm = 0x124
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2fe1c7(%rip), %rax    # 0x32b400
addq $0x124, %r14            # imm = 0x124
cmpq %rax, %r15
jl 0x2d220
leaq 0x290284(%rip), %rsi    # 0x2bd4d0
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x290271(%rip)    # 0x2bd4d0
jle 0x2d28d
leaq 0x2eb7d8(%rip), %r14    # 0x318a40
xorl %r15d, %r15d
movl $0x1c, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x29024c(%rip), %rax    # 0x2bd4d0
addq $0x1c, %r14
cmpq %rax, %r15
jl 0x2d26b
popq %rbx
popq %r14
popq %r15
retq