// File: /workspace/github_c_makefile_star2_O0/sasairc[P]yasuna/src/subset.c
// Function: parse_dict_file
int parse_dict_file(FILE* fp, polyaness_t** pt)
{
    int     i       = 0,
            status  = 0;

    if (parse_polyaness(fp, 0, pt) < 0) {
        status = -1; goto ERR;
    }

    /*
     * 1. polyaness dict
     * 2. plain dict
     */
    if (strcmp_lite("polyaness_dict",
                get_polyaness("filetype", 0, pt)) == 0) {
        /* release header */
        release_polyaness_cell(&(*(*pt)->record));

        /* shift record */
        i = 0;
        while (i < (*pt)->recs &&
                (*((*pt)->record + i) = *((*pt)->record + (i + 1))))
            i++;
        (*pt)->recs--;
    } else {
        if (plain_dict_to_polyaness(fp, pt) < 0) {
            status = -2; goto ERR;
        }
    }

    return 0;

ERR:
    switch (status) {
        case    -1:
            fprintf(stderr, "%s: parse_polyaness() failure\n",
                    PROGNAME);
            break;
        case    -2:
            fprintf(stderr, "%s: plain_dict_to_polyaness() failure\n",
                    PROGNAME);
            break;
    }

    return status;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
xorl %esi, %esi
callq 0xfaf0
cmpl $0x0, %eax
jge 0x10aae
movl $0xffffffff, -0x20(%rbp) # imm = 0xFFFFFFFF
jmp 0x10b81
movq -0x18(%rbp), %rdx
leaq 0x1af0(%rip), %rdi      # 0x125a9
xorl %esi, %esi
callq 0x100c0
movq %rax, %rsi
leaq 0x1ad0(%rip), %rdi      # 0x1259a
callq 0x8ca0
cmpl $0x0, %eax
jne 0x10b5b
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x10400
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rax
movq (%rax), %rdx
xorl %eax, %eax
cmpl (%rdx), %ecx
movb %al, -0x21(%rbp)
jge 0x10b37
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movq 0x8(%rcx), %rcx
movslq -0x1c(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x10b40
jmp 0x10b4b
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x10aef
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
jmp 0x10b78
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x10bf0
cmpl $0x0, %eax
jge 0x10b76
movl $0xfffffffe, -0x20(%rbp) # imm = 0xFFFFFFFE
jmp 0x10b81
jmp 0x10b78
movl $0x0, -0x4(%rbp)
jmp 0x10bde
movl -0x20(%rbp), %eax
movl %eax, -0x28(%rbp)
subl $-0x2, %eax
je 0x10bb9
jmp 0x10b8e
movl -0x28(%rbp), %eax
subl $-0x1, %eax
jne 0x10bd8
jmp 0x10b98
movq 0x5441(%rip), %rax      # 0x15fe0
movq (%rax), %rdi
leaq 0x1a09(%rip), %rsi      # 0x125b2
leaq 0x166a(%rip), %rdx      # 0x1221a
movb $0x0, %al
callq 0x23a0
jmp 0x10bd8
movq 0x5420(%rip), %rax      # 0x15fe0
movq (%rax), %rdi
leaq 0x1a07(%rip), %rsi      # 0x125d1
leaq 0x1649(%rip), %rdx      # 0x1221a
movb $0x0, %al
callq 0x23a0
movl -0x20(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)