// File: /workspace/github_c_makefile_star2_O3/jiribenes[P]scheme/src/read.c
// Function: read1
static void read1(reader_t *reader) {
    eat_whitespace(reader);

    if (reader->toktype == TOK_EOF) {
        return;
    } else if (reader->toktype == TOK_LPAREN) {
        next_char(reader);
        read_list(reader);
    } else if (reader->toktype == TOK_NUMBER) {
        read_number(reader);
    } else if (reader->toktype == TOK_STRING) {
        read_string(reader);
    } else if (reader->toktype == TOK_QUOTE) {
        read_quote(reader);
    } else if (reader->toktype == TOK_HASH) {
        if (peek_next_char(reader) == 't') {
            next_char(reader);
            next_char(reader);
            reader->tokval = TRUE_VAL;
        } else if (peek_next_char(reader) == 'f') {
            next_char(reader);
            next_char(reader);
            reader->tokval = FALSE_VAL;
        } else if (peek_next_char(reader) == '(') {
            // vector => #(elem1 elem2 elem3 ... )
            read_vector(reader);
        } else {
            error_print(reader, "Invalid token beginning with # - "
                                "only #t, #f and #(...) are supported");
        }
    } else if (reader->toktype == TOK_RPAREN) {
        error_print(reader, "Unexpected ')'");
        next_char(reader);
        return;
    } else if (reader->toktype == TOK_DOT) {
        error_print(reader, "Unexpected '.'");
        next_char(reader);
        return;
    } else if (reader->toktype == TOK_SYMBOL) {
        read_symbol(reader);
        return;
    }

    next_token(reader);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x3fb4
movl 0x30(%rbx), %eax
cmpq $0x9, %rax
ja 0x3ed6
leaq 0x2d6a(%rip), %rcx      # 0x6750
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rax
movb (%rax), %cl
incq %rax
movq %rax, 0x10(%rbx)
incl 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3a0e
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movq %rbx, %rdi
callq 0x3fb4
movq %rbx, %rdi
callq 0x38de
movl 0x30(%rbx), %eax
testl %eax, %eax
je 0x3ec5
cmpl $0x4, %eax
je 0x3e2f
cmpl $0x3, %eax
jne 0x3e3b
movq 0x10(%rbx), %rax
movb (%rax), %cl
incq %rax
movq %rax, 0x10(%rbx)
incl 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3a5a
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movabsq $0x7ffc000000000001, %rax # imm = 0x7FFC000000000001
jmp 0x3cd4
leaq 0x2d6f(%rip), %rsi      # 0x67df
jmp 0x3c27
movq 0x10(%rbx), %rax
movb (%rax), %dl
leaq 0x1(%rax), %rsi
movq %rsi, 0x10(%rbx)
movl 0x24(%rbx), %ecx
incl %ecx
movl %ecx, 0x24(%rbx)
cmpb $0xa, %dl
jne 0x3a9f
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movl $0x1, %ecx
movq %rsi, 0x18(%rbx)
movb (%rsi), %dl
cmpb $0x22, %dl
je 0x3ad9
addq $0x2, %rax
movq %rax, 0x10(%rbx)
incl %ecx
movl %ecx, 0x24(%rbx)
cmpb $0xa, %dl
jne 0x3acb
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movl $0x1, %ecx
movb (%rax), %dl
incq %rax
cmpb $0x22, %dl
jne 0x3aae
addq $-0x2, %rax
leaq 0x2(%rax), %rdx
movq %rdx, 0x10(%rbx)
incl %ecx
movl %ecx, 0x24(%rbx)
movq %rsi, %rcx
notq %rcx
leaq (%rax,%rcx), %rdx
addq $0x2, %rdx
movq (%rbx), %rdi
callq 0x471f
movabsq $-0x4000000000000, %rcx # imm = 0xFFFC000000000000
orq %rax, %rcx
movq %rcx, 0x28(%rbx)
jmp 0x3ed6
movq 0x10(%rbx), %rdx
movabsq $0x600000007a005639, %rax # imm = 0x600000007A005639
movzbl (%rdx), %ecx
leal -0x30(%rcx), %esi
cmpb $0xa, %sil
jb 0x3b63
movl %ecx, %esi
andb $-0x21, %sil
addb $-0x41, %sil
cmpb $0x1a, %sil
jae 0x3b55
incq %rdx
movq %rdx, 0x10(%rbx)
incl 0x24(%rbx)
cmpl $0xa, %ecx
jne 0x3b20
incl 0x20(%rbx)
movl $0x1, %ecx
jmp 0x3b6f
leal -0x21(%rcx), %esi
cmpl $0x3e, %esi
ja 0x3b74
btq %rsi, %rax
jae 0x3b74
incq %rdx
movq %rdx, 0x10(%rbx)
movl 0x24(%rbx), %ecx
incl %ecx
movl %ecx, 0x24(%rbx)
jmp 0x3b20
cmpl $0x7e, %ecx
je 0x3b63
movq (%rbx), %rdi
movq 0x18(%rbx), %rsi
subq %rsi, %rdx
callq 0x49da
movabsq $-0x4000000000000, %rcx # imm = 0xFFFC000000000000
orq %rax, %rcx
movq %rcx, 0x28(%rbx)
jmp 0x3c50
movq 0x10(%rbx), %rax
movb (%rax), %cl
testb %cl, %cl
je 0x3e23
movzbl 0x1(%rax), %esi
cmpl $0x28, %esi
je 0x3f39
leaq 0x1(%rax), %rdx
cmpl $0x66, %esi
je 0x3ee7
cmpl $0x74, %esi
jne 0x3e23
movq %rdx, 0x10(%rbx)
movl 0x24(%rbx), %edx
incl %edx
movl %edx, 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3bef
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movl $0x1, %edx
movb 0x1(%rax), %cl
addq $0x2, %rax
movq %rax, 0x10(%rbx)
incl %edx
movl %edx, 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3c0e
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movabsq $0x7ffc000000000001, %rax # imm = 0x7FFC000000000001
incq %rax
jmp 0x3cd4
leaq 0x2bc7(%rip), %rsi      # 0x67ee
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4035
movq 0x10(%rbx), %rax
movb (%rax), %cl
incq %rax
movq %rax, 0x10(%rbx)
incl 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3c50
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x10(%rbx), %rax
movb (%rax), %cl
incq %rax
movq %rax, 0x10(%rbx)
incl 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3c79
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movq %rbx, %rdi
callq 0x38de
movq (%rbx), %rdi
leaq 0x252a(%rip), %rsi      # 0x61b5
movl $0x5, %edx
callq 0x49da
movq %rax, %r14
movq %rbx, %rdi
callq 0x39c1
movq (%rbx), %r15
movq 0x28(%rbx), %rsi
movabsq $-0x4000000000000, %r12 # imm = 0xFFFC000000000000
orq %r14, %r12
movabsq $0x7ffc000000000001, %rdx # imm = 0x7FFC000000000001
movq %r15, %rdi
callq 0x4a42
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x4a42
movq %rax, 0x28(%rbx)
jmp 0x3ed6
callq 0x1040
movq %rax, %r14
movl $0x0, (%rax)
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x1070
movq 0x10(%rbx), %rax
movzbl (%rax), %ecx
cmpl $0x2d, %ecx
je 0x3d07
cmpl $0x2b, %ecx
jne 0x3d18
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rbx)
incl 0x24(%rbx)
movb 0x1(%rax), %cl
movq %rdx, %rax
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x3d42
movl 0x24(%rbx), %edx
incl %edx
incq %rax
movq %rax, 0x10(%rbx)
movl %edx, 0x24(%rbx)
movb (%rax), %cl
leal -0x30(%rcx), %esi
incl %edx
incq %rax
cmpb $0xa, %sil
jb 0x3d28
decq %rax
cmpb $0x2e, %cl
jne 0x3d92
movb 0x1(%rax), %cl
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x3df8
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rbx)
movl 0x24(%rbx), %esi
leal 0x1(%rsi), %ecx
movl %ecx, 0x24(%rbx)
movb (%rdx), %cl
leal -0x30(%rcx), %edi
cmpb $0x9, %dil
ja 0x3d95
addl $0x2, %esi
addq $0x2, %rax
movq %rax, 0x10(%rbx)
movl %esi, 0x24(%rbx)
movb (%rax), %cl
leal -0x30(%rcx), %edx
incl %esi
incq %rax
cmpb $0xa, %dl
jb 0x3d79
decq %rax
movq %rax, %rdx
movzbl %cl, %eax
orl $0x20, %eax
cmpl $0x65, %eax
jne 0x3df8
leaq 0x1(%rdx), %rax
movq %rax, 0x10(%rbx)
movl 0x24(%rbx), %esi
leal 0x1(%rsi), %ecx
movl %ecx, 0x24(%rbx)
movzbl 0x1(%rdx), %edi
cmpl $0x2d, %edi
je 0x3dbf
cmpl $0x2b, %edi
jne 0x3dd3
leaq 0x2(%rdx), %rax
movq %rax, 0x10(%rbx)
addl $0x2, %esi
movl %esi, 0x24(%rbx)
movb 0x2(%rdx), %dil
movl %esi, %ecx
addb $-0x30, %dil
cmpb $0x9, %dil
ja 0x3df8
incl %ecx
incq %rax
movq %rax, 0x10(%rbx)
movl %ecx, 0x24(%rbx)
movb (%rax), %dl
addb $-0x30, %dl
incl %ecx
incq %rax
cmpb $0xa, %dl
jb 0x3de2
cmpl $0x22, (%r14)
jne 0x3e19
movq 0x18(%rbx), %rax
movsbl (%rax), %edx
leaq 0x2a25(%rip), %rsi      # 0x6831
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4035
xorps %xmm0, %xmm0
movsd %xmm0, 0x28(%rbx)
jmp 0x3ed6
leaq 0x296f(%rip), %rsi      # 0x6799
jmp 0x3ecc
leaq 0x29e4(%rip), %rsi      # 0x681a
jmp 0x3ecc
movabsq $0x7ffc000000000001, %r15 # imm = 0x7FFC000000000001
movq %rbx, %rdi
callq 0x39c1
movq %rbx, %rdi
callq 0x3fb4
movq (%rbx), %rdi
movq 0x28(%rbx), %rsi
movq %r15, %rdx
callq 0x4a42
cmpl $0x0, 0x30(%rbx)
je 0x3ed6
movq %rax, %r14
movabsq $0x3ffffffffffff, %r13  # imm = 0x3FFFFFFFFFFFF
movq %rax, %r12
movq %rbx, %rdi
callq 0x38de
movl 0x30(%rbx), %eax
testl %eax, %eax
je 0x3ec5
andq %r13, %r12
cmpl $0x4, %eax
je 0x3f43
cmpl $0x3, %eax
je 0x3f7b
movq %rbx, %rdi
callq 0x39c1
movq (%rbx), %rdi
movq 0x28(%rbx), %rsi
movq %r15, %rdx
callq 0x4a42
movq %rax, 0x18(%r12)
cmpl $0x0, 0x30(%rbx)
movq %rax, %r12
jne 0x3e7a
jmp 0x3ed6
leaq 0x2931(%rip), %rsi      # 0x67fd
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4035
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x38de
movq %rdx, 0x10(%rbx)
movl 0x24(%rbx), %edx
incl %edx
movl %edx, 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3f07
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movl $0x1, %edx
movb 0x1(%rax), %cl
addq $0x2, %rax
movq %rax, 0x10(%rbx)
incl %edx
movl %edx, 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3f26
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movabsq $0x7ffc000000000001, %rax # imm = 0x7FFC000000000001
orq $0x2, %rax
jmp 0x3cd4
movq %rbx, %rdi
callq 0x40fc
jmp 0x3ed6
movq 0x10(%rbx), %rax
movb (%rax), %cl
incq %rax
movq %rax, 0x10(%rbx)
incl 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3f62
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
movq %rbx, %rdi
callq 0x38de
movq %rbx, %rdi
callq 0x39c1
movq 0x28(%rbx), %rax
movq %rax, 0x18(%r12)
movabsq $-0x4000000000000, %rax # imm = 0xFFFC000000000000
orq %rax, %r14
movq %r14, 0x28(%rbx)
movq 0x10(%rbx), %rax
movb (%rax), %cl
incq %rax
movq %rax, 0x10(%rbx)
incl 0x24(%rbx)
cmpb $0xa, %cl
jne 0x3ed6
incl 0x20(%rbx)
movl $0x1, 0x24(%rbx)
jmp 0x3ed6