// File: /workspace/github_c_makefile_star2_O0/msteveb[P]autosetup/./jimsh0.c
// Function: ListSortDict
static int ListSortDict(Jim_Obj **lhsObj, Jim_Obj **rhsObj)
{

    const char *left = Jim_String(*lhsObj);
    const char *right = Jim_String(*rhsObj);

    while (1) {
        if (isdigit(UCHAR(*left)) && isdigit(UCHAR(*right))) {

            jim_wide lint, rint;
            char *lend, *rend;
            lint = jim_strtoull(left, &lend);
            rint = jim_strtoull(right, &rend);
            if (lint != rint) {
                return JimSign(lint - rint) * sort_info->order;
            }
            if (lend -left != rend - right) {
                return JimSign((lend - left) - (rend - right)) * sort_info->order;
            }
            left = lend;
            right = rend;
        }
        else {
            int cl, cr;
            left += utf8_tounicode_case(left, &cl, 1);
            right += utf8_tounicode_case(right, &cr, 1);
            if (cl != cr) {
                return JimSign(cl - cr) * sort_info->order;
            }
            if (cl == 0) {

                return Jim_StringCompareObj(sort_info->interp, *lhsObj, *rhsObj, 0) * sort_info->order;
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x7960
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0x7960
movq %rax, -0x28(%rbp)
callq 0x64f0
movq (%rax), %rax
movq -0x20(%rbp), %rcx
movzbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x2fb3b
callq 0x64f0
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movzbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x2fb3b
movq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb630
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xb630
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x2fad7
movq -0x30(%rbp), %rdi
subq -0x38(%rbp), %rdi
callq 0x1d480
movq 0x18918(%rip), %rcx     # 0x483e0
imull 0xdc(%rcx), %eax
movl %eax, -0x4(%rbp)
jmp 0x2fbeb
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
je 0x2fb26
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rax
subq %rax, %rdi
movq -0x48(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
subq %rax, %rdi
callq 0x1d480
movq 0x188c9(%rip), %rcx     # 0x483e0
imull 0xdc(%rcx), %eax
movl %eax, -0x4(%rbp)
jmp 0x2fbeb
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x2fbe6
movq -0x20(%rbp), %rdi
leaq -0x4c(%rbp), %rsi
movl $0x1, %edx
callq 0x1d430
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movl $0x1, %edx
callq 0x1d430
movl %eax, %ecx
movq -0x28(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x50(%rbp), %eax
je 0x2fba8
movl -0x4c(%rbp), %eax
subl -0x50(%rbp), %eax
movslq %eax, %rdi
callq 0x1d480
movq 0x18844(%rip), %rcx     # 0x483e0
imull 0xdc(%rcx), %eax
movl %eax, -0x4(%rbp)
jmp 0x2fbeb
cmpl $0x0, -0x4c(%rbp)
jne 0x2fbe4
movq 0x1882b(%rip), %rax     # 0x483e0
movq 0xd0(%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
xorl %ecx, %ecx
callq 0xcf40
movq 0x18808(%rip), %rcx     # 0x483e0
imull 0xdc(%rcx), %eax
movl %eax, -0x4(%rbp)
jmp 0x2fbeb
jmp 0x2fbe6
jmp 0x2fa40
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)