// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
addl %esi, %edx
cmpl %esi, %edx
jbe 0x2dfa
movl %ecx, %ebx
movq %rdi, %r14
movl %esi, %ebp
movl %edx, %r15d
leaq 0x2a9c(%rip), %r12      # 0x56d7
movq %r15, 0x20(%rsp)
leal 0x3(%rbp), %eax
movq 0x48(%r14,%rax,8), %r13
testb %bl, %bl
je 0x2c60
movl 0x18(%r14), %eax
movl %ebp, %esi
subl %eax, %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0x2030
jmp 0x2c96
movq 0x40060(%r14), %rax
movq %rbp, %rcx
shlq $0x5, %rcx
cmpq $0x0, 0x8(%rax,%rcx)
je 0x2c8c
addq %rcx, %rax
movq (%rax), %rsi
leaq 0x28a8(%rip), %rdi      # 0x552b
xorl %eax, %eax
callq 0x2030
jmp 0x2c96
movl $0x20, %edi
callq 0x21b0
movq %r13, %rax
shrq $0x18, %rax
cmpq $0xd00000, %rax         # imm = 0xD00000
jne 0x2cbe
cmpl $0x30d41, %r13d         # imm = 0x30D41
jb 0x2dca
leaq 0x2a24(%rip), %rdi      # 0x56dd
jmp 0x2dd1
movzbl %r13b, %eax
addl $-0x20, %eax
cmpl $0x5e, %eax
ja 0x2d7e
movl $0x8, %ecx
leaq -0x8(%rcx), %rax
cmpq $0x27, %rax
ja 0x2cfc
movq %r13, %rdx
shrq %cl, %rdx
movzbl %dl, %edx
addl $-0x20, %edx
addq $0x8, %rcx
cmpl $0x5f, %edx
jb 0x2cd3
cmpq $0x28, %rax
jb 0x2d7e
movl %ebx, %r15d
movq %r12, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x4784
movq (%rsp), %r12
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x4a5c
movq 0x28(%rsp), %rdx
leaq 0x29c2(%rip), %rdi      # 0x56f2
movq %r12, %rsi
xorl %eax, %eax
callq 0x2030
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d56
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2140
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq %rbx, %r12
je 0x2d74
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movl %r15d, %ebx
movq 0x20(%rsp), %r15
jmp 0x2dee
movq %r14, %rdi
movq %r13, %rsi
callq 0x485e
testb %al, %al
je 0x2ddd
movq %rsp, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x364c
movq (%rsp), %rsi
leaq 0x295d(%rip), %rdi      # 0x5703
xorl %eax, %eax
callq 0x2030
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2dee
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2dee
leaq 0x2918(%rip), %rdi      # 0x56e9
movl %r13d, %esi
xorl %eax, %eax
callq 0x2030
jmp 0x2dee
leaq 0x292c(%rip), %rdi      # 0x5710
movq %r13, %rsi
xorl %eax, %eax
callq 0x2030
incq %rbp
cmpq %r15, %rbp
jne 0x2c40
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2e27
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x2220
nop