// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_server_information
int
kmip_decode_server_information(KMIP *ctx, ServerInformation *value)
{
    CHECK_BUFFER_FULL(ctx, 8);

    int result = 0;
    int32 tag_type = 0;
    uint32 length = 0;

    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, KMIP_TAG_SERVER_INFORMATION, KMIP_TYPE_STRUCTURE);

    kmip_decode_int32_be(ctx, &length);
    CHECK_BUFFER_FULL(ctx, length);

    if(kmip_is_tag_next(ctx, KMIP_TAG_SERVER_NAME))
    {
        value->server_name = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->server_name, sizeof(TextString), "ServerName text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_SERVER_NAME, value->server_name);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_SERVER_SERIAL_NUMBER))
    {
        value->server_serial_number = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->server_serial_number, sizeof(TextString), "ServerSerialNumber text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_SERVER_SERIAL_NUMBER, value->server_serial_number);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_SERVER_VERSION))
    {
        value->server_version = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->server_version, sizeof(TextString), "ServerVersion text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_SERVER_VERSION, value->server_version);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_SERVER_LOAD))
    {
        value->server_load = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->server_load, sizeof(TextString), "ServerLoad text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_SERVER_LOAD, value->server_load);
        CHECK_RESULT(ctx, result);
    }


    if(kmip_is_tag_next(ctx, KMIP_TAG_PRODUCT_NAME))
    {
        value->product_name = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->product_name, sizeof(TextString), "ProductName text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_PRODUCT_NAME, value->product_name);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_BUILD_LEVEL))
    {
        value->build_level = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->build_level, sizeof(TextString), "BuildLevel text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_BUILD_LEVEL, value->build_level);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_BUILD_DATE))
    {
        value->build_date = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->build_date, sizeof(TextString), "BuildDate text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_BUILD_DATE, value->build_date);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_CLUSTER_INFO))
    {
        value->cluster_info = ctx->calloc_func(ctx->state, 1, sizeof(TextString));
        CHECK_NEW_MEMORY(ctx, value->cluster_info, sizeof(TextString), "ClusterInfo text string");

        result = kmip_decode_text_string(ctx, KMIP_TAG_CLUSTER_INFO, value->cluster_info);
        CHECK_RESULT(ctx, result);
    }

    if(kmip_is_tag_next(ctx, KMIP_TAG_ALTERNATE_FAILOVER_ENDPOINTS))
    {
        value->alternative_failover_endpoints= ctx->calloc_func(ctx->state, 1, sizeof(AltEndpoints));
        CHECK_NEW_MEMORY(ctx, value->alternative_failover_endpoints, sizeof(AltEndpoints), "Alt Endpoints");
        result = kmip_decode_alternative_endpoints(ctx, value->alternative_failover_endpoints);
        CHECK_RESULT(ctx, result);
    }

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq (%rdx), %rdx
subq %rdx, %rcx
subq %rcx, %rax
cmpq $0x8, %rax
jae 0x23574
movq -0x10(%rbp), %rdi
leaq 0x2d3a(%rip), %rsi      # 0x26298
movl $0x2bc0, %edx           # imm = 0x2BC0
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x23d60
jmp 0x23576
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x6b10
movl -0x20(%rbp), %eax
sarl $0x8, %eax
cmpl $0x420088, %eax         # imm = 0x420088
je 0x235c6
movq -0x10(%rbp), %rdi
leaq 0x2ce8(%rip), %rsi      # 0x26298
movl $0x2bc7, %edx           # imm = 0x2BC7
callq 0x6f20
movl $0xfffffffc, -0x4(%rbp) # imm = 0xFFFFFFFC
jmp 0x23d60
movl -0x20(%rbp), %eax
andl $0xff, %eax
cmpl $0x1, %eax
je 0x235f4
movq -0x10(%rbp), %rdi
leaq 0x2cba(%rip), %rsi      # 0x26298
movl $0x2bc7, %edx           # imm = 0x2BC7
callq 0x6f20
movl $0xfffffffb, -0x4(%rbp) # imm = 0xFFFFFFFB
jmp 0x23d60
jmp 0x235f6
jmp 0x235f8
movq -0x10(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0x6b10
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq (%rdx), %rdx
subq %rdx, %rcx
subq %rcx, %rax
movl -0x24(%rbp), %ecx
cmpq %rcx, %rax
jae 0x2364b
movq -0x10(%rbp), %rdi
leaq 0x2c63(%rip), %rsi      # 0x26298
movl $0x2bca, %edx           # imm = 0x2BCA
callq 0x6f20
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x23d60
jmp 0x2364d
movq -0x10(%rbp), %rdi
movl $0x42012d, %esi         # imm = 0x42012D
callq 0x6300
cmpl $0x0, %eax
je 0x23714
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x236d0
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x2c0d(%rip), %rdx      # 0x262b7
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2bde(%rip), %rsi      # 0x26298
movl $0x2bcf, %edx           # imm = 0x2BCF
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x236d2
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movl $0x42012d, %esi         # imm = 0x42012D
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x23710
movq -0x10(%rbp), %rdi
leaq 0x2b9d(%rip), %rsi      # 0x26298
movl $0x2bd2, %edx           # imm = 0x2BD2
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x23712
jmp 0x23714
movq -0x10(%rbp), %rdi
movl $0x42012e, %esi         # imm = 0x42012E
callq 0x6300
cmpl $0x0, %eax
je 0x237de
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x23799
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x2b5b(%rip), %rdx      # 0x262ce
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2b15(%rip), %rsi      # 0x26298
movl $0x2bd8, %edx           # imm = 0x2BD8
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x2379b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdx
movl $0x42012e, %esi         # imm = 0x42012E
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x237da
movq -0x10(%rbp), %rdi
leaq 0x2ad3(%rip), %rsi      # 0x26298
movl $0x2bdb, %edx           # imm = 0x2BDB
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x237dc
jmp 0x237de
movq -0x10(%rbp), %rdi
movl $0x42012f, %esi         # imm = 0x42012F
callq 0x6300
cmpl $0x0, %eax
je 0x238a8
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x23863
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x2ab0(%rip), %rdx      # 0x262ed
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2a4b(%rip), %rsi      # 0x26298
movl $0x2be1, %edx           # imm = 0x2BE1
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x23865
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdx
movl $0x42012f, %esi         # imm = 0x42012F
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x238a4
movq -0x10(%rbp), %rdi
leaq 0x2a09(%rip), %rsi      # 0x26298
movl $0x2be4, %edx           # imm = 0x2BE4
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x238a6
jmp 0x238a8
movq -0x10(%rbp), %rdi
movl $0x420130, %esi         # imm = 0x420130
callq 0x6300
cmpl $0x0, %eax
je 0x23972
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x2392d
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x2a00(%rip), %rdx      # 0x26307
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2981(%rip), %rsi      # 0x26298
movl $0x2bea, %edx           # imm = 0x2BEA
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x2392f
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
movl $0x420130, %esi         # imm = 0x420130
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x2396e
movq -0x10(%rbp), %rdi
leaq 0x293f(%rip), %rsi      # 0x26298
movl $0x2bed, %edx           # imm = 0x2BED
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x23970
jmp 0x23972
movq -0x10(%rbp), %rdi
movl $0x420131, %esi         # imm = 0x420131
callq 0x6300
cmpl $0x0, %eax
je 0x23a3c
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x239f7
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x294d(%rip), %rdx      # 0x2631e
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x28b7(%rip), %rsi      # 0x26298
movl $0x2bf4, %edx           # imm = 0x2BF4
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x239f9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdx
movl $0x420131, %esi         # imm = 0x420131
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x23a38
movq -0x10(%rbp), %rdi
leaq 0x2875(%rip), %rsi      # 0x26298
movl $0x2bf7, %edx           # imm = 0x2BF7
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x23a3a
jmp 0x23a3c
movq -0x10(%rbp), %rdi
movl $0x420132, %esi         # imm = 0x420132
callq 0x6300
cmpl $0x0, %eax
je 0x23b06
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x23ac1
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x289b(%rip), %rdx      # 0x26336
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x27ed(%rip), %rsi      # 0x26298
movl $0x2bfd, %edx           # imm = 0x2BFD
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x23ac3
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rdx
movl $0x420132, %esi         # imm = 0x420132
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x23b02
movq -0x10(%rbp), %rdi
leaq 0x27ab(%rip), %rsi      # 0x26298
movl $0x2c00, %edx           # imm = 0x2C00
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x23b04
jmp 0x23b06
movq -0x10(%rbp), %rdi
movl $0x420133, %esi         # imm = 0x420133
callq 0x6300
cmpl $0x0, %eax
je 0x23bd0
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x23b8b
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x27e8(%rip), %rdx      # 0x2634d
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2723(%rip), %rsi      # 0x26298
movl $0x2c06, %edx           # imm = 0x2C06
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x23b8d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rdx
movl $0x420133, %esi         # imm = 0x420133
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x23bcc
movq -0x10(%rbp), %rdi
leaq 0x26e1(%rip), %rsi      # 0x26298
movl $0x2c09, %edx           # imm = 0x2C09
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x23bce
jmp 0x23bd0
movq -0x10(%rbp), %rdi
movl $0x420134, %esi         # imm = 0x420134
callq 0x6300
cmpl $0x0, %eax
je 0x23c9a
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x23c55
movq -0x10(%rbp), %rdi
movl $0x10, %esi
leaq 0x2734(%rip), %rdx      # 0x26363
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2659(%rip), %rsi      # 0x26298
movl $0x2c0f, %edx           # imm = 0x2C0F
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x23c57
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdx
movl $0x420134, %esi         # imm = 0x420134
callq 0x65b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x23c96
movq -0x10(%rbp), %rdi
leaq 0x2617(%rip), %rsi      # 0x26298
movl $0x2c12, %edx           # imm = 0x2C12
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x23c98
jmp 0x23c9a
movq -0x10(%rbp), %rdi
movl $0x420135, %esi         # imm = 0x420135
callq 0x6300
cmpl $0x0, %eax
je 0x23d59
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x23d1c
movq -0x10(%rbp), %rdi
movl $0x8, %esi
leaq 0x2682(%rip), %rdx      # 0x2637b
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x258f(%rip), %rsi      # 0x26298
movl $0x2c18, %edx           # imm = 0x2C18
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23d60
jmp 0x23d1e
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rsi
callq 0x6c60
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x23d55
movq -0x10(%rbp), %rdi
leaq 0x2555(%rip), %rsi      # 0x26298
movl $0x2c1a, %edx           # imm = 0x2C1A
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23d60
jmp 0x23d57
jmp 0x23d59
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)