// File: /workspace/github_c_makefile_star2_O1/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_key_wrapping_specification
int
kmip_compare_key_wrapping_specification(const KeyWrappingSpecification *a, const KeyWrappingSpecification *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->wrapping_method != b->wrapping_method)
        {
            return(KMIP_FALSE);
        }
        
        if(a->encoding_option != b->encoding_option)
        {
            return(KMIP_FALSE);
        }
        
        if(a->attribute_name_count != b->attribute_name_count)
        {
            return(KMIP_FALSE);
        }
        
        if(a->encryption_key_info != b->encryption_key_info)
        {
            if((a->encryption_key_info == NULL) || (b->encryption_key_info == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_encryption_key_information(a->encryption_key_info, b->encryption_key_info) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->mac_signature_key_info != b->mac_signature_key_info)
        {
            if((a->mac_signature_key_info == NULL) || (b->mac_signature_key_info == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_mac_signature_key_information(a->mac_signature_key_info, b->mac_signature_key_info) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->attribute_names != b->attribute_names)
        {
            if((a->attribute_names == NULL) || (b->attribute_names == NULL))
            {
                return(KMIP_FALSE);
            }
            
            for(size_t i = 0; i < a->attribute_name_count; i++)
            {
                if(kmip_compare_text_string(&a->attribute_names[i], &b->attribute_names[i]) == KMIP_FALSE)
                {
                    return(KMIP_FALSE);
                }
            }
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq %rsi, %rdi
je 0xaedb
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xaee0
movl (%r15), %eax
cmpl (%r14), %eax
jne 0xaee0
movl 0x28(%r15), %eax
cmpl 0x28(%r14), %eax
jne 0xaee0
movq 0x20(%r15), %r12
cmpq 0x20(%r14), %r12
jne 0xaee0
movq 0x8(%r15), %rdi
movq 0x8(%r14), %rsi
cmpq %rsi, %rdi
je 0xae45
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xaee0
callq 0x6840
testl %eax, %eax
je 0xaee0
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
cmpq %rsi, %rdi
je 0xae6b
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xaee0
callq 0x69e0
testl %eax, %eax
je 0xaee0
movq 0x18(%r15), %r15
movq 0x18(%r14), %r14
cmpq %r14, %r15
je 0xaedb
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0xaee0
testq %r12, %r12
setne %bpl
je 0xaedb
movq %r15, %rdi
movq %r14, %rsi
callq 0x6480
testl %eax, %eax
je 0xaed6
addq $0x10, %r15
addq $0x10, %r14
leaq -0x1(%r12), %rbp
xorl %r13d, %r13d
cmpq %r13, %rbp
je 0xaedb
movq %r15, %rdi
movq %r14, %rsi
callq 0x6480
addq $0x10, %r15
addq $0x10, %r14
incq %r13
testl %eax, %eax
jne 0xaeb0
cmpq %r12, %r13
setb %bpl
testb %bpl, %bpl
jne 0xaee0
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq