// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_object_types
int
kmip_decode_object_types(KMIP *ctx, ObjectTypes *value)
{
    int result = 0;

    value->object_list = ctx->calloc_func(ctx->state, 1, sizeof(LinkedList));
    CHECK_NEW_MEMORY(ctx, value->object_list, sizeof(LinkedList), "LinkedList");

    uint32 tag = kmip_peek_tag(ctx);
    while(tag == KMIP_TAG_OBJECT_TYPE)
    {
        LinkedListItem *item = ctx->calloc_func(ctx->state, 1, sizeof(LinkedListItem));
        CHECK_NEW_MEMORY(ctx, item, sizeof(LinkedListItem), "LinkedListItem");
        kmip_linked_list_enqueue(value->object_list, item);

        item->data = ctx->calloc_func(ctx->state, 1, sizeof(int32));
        CHECK_NEW_MEMORY(ctx, item->data, sizeof(int32), "Object");

        result = kmip_decode_enum(ctx, KMIP_TAG_OBJECT_TYPE, (int32 *)item->data);
        CHECK_RESULT(ctx, result);

        tag = kmip_peek_tag(ctx);
    }

    return(KMIP_OK);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x18, %edx
callq *%rax
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x231e3
movq -0x10(%rbp), %rdi
movl $0x18, %esi
leaq 0x224c(%rip), %rdx      # 0x25409
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x3074(%rip), %rsi      # 0x26241
movl $0x2b8d, %edx           # imm = 0x2B8D
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23336
jmp 0x231e5
movq -0x10(%rbp), %rdi
callq 0x6a40
movl %eax, -0x20(%rbp)
cmpl $0x420057, -0x20(%rbp)  # imm = 0x420057
jne 0x2332f
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x18, %edx
callq *%rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x23261
movq -0x10(%rbp), %rdi
movl $0x18, %esi
leaq 0x21d9(%rip), %rdx      # 0x25414
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2ff6(%rip), %rsi      # 0x26241
movl $0x2b93, %edx           # imm = 0x2B93
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23336
jmp 0x23263
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rsi
callq 0x67e0
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x4, %edx
callq *%rax
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x232de
movq -0x10(%rbp), %rdi
movl $0x4, %esi
leaq 0x2f9f(%rip), %rdx      # 0x2625a
callq 0x6cd0
movq -0x10(%rbp), %rdi
leaq 0x2f76(%rip), %rsi      # 0x26241
movl $0x2b97, %edx           # imm = 0x2B97
callq 0x6f20
movl $0xfffffff4, -0x4(%rbp) # imm = 0xFFFFFFF4
jmp 0x23336
jmp 0x232e0
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdx
movl $0x420057, %esi         # imm = 0x420057
callq 0x6c00
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x2331c
movq -0x10(%rbp), %rdi
leaq 0x2f37(%rip), %rsi      # 0x26241
movl $0x2b9a, %edx           # imm = 0x2B9A
callq 0x6f20
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x23336
jmp 0x2331e
movq -0x10(%rbp), %rdi
callq 0x6a40
movl %eax, -0x20(%rbp)
jmp 0x231f1
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop