// File: /workspace/github_c_makefile_star2_O1/voithos[P]awl/src/parser.c
// Function: awlval_read
static awlval* awlval_read(const mpc_ast_t* t) {
    if (strstr(t->tag, "integer")) {
        return awlval_read_int(t);
    }
    if (strstr(t->tag, "fpoint")) {
        return awlval_read_float(t);
    }
    if (strstr(t->tag, "bool")) {
        return awlval_read_bool(t);
    }
    if (strstr(t->tag, "string")) {
        return awlval_read_string(t);
    }
    if (strstr(t->tag, "qsymbol")) {
        return awlval_read_qsym(t);
    }
    if (strstr(t->tag, "symbol")) {
        return awlval_read_sym(t);
    }
    if (strstr(t->tag, "dict")) {
        return awlval_read_dict(t);
    }

    awlval* x = NULL;
    /* If root '>' */
    if (streq(t->tag, ">")) {
        x = awlval_sexpr();
    }
    else if (strstr(t->tag, "sexpr")) {
        x = awlval_sexpr();
    }
    else if (strstr(t->tag, "qexpr")) {
        x = awlval_qexpr();
    }
    else if (strstr(t->tag, "eexpr")) {
        x = awlval_eexpr();
    }
    else if (strstr(t->tag, "cexpr")) {
        x = awlval_cexpr();
    }

    for (int i = 0; i < t->children_num; i++) {
        if (streq(t->children[i]->contents, "(")) { continue; }
        if (streq(t->children[i]->contents, ")")) { continue; }
        if (streq(t->children[i]->contents, "{")) { continue; }
        if (streq(t->children[i]->contents, "}")) { continue; }
        if (streq(t->children[i]->contents, ":")) { continue; }
        if (streq(t->children[i]->contents, "\\")) { continue; }
        if (streq(t->children[i]->contents, "@")) { continue; }
        if (streq(t->children[i]->tag, "regex")) { continue; }
        if (strstr(t->children[i]->tag, "comment")) { continue; }
        x = awlval_add(x, awlval_read(t->children[i]));
    }

    return x;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
leaq 0x37ed(%rip), %rsi      # 0x12cc1
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf512
callq 0x2060
movq %rax, %r14
movl $0x0, (%rax)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2260
cmpl $0x22, (%r14)
jne 0xf565
movq 0x8(%rbx), %rsi
leaq 0x3ff6(%rip), %rdi      # 0x13506
jmp 0xf550
leaq 0x3a66(%rip), %rsi      # 0x12f7f
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf57b
callq 0x2060
movq %rax, %r14
movl $0x0, (%rax)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x20b0
cmpl $0x22, (%r14)
jne 0xf5b1
movq 0x8(%rbx), %rsi
leaq 0x3fc9(%rip), %rdi      # 0x13519
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1032f
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10437
leaq 0x3a04(%rip), %rsi      # 0x12f86
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf5c4
movq 0x8(%rbx), %rdi
leaq 0x3f91(%rip), %rsi      # 0x1352b
callq 0x11b89
testb %al, %al
je 0xf64d
movl $0x1, %edi
jmp 0xf64f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1045b
leaq 0x3733(%rip), %rsi      # 0x12cfe
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf662
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x2110
movb $0x0, -0x1(%r14,%rax)
movq 0x8(%rbx), %rbx
incq %rbx
movq %rbx, %rdi
callq 0x2110
leaq 0x1(%rax), %rdi
callq 0x2290
testq %rax, %rax
je 0xf8cd
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2080
movq %r14, %rdi
callq 0xc022
movq %rax, %rbx
movq %rax, %rdi
callq 0x104fa
movq %rax, %r14
movq %rbx, %rdi
callq 0x23f0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10558
leaq 0x392a(%rip), %rsi      # 0x12f93
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf68c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf931
leaq 0x3077(%rip), %rsi      # 0x1270a
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf6b7
movq 0x8(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10487
leaq 0x38e9(%rip), %rsi      # 0x12fa7
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf6e1
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf9d6
leaq 0x37f0(%rip), %rsi      # 0x12ed8
movq %r14, %rdi
callq 0x11b89
testb %al, %al
jne 0xf70f
movq (%rbx), %r14
leaq 0x389d(%rip), %rsi      # 0x12f9b
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf86b
callq 0x106d7
movq %rax, %r14
cmpl $0x0, 0x1c(%rbx)
jle 0xf63b
xorl %ebp, %ebp
leaq 0x35e1(%rip), %r15      # 0x12d0b
leaq 0x35dc(%rip), %r12      # 0x12d0d
leaq 0x35d7(%rip), %r13      # 0x12d0f
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
movq %r12, %rsi
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
movq %r13, %rsi
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
leaq 0x376f(%rip), %rsi      # 0x12f0e
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
leaq 0x37bc(%rip), %rsi      # 0x12f7b
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
leaq 0x36d5(%rip), %rsi      # 0x12eb4
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
leaq 0x3d09(%rip), %rsi      # 0x13504
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq (%rax), %rdi
leaq 0x34ef(%rip), %rsi      # 0x12d05
callq 0x11b89
testb %al, %al
jne 0xf856
movq 0x20(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq %rax, (%rsp)
movq (%rax), %rdi
leaq 0x3756(%rip), %rsi      # 0x12f8b
callq 0x23c0
testq %rax, %rax
jne 0xf856
movq (%rsp), %rdi
callq 0xf4bc
movq %r14, %rdi
movq %rax, %rsi
callq 0x10835
movq %rax, %r14
incq %rbp
movslq 0x1c(%rbx), %rax
cmpq %rax, %rbp
jl 0xf738
jmp 0xf63b
leaq 0x372f(%rip), %rsi      # 0x12fa1
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf889
callq 0x106fb
jmp 0xf714
leaq 0x371c(%rip), %rsi      # 0x12fac
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf8a7
callq 0x1071f
jmp 0xf714
leaq 0x3704(%rip), %rsi      # 0x12fb2
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xf8c5
callq 0x10743
jmp 0xf714
xorl %r14d, %r14d
jmp 0xf717
callq 0x25e1