// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/parser.cpp
// Function: parser::refty_abbreviation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
refty_result_t refty_abbreviation(std::string const& input, size_t& pos) {
    std::string arg = "@blah";
    size_t prev_pos = pos;
    auto sty_result = simple_type(input, pos); // in the cold night : a:int
    if (sty_result.is_error()) {
        pos = prev_pos;
        EXPECT(ident_token, Ident);
        EXPECT(colon_token, Colon);
        arg = ident_token.lexime;
        sty_result = simple_type(input, pos);
    }
    if (sty_result.is_ok()) {
        return refty_result_t::ok(ast::refinement_type_t {
            arg, sty_result.ok(), make<logic::top_formula_t>()
            });
    } else {
        return sty_result.convert<ast::refinement_type_t>();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28316(%rip), %rsi     # 0x48398
leaq 0x28314(%rip), %rdx     # 0x4839d
leaq 0x38(%rsp), %rdi
callq 0x11866
movq (%r14), %r12
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1f1a8
cmpb $0x0, 0x88(%rsp)
je 0x20157
cmpb $0x1, 0x88(%rsp)
jne 0x202b8
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xad30
leaq 0x58(%rsp), %rdi
callq 0x24b88
movl (%rax), %eax
movl %eax, 0x20(%rsp)
movl $0x18, %edi
callq 0x92d0
movq %rax, %rcx
movabsq $0x100000001, %rdx      # imm = 0x100000001
movq %rdx, 0x8(%rax)
leaq 0x41816(%rip), %rdx     # 0x61928
movq %rdx, (%rax)
addq $0x10, %rax
leaq 0x41858(%rip), %rdx     # 0x61978
movq %rdx, 0x10(%rcx)
movq %rax, 0x28(%rsp)
movq %rcx, 0x30(%rsp)
movb $0x1, 0x38(%rbx)
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rsp), %rdx
cmpq %r14, %rdx
je 0x2034f
movq %rdx, (%rbx)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x20356
movq %r12, (%r14)
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0xa, %ecx
callq 0x1c868
cmpb $0x0, 0x30(%rsp)
je 0x202d2
movq %rsp, %rdi
callq 0x2494c
movups (%rax), %xmm0
leaq 0xd0(%rsp), %r12
movaps %xmm0, -0x10(%r12)
leaq 0xe0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xad30
movq 0xd8(%rsp), %rdx
addq 0xc8(%rsp), %rdx
movq %rdx, (%r14)
leaq 0xf8(%rsp), %rdi
movq %r15, %rsi
movl $0x1c, %ecx
callq 0x1c868
movb 0x128(%rsp), %bpl
testb %bpl, %bpl
je 0x202f2
leaq 0xf8(%rsp), %rdi
callq 0x2494c
movups (%rax), %xmm0
leaq 0xa0(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xad30
movq 0xa8(%rsp), %rax
addq 0x98(%rsp), %rax
movq %rax, (%r14)
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x9170
leaq 0x130(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1f1a8
leaq 0x58(%rsp), %rdi
leaq 0x130(%rsp), %r14
movq %r14, %rsi
callq 0x24c88
cmpb $0x0, 0x30(%r14)
jne 0x20291
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20291
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x2030a
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2030a
leaq 0x58(%rsp), %rdi
callq 0x283e6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c0e
jmp 0x203a7
movq %rsp, %rdi
callq 0x248f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c0e
movq %rsp, %rdi
callq 0x28218
jmp 0x203a7
leaq 0xf8(%rsp), %rdi
callq 0x248f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c0e
leaq 0xf8(%rsp), %rdi
callq 0x28218
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x2033c
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rsp, %rdi
callq 0x28218
testb %bpl, %bpl
jne 0x200b4
jmp 0x203a7
movups (%r14), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rbx)
movq %r14, (%rsp)
xorl %ecx, %ecx
movq %rcx, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movl 0x20(%rsp), %edx
movl %edx, 0x20(%rbx)
movq %rax, 0x28(%rbx)
movq %rcx, 0x30(%rbx)
movq 0x30(%rsp), %rax
movq %rcx, 0x30(%rsp)
movq %rax, 0x30(%rbx)
movq %rcx, 0x28(%rsp)
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x203a7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
cmpb $0x0, 0x88(%rsp)
jne 0x203cc
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x203cc
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x203e3
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x203fa
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x20429
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x20429
jmp 0x20426
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x28218
jmp 0x2043b
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x20486
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x20486
jmp 0x20464
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x20495
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x20495
jmp 0x20492
jmp 0x20483
movq %rax, %rbx
movq %rsp, %rdi
callq 0x28218
jmp 0x20495
jmp 0x20492
movq %rax, %rbx
cmpb $0x0, 0x88(%rsp)
jne 0x204bf
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x204bf
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x204bf
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x204d6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0