// File: /workspace/github_cpp_makefile_star2_O3/besm6[P]pascal-re/dtran.cc
// Function: Dtran::prconst(unsigned int, unsigned int, bool)
void prconst (uint32 addr, uint32 len, bool litconst) {
    for (uint cur = addr; cur < addr + len; ++cur) {
        uint64 val = memory[cur+3];
        if (litconst) {
            printf(" /%d:", cur-cmd_len);
        } else if (labels[cur].empty()) {
            printf(" ");
        } else {
            printf(" %s:", labels[cur].c_str());
        }
        if ((val >> 24) == 064000000) {
            uint d = val & 077777777;
            if (d > 200000)
                printf(",INT,%08oB\n", d);
            else
                printf(",INT,%d\n", d);
        } else if (is_likely_iso(val)) {
            printf(",ISO, 6H%s . %s\n", get_iso_word(val).c_str(), get_bytes(val).c_str());
        } else if (is_likely_text(val)) {
            printf(",TEXT, 8H%s\n", get_text_word(val).c_str());
        } else {
            printf(",LOG,%llo\n", val);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
addl %esi, %edx
cmpl %esi, %edx
jbe 0x2deb
movl %ecx, %ebx
movq %rdi, %r14
movl %esi, %ebp
movl %edx, %r12d
leaq 0x2aa8(%rip), %r15      # 0x56d7
movq %r12, 0x30(%rsp)
movl %ecx, 0xc(%rsp)
leal 0x3(%rbp), %eax
movq 0x48(%r14,%rax,8), %r13
testb %bl, %bl
je 0x2c58
movl 0x18(%r14), %eax
movl %ebp, %esi
subl %eax, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x2030
jmp 0x2c8e
movq 0x40060(%r14), %rax
movq %rbp, %rcx
shlq $0x5, %rcx
cmpq $0x0, 0x8(%rax,%rcx)
je 0x2c84
addq %rcx, %rax
movq (%rax), %rsi
leaq 0x28b0(%rip), %rdi      # 0x552b
xorl %eax, %eax
callq 0x2030
jmp 0x2c8e
movl $0x20, %edi
callq 0x21b0
movq %r13, %rax
shrq $0x18, %rax
cmpq $0xd00000, %rax         # imm = 0xD00000
jne 0x2cb6
cmpl $0x30d41, %r13d         # imm = 0x30D41
jb 0x2d69
leaq 0x2a2c(%rip), %rdi      # 0x56dd
jmp 0x2d70
xorl %ecx, %ecx
movq %r13, %rax
shrq %cl, %rax
movzbl %al, %eax
addl $-0x20, %eax
cmpq $0x27, %rcx
ja 0x2cd3
addq $0x8, %rcx
cmpl $0x5f, %eax
jb 0x2cb8
cmpl $0x5e, %eax
ja 0x2d88
movq %r15, %rbx
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x474a
movq 0x10(%rsp), %r12
leaq 0x38(%rsp), %rdi
movq %r14, %r15
movq %r14, %rsi
movq %r13, %rdx
callq 0x4a12
movq 0x38(%rsp), %rdx
leaq 0x29df(%rip), %rdi      # 0x56f2
movq %r12, %rsi
xorl %eax, %eax
callq 0x2030
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2d39
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
movq %rbx, %r13
je 0x2d58
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2140
movl 0xc(%rsp), %ebx
movq 0x30(%rsp), %r12
movq %r15, %r14
movq %r13, %r15
jmp 0x2d7a
leaq 0x2979(%rip), %rdi      # 0x56e9
movl %r13d, %esi
xorl %eax, %eax
callq 0x2030
incq %rbp
cmpq %r12, %rbp
jne 0x2c38
jmp 0x2deb
movq %r14, %rdi
movq %r13, %rsi
callq 0x4824
testb %al, %al
je 0x2dd8
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x3622
movq 0x10(%rsp), %rsi
leaq 0x2950(%rip), %rdi      # 0x5703
xorl %eax, %eax
callq 0x2030
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x2d7a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2d7a
leaq 0x2931(%rip), %rdi      # 0x5710
movq %r13, %rsi
xorl %eax, %eax
callq 0x2030
jmp 0x2d7a
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x2e19
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x2220
nop