// File: pfnet-research[P]pml/src/translate_to_mdp.cpp
// Function: create_bool_case(bool)
mdp_with_info_t create_bool_case(bool b) {
    auto const_name = "c" + std::to_string(b);
    int current = translation_data::current_location();
    return mdp_with_info_t {
        mdp::mdp_t {
            "default",
            {},
            { mdp::constant_t{const_name, b} },
            {}
        },
        current, current,
        value_info_t {
            const_name, util::nullopt
        }
    };
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0xc8(%rbp)
movb %sil, %al
movq %rdi, %rcx
movq %rcx, -0xc0(%rbp)
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movzbl -0x9(%rbp), %esi
andl $0x1, %esi
leaq -0x50(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x1e010
movq -0xb8(%rbp), %rdx
leaq 0x154d0(%rip), %rsi     # 0x9fced
leaq -0x30(%rbp), %rdi
callq 0x12fb0
jmp 0x8a828
leaq -0x50(%rbp), %rdi
callq 0xa240
callq 0x8bbb0
movl %eax, -0xcc(%rbp)
jmp 0x8a83e
movq -0xc8(%rbp), %rax
movl -0xcc(%rbp), %ecx
movl %ecx, -0x60(%rbp)
movq %rax, %rcx
movq %rcx, -0xe8(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0x61(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0xa660
movq -0xc8(%rbp), %rdi
movq -0xd8(%rbp), %rdx
leaq 0x153b6(%rip), %rsi     # 0x9fc3a
callq 0x1dd10
jmp 0x8a88b
movq -0xe8(%rbp), %rax
movb $0x1, -0xab(%rbp)
movq %rax, %rdi
addq $0x20, %rdi
movq %rdi, -0xf8(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movq $0x0, 0x30(%rax)
callq 0x79550
movq -0xe8(%rbp), %rax
movb $0x1, -0xaa(%rbp)
addq $0x38, %rax
movq %rax, -0xf0(%rbp)
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
movzbl -0x9(%rbp), %edx
andl $0x1, %edx
leaq -0x30(%rbp), %rsi
callq 0x8bbc0
jmp 0x8a8f4
leaq -0xa0(%rbp), %rax
movq %rax, -0x78(%rbp)
movq $0x1, -0x70(%rbp)
leaq -0xa9(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x795d0
movq -0xf0(%rbp), %rdi
movq -0x100(%rbp), %rcx
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x795f0
jmp 0x8a937
movq -0xe8(%rbp), %rax
movq %rax, %rdi
addq $0x50, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
movq $0x0, 0x60(%rax)
callq 0x79670
movq -0xc8(%rbp), %rdi
movb $0x0, -0xaa(%rbp)
movb $0x0, -0xab(%rbp)
movl -0x60(%rbp), %eax
movl %eax, 0x68(%rdi)
movl -0x60(%rbp), %eax
movl %eax, 0x6c(%rdi)
addq $0x70, %rdi
movq %rdi, -0x108(%rbp)
leaq -0x30(%rbp), %rsi
callq 0xa190
jmp 0x8a990
movq -0x108(%rbp), %rdi
addq $0x20, %rdi
callq 0x8bb70
leaq -0xa9(%rbp), %rdi
callq 0xdc50
leaq -0xa0(%rbp), %rax
movq %rax, -0x118(%rbp)
addq $0x28, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rdi
addq $-0x28, %rdi
movq %rdi, -0x120(%rbp)
callq 0xd4b0
movq -0x118(%rbp), %rcx
movq -0x120(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x110(%rbp)
jne 0x8a9c5
leaq -0x61(%rbp), %rdi
callq 0xa420
leaq -0x30(%rbp), %rdi
callq 0xa240
movq -0xc0(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xa240
jmp 0x8ab6d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x8ab64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x8ab5b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
movq -0xa8(%rbp), %rax
leaq -0xa0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x128(%rbp)
je 0x8aaab
movq -0x128(%rbp), %rdi
addq $-0x28, %rdi
movq %rdi, -0x130(%rbp)
callq 0xd4b0
movq -0x130(%rbp), %rax
leaq -0xa0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x128(%rbp)
jne 0x8aa7a
jmp 0x8ab2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x8aad3
movq -0xe8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
callq 0xc340
leaq -0xa9(%rbp), %rdi
callq 0xdc50
leaq -0xa0(%rbp), %rax
movq %rax, -0x140(%rbp)
addq $0x28, %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
addq $-0x28, %rdi
movq %rdi, -0x148(%rbp)
callq 0xd4b0
movq -0x140(%rbp), %rcx
movq -0x148(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x138(%rbp)
jne 0x8aaf8
jmp 0x8ab2b
testb $0x1, -0xaa(%rbp)
jne 0x8ab36
jmp 0x8ab42
movq -0xf8(%rbp), %rdi
callq 0xcc90
testb $0x1, -0xab(%rbp)
jne 0x8ab4d
jmp 0x8ab59
movq -0xe0(%rbp), %rdi
callq 0xa240
jmp 0x8ab5b
leaq -0x61(%rbp), %rdi
callq 0xa420
leaq -0x30(%rbp), %rdi
callq 0xa240
movq -0x58(%rbp), %rdi
callq 0xa650
nopw %cs:(%rax,%rax)