// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/compile.c
// Function: fst_compile
struct _fst * fst_compile(
                            struct _fst * fst, 
                            FILE * fin,
                            struct _symt * ist,
                            struct _symt * ost,
                            struct _symt * sst,
                            int is_acc) 
{
    char p[0xffff];
    size_t line = 1;
    int res = 0;

    while (fgets(p, sizeof(p), fin) != NULL) {
        ++line;

        if (is_acc == 0)
            res = _parse_line_sym(fst, p, ist, ost, sst);
        else
            res = _parse_line_sym_acc(fst, p, ist, sst);
        
        if (res != 0) {
                fprintf(stderr, "Invalid input line %zd: %s", line, p);
                exit(EXIT_FAILURE);
        }
    }

    size_t start_state;

    if (sst != NULL) {
        if ( (start_state = symt_getr(sst, START_STATE)) != -1) 
            fst->start = start_state;
    }

    return fst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x11488, %rsp          # imm = 0x11488
movl %r9d, -0x64(%rbp)
movq %rsi, -0x98(%rbp)
movq %rdx, -0x60(%rbp)
testq %rdx, %rdx
leaq 0x6d2(%rip), %rax       # 0x19cb
leaq 0x719(%rip), %rdx       # 0x1a19
movq %rdx, %rsi
cmoveq %rax, %rsi
movq %rsi, -0x58(%rbp)
movq %r8, -0x38(%rbp)
testq %r8, %r8
movq %rdx, %rsi
cmoveq %rax, %rsi
movq %rsi, -0x40(%rbp)
movq %rdi, -0x30(%rbp)
movq %rcx, -0x78(%rbp)
testq %rcx, %rcx
cmoveq %rax, %rdx
movq %rdx, -0x70(%rbp)
pushq $0x1
popq %r13
leaq -0x114a0(%rbp), %rbx
leaq -0x14a0(%rbp), %r15
leaq -0x8a0(%rbp), %r12
leaq -0x4a0(%rbp), %r14
movq %rbx, %rdi
movl $0xffff, %esi           # imm = 0xFFFF
movq -0x98(%rbp), %rdx
callq 0x1100
testq %rax, %rax
je 0x17dc
cmpl $0x0, -0x64(%rbp)
je 0x1429
movl $0xbf800000, -0x90(%rbp) # imm = 0xBF800000
movq -0x30(%rbp), %rax
movzbl 0xc(%rax), %esi
movq %r14, %rdi
callq 0x1f64
movq %rbx, %rdi
leaq 0x4cab(%rip), %rsi      # 0x6046
movq %r15, %rdx
leaq -0x10a0(%rbp), %r14
movq %r14, %rcx
movq %r12, %r8
leaq -0x90(%rbp), %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x4, %eax
jne 0x14f2
movq %r15, %rdi
movq -0x38(%rbp), %r15
movq %r15, %rsi
movq -0x40(%rbp), %r12
callq *%r12
movq %rax, %rbx
movq %r14, %rdi
movq %r15, %rsi
callq *%r12
leaq -0x8a0(%rbp), %r12
movq %rax, %r15
movq %r12, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
cmpq $-0x1, %rbx
sete %cl
cmpq $-0x1, %r15
sete %dl
orb %cl, %dl
cmpq $-0x1, %rax
sete %cl
orb %dl, %cl
pushq $-0x1
popq %rcx
leaq -0x4a0(%rbp), %r14
jne 0x1799
movss -0x90(%rbp), %xmm0
jmp 0x1577
movq %r13, -0x50(%rbp)
movq -0x30(%rbp), %rax
movzbl 0xc(%rax), %esi
leaq -0x90(%rbp), %rdi
callq 0x1f64
leaq -0x44(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
leaq 0x4bf0(%rip), %rsi      # 0x6043
movq %r15, %rdx
movq %r14, %r13
leaq -0x10a0(%rbp), %r14
movq %r14, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x5, %eax
jne 0x1591
movq %r15, %rdi
movq -0x38(%rbp), %rbx
movq %rbx, %rsi
movq -0x40(%rbp), %r15
callq *%r15
movq %r14, %rdi
movq %r12, %r14
movq %rax, %r12
movq %rbx, %rsi
callq *%r15
movq %rax, %r15
movq %r14, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
movq %rax, %rbx
movq %r13, %rdi
movq -0x78(%rbp), %rsi
callq *-0x70(%rbp)
cmpq $-0x1, %r12
sete %cl
cmpq $-0x1, %r15
sete %dl
orb %cl, %dl
cmpq $-0x1, %rbx
sete %cl
cmpq $-0x1, %rax
sete %sil
orb %cl, %sil
orb %dl, %sil
pushq $-0x1
popq %rcx
movq %r13, %r14
movq -0x50(%rbp), %r13
jne 0x1792
movss -0x44(%rbp), %xmm0
jmp 0x162b
movq %rbx, %rdi
leaq 0x4b59(%rip), %rsi      # 0x6055
movq %r15, %rdx
movq %r14, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x1160
cmpl $0x3, %eax
jne 0x1645
movq %r15, %rdi
movq -0x38(%rbp), %r15
movq %r15, %rsi
movq -0x40(%rbp), %r12
callq *%r12
movq %rax, %rbx
movq %r14, %rdi
movq %r15, %rsi
callq *%r12
leaq -0x8a0(%rbp), %r12
movq %rax, %r15
movq %r12, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
cmpq $-0x1, %rbx
sete %cl
cmpq $-0x1, %r15
sete %dl
orb %cl, %dl
cmpq $-0x1, %rax
sete %cl
orb %dl, %cl
pushq $-0x1
popq %rcx
leaq -0x4a0(%rbp), %r14
jne 0x1799
movss -0x48c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
movq %rax, %r8
callq 0x1a5c
jmp 0x173d
movq %rbx, %rdi
leaq 0x4ab7(%rip), %rsi      # 0x6052
movq %r15, %rdx
movq %r14, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x4, %eax
jne 0x1697
movq %r15, %rdi
movq -0x38(%rbp), %rbx
movq %rbx, %rsi
movq -0x40(%rbp), %r15
callq *%r15
movq %r14, %rdi
movq %r12, %r14
movq %rax, %r12
movq %rbx, %rsi
callq *%r15
movq %rax, %r15
movq %r14, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
movq %rax, %rbx
movq %r13, %rdi
movq -0x78(%rbp), %rsi
callq *-0x70(%rbp)
cmpq $-0x1, %r12
sete %cl
cmpq $-0x1, %r15
sete %dl
orb %cl, %dl
cmpq $-0x1, %rbx
sete %cl
cmpq $-0x1, %rax
sete %sil
orb %cl, %sil
orb %dl, %sil
pushq $-0x1
popq %rcx
movq %r13, %r14
movq -0x50(%rbp), %r13
jne 0x1792
movss -0x7c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x1a5c
jmp 0x1790
movq %rbx, %rdi
leaq 0x49fd(%rip), %rsi      # 0x604c
leaq -0xca0(%rbp), %r14
movq %r14, %rdx
leaq -0x90(%rbp), %rcx
xorl %eax, %eax
callq 0x1160
cmpl $0x2, %eax
jne 0x16eb
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
pushq $-0x1
popq %rcx
cmpq $-0x1, %rax
leaq -0x4a0(%rbp), %r14
je 0x1799
movss -0x90(%rbp), %xmm0
jmp 0x1731
movq %rbx, %rdi
leaq 0x49ab(%rip), %rsi      # 0x604c
leaq -0xca0(%rbp), %r14
movq %r14, %rdx
leaq -0x44(%rbp), %rcx
xorl %eax, %eax
callq 0x1160
cmpl $0x2, %eax
jne 0x1741
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
pushq $-0x1
popq %rcx
cmpq $-0x1, %rax
leaq -0x4a0(%rbp), %r14
movq -0x50(%rbp), %r13
je 0x1792
movss -0x44(%rbp), %xmm0
jmp 0x1784
movq %rbx, %rdi
leaq 0x4966(%rip), %rsi      # 0x605b
movq %r14, %rdx
xorl %eax, %eax
callq 0x1160
pushq $-0x1
popq %rcx
cmpl $0x1, %eax
leaq -0x4a0(%rbp), %r14
jne 0x1799
leaq -0xca0(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
pushq $-0x1
popq %rcx
cmpq $-0x1, %rax
je 0x1799
movss -0x48c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x1acc
xorl %ecx, %ecx
jmp 0x1799
movq %rbx, %rdi
leaq 0x4910(%rip), %rsi      # 0x605b
movq %r14, %rdx
xorl %eax, %eax
callq 0x1160
pushq $-0x1
popq %rcx
cmpl $0x1, %eax
leaq -0x4a0(%rbp), %r14
movq -0x50(%rbp), %r13
jne 0x1792
leaq -0xca0(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
pushq $-0x1
popq %rcx
cmpq $-0x1, %rax
je 0x1792
movss -0x7c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x1acc
xorl %ecx, %ecx
leaq -0x8a0(%rbp), %r12
incq %r13
testl %ecx, %ecx
leaq -0x114a0(%rbp), %rbx
leaq -0x14a0(%rbp), %r15
je 0x1350
movq 0x783f(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
leaq 0x4841(%rip), %rsi      # 0x6004
leaq -0x114a0(%rbp), %rcx
movq %r13, %rdx
xorl %eax, %eax
callq 0x1120
pushq $0x1
popq %rdi
callq 0x11b0
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x17fd
leaq 0x4833(%rip), %rsi      # 0x601f
callq 0x2b16
cmpq $-0x1, %rax
je 0x17fd
movq -0x30(%rbp), %rcx
movl %eax, (%rcx)
movq -0x30(%rbp), %rax
addq $0x11488, %rsp          # imm = 0x11488
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq