// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %r14
leaq 0x3f8c(%rip), %rsi      # 0x10d11
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xcdbe
callq 0x2060
movq %rax, %r14
andl $0x0, (%rax)
movq 0x8(%rbx), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x2260
cmpl $0x22, (%r14)
jne 0xce0e
movq 0x8(%rbx), %rsi
leaq 0x479a(%rip), %rdi      # 0x11556
jmp 0xcdf9
leaq 0x420a(%rip), %rsi      # 0x10fcf
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xce24
callq 0x2060
movq %rax, %r14
andl $0x0, (%rax)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x20b0
cmpl $0x22, (%r14)
jne 0xce5e
movq 0x8(%rbx), %rsi
leaq 0x4770(%rip), %rdi      # 0x11569
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdb45
movq %rax, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdc64
leaq 0x41ab(%rip), %rsi      # 0x10fd6
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xce71
movq 0x8(%rbx), %rdi
leaq 0x4738(%rip), %rsi      # 0x1157b
callq 0xf0d6
movzbl %al, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdd3e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdc79
leaq 0x3ed6(%rip), %rsi      # 0x10d4e
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xceee
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x2110
movb $0x0, -0x1(%r14,%rax)
movq 0x8(%rbx), %rdi
incq %rdi
callq 0x2110
leaq 0x1(%rax), %rdi
callq 0xd323
movq %rax, %r14
movq 0x8(%rbx), %rsi
incq %rsi
movq %rax, %rdi
callq 0x2080
movq %r14, %rdi
callq 0xa3bf
movq %rax, %rbx
movq %rax, %rdi
callq 0xdcf6
movq %rax, %r14
movq %rbx, %rdi
callq 0x23f0
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40ee(%rip), %rsi      # 0x10fe3
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xcf38
movq 0x20(%rbx), %rax
movq 0x8(%rax), %r14
movq (%r14), %rdi
leaq 0x3812(%rip), %rsi      # 0x10726
callq 0x23c0
movq 0x8(%r14), %r14
testq %rax, %rax
je 0xcf63
movq %r14, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdce8
leaq 0x37e7(%rip), %rsi      # 0x10726
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xcfc0
movq 0x8(%rbx), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdc99
movq %r14, %rdi
callq 0x2110
movb $0x0, -0x1(%r14,%rax)
movq 0x20(%rbx), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
incq %rdi
callq 0x2110
leaq 0x1(%rax), %rdi
callq 0xd323
movq %rax, %r14
movq 0x20(%rbx), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2080
movq %r14, %rdi
callq 0xa3bf
movq %rax, %rbx
movq %rax, %rdi
callq 0xdce8
jmp 0xced1
leaq 0x4030(%rip), %rsi      # 0x10ff7
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xd0c6
movb $0x1, %al
movl %eax, 0x10(%rsp)
xorl %r13d, %r13d
callq 0xde34
movq %rax, 0x8(%rsp)
leaq 0x3d6f(%rip), %r15      # 0x10d61
leaq 0x3f55(%rip), %r12      # 0x10f4e
movslq 0x1c(%rbx), %rax
cmpq %rax, %r13
jge 0xd252
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0xf0d6
testb %al, %al
jne 0xd0b8
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rdi
movq %r12, %rsi
callq 0xf0d6
testb %al, %al
jne 0xd0b8
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %rax
movq (%rax), %rdi
leaq 0x3d09(%rip), %rsi      # 0x10d55
callq 0xf0d6
testb %al, %al
jne 0xd0b8
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %r14
movq (%r14), %rdi
leaq 0x3f74(%rip), %rsi      # 0x10fdb
callq 0x23c0
testq %rax, %rax
jne 0xd0b8
movq %r14, %rdi
callq 0xcd6a
movq %rax, %r14
testb $0x1, 0x10(%rsp)
je 0xd08d
movl $0x0, 0x10(%rsp)
jmp 0xd0bb
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0xe030
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
callq 0xded1
movq %r14, %rdi
callq 0xded1
movb $0x1, %al
movl %eax, 0x10(%rsp)
movq %rbp, %r14
incq %r13
movq %r14, %rbp
jmp 0xcff9
leaq 0x3e5b(%rip), %rsi      # 0x10f28
movq %r14, %rdi
callq 0xf0d6
testb %al, %al
jne 0xd0f4
movq (%rbx), %r14
leaq 0x3f08(%rip), %rsi      # 0x10feb
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xd25c
callq 0xde71
movq %rax, 0x8(%rsp)
xorl %r14d, %r14d
leaq 0x3c53(%rip), %r15      # 0x10d5b
leaq 0x3c4e(%rip), %r12      # 0x10d5d
leaq 0x3c49(%rip), %r13      # 0x10d5f
leaq 0x3e41(%rip), %rbp      # 0x10f5e
movslq 0x1c(%rbx), %rax
cmpq %rax, %r14
jge 0xd252
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
movq %r12, %rsi
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
movq %r13, %rsi
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
movq %rbp, %rsi
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
leaq 0x3e1e(%rip), %rsi      # 0x10fcb
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
leaq 0x3d37(%rip), %rsi      # 0x10f04
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
leaq 0x436b(%rip), %rsi      # 0x11554
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax), %rdi
leaq 0x3b51(%rip), %rsi      # 0x10d55
callq 0xf0d6
testb %al, %al
jne 0xd24a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq %rax, 0x10(%rsp)
movq (%rax), %rdi
leaq 0x3db7(%rip), %rsi      # 0x10fdb
callq 0x23c0
testq %rax, %rax
jne 0xd24a
movq 0x10(%rsp), %rdi
callq 0xcd6a
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xdf95
movq %rax, 0x8(%rsp)
incq %r14
jmp 0xd11d
movq 0x8(%rsp), %rax
jmp 0xcedf
leaq 0x3d8e(%rip), %rsi      # 0x10ff1
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xd27a
callq 0xde89
jmp 0xd0f9
leaq 0x3d7b(%rip), %rsi      # 0x10ffc
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xd298
callq 0xdea1
jmp 0xd0f9
leaq 0x3d63(%rip), %rsi      # 0x11002
movq %r14, %rdi
callq 0x23c0
testq %rax, %rax
je 0xd2b6
callq 0xdeb9
jmp 0xd0f9
movq $0x0, 0x8(%rsp)
jmp 0xd0fe