// File: /workspace/github_cpp_makefile_star2_O3/pfnet-research[P]pml/src/parser.cpp
// Function: parser::dependent_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
depty_result_t dependent_type(std::string const& input, size_t& pos) {
    auto token = next_token(input, pos);
    std::vector<ast::refinement_type_t> args;
    if (token.kind == token_t::kind_t::LParen) {
        EXPECT(lparen_token, LParen);
        auto refty_result = refinement_type(input, pos);
        if (refty_result.is_error())
            return refty_result.convert<ast::dependent_type_t>();
        args.push_back(refty_result.ok());
        while (true) {
            if (next_token(input, pos).kind != token_t::kind_t::Comma)
                break;
            EXPECT(comma_token, Comma);
            auto refty_result = refinement_type(input, pos);
            if (refty_result.is_error())
                return refty_result.convert<ast::dependent_type_t>();
            args.push_back(refty_result.ok());
        }
        EXPECT(rparen_token, RParen);
    } else {
        auto refty_result = refinement_type(input, pos);
        if (refty_result.is_error())
            return refty_result.convert<ast::dependent_type_t>();
        args.push_back(refty_result.ok());
    }
    EXPECT(arrow_token, Arrow);
    auto retty_result = refinement_type(input, pos);
    if (retty_result.is_error())
        return retty_result.convert<ast::dependent_type_t>();
    return depty_result_t::ok(ast::dependent_type_t {
            args, retty_result.ok()
            });
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rdx
leaq 0x198(%rsp), %r12
movq %r12, %rdi
callq 0x1ba35
xorps %xmm0, %xmm0
movaps %xmm0, 0x110(%rsp)
movq $0x0, 0x120(%rsp)
cmpl $0x1f, (%r12)
movq %rbx, 0x8(%rsp)
jne 0x204f7
movq (%r14), %rdx
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
movl $0x1f, %ecx
callq 0x1c56e
cmpb $0x0, 0xb8(%rsp)
je 0x2064f
leaq 0x88(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x140(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x150(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x148(%rsp), %rax
addq 0x138(%rsp), %rax
movq %rax, (%r14)
leaq 0xc0(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20236
cmpb $0x0, 0xf8(%rsp)
je 0x206b3
leaq 0xc0(%rsp), %rdi
callq 0x24cd0
leaq 0x110(%rsp), %rdi
movq %rax, %rsi
callq 0x24ca6
leaq 0x180(%rsp), %r12
leaq 0x48(%rsp), %r13
leaq 0x10(%rsp), %rbp
movq (%r14), %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0x1ba35
movl 0x48(%rsp), %ebx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x203ef
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x92e0
cmpl $0x12, %ebx
jne 0x20744
movq (%r14), %rdx
movq %rbp, %rdi
movq %r15, %rsi
movl $0x12, %ecx
callq 0x1c56e
movq 0x8(%rsp), %rbx
cmpb $0x0, 0x40(%rsp)
je 0x207c0
movq %rbp, %rdi
callq 0x24814
movups (%rax), %xmm0
movaps %xmm0, 0x160(%rsp)
movq %r12, 0x170(%rsp)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
leaq 0x170(%rsp), %rdi
callq 0xac68
movq 0x178(%rsp), %rax
addq 0x168(%rsp), %rax
movq %rax, (%r14)
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20236
movb 0x80(%rsp), %bl
testb %bl, %bl
je 0x20494
movq %r13, %rdi
callq 0x24cd0
leaq 0x110(%rsp), %rdi
movq %rax, %rsi
callq 0x24ca6
jmp 0x204a9
movq %r13, %rdi
callq 0x2838e
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x24c58
movq %r13, %rdi
callq 0x282a8
movq 0x170(%rsp), %rdi
cmpq %r12, %rdi
je 0x204ce
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x204ea
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x92e0
testb %bl, %bl
jne 0x203c1
jmp 0x206cd
leaq 0xc0(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20236
cmpb $0x0, 0xf8(%rsp)
je 0x2066c
leaq 0xc0(%rsp), %rdi
callq 0x24cd0
leaq 0x110(%rsp), %rdi
movq %rax, %rsi
callq 0x24ca6
leaq 0xc0(%rsp), %rdi
callq 0x282a8
movq (%r14), %rdx
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
movl $0xb, %ecx
callq 0x1c56e
cmpb $0x0, 0xb8(%rsp)
je 0x20696
leaq 0x88(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x28(%rsp), %rax
addq 0x18(%rsp), %rax
movq %rax, (%r14)
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20236
cmpb $0x0, 0x80(%rsp)
je 0x2072a
leaq 0xc0(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0xcdea
leaq 0x48(%rsp), %rdi
callq 0x24cd0
movq %rax, %r14
leaq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movl 0x20(%r14), %eax
movl %eax, 0xf8(%rsp)
movq 0x28(%r14), %rax
movq %rax, 0x100(%rsp)
movq 0x30(%r14), %rax
movq %rax, 0x108(%rsp)
testq %rax, %rax
je 0x20890
movq 0x41972(%rip), %rcx     # 0x61fb0
cmpb $0x0, (%rcx)
je 0x2088c
incl 0x8(%rax)
jmp 0x20890
leaq 0x88(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c58
jmp 0x20955
leaq 0xc0(%rsp), %rdi
callq 0x2838e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c58
leaq 0xc0(%rsp), %rdi
callq 0x282a8
jmp 0x20976
leaq 0x88(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c58
jmp 0x20955
leaq 0xc0(%rsp), %rdi
callq 0x2838e
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x24c58
leaq 0xc0(%rsp), %rdi
callq 0x282a8
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x206ff
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20720
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x8(%rsp), %rbx
jmp 0x20976
leaq 0x48(%rsp), %rdi
callq 0x2838e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c58
jmp 0x20934
movq (%r14), %rdx
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
movl $0x20, %ecx
callq 0x1c56e
movq 0x8(%rsp), %rbx
movb 0x78(%rsp), %bpl
testb %bpl, %bpl
je 0x207fa
leaq 0x48(%rsp), %rdi
callq 0x24814
leaq 0x30(%rsp), %r12
movups (%rax), %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
movq %r12, (%rdi)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x28(%rsp), %rax
addq 0x18(%rsp), %rax
movq %rax, (%r14)
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x2080f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2080f
leaq 0x10(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c58
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x206cd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x206cd
leaq 0x48(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24c58
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2082b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xc0(%rsp), %rdi
callq 0x282a8
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x2085d
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2087e
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x92e0
testb %bpl, %bpl
jne 0x20542
jmp 0x20976
lock
incl 0x8(%rax)
movq 0x8(%rsp), %r14
movb $0x1, 0x50(%r14)
movaps 0xc0(%rsp), %xmm0
movups %xmm0, (%r14)
movq 0xd0(%rsp), %rax
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x28(%r14), %rax
movq %rax, 0x18(%r14)
movq 0xd8(%rsp), %rcx
cmpq %rbx, %rcx
je 0x208f0
movq %rcx, 0x18(%r14)
movq 0xe8(%rsp), %rax
movq %rax, 0x28(%r14)
jmp 0x208f6
movups (%rbx), %xmm0
movups %xmm0, (%rax)
leaq 0xc0(%rsp), %rdi
movq 0x20(%rdi), %rax
movq %rax, 0x20(%r14)
movq %rbx, 0x18(%rdi)
xorl %eax, %eax
movq %rax, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movl 0x38(%rdi), %ecx
movl %ecx, 0x38(%r14)
movaps 0x40(%rdi), %xmm0
movq %rax, 0x48(%rdi)
movups %xmm0, 0x40(%r14)
movq %rax, 0x40(%rdi)
callq 0xce82
movq %r14, %rbx
leaq 0x48(%rsp), %rdi
callq 0x282a8
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x20955
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20976
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x110(%rsp), %rdi
callq 0xce82
leaq 0x1b8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x209a4
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x209bb
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x20ab3
movq 0x68(%rsp), %rsi
jmp 0x20aab
jmp 0x20a63
jmp 0x209f9
jmp 0x20a68
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xce82
jmp 0x209fc
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x282a8
jmp 0x20a0b
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x20ae5
movq 0x30(%rsp), %rsi
jmp 0x20add
movq %rax, %rbx
jmp 0x20ac0
jmp 0x20a35
jmp 0x20a35
jmp 0x20a3f
jmp 0x20a63
jmp 0x20a35
movq %rax, %rbx
jmp 0x20ae5
jmp 0x20a3f
movq %rax, %rbx
jmp 0x20b06
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x282a8
jmp 0x20b06
movq %rax, %rbx
jmp 0x20a7a
jmp 0x20a63
movq %rax, %rbx
jmp 0x20ab3
movq %rax, %rbx
jmp 0x20a97
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x282a8
movq 0x170(%rsp), %rdi
cmpq %r12, %rdi
je 0x20a97
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x20ab3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xc0(%rsp), %rdi
callq 0x282a8
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x20ae5
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20b06
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x110(%rsp), %rdi
callq 0xce82
leaq 0x1b8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20b34
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0