// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore_spect_compare.c
// Function: compare_leaf_or_string
static s2_t compare_leaf_or_string( tp_t type, vc_t obj1, vc_t obj2 )
{
    switch( type )
    {
        case TYPEOF_s3_t: return ( *( s3_t* )obj1 == *( s3_t* )obj2 ) ? 0 : ( *( s3_t* )obj1 < *( s3_t* )obj2 ) ? 1 : -1;
        case TYPEOF_s2_t: return ( *( s2_t* )obj1 == *( s2_t* )obj2 ) ? 0 : ( *( s2_t* )obj1 < *( s2_t* )obj2 ) ? 1 : -1;
        case TYPEOF_s1_t: return ( *( s1_t* )obj1 == *( s1_t* )obj2 ) ? 0 : ( *( s1_t* )obj1 < *( s1_t* )obj2 ) ? 1 : -1;
        case TYPEOF_s0_t: return ( *( s0_t* )obj1 == *( s0_t* )obj2 ) ? 0 : ( *( s0_t* )obj1 < *( s0_t* )obj2 ) ? 1 : -1;
        case TYPEOF_u3_t: return ( *( u3_t* )obj1 == *( u3_t* )obj2 ) ? 0 : ( *( u3_t* )obj1 < *( u3_t* )obj2 ) ? 1 : -1;
        case TYPEOF_u2_t: return ( *( u2_t* )obj1 == *( u2_t* )obj2 ) ? 0 : ( *( u2_t* )obj1 < *( u2_t* )obj2 ) ? 1 : -1;
        case TYPEOF_u1_t: return ( *( u1_t* )obj1 == *( u1_t* )obj2 ) ? 0 : ( *( u1_t* )obj1 < *( u1_t* )obj2 ) ? 1 : -1;
        case TYPEOF_u0_t: return ( *( u0_t* )obj1 == *( u0_t* )obj2 ) ? 0 : ( *( u0_t* )obj1 < *( u0_t* )obj2 ) ? 1 : -1;
        case TYPEOF_f3_t: return ( *( f3_t* )obj1 == *( f3_t* )obj2 ) ? 0 : ( *( f3_t* )obj1 < *( f3_t* )obj2 ) ? 1 : -1;
        case TYPEOF_f2_t: return ( *( f2_t* )obj1 == *( f2_t* )obj2 ) ? 0 : ( *( f2_t* )obj1 < *( f2_t* )obj2 ) ? 1 : -1;
        case TYPEOF_sz_t: return ( *( sz_t* )obj1 == *( sz_t* )obj2 ) ? 0 : ( *( sz_t* )obj1 < *( sz_t* )obj2 ) ? 1 : -1;
        case TYPEOF_uz_t: return ( *( uz_t* )obj1 == *( uz_t* )obj2 ) ? 0 : ( *( uz_t* )obj1 < *( uz_t* )obj2 ) ? 1 : -1;
        case TYPEOF_sd_t: return bcore_strcmp( *( sd_t* )obj1, *( sd_t* )obj2 );
        case TYPEOF_sc_t: return bcore_strcmp( *( sc_t* )obj1, *( sc_t* )obj2 );
        case TYPEOF_st_s: return bcore_strcmp( ( ( st_s* )obj1 )->sc, ( ( st_s* )obj2 )->sc );
        case TYPEOF_tp_t: return ( *( tp_t* )obj1 == *( tp_t* )obj2 ) ? 0 : ( *( tp_t* )obj1 < *( tp_t* )obj2 ) ? 1 : -1;
        case TYPEOF_bl_t: return ( *( bl_t* )obj1 == *( bl_t* )obj2 ) ? 0 : ( *( bl_t* )obj1 < *( bl_t* )obj2 ) ? 1 : -1;
        case TYPEOF_aware_t: return ( *( aware_t* )obj1 == *( aware_t* )obj2 ) ? 0 : ( *( aware_t* )obj1 < *( aware_t* )obj2 ) ? 1 : -1;
        default: ERR( "Cannot compare instances of leaf type %s.", ifnameof( type ) );
    }
    return 0;
}

// Assembly:
pushq %rbx
movabsq $-0x73f6ae1ad309fd45, %rax # imm = 0x8C0951E52CF602BB
cmpq %rax, %rdi
je 0x822ed
movabsq $-0x6bce971ace902370, %rax # imm = 0x943168E5316FDC90
cmpq %rax, %rdi
je 0x82393
movabsq $-0x6119581ac7eacd63, %rax # imm = 0x9EE6A7E53815329D
cmpq %rax, %rdi
je 0x8230f
movabsq $-0x5fc2af85f419929b, %rax # imm = 0xA03D507A0BE66D65
cmpq %rax, %rdi
je 0x82343
movabsq $-0x5aa4411ac4e2880e, %rax # imm = 0xA55BBEE53B1D77F2
cmpq %rax, %rdi
je 0x822cf
movabsq $-0x58737885f0577326, %rax # imm = 0xA78C877A0FA88CDA
cmpq %rax, %rdi
je 0x823c6
movabsq $-0x503db0e6e1c2e704, %rax # imm = 0xAFC24F191E3D18FC
cmpq %rax, %rdi
je 0x82329
movabsq $-0x4882601bdca6aefb, %rax # imm = 0xB77D9FE423595105
cmpq %rax, %rdi
je 0x822cf
movabsq $-0x3f1363e6d8155aed, %rax # imm = 0xC0EC9C1927EAA513
cmpq %rax, %rdi
je 0x822c0
movabsq $-0x3ac242643d9c35a8, %rax # imm = 0xC53DBD9BC263CA58
cmpq %rax, %rdi
je 0x822ed
movabsq $-0x388c46b188de83fe, %rax # imm = 0xC773B94E77217C02
cmpq %rax, %rdi
je 0x822cf
movabsq $-0x84b14e74a9e1ff0, %rax # imm = 0xF7B4EB18B561E010
cmpq %rax, %rdi
je 0x82307
movabsq $0x230abe18cdeefc99, %rax # imm = 0x230ABE18CDEEFC99
cmpq %rax, %rdi
je 0x82307
movabsq $0x510c2417c67dabeb, %rax # imm = 0x510C2417C67DABEB
cmpq %rax, %rdi
je 0x823b1
movabsq $0x6d07f9ef5b68e8a2, %rax # imm = 0x6D07F9EF5B68E8A2
cmpq %rax, %rdi
je 0x822cf
movabsq $0x62367a17d02b474d, %rax # imm = 0x62367A17D02B474D
cmpq %rax, %rdi
je 0x8235c
movabsq $0x69849117d3eb7d62, %rax # imm = 0x69849117D3EB7D62
cmpq %rax, %rdi
je 0x82337
movabsq $0x585a3b17ca3de200, %rax # imm = 0x585A3B17CA3DE200
cmpq %rax, %rdi
jne 0x82366
movq (%rsi), %rax
xorl %ecx, %ecx
xorl %esi, %esi
cmpq (%rdx), %rax
jmp 0x823b9
movq (%rsi), %rax
movq (%rdx), %rcx
xorl %edx, %edx
cmpq %rcx, %rax
movl $0x0, %ebx
adcl $-0x1, %ebx
orl $0x1, %ebx
cmpq %rcx, %rax
jmp 0x823ac
movb (%rsi), %al
movb (%rdx), %cl
xorl %edx, %edx
cmpb %cl, %al
movl $0x0, %ebx
adcl $-0x1, %ebx
orl $0x1, %ebx
cmpb %cl, %al
jmp 0x823ac
movq (%rsi), %rdi
movq (%rdx), %rsi
jmp 0x82331
movl (%rsi), %eax
movl (%rdx), %ecx
xorl %edx, %edx
cmpl %ecx, %eax
movl $0x0, %ebx
adcl $-0x1, %ebx
orl $0x1, %ebx
cmpl %ecx, %eax
jmp 0x823ac
movq 0x8(%rsi), %rdi
movq 0x8(%rdx), %rsi
popq %rbx
jmp 0x6036f
movzwl (%rsi), %eax
xorl %ecx, %ecx
xorl %esi, %esi
cmpw (%rdx), %ax
jmp 0x823b9
movsd (%rsi), %xmm0
movsd (%rdx), %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
xorl %ebx, %ebx
ucomisd %xmm1, %xmm0
jmp 0x823db
movb (%rsi), %al
xorl %ecx, %ecx
xorl %esi, %esi
cmpb (%rdx), %al
jmp 0x823b9
callq 0x819fb
leaq 0x459df(%rip), %rdi     # 0xc7d51
leaq 0x459ef(%rip), %rsi     # 0xc7d68
leaq 0x459fe(%rip), %rcx     # 0xc7d7e
xorl %ebx, %ebx
movl $0xbc, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0x60031
jmp 0x823e5
movzwl (%rsi), %eax
movzwl (%rdx), %ecx
xorl %edx, %edx
cmpw %cx, %ax
movl $0x0, %ebx
adcl $-0x1, %ebx
orl $0x1, %ebx
cmpw %cx, %ax
cmovel %edx, %ebx
jmp 0x823e5
movl (%rsi), %eax
xorl %ecx, %ecx
xorl %esi, %esi
cmpl (%rdx), %eax
setl %sil
leal -0x1(%rsi,%rsi), %ebx
cmovel %ecx, %ebx
jmp 0x823e5
movss (%rsi), %xmm0
movss (%rdx), %xmm1
xorl %eax, %eax
ucomiss %xmm0, %xmm1
seta %al
xorl %ebx, %ebx
ucomiss %xmm1, %xmm0
leal -0x1(%rax,%rax), %eax
cmovnel %eax, %ebx
cmovpl %eax, %ebx
movl %ebx, %eax
popq %rbx
retq