// File: /workspace/github_cpp_makefile_star2_O3/pfnet-research[P]pml/src/parser.cpp
// Function: parser::refty_detail(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
refty_result_t refty_detail(std::string const& input, size_t& pos) {
    EXPECT(lbrace_token, LBrace);
    EXPECT(ident_token, Ident);
    EXPECT(colon_token, Colon);
    auto sty_result = simple_type(input, pos);
    if (sty_result.is_error())
        return sty_result.convert<ast::refinement_type_t>();
    EXPECT(bar_token, Bar);
    auto constraint_result = formula(input, pos);
    if (constraint_result.is_error())
        return constraint_result.convert<ast::refinement_type_t>();
    EXPECT(rbrace_token, RBrace);
    return refty_result_t::ok(ast::refinement_type_t {
            ident_token.lexime, sty_result.ok(), constraint_result.ok()
            });
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rdx
leaq 0x248(%rsp), %r12
movq %r12, %rdi
movl $0x1d, %ecx
callq 0x1c56e
cmpb $0x0, 0x30(%r12)
je 0x1f906
leaq 0x248(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x140(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x150(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x148(%rsp), %rdx
addq 0x138(%rsp), %rdx
movq %rdx, (%r14)
leaq 0x210(%rsp), %rdi
movq %r15, %rsi
movl $0xa, %ecx
callq 0x1c56e
cmpb $0x0, 0x240(%rsp)
je 0x1f923
leaq 0x210(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x48(%rsp), %rdx
addq 0x38(%rsp), %rdx
movq %rdx, (%r14)
leaq 0x1d8(%rsp), %rdi
movq %r15, %rsi
movl $0x1c, %ecx
callq 0x1c56e
cmpb $0x0, 0x208(%rsp)
je 0x1f940
leaq 0x1d8(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x110(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x120(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x118(%rsp), %rax
addq 0x108(%rsp), %rax
movq %rax, (%r14)
leaq 0x98(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1ed61
cmpb $0x0, 0xc8(%rsp)
je 0x1f95d
movq (%r14), %rdx
leaq 0x1a0(%rsp), %rdi
movq %r15, %rsi
movl $0x1b, %ecx
callq 0x1c56e
cmpb $0x0, 0x1d0(%rsp)
je 0x1f97a
leaq 0x1a0(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x18(%rsp), %rax
addq 0x8(%rsp), %rax
movq %rax, (%r14)
leaq 0x280(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1eb2f
cmpb $0x0, 0x2b0(%rsp)
je 0x1f997
movq (%r14), %rdx
leaq 0x168(%rsp), %rdi
movq %r15, %rsi
movl $0x1e, %ecx
callq 0x1c56e
cmpb $0x0, 0x198(%rsp)
je 0x1f9b4
leaq 0x168(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0xe0(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0xf0(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0xe8(%rsp), %rax
addq 0xd8(%rsp), %rax
movq %rax, (%r14)
leaq 0x70(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xac68
leaq 0x98(%rsp), %rdi
callq 0x24a50
movl (%rax), %eax
movl %eax, 0x80(%rsp)
leaq 0x280(%rsp), %rdi
callq 0x2486e
movq (%rax), %rcx
movq %rcx, 0x88(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x90(%rsp)
testq %rax, %rax
je 0x1f9d5
movq 0x426bb(%rip), %rcx     # 0x61fb0
cmpb $0x0, (%rcx)
je 0x1f9d1
incl 0x8(%rax)
jmp 0x1f9d5
leaq 0x248(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x1fb7a
leaq 0x210(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x1fb3c
leaq 0x1d8(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x1fb04
leaq 0x98(%rsp), %rdi
callq 0x2824e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x1fabc
leaq 0x1a0(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x1fa9b
leaq 0x280(%rsp), %rdi
callq 0x280fc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x1fa72
leaq 0x168(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24ad6
jmp 0x1fa51
lock
incl 0x8(%rax)
movb $0x1, 0x38(%rbx)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x60(%rsp), %rcx
cmpq %r14, %rcx
je 0x1f9f8
movq %rcx, (%rbx)
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x1f9ff
movups (%r14), %xmm0
movups %xmm0, (%rax)
leaq 0x60(%rsp), %rdi
movq 0x8(%rdi), %rax
movq %rax, 0x8(%rbx)
movq %r14, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl 0x20(%rdi), %ecx
movl %ecx, 0x20(%rbx)
movups 0x28(%rdi), %xmm0
movq %rax, 0x30(%rdi)
movups %xmm0, 0x28(%rbx)
movq %rax, 0x28(%rdi)
callq 0x24b24
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x1fa51
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x188(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fa72
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x280(%rsp), %rdi
callq 0x280cc
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1fa9b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fabc
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x92e0
cmpb $0x0, 0xc8(%rsp)
jne 0x1fae7
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fae7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x110(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1fb04
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x1f8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fb25
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1fb3c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fb5d
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x140(%rsp), %rdi
cmpq %r12, %rdi
je 0x1fb7a
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x268(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fb9b
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x1fbcf
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x1fbcf
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x1fbf3
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fbf3
jmp 0x1fbf0
movq %rax, %rbx
leaq 0x188(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fc1b
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fc1b
jmp 0x1fc18
movq %rax, %rbx
leaq 0x280(%rsp), %rdi
callq 0x280cc
jmp 0x1fc2d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1fc50
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fc50
jmp 0x1fc4d
movq %rax, %rbx
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fc78
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fc78
jmp 0x1fc75
movq %rax, %rbx
cmpb $0x0, 0xc8(%rsp)
jne 0x1fca8
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fca8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fca8
movq %rax, %rbx
movq 0x110(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1fccc
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fccc
jmp 0x1fcc9
movq %rax, %rbx
leaq 0x1f8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fcf2
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fcf2
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1fd10
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fd10
jmp 0x1fd0d
movq %rax, %rbx
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fd36
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fd36
movq %rax, %rbx
movq 0x140(%rsp), %rdi
cmpq %r12, %rdi
je 0x1fd5a
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x1fd5a
jmp 0x1fd57
movq %rax, %rbx
leaq 0x268(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fd7b
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0