// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: s7_decode_bt
char *s7_decode_bt(s7_scheme *sc)
                {
                    FILE *fp;
                    fp = fopen("gdb.txt", "r");
                    if (fp)
                    {
                        int64_t i, size;
                        size_t bytes;
                        bool in_quotes = false, old_stop;
                        uint8_t *bt;
                        block_t *bt_block;

                        old_stop = sc->stop_at_error;
                        sc->stop_at_error = false;
                        fseek(fp, 0, SEEK_END);
                        size = ftell(fp);
                        rewind(fp);

                        bt_block = mallocate(sc, (size + 1) * sizeof(uint8_t));
                        bt = (uint8_t *)block_data(bt_block);
                        bytes = fread(bt, sizeof(uint8_t), size, fp);
                        if (bytes != (size_t)size)
                        {
                            fclose(fp);
                            liberate(sc, bt_block);
                            return((char *)" oops ");
                        }
                        bt[size] = '\0';
                        fclose(fp);

                        for (i = 0; i < size; i++)
                        {
                            fputc(bt[i], stdout);
                            if ((bt[i] == '"') && ((i == 0) || (bt[i - 1] != '\\')))
                                in_quotes = (!in_quotes);
                            else
                            {
                                if ((!in_quotes) && (i < size - 8))
                                {
                                    if ((bt[i] == '=') &&
                                            (((bt[i + 1] == '0') && (bt[i + 2] == 'x')) ||
                                             ((bt[i + 1] == ' ') && (bt[i + 2] == '0') && (bt[i + 3] == 'x'))))
                                    {
                                        void *vp;
                                        int32_t vals;
                                        vals = sscanf((const char *)(bt + i + 1), "%p", &vp);
                                        if ((vp) && (vals == 1))
                                        {
                                            int32_t k;
                                            for (k = i + ((bt[i + 2] == 'x') ? 3 : 4); (k < size) && (IS_DIGIT(bt[k], 16)); k++);
                                            if ((bt[k] != ' ') || (bt[k + 1] != '"'))
                                            {
                                                if (vp == (void *)sc)
                                                {
                                                    if (bt[i + 1] == ' ') fputc(' ', stdout);
                                                    fprintf(stdout, "%s[s7]%s", BOLD_TEXT, UNBOLD_TEXT);
                                                    i = k - 1;
                                                }
                                                else
                                                {
                                                    s7_pointer p;
                                                    const char *dname;

                                                    p = (s7_pointer)vp;
                                                    dname = decoded_name(sc, p);
                                                    if (dname)
                                                    {
                                                        if (bt[i + 1] == ' ') fputc(' ', stdout);
                                                        fprintf(stdout, "%s[sc->%s]%s", BOLD_TEXT, dname, UNBOLD_TEXT);
                                                    }

                                                    if ((dname) || (is_decodable(sc, p)))
                                                    {
                                                        if (bt[i + 1] == ' ') fputc(' ', stdout);
                                                        i = k - 1;
                                                        if (s7_is_valid(sc, p))
                                                        {
                                                            s7_pointer strp;
                                                            if (dname) fprintf(stdout, " ");
                                                            strp = object_to_truncated_string(sc, p, 80);
                                                            fprintf(stdout, "%s%s%s", BOLD_TEXT, string_value(strp), UNBOLD_TEXT);
                                                            if ((is_pair(p)) &&
                                                                    (has_line_number(p)))
                                                            {
                                                                uint32_t line, file;
                                                                line = pair_line_number(p);
                                                                file = pair_file(p);
                                                                if (line > 0)
                                                                    fprintf(stdout, " %s(%s[%u])%s",
                                                                            BOLD_TEXT, string_value(sc->file_names[file]), line, UNBOLD_TEXT);
                                                            }
                                                            /* #<stack> etc */
                                                        }}}}}}}}}
                        liberate(sc, bt_block);
                        sc->stop_at_error = old_stop;
                    }
                    return((char *)"");
                }

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
leaq 0x19a23f(%rip), %rdi    # 0x1e1eb2
leaq 0x1aa7f3(%rip), %rsi    # 0x1f246d
callq 0x95b0
movq %rax, 0x70(%rsp)
cmpq $0x0, 0x70(%rsp)
je 0x48203
movb $0x0, 0x57(%rsp)
movq 0x78(%rsp), %rax
movb 0x218e(%rax), %al
andb $0x1, %al
movb %al, 0x56(%rsp)
movq 0x78(%rsp), %rax
movb $0x0, 0x218e(%rax)
movq 0x70(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x9500
movq 0x70(%rsp), %rdi
callq 0x93a0
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rdi
callq 0x91e0
movq 0x78(%rsp), %rdi
movq 0x60(%rsp), %rsi
addq $0x1, %rsi
shlq $0x0, %rsi
callq 0xaa80
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq 0x60(%rsp), %rdx
movq 0x70(%rsp), %rcx
movl $0x1, %esi
callq 0x9110
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
cmpq 0x60(%rsp), %rax
je 0x47d5e
movq 0x70(%rsp), %rdi
callq 0x9180
movq 0x78(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xb230
leaq 0x19a169(%rip), %rax    # 0x1e1eba
movq %rax, 0x80(%rsp)
jmp 0x48212
movq 0x48(%rsp), %rax
movq 0x60(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x70(%rsp), %rdi
callq 0x9180
movq $0x0, 0x68(%rsp)
movq 0x68(%rsp), %rax
cmpq 0x60(%rsp), %rax
jge 0x481e2
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl (%rax,%rcx), %edi
movq 0x1cd22c(%rip), %rax    # 0x214fd0
movq (%rax), %rsi
callq 0x9300
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x22, %eax
jne 0x47def
cmpq $0x0, 0x68(%rsp)
je 0x47dde
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
subq $0x1, %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x5c, %eax
je 0x47def
movb 0x57(%rsp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, 0x57(%rsp)
jmp 0x481cd
testb $0x1, 0x57(%rsp)
jne 0x481cb
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rcx
subq $0x8, %rcx
cmpq %rcx, %rax
jge 0x481cb
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x3d, %eax
jne 0x481c9
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x1(%rax,%rcx), %eax
cmpl $0x30, %eax
jne 0x47e50
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x2(%rax,%rcx), %eax
cmpl $0x78, %eax
je 0x47e98
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x1(%rax,%rcx), %eax
cmpl $0x20, %eax
jne 0x481c9
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x2(%rax,%rcx), %eax
cmpl $0x30, %eax
jne 0x481c9
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x3(%rax,%rcx), %eax
cmpl $0x78, %eax
jne 0x481c9
movq 0x48(%rsp), %rdi
addq 0x68(%rsp), %rdi
addq $0x1, %rdi
leaq 0x19a014(%rip), %rsi    # 0x1e1ec1
leaq 0x38(%rsp), %rdx
movb $0x0, %al
callq 0x94b0
movl %eax, 0x34(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x481c7
cmpl $0x1, 0x34(%rsp)
jne 0x481c7
movq 0x68(%rsp), %rax
movq 0x48(%rsp), %rcx
movq 0x68(%rsp), %rdx
movzbl 0x2(%rcx,%rdx), %esi
movl $0x4, %ecx
movl $0x3, %edx
cmpl $0x78, %esi
cmovel %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movl %eax, 0x30(%rsp)
movslq 0x30(%rsp), %rcx
xorl %eax, %eax
cmpq 0x60(%rsp), %rcx
movb %al, 0xf(%rsp)
jge 0x47f34
movq 0x1d5a7d(%rip), %rax    # 0x21d998
movq 0x48(%rsp), %rcx
movslq 0x30(%rsp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl $0x10, (%rax,%rcx,4)
setl %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x47f3e
jmp 0x47f4d
jmp 0x47f40
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x47f02
movq 0x48(%rsp), %rax
movslq 0x30(%rsp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x20, %eax
jne 0x47f7c
movq 0x48(%rsp), %rax
movl 0x30(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x22, %eax
je 0x481c5
movq 0x38(%rsp), %rax
cmpq 0x78(%rsp), %rax
jne 0x47fe9
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x1(%rax,%rcx), %eax
cmpl $0x20, %eax
jne 0x47fb0
movq 0x1cd02d(%rip), %rax    # 0x214fd0
movq (%rax), %rsi
movl $0x20, %edi
callq 0x9300
movq 0x1cd019(%rip), %rax    # 0x214fd0
movq (%rax), %rdi
leaq 0x199f03(%rip), %rsi    # 0x1e1ec4
leaq 0x199f05(%rip), %rdx    # 0x1e1ecd
leaq 0x199f03(%rip), %rcx    # 0x1e1ed2
movb $0x0, %al
callq 0x9390
movl 0x30(%rsp), %eax
subl $0x1, %eax
cltq
movq %rax, 0x68(%rsp)
jmp 0x481c3
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x78(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x48230
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x48062
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x1(%rax,%rcx), %eax
cmpl $0x20, %eax
jne 0x48037
movq 0x1ccfa6(%rip), %rax    # 0x214fd0
movq (%rax), %rsi
movl $0x20, %edi
callq 0x9300
movq 0x1ccf92(%rip), %rax    # 0x214fd0
movq (%rax), %rdi
movq 0x20(%rsp), %rcx
leaq 0x199e8b(%rip), %rsi    # 0x1e1ed8
leaq 0x199e79(%rip), %rdx    # 0x1e1ecd
leaq 0x199e77(%rip), %r8     # 0x1e1ed2
movb $0x0, %al
callq 0x9390
cmpq $0x0, 0x20(%rsp)
jne 0x48082
movq 0x78(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x48f10
testb $0x1, %al
jne 0x48082
jmp 0x481c1
movq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
movzbl 0x1(%rax,%rcx), %eax
cmpl $0x20, %eax
jne 0x480aa
movq 0x1ccf33(%rip), %rax    # 0x214fd0
movq (%rax), %rsi
movl $0x20, %edi
callq 0x9300
movl 0x30(%rsp), %eax
subl $0x1, %eax
cltq
movq %rax, 0x68(%rsp)
movq 0x78(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x2ca70
testb $0x1, %al
jne 0x480d0
jmp 0x481bf
cmpq $0x0, 0x20(%rsp)
je 0x480f0
movq 0x1ccef1(%rip), %rax    # 0x214fd0
movq (%rax), %rdi
leaq 0x1aa3f3(%rip), %rsi    # 0x1f24dc
movb $0x0, %al
callq 0x9390
movq 0x78(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl $0x50, %edx
callq 0x45d90
movq %rax, 0x18(%rsp)
movq 0x1ccec0(%rip), %rax    # 0x214fd0
movq (%rax), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rcx
leaq 0x1a9e58(%rip), %rsi    # 0x1f1f7b
leaq 0x199da3(%rip), %rdx    # 0x1e1ecd
leaq 0x199da1(%rip), %r8     # 0x1e1ed2
movb $0x0, %al
callq 0x9390
movq 0x28(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x481bd
movq 0x28(%rsp), %rax
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x481bd
movq 0x28(%rsp), %rax
movl 0x2c(%rax), %eax
movl %eax, 0x14(%rsp)
movq 0x28(%rsp), %rax
movl 0x28(%rax), %eax
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x14(%rsp)
jbe 0x481bb
movq 0x1cce51(%rip), %rax    # 0x214fd0
movq (%rax), %rdi
movq 0x78(%rsp), %rax
movq 0x498(%rax), %rax
movl 0x10(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rcx
movl 0x14(%rsp), %r8d
leaq 0x199d3f(%rip), %rsi    # 0x1e1ee5
leaq 0x199d20(%rip), %rdx    # 0x1e1ecd
leaq 0x199d1e(%rip), %r9     # 0x1e1ed2
movb $0x0, %al
callq 0x9390
jmp 0x481bd
jmp 0x481bf
jmp 0x481c1
jmp 0x481c3
jmp 0x481c5
jmp 0x481c7
jmp 0x481c9
jmp 0x481cb
jmp 0x481cd
jmp 0x481cf
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0x47d7f
movq 0x78(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xb230
movb 0x56(%rsp), %cl
movq 0x78(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x218e(%rax)
leaq 0x1ac2af(%rip), %rax    # 0x1f44b9
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)