// File: /workspace/github_c_makefile_star2_O3/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 0x3000f6(%rip), %rsi    # 0x32e424
movl $0x4, %edx
callq 0x8f10
cmpl $0x0, 0x3000e5(%rip)    # 0x32e424
jle 0x2e36d
leaq 0x3000e8(%rip), %r14    # 0x32e430
xorl %r15d, %r15d
movl $0x18, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x3000c0(%rip), %rax    # 0x32e424
addq $0x18, %r14
cmpq %rax, %r15
jl 0x2e34b
leaq 0x3004bc(%rip), %rsi    # 0x32e830
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
cmpw $0x0, 0x3004a8(%rip)    # 0x32e830
jle 0x2e3b7
leaq 0x3004af(%rip), %r14    # 0x32e840
xorl %r15d, %r15d
movl $0x10, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movswq 0x300482(%rip), %rax    # 0x32e830
addq $0x10, %r14
cmpq %rax, %r15
jl 0x2e394
leaq 0x300792(%rip), %rsi    # 0x32eb50
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x292123(%rip), %rsi    # 0x2c04f4
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x292110(%rip)    # 0x2c04f4
jle 0x2e412
leaq 0x296113(%rip), %r14    # 0x2c4500
xorl %r15d, %r15d
movl $0x3c, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2920eb(%rip), %rax    # 0x2c04f4
addq $0x3c, %r14
cmpq %rax, %r15
jl 0x2e3f0
leaq 0x2920e7(%rip), %rsi    # 0x2c0500
movl $0x4000, %edx           # imm = 0x4000
movl %ebx, %edi
callq 0x8f10
leaq 0x2f3fe4(%rip), %rsi    # 0x322410
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2f3fd1(%rip)    # 0x322410
jle 0x2e46d
leaq 0x2e20b8(%rip), %r14    # 0x310500
xorl %r15d, %r15d
movl $0x64, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2f3fac(%rip), %rax    # 0x322410
addq $0x64, %r14
cmpq %rax, %r15
jl 0x2e44b
leaq 0x2e74ec(%rip), %rsi    # 0x315960
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2e74d9(%rip)    # 0x315960
jle 0x2e4b5
leaq 0x2eb4e0(%rip), %r14    # 0x319970
xorl %r15d, %r15d
movl $0x1c, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2e74b4(%rip), %rax    # 0x315960
addq $0x1c, %r14
cmpq %rax, %r15
jl 0x2e493
leaq 0x2e74b4(%rip), %rsi    # 0x315970
movl $0x4000, %edx           # imm = 0x4000
movl %ebx, %edi
callq 0x8f10
leaq 0x2eda11(%rip), %rsi    # 0x31bee0
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2ed9fe(%rip)    # 0x31bee0
jle 0x2e513
leaq 0x2eda05(%rip), %r14    # 0x31bef0
xorl %r15d, %r15d
movl $0xa14, %edx            # imm = 0xA14
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2ed9d9(%rip), %rax    # 0x31bee0
addq $0xa14, %r14            # imm = 0xA14
cmpq %rax, %r15
jl 0x2e4ee
leaq 0x2f3f06(%rip), %rsi    # 0x322420
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
callq 0x8f10
leaq 0x2ffef3(%rip), %rsi    # 0x32e420
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x2ffee0(%rip)    # 0x32e420
jle 0x2e571
leaq 0x2eb7b7(%rip), %r14    # 0x319d00
xorl %r15d, %r15d
movl $0x124, %edx            # imm = 0x124
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x2ffebb(%rip), %rax    # 0x32e420
addq $0x124, %r14            # imm = 0x124
cmpq %rax, %r15
jl 0x2e54c
leaq 0x291f78(%rip), %rsi    # 0x2c04f0
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
cmpl $0x0, 0x291f65(%rip)    # 0x2c04f0
jle 0x2e5b9
leaq 0x2ed4cc(%rip), %r14    # 0x31ba60
xorl %r15d, %r15d
movl $0x1c, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
incq %r15
movslq 0x291f40(%rip), %rax    # 0x2c04f0
addq $0x1c, %r14
cmpq %rax, %r15
jl 0x2e597
popq %rbx
popq %r14
popq %r15
retq