// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_get_response_payload
int
kmip_compare_get_response_payload(const GetResponsePayload *a, const GetResponsePayload *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->object_type != b->object_type)
        {
            return(KMIP_FALSE);
        }
        
        if(a->unique_identifier != b->unique_identifier)
        {
            if((a->unique_identifier == NULL) || (b->unique_identifier == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_text_string(a->unique_identifier, b->unique_identifier) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->object != b->object)
        {
            switch(a->object_type)
            {
                case KMIP_OBJTYPE_SYMMETRIC_KEY:
                if(kmip_compare_symmetric_key((SymmetricKey *)a->object, (SymmetricKey *)b->object) == KMIP_FALSE)
                {
                    return(KMIP_FALSE);
                }
                break;
                
                case KMIP_OBJTYPE_PUBLIC_KEY:
                if(kmip_compare_public_key((PublicKey *)a->object, (PublicKey *)b->object) == KMIP_FALSE)
                {
                    return(KMIP_FALSE);
                }
                break;
                
                case KMIP_OBJTYPE_PRIVATE_KEY:
                if(kmip_compare_private_key((PrivateKey *)a->object, (PrivateKey *)b->object) == KMIP_FALSE)
                {
                    return(KMIP_FALSE);
                }
                break;
                
                default:
                /* NOTE (ph) Unsupported types cannot be compared. */
                return(KMIP_FALSE);
                break;
            };
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
je 0xe644
cmpq $0x0, -0x10(%rbp)
je 0xe50c
cmpq $0x0, -0x18(%rbp)
jne 0xe518
movl $0x0, -0x4(%rbp)
jmp 0xe64b
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
je 0xe532
movl $0x0, -0x4(%rbp)
jmp 0xe64b
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0xe58e
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xe55a
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0xe566
movl $0x0, -0x4(%rbp)
jmp 0xe64b
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x64d0
cmpl $0x0, %eax
jne 0xe58c
movl $0x0, -0x4(%rbp)
jmp 0xe64b
jmp 0xe58e
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0xe642
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
subl $0x2, %eax
je 0xe5c8
jmp 0xe5b4
movl -0x1c(%rbp), %eax
subl $0x3, %eax
je 0xe5ed
jmp 0xe5be
movl -0x1c(%rbp), %eax
subl $0x4, %eax
je 0xe612
jmp 0xe637
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x60a0
cmpl $0x0, %eax
jne 0xe5eb
movl $0x0, -0x4(%rbp)
jmp 0xe64b
jmp 0xe640
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x6680
cmpl $0x0, %eax
jne 0xe610
movl $0x0, -0x4(%rbp)
jmp 0xe64b
jmp 0xe640
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x6980
cmpl $0x0, %eax
jne 0xe635
movl $0x0, -0x4(%rbp)
jmp 0xe64b
jmp 0xe640
movl $0x0, -0x4(%rbp)
jmp 0xe64b
jmp 0xe642
jmp 0xe644
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)