// File: /workspace/github_c_makefile_star2_O3/ryvnf[P]czc/type.c
// Function: type_from_ast
struct type *type_from_ast(struct ast *ast)
{
    switch (ast->tag) {
        case PTR_EXPR:
            return type_from_ptr_ast(ast);
        case ARRAY_EXPR:
            return type_from_array_ast(ast);
        case FUNC_EXPR:
            return type_from_func_ast(ast);
        case NAME:
            return type_from_name_ast(ast);
        case STRUCT_EXPR:
            return type_from_struct_ast(ast);
    }
    abort();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl (%rdi), %ecx
leal -0x4300(%rcx), %eax
cmpl $0x3, %eax
ja 0xba64
leaq 0x2f23(%rip), %rcx      # 0xe950
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
xorl %esi, %esi
callq 0x27e8
movq %rax, %rdi
callq 0xba08
movq %rax, %rbx
movl $0x10, %edi
callq 0x2160
movl $0x1008, (%rax)         # imm = 0x1008
movq %rbx, 0x8(%rax)
jmp 0xbc28
cmpl $0x1000, %ecx           # imm = 0x1000
jne 0xbc51
movq %rbx, %rdi
callq 0x26f0
movq %rax, %r15
leaq 0x835e(%rip), %rax      # 0x13de0
movq (%rax), %rdi
movq %r15, %rsi
callq 0xb113
testq %rax, %rax
jne 0xbc28
movq 0x8(%rbx), %rdi
leaq 0x315c(%rip), %rsi      # 0xebfd
jmp 0xbc47
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbc56
leaq 0x20(%rsp), %r12
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2825
movq %rax, %r15
movq (%r12), %rdi
shlq $0x4, %rdi
addq $0x20, %rdi
callq 0x2160
movq %rax, %rbx
movl $0x40, (%rax)
callq 0x31ff
movq %rax, 0x8(%rbx)
movq (%r12), %rax
movq %rax, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
leaq 0x82ce(%rip), %rcx      # 0x13dd8
movl (%rcx), %edx
leal 0x1(%rdx), %esi
movl %esi, (%rcx)
movq %rbx, 0x8(%rsp)
movl %edx, 0x1c(%rbx)
testq %rax, %rax
je 0xbbdc
movq 0x8(%rsp), %rax
leaq 0x28(%rax), %rbp
xorl %ebx, %ebx
movq (%r15,%rbx,8), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x27e8
movq %rax, %rdi
callq 0x26f0
movq %rax, %rdi
callq 0x2220
movq %rax, %r13
movl $0x1, %esi
movq %r12, %rdi
callq 0x27e8
movq %rax, %rdi
callq 0xba08
orb $0x4, 0x1(%rax)
movq %r13, -0x8(%rbp)
movq %rax, (%rbp)
incq %rbx
movq 0x20(%rsp), %r12
addq $0x10, %rbp
cmpq %r12, %rbx
jb 0xbb2d
testq %r12, %r12
je 0xbbdc
movq 0x8(%rsp), %rax
leaq 0x20(%rax), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x30(%rax), %r13
xorl %r14d, %r14d
movq %r14, %rax
incq %r14
cmpq %r12, %r14
jae 0xbbd3
shlq $0x4, %rax
movq 0x18(%rsp), %rcx
movq (%rcx,%rax), %r15
movq %r13, %rbx
movq %r14, %rbp
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x2100
testl %eax, %eax
je 0xbc37
incq %rbp
addq $0x10, %rbx
cmpq %r12, %rbp
jb 0xbbb8
addq $0x10, %r13
cmpq %r12, %r14
jne 0xbb9a
movq 0x8(%rsp), %rax
jmp 0xbc28
movq %rbx, %rdi
xorl %esi, %esi
callq 0x27e8
movq %rax, %rdi
callq 0xba08
movq %rax, %r15
movl $0x1, %esi
movq %rbx, %rdi
callq 0x27e8
movq %rax, %rdi
callq 0x679a
movq %rax, %rbx
movl $0x18, %edi
callq 0x2160
movl $0x10, (%rax)
movq %r15, 0x8(%rax)
movq %rbx, 0x10(%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x2fcf(%rip), %rsi      # 0xec16
movq %r15, %rdx
xorl %eax, %eax
callq 0x4fa1
callq 0x2040