// File: /workspace/github_c_makefile_star2_O1/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 0xbc1b
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xbc20
movq 0x8(%r15), %rax
cmpq 0x8(%r14), %rax
jne 0xbc20
movl 0x10(%r15), %eax
cmpl 0x10(%r14), %eax
jne 0xbc20
movq 0x28(%r15), %r12
cmpq 0x28(%r14), %r12
jne 0xbc20
movq (%r15), %rax
movq (%r14), %rcx
cmpq %rcx, %rax
je 0xbb19
testq %rax, %rax
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0xbc20
movl (%rax), %edx
cmpl (%rcx), %edx
jne 0xbc20
movl 0x4(%rax), %eax
cmpl 0x4(%rcx), %eax
jne 0xbc20
movq 0x18(%r15), %rdi
movq 0x18(%r14), %rsi
cmpq %rsi, %rdi
je 0xbb47
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbc20
callq 0x6530
testl %eax, %eax
je 0xbc20
movq 0x40(%r15), %rdi
movq 0x40(%r14), %rsi
cmpq %rsi, %rdi
je 0xbb75
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbc20
callq 0x63e0
testl %eax, %eax
je 0xbc20
movq 0x20(%r15), %rax
movq 0x20(%r14), %rcx
cmpq %rcx, %rax
je 0xbbcf
testq %rax, %rax
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0xbc20
testq %r12, %r12
setne %dl
je 0xbbcf
movl (%rax), %esi
cmpl (%rcx), %esi
jne 0xbbcb
leaq -0x1(%r12), %rdx
xorl %esi, %esi
cmpq %rsi, %rdx
je 0xbbcf
movl 0x4(%rax,%rsi,4), %r8d
leaq 0x1(%rsi), %rdi
cmpl 0x4(%rcx,%rsi,4), %r8d
movq %rdi, %rsi
je 0xbbad
cmpq %r12, %rdi
setb %dl
testb %dl, %dl
jne 0xbc20
movq 0x30(%r15), %rdi
movq 0x30(%r14), %rsi
cmpq %rsi, %rdi
je 0xbbf5
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbc20
callq 0x6480
testl %eax, %eax
je 0xbc20
movq 0x38(%r15), %rdi
movq 0x38(%r14), %rsi
cmpq %rsi, %rdi
je 0xbc1b
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbc20
callq 0x6480
testl %eax, %eax
je 0xbc20
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq