// File: /workspace/github_c_makefile_star2_O3/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 %rdx, -0x60(%rbp)
testq %rdx, %rdx
leaq 0x6a4(%rip), %rax       # 0x1b06
leaq 0x6f1(%rip), %rdx       # 0x1b5a
movq %rdx, %r9
cmoveq %rax, %r9
movq %r9, -0x58(%rbp)
testq %r8, %r8
movq %rdx, %r9
cmoveq %rax, %r9
movq %r9, -0x40(%rbp)
movq %rsi, -0x98(%rbp)
movq %rcx, -0x78(%rbp)
testq %rcx, %rcx
cmoveq %rax, %rdx
movq %rdx, -0x70(%rbp)
movq %rdi, -0x30(%rbp)
movl $0x1, %r12d
leaq -0x114a0(%rbp), %rbx
leaq -0x14a0(%rbp), %r14
leaq -0x10a0(%rbp), %r15
leaq -0x4a0(%rbp), %r13
movq %r8, -0x38(%rbp)
movq %rbx, %rdi
movl $0xffff, %esi           # imm = 0xFFFF
movq -0x98(%rbp), %rdx
callq 0x1100
testq %rax, %rax
je 0x1904
movq %r12, -0x48(%rbp)
cmpl $0x0, -0x64(%rbp)
je 0x159c
movl $0xbf800000, -0x90(%rbp) # imm = 0xBF800000
movq -0x30(%rbp), %rax
movzbl 0xc(%rax), %esi
movq %r13, %rdi
callq 0x20d4
movq %rbx, %rdi
leaq 0x4b35(%rip), %rsi      # 0x6046
movq %r14, %rdx
movq %r15, %rcx
leaq -0x8a0(%rbp), %r12
movq %r12, %r8
leaq -0x90(%rbp), %r9
xorl %eax, %eax
callq 0x1170
cmpl $0x4, %eax
jne 0x1668
movq %r14, %rdi
movq -0x38(%rbp), %r13
movq %r13, %rsi
movq -0x40(%rbp), %rbx
callq *%rbx
movq %rax, %r14
movq %r15, %rdi
movq %r13, %rsi
callq *%rbx
movq %rax, %r15
movq %r12, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
cmpq $-0x1, %r14
sete %cl
cmpq $-0x1, %r15
sete %dl
orb %cl, %dl
cmpq $-0x1, %rax
sete %cl
orb %dl, %cl
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
jne 0x18db
movss -0x90(%rbp), %xmm0
jmp 0x16ea
movq -0x30(%rbp), %rax
movzbl 0xc(%rax), %esi
leaq -0x90(%rbp), %rdi
callq 0x20d4
leaq -0x4c(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
leaq 0x4a81(%rip), %rsi      # 0x6043
movq %r14, %rdx
movq %r15, %rcx
leaq -0x8a0(%rbp), %r12
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1170
cmpl $0x5, %eax
jne 0x1704
movq %r14, %rdi
movq -0x38(%rbp), %r14
movq %r14, %rsi
movq -0x40(%rbp), %rbx
callq *%rbx
movq %r14, %rsi
movq %r12, %r14
movq %rax, %r12
movq %r15, %rdi
callq *%rbx
movq %rax, %r15
movq %r14, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
movq %rax, %r14
movq %r13, %rdi
movq -0x78(%rbp), %rsi
callq *-0x70(%rbp)
movq %r12, %rsi
cmpq $-0x1, %r12
sete %cl
cmpq $-0x1, %r15
sete %dl
orb %cl, %dl
cmpq $-0x1, %r14
sete %cl
cmpq $-0x1, %rax
sete %dil
orb %cl, %dil
orb %dl, %dil
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq -0x48(%rbp), %r12
jne 0x18db
movss -0x4c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %r15, %rdx
movq %r14, %rcx
jmp 0x16f7
movq %rbx, %rdi
leaq 0x49e3(%rip), %rsi      # 0x6055
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x1170
cmpl $0x3, %eax
jne 0x17ac
movq %r14, %rdi
movq -0x38(%rbp), %r13
movq %r13, %rsi
movq -0x40(%rbp), %rbx
callq *%rbx
movq %rax, %r14
movq %r15, %rdi
movq %r13, %rsi
callq *%rbx
movq %rax, %r15
movq %r12, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
cmpq $-0x1, %r14
sete %cl
cmpq $-0x1, %r15
sete %dl
orb %cl, %dl
cmpq $-0x1, %rax
sete %cl
orb %dl, %cl
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
jne 0x18db
movss -0x48c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
movq %rax, %r8
callq 0x1b9d
jmp 0x18d9
movq %rbx, %rdi
leaq 0x4944(%rip), %rsi      # 0x6052
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1170
cmpl $0x4, %eax
jne 0x17ff
movq %r14, %rdi
movq -0x38(%rbp), %r14
movq %r14, %rsi
movq -0x40(%rbp), %rbx
callq *%rbx
movq %r14, %rsi
movq %rax, %r14
movq %r15, %rdi
callq *%rbx
movq %rax, %rbx
movq %r12, %rdi
movq -0x60(%rbp), %rsi
callq *-0x58(%rbp)
movq %rax, %r15
movq %r13, %rdi
movq -0x78(%rbp), %rsi
callq *-0x70(%rbp)
movq %rbx, %rdx
cmpq $-0x1, %r14
sete %cl
cmpq $-0x1, %rbx
sete %r8b
orb %cl, %r8b
cmpq $-0x1, %r15
sete %cl
cmpq $-0x1, %rax
sete %dil
orb %cl, %dil
orb %r8b, %dil
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq -0x48(%rbp), %r12
jne 0x18db
movss -0x7c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rcx
jmp 0x16f7
movq %rbx, %rdi
leaq 0x4896(%rip), %rsi      # 0x604c
leaq -0xca0(%rbp), %r14
movq %r14, %rdx
leaq -0x90(%rbp), %rcx
xorl %eax, %eax
callq 0x1170
cmpl $0x2, %eax
jne 0x184c
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
je 0x18fd
movss -0x90(%rbp), %xmm0
jmp 0x18cd
movq %rbx, %rdi
leaq 0x4843(%rip), %rsi      # 0x604c
leaq -0xca0(%rbp), %r14
movq %r14, %rdx
leaq -0x4c(%rbp), %rcx
xorl %eax, %eax
callq 0x1170
cmpl $0x2, %eax
jne 0x188f
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
je 0x18fd
movss -0x4c(%rbp), %xmm0
jmp 0x18cd
movq %rbx, %rdi
leaq 0x4805(%rip), %rsi      # 0x605b
movq %r14, %rdx
xorl %eax, %eax
callq 0x1170
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x1, %eax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
jne 0x18db
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
je 0x18db
movss -0x48c(%rbp), %xmm0
jmp 0x18cd
movq %rbx, %rdi
leaq 0x47c2(%rip), %rsi      # 0x605b
movq %r14, %rdx
xorl %eax, %eax
callq 0x1170
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x1, %eax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
jne 0x18db
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
je 0x18db
movss -0x7c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x1c10
xorl %ebx, %ebx
incq %r12
testl %ebx, %ebx
leaq -0x114a0(%rbp), %rbx
leaq -0x14a0(%rbp), %r14
leaq -0x10a0(%rbp), %r15
je 0x14c2
jmp 0x193b
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x18db
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x1925
leaq 0x470b(%rip), %rsi      # 0x601f
callq 0x2d09
cmpq $-0x1, %rax
je 0x1925
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
leaq -0x114a0(%rbp), %rsi
movq %r12, %rdi
callq 0x11f0