// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl $0x1, %ebx
cmpq %rsi, %rdi
je 0xad2d
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xad2b
movl (%r15), %eax
cmpl (%r14), %eax
jne 0xad2b
movl 0x28(%r15), %eax
cmpl 0x28(%r14), %eax
jne 0xad2b
movq 0x20(%r15), %r12
cmpq 0x20(%r14), %r12
jne 0xad2b
movq 0x8(%r15), %rdi
movq 0x8(%r14), %rsi
cmpq %rsi, %rdi
je 0xace8
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xad2b
callq 0x6840
testl %eax, %eax
je 0xad2b
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
cmpq %rsi, %rdi
je 0xad0e
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xad2b
callq 0x69e0
testl %eax, %eax
je 0xad2b
movq 0x18(%r15), %r15
movq 0x18(%r14), %r14
cmpq %r14, %r15
je 0xad2d
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
je 0xad3b
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
testq %r12, %r12
je 0xad2d
movq %r15, %rdi
movq %r14, %rsi
callq 0x6480
testl %eax, %eax
je 0xad2b
addq $0x10, %r14
addq $0x10, %r15
decq %r12
jne 0xad40
jmp 0xad2d