LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_query_response_payload
int
kmip_compare_query_response_payload(const QueryResponsePayload *a, const QueryResponsePayload *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }

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

            if(kmip_compare_operations(a->operations, b->operations) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }

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

            if(kmip_compare_objects(a->objects, b->objects) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }

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

            if(kmip_compare_text_string(a->vendor_identification, b->vendor_identification) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }

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

            if(kmip_compare_server_information(a->server_information, b->server_information) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }

    return(KMIP_TRUE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq %rsi, %rdi
je 0xb359
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xb35e
movq (%r15), %rdi
movq (%r14), %rsi
cmpq %rsi, %rdi
je 0xb2e7
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb35e
callq 0x6460
testl %eax, %eax
je 0xb35e
movq 0x8(%r15), %rdi
movq 0x8(%r14), %rsi
cmpq %rsi, %rdi
je 0xb30d
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb35e
callq 0x66a0
testl %eax, %eax
je 0xb35e
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
cmpq %rsi, %rdi
je 0xb333
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb35e
callq 0x6480
testl %eax, %eax
je 0xb35e
movq 0x18(%r15), %rdi
movq 0x18(%r14), %rsi
cmpq %rsi, %rdi
je 0xb359
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb35e
callq 0x61d0
testl %eax, %eax
je 0xb35e
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_nonce
int
kmip_compare_nonce(const Nonce *a, const Nonce *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->nonce_id != b->nonce_id)
        {
            if((a->nonce_id == NULL) || (b->nonce_id == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_byte_string(a->nonce_id, b->nonce_id) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->nonce_value != b->nonce_value)
        {
            if((a->nonce_value == NULL) || (b->nonce_value == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_byte_string(a->nonce_value, b->nonce_value) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq %rsi, %rdi
je 0xb3d2
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xb3d7
movq (%r15), %rdi
movq (%r14), %rsi
cmpq %rsi, %rdi
je 0xb3ac
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb3d7
callq 0x63e0
testl %eax, %eax
je 0xb3d7
movq 0x8(%r15), %rdi
movq 0x8(%r14), %rsi
cmpq %rsi, %rdi
je 0xb3d2
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb3d7
callq 0x63e0
testl %eax, %eax
je 0xb3d7
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_username_password_credential
int
kmip_compare_username_password_credential(const UsernamePasswordCredential *a, const UsernamePasswordCredential *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->username != b->username)
        {
            if((a->username == NULL) || (b->username == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_text_string(a->username, b->username) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->password != b->password)
        {
            if((a->password == NULL) || (b->password == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_text_string(a->password, b->password) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq %rsi, %rdi
je 0xb44b
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xb450
movq (%r15), %rdi
movq (%r14), %rsi
cmpq %rsi, %rdi
je 0xb425
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb450
callq 0x6480
testl %eax, %eax
je 0xb450
movq 0x8(%r15), %rdi
movq 0x8(%r14), %rsi
cmpq %rsi, %rdi
je 0xb44b
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb450
callq 0x6480
testl %eax, %eax
je 0xb450
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_attestation_credential
int
kmip_compare_attestation_credential(const AttestationCredential *a, const AttestationCredential *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->attestation_type != b->attestation_type)
        {
            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->attestation_measurement != b->attestation_measurement)
        {
            if((a->attestation_measurement == NULL) || (b->attestation_measurement == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_byte_string(a->attestation_measurement, b->attestation_measurement) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->attestation_assertion != b->attestation_assertion)
        {
            if((a->attestation_assertion == NULL) || (b->attestation_assertion == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_byte_string(a->attestation_assertion, b->attestation_assertion) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq %rsi, %rdi
je 0xb625
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xb62a
movl 0x8(%r15), %eax
cmpl 0x8(%r14), %eax
jne 0xb62a
movq (%r15), %rdi
movq (%r14), %rsi
cmpq %rsi, %rdi
je 0xb5d9
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb62a
callq 0x6530
testl %eax, %eax
je 0xb62a
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
cmpq %rsi, %rdi
je 0xb5ff
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb62a
callq 0x63e0
testl %eax, %eax
je 0xb62a
movq 0x18(%r15), %rdi
movq 0x18(%r14), %rsi
cmpq %rsi, %rdi
je 0xb625
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb62a
callq 0x63e0
testl %eax, %eax
je 0xb62a
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_credential
int
kmip_compare_credential(const Credential *a, const Credential *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->credential_type != b->credential_type)
        {
            return(KMIP_FALSE);
        }
        
        if(a->credential_value != b->credential_value)
        {
            if((a->credential_value == NULL) || (b->credential_value == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_credential_value(a->credential_type, (void**)&a->credential_value, (void**)&b->credential_value) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %rbx
movq %rsi, %rdx
cmpq %rsi, %rdi
je 0xb6ef
movq %rdi, %rsi
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xb6f4
movl (%rsi), %edi
cmpl (%rdx), %edi
jne 0xb6f4
movq 0x8(%rsi), %rcx
movq 0x8(%rdx), %rax
cmpq %rax, %rcx
je 0xb6ef
testq %rcx, %rcx
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
jne 0xb6f4
addq $0x8, %rsi
addq $0x8, %rdx
callq 0x6310
testl %eax, %eax
je 0xb6f4
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_authentication
int
kmip_compare_authentication(const Authentication *a, const Authentication *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->credential != b->credential)
        {
            if((a->credential == NULL) || (b->credential == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_credential(a->credential, b->credential) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }
    
    return(KMIP_TRUE);
}

// Assembly:
pushq %rbx
cmpq %rsi, %rdi
je 0xb734
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xb739
movq (%rdi), %rdi
movq (%rsi), %rsi
cmpq %rsi, %rdi
je 0xb734
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xb739
callq 0x68d0
testl %eax, %eax
je 0xb739
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_request_message
int
kmip_compare_request_message(const RequestMessage *a, const RequestMessage *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->batch_count != b->batch_count)
        {
            return(KMIP_FALSE);
        }
        
        if(a->request_header != b->request_header)
        {
            if((a->request_header == NULL) || (b->request_header == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_request_header(a->request_header, b->request_header) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->batch_items != b->batch_items)
        {
            if((a->batch_items == NULL) || (b->batch_items == NULL))
            {
                return(KMIP_FALSE);
            }
            
            for(size_t i = 0; i < a->batch_count; i++)
            {
                if(kmip_compare_request_batch_item(&a->batch_items[i], &b->batch_items[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 0xbad0
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbace
movq 0x10(%r15), %r12
cmpq 0x10(%r14), %r12
jne 0xbace
movq (%r15), %rdi
movq (%r14), %rsi
cmpq %rsi, %rdi
je 0xbab1
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbace
callq 0x64d0
testl %eax, %eax
je 0xbace
movq 0x8(%r15), %r15
movq 0x8(%r14), %r14
cmpq %r14, %r15
je 0xbad0
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
je 0xbade
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
testq %r12, %r12
je 0xbad0
movq %r15, %rdi
movq %r14, %rsi
callq 0x6110
testl %eax, %eax
je 0xbace
addq $0x20, %r14
addq $0x20, %r15
decq %r12
jne 0xbae3
jmp 0xbad0
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_response_message
int
kmip_compare_response_message(const ResponseMessage *a, const ResponseMessage *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }
        
        if(a->batch_count != b->batch_count)
        {
            return(KMIP_FALSE);
        }
        
        if(a->response_header != b->response_header)
        {
            if((a->response_header == NULL) || (b->response_header == NULL))
            {
                return(KMIP_FALSE);
            }
            
            if(kmip_compare_response_header(a->response_header, b->response_header) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
        
        if(a->batch_items != b->batch_items)
        {
            if((a->batch_items == NULL) || (b->batch_items == NULL))
            {
                return(KMIP_FALSE);
            }
            
            for(size_t i = 0; i < a->batch_count; i++)
            {
                if(kmip_compare_response_batch_item(&a->batch_items[i], &b->batch_items[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 0xbb76
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbb74
movq 0x10(%r15), %r12
cmpq 0x10(%r14), %r12
jne 0xbb74
movq (%r15), %rdi
movq (%r14), %rsi
cmpq %rsi, %rdi
je 0xbb57
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbb74
callq 0x6380
testl %eax, %eax
je 0xbb74
movq 0x8(%r15), %r15
movq 0x8(%r14), %r14
cmpq %r14, %r15
je 0xbb76
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
je 0xbb84
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
testq %r12, %r12
je 0xbb76
movq %r15, %rdi
movq %r14, %rsi
callq 0x6d00
testl %eax, %eax
je 0xbb74
addq $0x30, %r14
addq $0x30, %r15
decq %r12
jne 0xbb89
jmp 0xbb76
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_linklist_items_textstring
int
kmip_compare_linklist_items_textstring(const LinkedListItem *a_item, const LinkedListItem *b_item)
{
    while((a_item != NULL) && (b_item != NULL))
    {
        if(a_item != b_item)
        {
            TextString *a_data = (TextString *)a_item->data;
            TextString *b_data = (TextString *)b_item->data;
            if(kmip_compare_text_string(a_data, b_data) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }

        a_item = a_item->next;
        b_item = b_item->next;
    }

    if(a_item != b_item)
    {
        return(KMIP_FALSE);
    }

    return(KMIP_TRUE);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xbc34
cmpq %rbx, %r14
je 0xbc24
movq 0x10(%r14), %rdi
movq 0x10(%rbx), %rsi
callq 0x6480
testl %eax, %eax
je 0xbc44
movq (%r14), %r14
movq (%rbx), %rbx
testq %r14, %r14
je 0xbc34
testq %rbx, %rbx
jne 0xbc0e
xorl %eax, %eax
cmpq %rbx, %r14
sete %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
jmp 0xbc3c
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_operations
int
kmip_compare_operations(const Operations *a, const Operations *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }

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

            if((a->operation_list->size != b->operation_list->size))
            {
                return(KMIP_FALSE);
            }

            LinkedListItem *a_item = a->operation_list->head;
            LinkedListItem *b_item = b->operation_list->head;
            if (kmip_compare_linklist_items_int32(a_item, b_item) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }

    return(KMIP_TRUE);
}

// Assembly:
pushq %rbx
cmpq %rsi, %rdi
je 0xbced
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xbcf2
movq (%rdi), %rax
movq (%rsi), %rcx
cmpq %rcx, %rax
je 0xbced
testq %rax, %rax
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0xbcf2
movq 0x10(%rax), %rdx
cmpq 0x10(%rcx), %rdx
jne 0xbcf2
movq (%rax), %rdi
movq (%rcx), %rsi
callq 0x63c0
testl %eax, %eax
je 0xbcf2
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_objects
int
kmip_compare_objects(const ObjectTypes *a, const ObjectTypes *b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }

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

            if((a->object_list->size != b->object_list->size))
            {
                return(KMIP_FALSE);
            }

            LinkedListItem *a_item = a->object_list->head;
            LinkedListItem *b_item = b->object_list->head;
            if (kmip_compare_linklist_items_int32(a_item, b_item) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }

    return(KMIP_TRUE);
}

// Assembly:
pushq %rbx
cmpq %rsi, %rdi
je 0xbd44
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xbd49
movq (%rdi), %rax
movq (%rsi), %rcx
cmpq %rcx, %rax
je 0xbd44
testq %rax, %rax
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0xbd49
movq 0x10(%rax), %rdx
cmpq 0x10(%rcx), %rdx
jne 0xbd49
movq (%rax), %rdi
movq (%rcx), %rsi
callq 0x63c0
testl %eax, %eax
je 0xbd49
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_alternative_endpoints
int
kmip_compare_alternative_endpoints(const AltEndpoints* a, const AltEndpoints* b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }

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

            if((a->endpoint_list->size != b->endpoint_list->size))
            {
                return(KMIP_FALSE);
            }

            LinkedListItem *a_item = a->endpoint_list->head;
            LinkedListItem *b_item = b->endpoint_list->head;
            if (kmip_compare_linklist_items_textstring(a_item, b_item) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }
    }

    return(KMIP_TRUE);
}

// Assembly:
pushq %rbx
cmpq %rsi, %rdi
je 0xbd9b
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xbda0
movq (%rdi), %rax
movq (%rsi), %rcx
cmpq %rcx, %rax
je 0xbd9b
testq %rax, %rax
sete %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0xbda0
movq 0x10(%rax), %rdx
cmpq 0x10(%rcx), %rdx
jne 0xbda0
movq (%rax), %rdi
movq (%rcx), %rsi
callq 0x6370
testl %eax, %eax
je 0xbda0
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_compare_server_information
int
kmip_compare_server_information(const ServerInformation* a, const ServerInformation* b)
{
    if(a != b)
    {
        if((a == NULL) || (b == NULL))
        {
            return(KMIP_FALSE);
        }

        if(kmip_compare_text_string(a->server_name, b->server_name) == KMIP_FALSE)
        {
            return(KMIP_FALSE);
        }

        if(kmip_compare_text_string(a->server_serial_number, b->server_serial_number) == KMIP_FALSE)
        {
            return(KMIP_FALSE);
        }

        if(kmip_compare_text_string(a->server_version, b->server_version) == KMIP_FALSE)
        {
            return(KMIP_FALSE);
        }

        if(kmip_compare_text_string(a->server_load, b->server_load) == KMIP_FALSE)
        {
            return(KMIP_FALSE);
        }
        if(kmip_compare_text_string(a->product_name, b->product_name) == KMIP_FALSE)
        {
            return(KMIP_FALSE);
        }
        if(kmip_compare_text_string(a->build_level, b->build_level) == KMIP_FALSE)
        {
            return(KMIP_FALSE);
        }
        if(kmip_compare_text_string(a->build_date, b->build_date) == KMIP_FALSE)
        {
            return(KMIP_FALSE);
        }

        if(a->alternative_failover_endpoints != b->alternative_failover_endpoints )
        {
            if(kmip_compare_alternative_endpoints(a->alternative_failover_endpoints, b->alternative_failover_endpoints) == KMIP_FALSE)
            {
                return(KMIP_FALSE);
            }
        }

//      if(a->vendor_specific != b->vendor_specific )
//      {
//          if(kmip_compare_vendor_specifi(a->vendor_specific, b->vendor_specific) == KMIP_FALSE)
//          {
//              return(KMIP_FALSE);
//          }
//      }

    }

    return(KMIP_TRUE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq %rsi, %rdi
je 0xbe5d
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebx, %ebx
orb %al, %cl
jne 0xbe62
movq (%r15), %rdi
movq (%r14), %rsi
callq 0x6480
testl %eax, %eax
je 0xbe62
movq 0x8(%r15), %rdi
movq 0x8(%r14), %rsi
callq 0x6480
testl %eax, %eax
je 0xbe62
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
callq 0x6480
testl %eax, %eax
je 0xbe62
movq 0x18(%r15), %rdi
movq 0x18(%r14), %rsi
callq 0x6480
testl %eax, %eax
je 0xbe62
movq 0x20(%r15), %rdi
movq 0x20(%r14), %rsi
callq 0x6480
testl %eax, %eax
je 0xbe62
movq 0x28(%r15), %rdi
movq 0x28(%r14), %rsi
callq 0x6480
testl %eax, %eax
je 0xbe62
movq 0x30(%r15), %rdi
movq 0x30(%r14), %rsi
callq 0x6480
testl %eax, %eax
je 0xbe62
movq 0x40(%r15), %rdi
movq 0x40(%r14), %rsi
cmpq %rsi, %rdi
je 0xbe5d
callq 0x6050
testl %eax, %eax
je 0xbe62
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_int8_be
int
kmip_encode_int8_be(KMIP *ctx, int8 value)
{
    CHECK_BUFFER_FULL(ctx, sizeof(int8));

    uint8 v = *(uint8 *)((void *)(&value));

    *ctx->index++ = v;
    
    return(KMIP_OK);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
subq %rax, %rcx
addq 0x10(%rdi), %rcx
jne 0xbe9f
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xbeae
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xbe88
jmp 0xbed5
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rbx)
movb %sil, (%rax)
xorl %eax, %eax
jmp 0xbeda
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x12619(%rip), %rsi     # 0x1e4d8
movl $0x63, %edx
callq 0x66f0
movl $0x1801, 0x9c(%rbx,%r14) # imm = 0x1801
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_int32_be
int
kmip_encode_int32_be(KMIP *ctx, int32 value)
{
    CHECK_BUFFER_FULL(ctx, sizeof(int32));

    uint32 v = *(uint32 *)((void *)(&value));

    *ctx->index++ = (uint8)((v & 0xFF000000) >> 24);
    *ctx->index++ = (uint8)((v & 0x00FF0000) >> 16);
    *ctx->index++ = (uint8)((v & 0x0000FF00) >> 8);
    *ctx->index++ = (uint8)((v & 0x000000FF) >> 0);

    return(KMIP_OK);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdx
subq %rcx, %rdx
addq (%rdi), %rdx
cmpq $0x3, %rdx
ja 0xbf1b
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xbf5f
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xbf04
jmp 0xbf86
movl %esi, %eax
movl %esi, %edx
shrl $0x18, %edx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x8(%rbx)
movb %dl, (%rcx)
movl %eax, %ecx
shrl $0x10, %ecx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %cl, (%rdx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb %ah, (%rcx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb %al, (%rcx)
xorl %eax, %eax
jmp 0xbf8b
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x125cc(%rip), %rsi     # 0x1e53c
movl $0x63, %edx
callq 0x66f0
movl $0x180d, 0x9c(%rbx,%r14) # imm = 0x180D
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_int64_be
int
kmip_encode_int64_be(KMIP *ctx, int64 value)
{
    CHECK_BUFFER_FULL(ctx, sizeof(int64));

    uint64 v = *(uint64 *)((void *)(&value));

    *ctx->index++ = (uint8)((v & 0xFF00000000000000) >> 56);
    *ctx->index++ = (uint8)((v & 0x00FF000000000000) >> 48);
    *ctx->index++ = (uint8)((v & 0x0000FF0000000000) >> 40);
    *ctx->index++ = (uint8)((v & 0x000000FF00000000) >> 32);
    *ctx->index++ = (uint8)((v & 0x00000000FF000000) >> 24);
    *ctx->index++ = (uint8)((v & 0x0000000000FF0000) >> 16);
    *ctx->index++ = (uint8)((v & 0x000000000000FF00) >> 8);
    *ctx->index++ = (uint8)((v & 0x00000000000000FF) >> 0);
    
    return(KMIP_OK);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdx
subq %rcx, %rdx
addq (%rdi), %rdx
cmpq $0x7, %rdx
ja 0xbfd3
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc06c
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xbfb5
jmp 0xc093
movq %rsi, %rax
movq %rsi, %rdx
shrq $0x38, %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x8(%rbx)
movb %dl, (%rcx)
movq %rax, %rcx
shrq $0x30, %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %cl, (%rdx)
movq %rax, %rcx
shrq $0x28, %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %cl, (%rdx)
movq %rax, %rcx
shrq $0x20, %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %cl, (%rdx)
movl %eax, %ecx
shrl $0x18, %ecx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %cl, (%rdx)
movl %eax, %ecx
shrl $0x10, %ecx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %cl, (%rdx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb %ah, (%rcx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movb %al, (%rcx)
xorl %eax, %eax
jmp 0xc098
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x12523(%rip), %rsi     # 0x1e5a0
movl $0x63, %edx
callq 0x66f0
movl $0x181c, 0x9c(%rbx,%r14) # imm = 0x181C
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_integer
int
kmip_encode_integer(KMIP *ctx, enum tag t, int32 value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_INTEGER));
    kmip_encode_int32_be(ctx, 4);
    kmip_encode_int32_be(ctx, value);
    kmip_encode_int32_be(ctx, 0);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xc0d6
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc10b
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc0bf
jmp 0xc132
movl %edx, %ebp
shll $0x8, %esi
orl $0x2, %esi
movq %rbx, %rdi
callq 0x60a0
movq %rbx, %rdi
movl $0x4, %esi
callq 0x60a0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x60a0
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60a0
jmp 0xc137
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x124e8(%rip), %rsi     # 0x1e604
movl $0x63, %edx
callq 0x66f0
movl $0x182f, 0x9c(%rbx,%r14) # imm = 0x182F
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_long
int
kmip_encode_long(KMIP *ctx, enum tag t, int64 value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_LONG_INTEGER));
    kmip_encode_int32_be(ctx, 8);
    kmip_encode_int64_be(ctx, value);
    
    return(KMIP_OK);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xc174
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc1a1
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc15d
jmp 0xc1c8
movq %rdx, %r14
shll $0x8, %esi
orl $0x3, %esi
movq %rbx, %rdi
callq 0x60a0
movq %rbx, %rdi
movl $0x8, %esi
callq 0x60a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6910
xorl %eax, %eax
jmp 0xc1cd
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x124b6(%rip), %rsi     # 0x1e668
movl $0x63, %edx
callq 0x66f0
movl $0x183c, 0x9c(%rbx,%r14) # imm = 0x183C
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_enum
int
kmip_encode_enum(KMIP *ctx, enum tag t, int32 value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_ENUMERATION));
    kmip_encode_int32_be(ctx, 4);
    kmip_encode_int32_be(ctx, value);
    kmip_encode_int32_be(ctx, 0);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xc20b
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc240
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc1f4
jmp 0xc267
movl %edx, %ebp
shll $0x8, %esi
orl $0x5, %esi
movq %rbx, %rdi
callq 0x60a0
movq %rbx, %rdi
movl $0x4, %esi
callq 0x60a0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x60a0
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60a0
jmp 0xc26c
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x1247b(%rip), %rsi     # 0x1e6cc
movl $0x63, %edx
callq 0x66f0
movl $0x1848, 0x9c(%rbx,%r14) # imm = 0x1848
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_bool
int
kmip_encode_bool(KMIP *ctx, enum tag t, bool32 value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_BOOLEAN));
    kmip_encode_int32_be(ctx, 8);
    kmip_encode_int32_be(ctx, 0);
    kmip_encode_int32_be(ctx, value);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xc2a9
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc2df
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc292
jmp 0xc306
movl %edx, %ebp
shll $0x8, %esi
orl $0x6, %esi
movq %rbx, %rdi
callq 0x60a0
movq %rbx, %rdi
movl $0x8, %esi
callq 0x60a0
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60a0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x60a0
jmp 0xc30c
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x12440(%rip), %rsi     # 0x1e730
movl $0x63, %edx
callq 0x66f0
movl $0x1855, 0x9c(%rbx,%r14) # imm = 0x1855
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_text_string
int
kmip_encode_text_string(KMIP *ctx, enum tag t, const TextString *value)
{
    /* TODO (ph) What if value is NULL? */
    uint8 padding = CALCULATE_PADDING(value->size);
    CHECK_BUFFER_FULL(ctx, 8 + value->size + padding);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_TEXT_STRING));
    kmip_encode_int32_be(ctx, value->size);
    
    for(uint32 i = 0; i < value->size; i++)
    {
        kmip_encode_int8_be(ctx, value->value[i]);
    }
    for(uint8 i = 0; i < padding; i++)
    {
        kmip_encode_int8_be(ctx, 0);
    }
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movq 0x8(%rdx), %rax
movl %eax, %r15d
negb %r15b
movq 0x10(%rdi), %rcx
subq 0x8(%rdi), %rcx
addq (%rdi), %rcx
andb $0x7, %r15b
movzbl %r15b, %edx
addq %rdx, %rax
addq $0x8, %rax
cmpq %rax, %rcx
jae 0xc36b
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc3c4
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc351
jmp 0xc3eb
shll $0x8, %esi
orl $0x7, %esi
movq %rbx, %rdi
callq 0x60a0
movl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x60a0
cmpq $0x0, 0x8(%r14)
je 0xc3ac
movl $0x1, %ebp
xorl %eax, %eax
movq (%r14), %rcx
movsbl (%rcx,%rax), %esi
movq %rbx, %rdi
callq 0x64c0
movl %ebp, %eax
incl %ebp
cmpq %rax, 0x8(%r14)
ja 0xc393
xorl %ebp, %ebp
testb %r15b, %r15b
je 0xc3f0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x64c0
decb %r15b
jne 0xc3b3
jmp 0xc3f0
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x123bf(%rip), %rsi     # 0x1e794
movl $0x63, %edx
callq 0x66f0
movl $0x1864, 0x9c(%rbx,%r14) # imm = 0x1864
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_byte_string
int
kmip_encode_byte_string(KMIP *ctx, enum tag t, const ByteString *value)
{
    uint8 padding = CALCULATE_PADDING(value->size);
    CHECK_BUFFER_FULL(ctx, 8 + value->size + padding);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_BYTE_STRING));
    kmip_encode_int32_be(ctx, value->size);
    
    for(uint32 i = 0; i < value->size; i++)
    {
        kmip_encode_int8_be(ctx, value->value[i]);
    }
    for(uint8 i = 0; i < padding; i++)
    {
        kmip_encode_int8_be(ctx, 0);
    }
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movq 0x8(%rdx), %rax
movl %eax, %r15d
negb %r15b
movq 0x10(%rdi), %rcx
subq 0x8(%rdi), %rcx
addq (%rdi), %rcx
andb $0x7, %r15b
movzbl %r15b, %edx
addq %rdx, %rax
addq $0x8, %rax
cmpq %rax, %rcx
jae 0xc454
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc4ad
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc43a
jmp 0xc4d4
shll $0x8, %esi
orl $0x8, %esi
movq %rbx, %rdi
callq 0x60a0
movl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x60a0
cmpq $0x0, 0x8(%r14)
je 0xc495
movl $0x1, %ebp
xorl %eax, %eax
movq (%r14), %rcx
movsbl (%rcx,%rax), %esi
movq %rbx, %rdi
callq 0x64c0
movl %ebp, %eax
incl %ebp
cmpq %rax, 0x8(%r14)
ja 0xc47c
xorl %ebp, %ebp
testb %r15b, %r15b
je 0xc4d9
movq %rbx, %rdi
xorl %esi, %esi
callq 0x64c0
decb %r15b
jne 0xc49c
jmp 0xc4d9
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x1233a(%rip), %rsi     # 0x1e7f8
movl $0x63, %edx
callq 0x66f0
movl $0x1879, 0x9c(%rbx,%r14) # imm = 0x1879
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_date_time
int
kmip_encode_date_time(KMIP *ctx, enum tag t, int64 value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_DATE_TIME));
    kmip_encode_int32_be(ctx, 8);
    kmip_encode_int64_be(ctx, value);
    
    return(KMIP_OK);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xc51c
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc549
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc505
jmp 0xc570
movq %rdx, %r14
shll $0x8, %esi
orl $0x9, %esi
movq %rbx, %rdi
callq 0x60a0
movq %rbx, %rdi
movl $0x8, %esi
callq 0x60a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6910
xorl %eax, %eax
jmp 0xc575
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x12302(%rip), %rsi     # 0x1e85c
movl $0x63, %edx
callq 0x66f0
movl $0x188d, 0x9c(%rbx,%r14) # imm = 0x188D
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_interval
int
kmip_encode_interval(KMIP *ctx, enum tag t, uint32 value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(t, KMIP_TYPE_INTERVAL));
    kmip_encode_int32_be(ctx, 4);
    kmip_encode_int32_be(ctx, value);
    kmip_encode_int32_be(ctx, 0);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0xc5b3
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xc5e8
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xc59c
jmp 0xc60f
movl %edx, %ebp
shll $0x8, %esi
orl $0xa, %esi
movq %rbx, %rdi
callq 0x60a0
movq %rbx, %rdi
movl $0x4, %esi
callq 0x60a0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x60a0
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60a0
jmp 0xc614
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x122c7(%rip), %rsi     # 0x1e8c0
movl $0x63, %edx
callq 0x66f0
movl $0x1899, 0x9c(%rbx,%r14) # imm = 0x1899
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_length
int
kmip_encode_length(KMIP *ctx, intptr length)
{
    // NOTE: Length is encoded as a signed 32-bit integer but the usage of this
    // function uses the difference between two buffer pointers to determine
    // the length in bytes that should be encoded. See the intptr typedef in
    // the header for type details.
    int result = 0;

    if((length > INT_MAX) || (length < 0))
    {
        HANDLE_FAILURE(ctx, KMIP_INVALID_LENGTH);
    }
    else
    {
        result = kmip_encode_int32_be(ctx, (int32)length);
        CHECK_RESULT(ctx, result);
    }

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x7fffffff, %rsi       # imm = 0x7FFFFFFF
jbe 0xc636
movl $0xffffffeb, %ebp       # imm = 0xFFFFFFEB
movl $0x18ae, %edx           # imm = 0x18AE
jmp 0xc649
movq %rbx, %rdi
callq 0x60a0
testl %eax, %eax
je 0xc661
movl %eax, %ebp
movl $0x18b3, %edx           # imm = 0x18B3
leaq 0x1395d(%rip), %rsi     # 0x1ffad
movq %rbx, %rdi
callq 0x6de0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %ebp, %ebp
jmp 0xc658
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_name
int
kmip_encode_name(KMIP *ctx, const Name *value)
{
    /* TODO (ph) Check for value == NULL? */
    
    int result = 0;
    
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_NAME, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    result = kmip_encode_text_string(ctx, KMIP_TAG_NAME_VALUE, value->value);
    CHECK_RESULT(ctx, result);
    
    result = kmip_encode_enum(ctx, KMIP_TAG_NAME_TYPE, value->type);
    CHECK_RESULT(ctx, result);
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;

    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);
    
    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42005301, %esi       # imm = 0x42005301
callq 0x60a0
testl %eax, %eax
je 0xc697
movl %eax, %ebp
leaq 0x13936(%rip), %rsi     # 0x1ffc0
movq %rbx, %rdi
movl $0x18c1, %edx           # imm = 0x18C1
jmp 0xc71e
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rdx
movq %rbx, %rdi
movl $0x420055, %esi         # imm = 0x420055
callq 0x6670
testl %eax, %eax
je 0xc6cb
movl %eax, %ebp
leaq 0x138ff(%rip), %rsi     # 0x1ffc0
movq %rbx, %rdi
movl $0x18c7, %edx           # imm = 0x18C7
jmp 0xc71e
movl 0x8(%r14), %edx
movq %rbx, %rdi
movl $0x420054, %esi         # imm = 0x420054
callq 0x66d0
testl %eax, %eax
je 0xc6f3
movl %eax, %ebp
leaq 0x138d7(%rip), %rsi     # 0x1ffc0
movq %rbx, %rdi
movl $0x18ca, %edx           # imm = 0x18CA
jmp 0xc71e
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq %r15, %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xc72e
movl %eax, %ebp
leaq 0x138aa(%rip), %rsi     # 0x1ffc0
movq %rbx, %rdi
movl $0x18d0, %edx           # imm = 0x18D0
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xc723
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_template_attribute
int
kmip_encode_template_attribute(KMIP *ctx, const TemplateAttribute *value)
{
    int result = 0;
    
    result = kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_TEMPLATE_ATTRIBUTE, KMIP_TYPE_STRUCTURE));
    CHECK_RESULT(ctx, result);
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    for(size_t i = 0; i < value->name_count; i++)
    {
        result = kmip_encode_name(ctx, &value->names[i]);
        CHECK_RESULT(ctx, result);
    }
    
    for(size_t i = 0; i <value->attribute_count; i++)
    {
        result = kmip_encode_attribute(ctx, &value->attributes[i]);
        CHECK_RESULT(ctx, result);
    }
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    result = kmip_encode_length(ctx, curr_index - value_index);
    CHECK_RESULT(ctx, result);
    
    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x42009101, %esi       # imm = 0x42009101
callq 0x60a0
testl %eax, %eax
je 0xd62c
movl %eax, %ebp
leaq 0x12b05(%rip), %rsi     # 0x20113
movq %rbx, %rdi
movl $0x1ac7, %edx           # imm = 0x1AC7
callq 0x6de0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %r12
leaq 0x4(%r12), %rax
movq %rax, (%rsp)
movq %rax, 0x8(%rbx)
cmpq $0x0, 0x8(%r14)
je 0xd669
xorl %r13d, %r13d
xorl %r15d, %r15d
movq (%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x6180
testl %eax, %eax
jne 0xd6c7
incq %r15
addq $0x10, %r13
cmpq 0x8(%r14), %r15
jb 0xd64a
cmpq $0x0, 0x18(%r14)
je 0xd696
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x10(%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x6a90
testl %eax, %eax
jne 0xd6dd
incq %r15
addq $0x10, %r13
cmpq 0x18(%r14), %r15
jb 0xd676
movq 0x8(%rbx), %r14
movq %r12, 0x8(%rbx)
movq %r14, %rsi
subq (%rsp), %rsi
movq %rbx, %rdi
callq 0x6a80
testl %eax, %eax
je 0xd6f3
movl %eax, %ebp
leaq 0x12a59(%rip), %rsi     # 0x20113
movq %rbx, %rdi
movl $0x1adc, %edx           # imm = 0x1ADC
jmp 0xd616
movl %eax, %ebp
leaq 0x12a43(%rip), %rsi     # 0x20113
movq %rbx, %rdi
movl $0x1acf, %edx           # imm = 0x1ACF
jmp 0xd616
movl %eax, %ebp
leaq 0x12a2d(%rip), %rsi     # 0x20113
movq %rbx, %rdi
movl $0x1ad5, %edx           # imm = 0x1AD5
jmp 0xd616
movq %r14, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0xd61b
// File: /workspace/github_c_makefile_star2_O3/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_encode_protocol_version
int
kmip_encode_protocol_version(KMIP *ctx, const ProtocolVersion *value)
{
    CHECK_BUFFER_FULL(ctx, 40);
    
    kmip_encode_int32_be(ctx, TAG_TYPE(KMIP_TAG_PROTOCOL_VERSION, KMIP_TYPE_STRUCTURE));
    
    uint8 *length_index = ctx->index;
    uint8 *value_index = ctx->index += 4;
    
    kmip_encode_integer(ctx, KMIP_TAG_PROTOCOL_VERSION_MAJOR, value->major);
    kmip_encode_integer(ctx, KMIP_TAG_PROTOCOL_VERSION_MINOR, value->minor);
    
    uint8 *curr_index = ctx->index;
    ctx->index = length_index;
    
    kmip_encode_length(ctx, curr_index - value_index);

    ctx->index = curr_index;
    
    return(KMIP_OK);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x27, %rax
ja 0xd73b
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0xd796
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0xd721
jmp 0xd7bd
movq %rsi, %r14
movq %rbx, %rdi
movl $0x42006901, %esi       # imm = 0x42006901
callq 0x60a0
movq 0x8(%rbx), %r15
leaq 0x4(%r15), %r12
movq %r12, 0x8(%rbx)
movl (%r14), %edx
movq %rbx, %rdi
movl $0x42006a, %esi         # imm = 0x42006A
callq 0x63d0
movl 0x4(%r14), %edx
movq %rbx, %rdi
movl $0x42006b, %esi         # imm = 0x42006B
callq 0x63d0
movq 0x8(%rbx), %r14
movq %r15, 0x8(%rbx)
movq %r14, %rsi
subq %r12, %rsi
movq %rbx, %rdi
callq 0x6a80
movq %r14, 0x8(%rbx)
xorl %eax, %eax
jmp 0xd7c2
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0x112a9(%rip), %rsi     # 0x1ea50
movl $0x63, %edx
callq 0x66f0
movl $0x1ae6, 0x9c(%rbx,%r14) # imm = 0x1AE6
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq