// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0x7, %rax
ja 0x1cd81
leaq 0x46b8(%rip), %rsi      # 0x21425
movq %rbx, %rdi
movl $0x2bc0, %edx           # imm = 0x2BC0
callq 0x6de0
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
jmp 0x1cdff
movq %rsi, %r14
xorl %eax, %eax
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movl (%r15), %eax
movl %eax, %ecx
andl $0xffffff00, %ecx       # imm = 0xFFFFFF00
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
movl $0x2bc7, %edx           # imm = 0x2BC7
cmpl $0x42008800, %ecx       # imm = 0x42008800
jne 0x1cdf0
movl $0xfffffffb, %ebp       # imm = 0xFFFFFFFB
cmpb $0x1, %al
jne 0x1cdf0
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
movl (%r15), %edx
cmpq %rdx, %rcx
jae 0x1ce0c
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl $0x2bca, %edx           # imm = 0x2BCA
leaq 0x462e(%rip), %rsi      # 0x21425
movq %rbx, %rdi
callq 0x6de0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x42012d, %ecx         # imm = 0x42012D
jne 0x1cea9
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, (%r14)
testq %rax, %rax
je 0x1ce6e
movq %rbx, %rdi
movl $0x42012d, %esi         # imm = 0x42012D
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1ce91
movl $0x2bd2, %edx           # imm = 0x2BD2
jmp 0x1d31b
leaq 0x45cf(%rip), %rdx      # 0x21444
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2bcf, %edx           # imm = 0x2BCF
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x42012e, %ecx         # imm = 0x42012E
jne 0x1cf3f
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x1cf04
movq %rbx, %rdi
movl $0x42012e, %esi         # imm = 0x42012E
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1cf27
movl $0x2bdb, %edx           # imm = 0x2BDB
jmp 0x1d31b
leaq 0x4550(%rip), %rdx      # 0x2145b
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2bd8, %edx           # imm = 0x2BD8
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x42012f, %ecx         # imm = 0x42012F
jne 0x1cfd5
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x1cf9a
movq %rbx, %rdi
movl $0x42012f, %esi         # imm = 0x42012F
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1cfbd
movl $0x2be4, %edx           # imm = 0x2BE4
jmp 0x1d31b
leaq 0x44d9(%rip), %rdx      # 0x2147a
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2be1, %edx           # imm = 0x2BE1
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x420130, %ecx         # imm = 0x420130
jne 0x1d06b
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x1d030
movq %rbx, %rdi
movl $0x420130, %esi         # imm = 0x420130
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1d053
movl $0x2bed, %edx           # imm = 0x2BED
jmp 0x1d31b
leaq 0x445d(%rip), %rdx      # 0x21494
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2bea, %edx           # imm = 0x2BEA
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x420131, %ecx         # imm = 0x420131
jne 0x1d101
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x1d0c6
movq %rbx, %rdi
movl $0x420131, %esi         # imm = 0x420131
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1d0e9
movl $0x2bf7, %edx           # imm = 0x2BF7
jmp 0x1d31b
leaq 0x43de(%rip), %rdx      # 0x214ab
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2bf4, %edx           # imm = 0x2BF4
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x420132, %ecx         # imm = 0x420132
jne 0x1d197
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x28(%r14)
testq %rax, %rax
je 0x1d15c
movq %rbx, %rdi
movl $0x420132, %esi         # imm = 0x420132
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1d17f
movl $0x2c00, %edx           # imm = 0x2C00
jmp 0x1d31b
leaq 0x4360(%rip), %rdx      # 0x214c3
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2bfd, %edx           # imm = 0x2BFD
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x420133, %ecx         # imm = 0x420133
jne 0x1d22d
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x30(%r14)
testq %rax, %rax
je 0x1d1f2
movq %rbx, %rdi
movl $0x420133, %esi         # imm = 0x420133
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1d215
movl $0x2c09, %edx           # imm = 0x2C09
jmp 0x1d31b
leaq 0x42e1(%rip), %rdx      # 0x214da
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2c06, %edx           # imm = 0x2C06
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %ecx
orl %edx, %ecx
cmpl $0x420134, %ecx         # imm = 0x420134
jne 0x1d2c3
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x38(%r14)
testq %rax, %rax
je 0x1d288
movq %rbx, %rdi
movl $0x420134, %esi         # imm = 0x420134
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1d2ab
movl $0x2c12, %edx           # imm = 0x2C12
jmp 0x1d31b
leaq 0x4261(%rip), %rdx      # 0x214f0
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2c0f, %edx           # imm = 0x2C0F
jmp 0x1cdf0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1cdff
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420135, %eax         # imm = 0x420135
jne 0x1cdff
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *0x868(%rbx)
movq %rax, 0x40(%r14)
testq %rax, %rax
je 0x1d322
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6b40
testl %eax, %eax
je 0x1cdff
movl $0x2c1a, %edx           # imm = 0x2C1A
movl %eax, %ebp
jmp 0x1cdf0
leaq 0x41df(%rip), %rdx      # 0x21508
movl $0x8, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x2c18, %edx           # imm = 0x2C18
jmp 0x1cdf0
nopl (%rax)