// File: /workspace/github_c_makefile_star2_O3/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 $-0x3ac242643d9c35a9, %rax # imm = 0xC53DBD9BC263CA57
cmpq %rax, %rdi
jg 0xf58c8
movabsq $-0x5aa4411ac4e2880f, %rax # imm = 0xA55BBEE53B1D77F1
cmpq %rax, %rdi
jle 0xf5920
movabsq $-0x503db0e6e1c2e705, %rax # imm = 0xAFC24F191E3D18FB
cmpq %rax, %rdi
jle 0xf5a19
movabsq $-0x503db0e6e1c2e704, %rax # imm = 0xAFC24F191E3D18FC
cmpq %rax, %rdi
je 0xf5ae1
movabsq $-0x4882601bdca6aefb, %rax # imm = 0xB77D9FE423595105
cmpq %rax, %rdi
je 0xf5a5f
movabsq $-0x3f1363e6d8155aed, %rax # imm = 0xC0EC9C1927EAA513
jmp 0xf5a93
movabsq $0x510c2417c67dabea, %rax # imm = 0x510C2417C67DABEA
cmpq %rax, %rdi
jle 0xf5973
movabsq $0x62367a17d02b474c, %rax # imm = 0x62367A17D02B474C
cmpq %rax, %rdi
jle 0xf5a7a
movabsq $0x62367a17d02b474d, %rax # imm = 0x62367A17D02B474D
cmpq %rax, %rdi
je 0xf5aef
movabsq $0x69849117d3eb7d62, %rax # imm = 0x69849117D3EB7D62
cmpq %rax, %rdi
je 0xf5ad5
movabsq $0x6d07f9ef5b68e8a2, %rax # imm = 0x6D07F9EF5B68E8A2
jmp 0xf599f
movabsq $-0x6119581ac7eacd64, %rax # imm = 0x9EE6A7E53815329C
cmpq %rax, %rdi
jg 0xf59ad
movabsq $-0x73f6ae1ad309fd45, %rax # imm = 0x8C0951E52CF602BB
cmpq %rax, %rdi
je 0xf5aa4
movabsq $-0x6bce971ace902370, %rax # imm = 0x943168E5316FDC90
cmpq %rax, %rdi
jne 0xf5b10
movzwl (%rsi), %eax
movzwl (%rdx), %ecx
xorl %edx, %edx
cmpw %cx, %ax
movl $0x0, %ebx
adcl $-0x1, %ebx
orl $0x1, %ebx
cmpw %cx, %ax
jmp 0xf5ad0
movabsq $-0x84b14e74a9e1ff1, %rax # imm = 0xF7B4EB18B561E00F
cmpq %rax, %rdi
jg 0xf59ec
movabsq $-0x3ac242643d9c35a8, %rax # imm = 0xC53DBD9BC263CA58
cmpq %rax, %rdi
je 0xf5aa4
movabsq $-0x388c46b188de83fe, %rax # imm = 0xC773B94E77217C02
cmpq %rax, %rdi
je 0xf5a5f
jmp 0xf5b10
movabsq $-0x6119581ac7eacd63, %rax # imm = 0x9EE6A7E53815329D
cmpq %rax, %rdi
je 0xf5abb
movabsq $-0x5fc2af85f419929b, %rax # imm = 0xA03D507A0BE66D65
cmpq %rax, %rdi
jne 0xf5b10
movsd (%rsi), %xmm0
movsd (%rdx), %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
xorl %ebx, %ebx
ucomisd %xmm1, %xmm0
jmp 0xf5a50
movabsq $-0x84b14e74a9e1ff0, %rax # imm = 0xF7B4EB18B561E010
cmpq %rax, %rdi
je 0xf5a0e
movabsq $0x230abe18cdeefc99, %rax # imm = 0x230ABE18CDEEFC99
cmpq %rax, %rdi
jne 0xf5b10
movq (%rsi), %rdi
movq (%rdx), %rsi
jmp 0xf5ae9
movabsq $-0x5aa4411ac4e2880e, %rax # imm = 0xA55BBEE53B1D77F2
cmpq %rax, %rdi
je 0xf5a5f
movabsq $-0x58737885f0577326, %rax # imm = 0xA78C877A0FA88CDA
cmpq %rax, %rdi
jne 0xf5b10
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
jmp 0xf5b0c
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 0xf5ad0
movabsq $0x510c2417c67dabeb, %rax # imm = 0x510C2417C67DABEB
cmpq %rax, %rdi
je 0xf5af9
movabsq $0x585a3b17ca3de200, %rax # imm = 0x585A3B17CA3DE200
cmpq %rax, %rdi
jne 0xf5b10
movq (%rsi), %rax
xorl %ecx, %ecx
xorl %esi, %esi
cmpq (%rdx), %rax
jmp 0xf5b01
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 0xf5ad0
movl (%rsi), %eax
movl (%rdx), %ecx
xorl %edx, %edx
cmpl %ecx, %eax
movl $0x0, %ebx
adcl $-0x1, %ebx
orl $0x1, %ebx
cmpl %ecx, %eax
cmovel %edx, %ebx
jmp 0xf5b0c
movzwl (%rsi), %eax
xorl %ecx, %ecx
xorl %esi, %esi
cmpw (%rdx), %ax
jmp 0xf5b01
movq 0x8(%rsi), %rdi
movq 0x8(%rdx), %rsi
popq %rbx
jmp 0xbe959
movb (%rsi), %al
xorl %ecx, %ecx
xorl %esi, %esi
cmpb (%rdx), %al
jmp 0xf5b01
movl (%rsi), %eax
xorl %ecx, %ecx
xorl %esi, %esi
cmpl (%rdx), %eax
setl %sil
leal -0x1(%rsi,%rsi), %ebx
cmovel %ecx, %ebx
movl %ebx, %eax
popq %rbx
retq
callq 0xd6ec4
testq %rax, %rax
leaq 0x52bf6(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x54339(%rip), %rdi     # 0x149e63
leaq 0x54349(%rip), %rsi     # 0x149e7a
leaq 0x54358(%rip), %rcx     # 0x149e90
xorl %ebx, %ebx
movl $0xbc, %edx
xorl %eax, %eax
callq 0xbe592
jmp 0xf5b0c