// File: /workspace/github_c_makefile_star2_O1/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 0x6a9(%rip), %rax       # 0x1afb
leaq 0x6f6(%rip), %rdx       # 0x1b4f
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 0x18f4
movq %r12, -0x48(%rbp)
cmpl $0x0, -0x64(%rbp)
je 0x158c
movl $0xbf800000, -0x90(%rbp) # imm = 0xBF800000
movq -0x30(%rbp), %rax
movzbl 0xc(%rax), %esi
movq %r13, %rdi
callq 0x20d8
movq %rbx, %rdi
leaq 0x4b45(%rip), %rsi      # 0x6046
movq %r14, %rdx
movq %r15, %rcx
leaq -0x8a0(%rbp), %r12
movq %r12, %r8
leaq -0x90(%rbp), %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x4, %eax
jne 0x1658
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 0x18cb
movss -0x90(%rbp), %xmm0
jmp 0x16da
movq -0x30(%rbp), %rax
movzbl 0xc(%rax), %esi
leaq -0x90(%rbp), %rdi
callq 0x20d8
leaq -0x4c(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
leaq 0x4a91(%rip), %rsi      # 0x6043
movq %r14, %rdx
movq %r15, %rcx
leaq -0x8a0(%rbp), %r12
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x5, %eax
jne 0x16f4
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 0x18cb
movss -0x4c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %r15, %rdx
movq %r14, %rcx
jmp 0x16e7
movq %rbx, %rdi
leaq 0x49f3(%rip), %rsi      # 0x6055
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x1160
cmpl $0x3, %eax
jne 0x179c
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 0x18cb
movss -0x48c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
movq %rax, %r8
callq 0x1b92
jmp 0x18c9
movq %rbx, %rdi
leaq 0x4954(%rip), %rsi      # 0x6052
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x1160
cmpl $0x4, %eax
jne 0x17ef
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 0x18cb
movss -0x7c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rcx
jmp 0x16e7
movq %rbx, %rdi
leaq 0x48a6(%rip), %rsi      # 0x604c
leaq -0xca0(%rbp), %r14
movq %r14, %rdx
leaq -0x90(%rbp), %rcx
xorl %eax, %eax
callq 0x1160
cmpl $0x2, %eax
jne 0x183c
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
je 0x18ed
movss -0x90(%rbp), %xmm0
jmp 0x18bd
movq %rbx, %rdi
leaq 0x4853(%rip), %rsi      # 0x604c
leaq -0xca0(%rbp), %r14
movq %r14, %rdx
leaq -0x4c(%rbp), %rcx
xorl %eax, %eax
callq 0x1160
cmpl $0x2, %eax
jne 0x187f
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
je 0x18ed
movss -0x4c(%rbp), %xmm0
jmp 0x18bd
movq %rbx, %rdi
leaq 0x4815(%rip), %rsi      # 0x605b
movq %r14, %rdx
xorl %eax, %eax
callq 0x1160
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x1, %eax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
jne 0x18cb
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
je 0x18cb
movss -0x48c(%rbp), %xmm0
jmp 0x18bd
movq %rbx, %rdi
leaq 0x47d2(%rip), %rsi      # 0x605b
movq %r14, %rdx
xorl %eax, %eax
callq 0x1160
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x1, %eax
leaq -0x4a0(%rbp), %r13
movq -0x48(%rbp), %r12
jne 0x18cb
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq *-0x40(%rbp)
cmpq $-0x1, %rax
je 0x18cb
movss -0x7c(%rbp), %xmm0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x1c05
xorl %ebx, %ebx
incq %r12
testl %ebx, %ebx
leaq -0x114a0(%rbp), %rbx
leaq -0x14a0(%rbp), %r14
leaq -0x10a0(%rbp), %r15
je 0x14b2
jmp 0x192b
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x18cb
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x1915
leaq 0x471b(%rip), %rsi      # 0x601f
callq 0x2cdc
cmpq $-0x1, %rax
je 0x1915
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 0x11e0