// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_response_header
int
kmip_compare_response_header(const ResponseHeader *a, const ResponseHeader *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->time_stamp != b->time_stamp)
        {
            return(KMIP_FALSE);
        }
        
        if(a->batch_count != b->batch_count)
        {
            return(KMIP_FALSE);
        }
        
        if(a->attestation_type_count != b->attestation_type_count)
        {
            return(KMIP_FALSE);
        }
        
        if(a->protocol_version != b->protocol_version)
        {
            if((a->protocol_version == NULL) || (b->protocol_version == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_protocol_version(a->protocol_version, b->protocol_version) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->nonce != b->nonce)
        {
            if((a->nonce == NULL) || (b->nonce == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_nonce(a->nonce, b->nonce) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }

        if(a->server_hashed_password != b->server_hashed_password)
        {
            if((a->server_hashed_password == NULL) || (b->server_hashed_password == NULL))
                return(KMIP_FALSE);

            if(kmip_compare_byte_string(a->server_hashed_password, b->server_hashed_password) == KMIP_FALSE)
                return(KMIP_FALSE);
        }

        if(a->attestation_types != b->attestation_types)
        {
            if((a->attestation_types == NULL) || (b->attestation_types == NULL))
            {
                return(KMIP_FALSE);
            }
            
            for(size_t i = 0; i < a->attestation_type_count; i++)
            {
                if(a->attestation_types[i] != b->attestation_types[i])
                {
                    return(KMIP_FALSE);
                }
            }
        }
        
        if(a->client_correlation_value != b->client_correlation_value)
        {
            if((a->client_correlation_value == NULL) || (b->client_correlation_value == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_text_string(a->client_correlation_value, b->client_correlation_value) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->server_correlation_value != b->server_correlation_value)
        {
            if((a->server_correlation_value == NULL) || (b->server_correlation_value == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_text_string(a->server_correlation_value, b->server_correlation_value) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq %rsi, %rdi
je 0xb0e2
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb0ce
movq 0x8(%r14), %rax
cmpq 0x8(%rbx), %rax
jne 0xb0ce
movl 0x10(%r14), %eax
cmpl 0x10(%rbx), %eax
jne 0xb0ce
movq 0x28(%r14), %r15
cmpq 0x28(%rbx), %r15
jne 0xb0ce
movq (%r14), %rdi
movq (%rbx), %rsi
cmpq %rsi, %rdi
je 0xaffa
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb0ce
callq 0x6ae0
testl %eax, %eax
je 0xb0ce
movq 0x18(%r14), %rdi
movq 0x18(%rbx), %rsi
cmpq %rsi, %rdi
je 0xb028
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb0ce
callq 0x6550
testl %eax, %eax
je 0xb0ce
movq 0x40(%r14), %rdi
movq 0x40(%rbx), %rsi
cmpq %rsi, %rdi
je 0xb052
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb0ce
callq 0x6400
testl %eax, %eax
je 0xb0ce
movq 0x20(%r14), %rcx
movq 0x20(%rbx), %rdx
cmpq %rdx, %rcx
je 0xb08b
testq %rcx, %rcx
sete %al
testq %rdx, %rdx
sete %sil
orb %al, %sil
jne 0xb0ce
xorl %esi, %esi
xorl %eax, %eax
cmpq %rsi, %r15
je 0xb08b
movl (%rcx,%rsi,4), %edi
leaq 0x1(%rsi), %r8
cmpl (%rdx,%rsi,4), %edi
movq %r8, %rsi
je 0xb075
jmp 0xb0e5
movq 0x30(%r14), %rdi
movq 0x30(%rbx), %rsi
cmpq %rsi, %rdi
je 0xb0b1
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb0ce
callq 0x64a0
testl %eax, %eax
je 0xb0ce
movq 0x38(%r14), %rdi
movq 0x38(%rbx), %rsi
cmpq %rsi, %rdi
je 0xb0e2
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0xb0d2
xorl %eax, %eax
jmp 0xb0e5
callq 0x64a0
movl %eax, %ecx
movl $0x0, %eax
testl %ecx, %ecx
je 0xb0e5
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq