// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x2f9f1c(%rip), %rsi    # 0x324424
pushq $0x4
popq %rdx
callq 0x8f10
leaq 0x2f9f19(%rip), %r14    # 0x324430
xorl %r12d, %r12d
pushq $0x18
popq %r15
movslq 0x2f9eff(%rip), %rax    # 0x324424
cmpq %rax, %r12
jge 0x2a540
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8f10
incq %r12
addq $0x18, %r14
jmp 0x2a51e
leaq 0x2fa2e9(%rip), %rsi    # 0x324830
pushq $0x2
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x2fa2e8(%rip), %r14    # 0x324840
xorl %r12d, %r12d
pushq $0x10
popq %r15
movswq 0x2fa2c9(%rip), %rax    # 0x324830
cmpq %rax, %r12
jge 0x2a582
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8f10
incq %r12
addq $0x10, %r14
jmp 0x2a55f
leaq 0x2fa5c7(%rip), %rsi    # 0x324b50
pushq $0x10
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x28bf5a(%rip), %rsi    # 0x2b64f4
pushq $0x4
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x28ff55(%rip), %r14    # 0x2ba500
xorl %r12d, %r12d
pushq $0x3c
popq %r15
movslq 0x28bf3b(%rip), %rax    # 0x2b64f4
cmpq %rax, %r12
jge 0x2a5d4
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8f10
incq %r12
addq $0x3c, %r14
jmp 0x2a5b2
leaq 0x28bf25(%rip), %rsi    # 0x2b6500
movl $0x4000, %edx           # imm = 0x4000
movl %ebx, %edi
callq 0x8f10
leaq 0x2ede22(%rip), %rsi    # 0x318410
pushq $0x4
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x2dbf01(%rip), %r14    # 0x306500
xorl %r12d, %r12d
pushq $0x64
popq %r15
movslq 0x2ede03(%rip), %rax    # 0x318410
cmpq %rax, %r12
jge 0x2a628
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8f10
incq %r12
addq $0x64, %r14
jmp 0x2a606
leaq 0x2e1331(%rip), %rsi    # 0x30b960
pushq $0x4
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x2e5330(%rip), %r14    # 0x30f970
xorl %r12d, %r12d
pushq $0x1c
popq %r15
movslq 0x2e1312(%rip), %rax    # 0x30b960
cmpq %rax, %r12
jge 0x2a669
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8f10
incq %r12
addq $0x1c, %r14
jmp 0x2a647
leaq 0x2e1300(%rip), %rsi    # 0x30b970
movl $0x4000, %edx           # imm = 0x4000
movl %ebx, %edi
callq 0x8f10
leaq 0x2e785d(%rip), %rsi    # 0x311ee0
pushq $0x4
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x2e785c(%rip), %r14    # 0x311ef0
xorl %r15d, %r15d
movslq 0x2e7842(%rip), %rax    # 0x311ee0
cmpq %rax, %r15
jge 0x2a6be
movl $0xa14, %edx            # imm = 0xA14
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
addq $0xa14, %r14            # imm = 0xA14
jmp 0x2a697
leaq 0x2edd5b(%rip), %rsi    # 0x318420
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
callq 0x8f10
leaq 0x2f9d48(%rip), %rsi    # 0x324420
pushq $0x4
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x2e5617(%rip), %r14    # 0x30fd00
xorl %r15d, %r15d
movslq 0x2f9d2d(%rip), %rax    # 0x324420
cmpq %rax, %r15
jge 0x2a713
movl $0x124, %edx            # imm = 0x124
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
addq $0x124, %r14            # imm = 0x124
jmp 0x2a6ec
leaq 0x28bdd6(%rip), %rsi    # 0x2b64f0
pushq $0x4
popq %rdx
movl %ebx, %edi
callq 0x8f10
leaq 0x2e7335(%rip), %r14    # 0x311a60
xorl %r12d, %r12d
pushq $0x1c
popq %r15
movslq 0x28bdb7(%rip), %rax    # 0x2b64f0
cmpq %rax, %r12
jge 0x2a754
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8f10
incq %r12
addq $0x1c, %r14
jmp 0x2a732
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq