// File: /workspace/github_c_makefile_star2_O1/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 0x1da6d
leaq 0x495f(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bc0, %edx           # imm = 0x2BC0
callq 0x6de0
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
jmp 0x1db08
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
cmpl $0x42008800, %ecx       # imm = 0x42008800
jne 0x1dad4
cmpb $0x1, %al
jne 0x1daef
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movq 0x10(%rbx), %rcx
movq 0x8(%rbx), %rax
subq %rax, %rcx
addq (%rbx), %rcx
movl (%r15), %edx
cmpq %rdx, %rcx
jae 0x1db15
leaq 0x48eb(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bca, %edx           # imm = 0x2BCA
jmp 0x1da5e
leaq 0x48da(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bc7, %edx           # imm = 0x2BC7
callq 0x6de0
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
jmp 0x1db08
leaq 0x48bf(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bc7, %edx           # imm = 0x2BC7
callq 0x6de0
movl $0xfffffffb, %ebp       # imm = 0xFFFFFFFB
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x1db08
cmpq $0x3, %rcx
jb 0x1db8c
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x42012d, %eax         # imm = 0x42012D
jne 0x1db8c
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, (%r14)
testq %rax, %rax
je 0x1ddb0
movq %rbx, %rdi
movl $0x42012d, %esi         # imm = 0x42012D
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1db8c
movl %eax, %r15d
leaq 0x4836(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bd2, %edx           # imm = 0x2BD2
jmp 0x1dfc7
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1dc14
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x42012e, %eax         # imm = 0x42012E
jne 0x1dc14
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x1de64
movq %rbx, %rdi
movl $0x42012e, %esi         # imm = 0x42012E
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1dc14
movl %eax, %r15d
leaq 0x47ae(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bdb, %edx           # imm = 0x2BDB
jmp 0x1dfc7
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1dc9c
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x42012f, %eax         # imm = 0x42012F
jne 0x1dc9c
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x1df18
movq %rbx, %rdi
movl $0x42012f, %esi         # imm = 0x42012F
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1dc9c
movl %eax, %r15d
leaq 0x4726(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2be4, %edx           # imm = 0x2BE4
jmp 0x1dfc7
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1dd24
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420130, %eax         # imm = 0x420130
jne 0x1dd24
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x1dfd4
movq %rbx, %rdi
movl $0x420130, %esi         # imm = 0x420130
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1dd24
movl %eax, %r15d
leaq 0x469e(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bed, %edx           # imm = 0x2BED
jmp 0x1dfc7
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1ddd8
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420131, %eax         # imm = 0x420131
jne 0x1ddd8
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x1e093
movq %rbx, %rdi
movl $0x420131, %esi         # imm = 0x420131
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1ddd8
movl %eax, %r15d
leaq 0x4612(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bf7, %edx           # imm = 0x2BF7
jmp 0x1dfc7
leaq 0x461d(%rip), %rdx      # 0x223d4
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x45ea(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bcf, %edx           # imm = 0x2BCF
jmp 0x1e14d
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1de8c
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420132, %eax         # imm = 0x420132
jne 0x1de8c
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x28(%r14)
testq %rax, %rax
je 0x1e0bb
movq %rbx, %rdi
movl $0x420132, %esi         # imm = 0x420132
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1de8c
movl %eax, %r15d
leaq 0x455e(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2c00, %edx           # imm = 0x2C00
jmp 0x1dfc7
leaq 0x4580(%rip), %rdx      # 0x223eb
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x4536(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bd8, %edx           # imm = 0x2BD8
jmp 0x1e14d
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1df40
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420133, %eax         # imm = 0x420133
jne 0x1df40
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x30(%r14)
testq %rax, %rax
je 0x1e0e0
movq %rbx, %rdi
movl $0x420133, %esi         # imm = 0x420133
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1df40
movl %eax, %r15d
leaq 0x44aa(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2c09, %edx           # imm = 0x2C09
jmp 0x1dfc7
leaq 0x44eb(%rip), %rdx      # 0x2240a
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x4482(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2be1, %edx           # imm = 0x2BE1
jmp 0x1e14d
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1dffc
movzbl (%rax), %ecx
shll $0x10, %ecx
movzbl 0x1(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %eax
orl %edx, %eax
cmpl $0x420134, %eax         # imm = 0x420134
jne 0x1dffc
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, 0x38(%r14)
testq %rax, %rax
je 0x1e105
movq %rbx, %rdi
movl $0x420134, %esi         # imm = 0x420134
movq %rax, %rdx
callq 0x6540
testl %eax, %eax
je 0x1dffc
movl %eax, %r15d
leaq 0x43f6(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2c12, %edx           # imm = 0x2C12
callq 0x6de0
movl %r15d, %ebp
jmp 0x1db08
leaq 0x4449(%rip), %rdx      # 0x22424
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x43c6(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bea, %edx           # imm = 0x2BEA
jmp 0x1e14d
testq %rbx, %rbx
je 0x1db08
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
addq (%rbx), %rcx
cmpq $0x3, %rcx
jb 0x1db08
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 0x1db08
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x8, %edx
callq *0x868(%rbx)
movq %rax, 0x40(%r14)
testq %rax, %rax
je 0x1e12a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6b40
testl %eax, %eax
je 0x1db08
movl %eax, %r14d
leaq 0x4337(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2c1a, %edx           # imm = 0x2C1A
callq 0x6de0
movl %r14d, %ebp
jmp 0x1db08
leaq 0x43a1(%rip), %rdx      # 0x2243b
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x4307(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bf4, %edx           # imm = 0x2BF4
jmp 0x1e14d
leaq 0x4391(%rip), %rdx      # 0x22453
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x42df(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2bfd, %edx           # imm = 0x2BFD
jmp 0x1e14d
leaq 0x4383(%rip), %rdx      # 0x2246a
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x42ba(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2c06, %edx           # imm = 0x2C06
jmp 0x1e14d
leaq 0x4374(%rip), %rdx      # 0x22480
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x4295(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2c0f, %edx           # imm = 0x2C0F
jmp 0x1e14d
leaq 0x4367(%rip), %rdx      # 0x22498
movl $0x8, %esi
movq %rbx, %rdi
callq 0x6ba0
leaq 0x4270(%rip), %rsi      # 0x223b5
movq %rbx, %rdi
movl $0x2c18, %edx           # imm = 0x2C18
callq 0x6de0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
jmp 0x1db08