// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
pushq %rax
cmpq %rsi, %rdi
je 0xba44
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xba49
movq 0x8(%r15), %rax
cmpq 0x8(%r14), %rax
jne 0xba49
movl 0x10(%r15), %eax
cmpl 0x10(%r14), %eax
jne 0xba49
movq 0x28(%r15), %r12
cmpq 0x28(%r14), %r12
jne 0xba49
movq (%r15), %rax
movq (%r14), %rcx
cmpq %rcx, %rax
je 0xb966
testq %rax, %rax
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0xba49
movl (%rax), %edx
cmpl (%rcx), %edx
jne 0xba49
movl 0x4(%rax), %eax
cmpl 0x4(%rcx), %eax
jne 0xba49
movq 0x18(%r15), %rdi
movq 0x18(%r14), %rsi
cmpq %rsi, %rdi
je 0xb994
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xba49
callq 0x6530
testl %eax, %eax
je 0xba49
movq 0x40(%r15), %rdi
movq 0x40(%r14), %rsi
cmpq %rsi, %rdi
je 0xb9c2
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xba49
callq 0x63e0
testl %eax, %eax
je 0xba49
movq 0x20(%r15), %rax
movq 0x20(%r14), %rcx
cmpq %rcx, %rax
je 0xb9f8
testq %rax, %rax
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0xba49
testq %r12, %r12
je 0xb9f8
xorl %edx, %edx
movl (%rax,%rdx,4), %esi
cmpl (%rcx,%rdx,4), %esi
jne 0xba57
incq %rdx
cmpq %rdx, %r12
jne 0xb9e8
movq 0x30(%r15), %rdi
movq 0x30(%r14), %rsi
cmpq %rsi, %rdi
je 0xba1e
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xba49
callq 0x6480
testl %eax, %eax
je 0xba49
movq 0x38(%r15), %rdi
movq 0x38(%r14), %rsi
cmpq %rsi, %rdi
je 0xba44
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xba49
callq 0x6480
testl %eax, %eax
je 0xba49
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %ebx, %ebx
jmp 0xba49