LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: finish_attribute_value
static void finish_attribute_value(GumboParser* parser) {
  GumboTagState* tag_state = &parser->_tokenizer_state->_tag_state;
  if (tag_state->_drop_next_attr_value) {
    // Duplicate attribute name detected in an earlier state, so we have to
    // ignore the value.
    tag_state->_drop_next_attr_value = false;
    reinitialize_tag_buffer(parser);
    return;
  }

  GumboAttribute* attr =
      tag_state->_attributes.data[tag_state->_attributes.length - 1];
  gumbo_free((void*) attr->value);
  copy_over_tag_buffer(parser, &attr->value);
  copy_over_original_tag_text(
      parser, &attr->original_value, &attr->value_start, &attr->value_end);
  reinitialize_tag_buffer(parser);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpb $0x1, 0xb8(%rax)
jne 0xf553
movb $0x0, 0xb8(%rax)
jmp 0xf595
movq 0xa8(%rax), %rcx
movl 0xb0(%rax), %eax
decl %eax
movq (%rcx,%rax,8), %r14
leaq 0x20(%r14), %r15
movq 0x20(%r14), %rdi
callq 0xf6e0
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf4c7
leaq 0x28(%r14), %rsi
leaq 0x68(%r14), %rdx
subq $-0x80, %r14
movq %rbx, %rdi
movq %r14, %rcx
callq 0xf4dd
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xf287
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: emit_comment
static StateResult emit_comment(GumboParser* parser, GumboToken* output) {
  output->type = GUMBO_TOKEN_COMMENT;
  finish_temporary_buffer(parser, &output->v.text);
  finish_token(parser, output);
  return RETURN_SUCCESS;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x3, (%rsi)
addq $0x30, %rsi
callq 0xf5cd
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xbe0e
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: emit_doctype
static void emit_doctype(GumboParser* parser, GumboToken* output) {
  output->type = GUMBO_TOKEN_DOCTYPE;
  output->v.doc_type = parser->_tokenizer_state->_doc_type_state;
  finish_token(parser, output);
  doc_type_state_init(parser);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
andl $0x0, (%rsi)
movq 0x10(%rdi), %rax
movups 0xc8(%rax), %xmm0
movups 0xd8(%rax), %xmm1
movups %xmm1, 0x40(%rsi)
movups %xmm0, 0x30(%rsi)
callq 0xbe0e
movq 0x10(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0xd3(%rax)
movups %xmm0, 0xc8(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: finish_doctype_public_id
static void finish_doctype_public_id(GumboParser* parser) {
  GumboTokenDocType* doc_type_state =
      &parser->_tokenizer_state->_doc_type_state;
  gumbo_free((void*) doc_type_state->public_identifier);
  finish_temporary_buffer(parser, &doc_type_state->public_identifier);
  doc_type_state->has_public_identifier = true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %r15
leaq 0xd0(%r15), %r14
movq 0xd0(%r15), %rdi
callq 0xf6e0
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf5cd
movb $0x1, 0xe1(%r15)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/tokenizer.c
// Function: finish_doctype_system_id
static void finish_doctype_system_id(GumboParser* parser) {
  GumboTokenDocType* doc_type_state =
      &parser->_tokenizer_state->_doc_type_state;
  gumbo_free((void*) doc_type_state->system_identifier);
  finish_temporary_buffer(parser, &doc_type_state->system_identifier);
  doc_type_state->has_system_identifier = true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %r15
leaq 0xd8(%r15), %r14
movq 0xd8(%r15), %rdi
callq 0xf6e0
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf5cd
movb $0x1, 0xe2(%r15)
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/util.c
// Function: gumbo_alloc
void* gumbo_alloc(size_t size) {
  void* ptr = malloc(size);
  if (unlikely(ptr == NULL)) {
    perror(__func__);
    abort();
  }
  return ptr;
}

// Assembly:
pushq %rax
callq 0x41c0
testq %rax, %rax
je 0xf6b1
popq %rcx
retq
leaq 0xcee0(%rip), %rdi      # 0x1c598
callq 0x4250
callq 0x4050
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/util.c
// Function: gumbo_realloc
void* gumbo_realloc(void* ptr, size_t size) {
  ptr = realloc(ptr, size);
  if (unlikely(ptr == NULL)) {
    perror(__func__);
    abort();
  }
  return ptr;
}

// Assembly:
pushq %rax
callq 0x4210
testq %rax, %rax
je 0xf6cf
popq %rcx
retq
leaq 0xcece(%rip), %rdi      # 0x1c5a4
callq 0x4250
callq 0x4050
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/util.c
// Function: gumbo_strdup
char* gumbo_strdup(const char* str) {
  const size_t size = strlen(str) + 1;
  // The strdup(3) function isn't available in strict "-std=c99" mode
  // (it's part of POSIX, not C99), so use malloc(3) and memcpy(3)
  // instead:
  char* buffer = gumbo_alloc(size);
  return memcpy(buffer, str, size);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x40b0
leaq 0x1(%rax), %r14
movq %r14, %rdi
callq 0xf6a4
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4190
nop
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/char_ref.c
// Function: parse_digit
static int CONST_FN parse_digit(int c, bool allow_hex) {
  if (c >= '0' && c <= '9') {
    return c - '0';
  }
  if (allow_hex && c >= 'a' && c <= 'f') {
    return c - 'a' + 10;
  }
  if (allow_hex && c >= 'A' && c <= 'F') {
    return c - 'A' + 10;
  }
  return -1;
}

// Assembly:
leal -0x30(%rdi), %eax
cmpl $0xa, %eax
jb 0x1523a
leal -0x61(%rdi), %eax
cmpl $0x6, %eax
setae %al
movl %esi, %ecx
xorb $0x1, %cl
orb %al, %cl
jne 0x15223
addl $-0x57, %edi
jmp 0x15238
leal -0x41(%rdi), %eax
addl $-0x37, %edi
testb %sil, %sil
pushq $-0x1
popq %rcx
cmovel %ecx, %edi
cmpl $0x6, %eax
cmovael %ecx, %edi
movl %edi, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/char_ref.c
// Function: add_codepoint_error
static void add_codepoint_error (
  struct GumboParser* parser,
  Utf8Iterator* input,
  GumboErrorType type,
  int codepoint
) {
  GumboError* error = gumbo_add_error(parser);
  if (!error) {
    return;
  }
  utf8iterator_fill_error_at_mark(input, error);
  error->type = type;
  error->v.codepoint = codepoint;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
callq 0x6bcc
testq %rax, %rax
je 0x15268
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x7684
movl %ebp, (%r15)
movl %ebx, 0x28(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/char_ref.c
// Function: add_named_reference_error
static void add_named_reference_error (
  struct GumboParser* parser,
  Utf8Iterator* input,
  GumboErrorType type,
  GumboStringPiece text
) {
  GumboError* error = gumbo_add_error(parser);
  if (!error) {
    return;
  }
  utf8iterator_fill_error_at_mark(input, error);
  error->type = type;
  error->v.text = text;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r12
callq 0x6bcc
testq %rax, %rax
je 0x152a9
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
callq 0x7684
movl %ebp, (%r15)
movq %r14, 0x28(%r15)
movq %rbx, 0x30(%r15)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/craigbarnes[P]lua-gumbo/lib/foreign_attrs.c
// Function: gumbo_get_foreign_attr_replacement
const ForeignAttrReplacement *
gumbo_get_foreign_attr_replacement (register const char *str, register size_t len)
{
  static const unsigned char lengthtable[] =
    {
       5, 11,  9, 13, 10, 10, 10, 11, 10,  8,  8
    };
  static const ForeignAttrReplacement wordlist[] =
    {
      {"xmlns", "xmlns", GUMBO_ATTR_NAMESPACE_XMLNS},
      {"xmlns:xlink", "xlink", GUMBO_ATTR_NAMESPACE_XMLNS},
      {"xml:space", "space", GUMBO_ATTR_NAMESPACE_XML},
      {"xlink:actuate", "actuate", GUMBO_ATTR_NAMESPACE_XLINK},
      {"xlink:type", "type", GUMBO_ATTR_NAMESPACE_XLINK},
      {"xlink:href", "href", GUMBO_ATTR_NAMESPACE_XLINK},
      {"xlink:role", "role", GUMBO_ATTR_NAMESPACE_XLINK},
      {"xlink:title", "title", GUMBO_ATTR_NAMESPACE_XLINK},
      {"xlink:show", "show", GUMBO_ATTR_NAMESPACE_XLINK},
      {"xml:lang", "lang", GUMBO_ATTR_NAMESPACE_XML},
      {"xml:base", "base", GUMBO_ATTR_NAMESPACE_XML}
    };

  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register unsigned int key = hash (str, len);

      if (key <= MAX_HASH_VALUE)
        if (len == lengthtable[key])
          {
            register const char *s = wordlist[key].from;

            if (s && *str == *s && !memcmp (str + 1, s + 1, len - 1))
              return &wordlist[key];
          }
    }
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq -0x5(%rsi), %rax
xorl %ebx, %ebx
cmpq $0x8, %rax
ja 0x15337
movq %rsi, %rdx
leaq -0x2(%rsi), %rax
cmpq $0x6, %rax
jb 0x152e0
movzbl 0x7(%rdi), %eax
leaq 0x35a04(%rip), %rcx     # 0x4ace0
movzbl (%rax,%rcx), %ebx
movzbl 0x1(%rdi), %eax
leaq 0x359f5(%rip), %rcx     # 0x4ace0
movzbl (%rax,%rcx), %ecx
movl %ebx, %eax
addq %rcx, %rax
cmpl $0xa, %eax
ja 0x15335
leaq 0x359d0(%rip), %rcx     # 0x4acd0
movzbl (%rax,%rcx), %ecx
cmpq %rdx, %rcx
jne 0x15335
imulq $0x18, %rax, %r14
leaq 0x3d16c(%rip), %rbx     # 0x52480
movq (%r14,%rbx), %rsi
testq %rsi, %rsi
je 0x15335
movb (%rdi), %al
cmpb (%rsi), %al
jne 0x15335
incq %rdi
incq %rsi
decq %rdx
callq 0x4200
testl %eax, %eax
je 0x15342
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
addq %r14, %rbx
jmp 0x15337
nop
// File: /workspace/github_c_makefile_star2_O2/carlitosmarin[P]Sistema-Ficheros-SOII/mi_ln.c
// Function: main
int main (int argc, char **argv) {
	if (argc != 4) {
		printf("Número de parametros incorrectos\n");
		return -1;
	}
	//Montamos el disco
	bmount(argv[1]);

	if(mi_link (argv[2],argv[3]) == 0) printf("Enlace creado correctamente\n");
	else printf("Error: No se ha podido llevar a cabo mi_ln\n");

	bumount();
	return 0;
}

// Assembly:
pushq %rbx
cmpl $0x4, %edi
jne 0x3bff
movq %rsi, %rbx
movq 0x8(%rsi), %rdi
callq 0x127c
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rsi
callq 0x336f
testl %eax, %eax
leaq 0x96f(%rip), %rax       # 0x4553
leaq 0x93d(%rip), %rdi       # 0x4528
cmoveq %rax, %rdi
callq 0x1060
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x12b8
jmp 0x3c0e
leaq 0x969(%rip), %rdi       # 0x456f
callq 0x1060
pushq $-0x1
popq %rbx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/Babkock[P]st/st.c
// Function: newterm
void
newterm(const Arg* a)
{
	int res;
	switch (fork()) {
		case -1:
			die("fork failed: %s\n", strerror(errno));
			break;
		case 0:
			switch (fork()) {
				case -1:
					die("fork failed: %s\n", strerror(errno));
					break;
				case 0:
					chdir_by_pid(pid);
					execlp("/proc/self/exe", argv0, NULL);
					exit(1);
					break;
				default:
					exit(0);
			}
		default:
			wait(NULL);
	}
}

// Assembly:
pushq %rax
callq 0x6860
testl %eax, %eax
je 0x82bd
cmpl $-0x1, %eax
je 0x82cb
xorl %edi, %edi
popq %rax
jmp 0x6110
callq 0x6860
testl %eax, %eax
je 0x82e8
cmpl $-0x1, %eax
jne 0x8315
callq 0x6600
movl (%rax), %edi
callq 0x64b0
leaq 0x832b(%rip), %rdi      # 0x10609
movq %rax, %rsi
xorl %eax, %eax
callq 0x6b16
movl 0x1401e(%rip), %edi     # 0x1c30c
callq 0x831c
leaq 0x165be(%rip), %rax     # 0x1e8b8
movq (%rax), %rsi
leaq 0x8371(%rip), %rdi      # 0x10675
xorl %edx, %edx
xorl %eax, %eax
callq 0x6250
pushq $0x1
popq %rdi
callq 0x61b0
xorl %edi, %edi
callq 0x61b0
// File: /workspace/github_c_makefile_star2_O2/Babkock[P]st/x.c
// Function: xdrawline
void
xdrawline(Line line, int x1, int y1, int x2)
{
	int i, x, ox, numspecs;
	Glyph base, new;
	XftGlyphFontSpec *specs = xw.specbuf;

	numspecs = xmakeglyphfontspecs(specs, &line[x1], x2 - x1, x1, y1);
	i = ox = 0;
	for (x = x1; x < x2 && i < numspecs; x++) {
		new = line[x];
		if (new.mode == ATTR_WDUMMY)
			continue;
		if (selected(x, y1))
			new.mode |= ATTR_SELECTED;
		if (vbellset && isvbellcell(x, y1))
			new.mode ^= ATTR_REVERSE;
		if (i > 0 && ATTRCMP(base, new)) {
			xdrawglyphfontspecs(specs, base, i, ox, y1);
			specs += i;
			numspecs -= i;
			i = 0;
		}
		if (i == 0) {
			ox = x;
			base = new;
		}
		i++;
	}
	if (i > 0)
		xdrawglyphfontspecs(specs, base, i, ox, y1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %r14d
movl %edx, %r8d
movq %rdi, %r12
movq 0x13072(%rip), %rdi     # 0x1e788
movslq %esi, %r15
movl %ecx, %edx
subl %r15d, %edx
movq %r15, %rbx
shlq $0x4, %rbx
leaq (%rbx,%r12), %rsi
movq %rdi, 0x8(%rsp)
movl %r15d, %ecx
movl %r8d, 0x4(%rsp)
callq 0xb8b9
movslq %r14d, %rcx
movq %rcx, 0x40(%rsp)
leaq (%rbx,%r12), %r13
addq $0xc, %r13
movl $0x0, (%rsp)
xorl %r12d, %r12d
cmpq 0x40(%rsp), %r15
jge 0xb87c
movl %eax, %ebp
subl %r12d, %ebp
jle 0xb87c
movzwl -0x8(%r13), %ebx
cmpw $0x400, %bx             # imm = 0x400
je 0xb870
movq %rdx, 0x28(%rsp)
movl %eax, %r14d
movl -0xc(%r13), %eax
movq %rax, 0x30(%rsp)
movzwl -0x6(%r13), %eax
movq %rax, 0x38(%rsp)
movl -0x4(%r13), %eax
movq %rax, 0x20(%rsp)
movl (%r13), %eax
movq %rax, 0x18(%rsp)
movl %r15d, %edi
movl 0x4(%rsp), %esi
callq 0x6f9f
movl %ebx, %ecx
orl $0x1000, %ecx           # imm = 0x1000
testl %eax, %eax
cmovel %ebx, %ecx
movl %ecx, %ebx
xorl $0x20, %ebx
cmpb $0x0, 0x130d3(%rip)     # 0x1e8a0
cmovel %ecx, %ebx
testl %r12d, %r12d
jle 0xb800
movq 0x10(%rsp), %rax
shrq $0x20, %rax
cmpw %ax, %bx
movq 0x28(%rsp), %rdx
jne 0xb80c
cmpl %edx, 0x20(%rsp)
jne 0xb80c
movq %rdx, %rcx
shrq $0x20, %rcx
cmpl %ecx, 0x18(%rsp)
jne 0xb80c
movl %r14d, %eax
jmp 0xb86d
movl %r14d, %eax
movq 0x28(%rsp), %rdx
jne 0xb86d
jmp 0xb83b
movq 0x8(%rsp), %r14
movq %r14, %rdi
movq 0x10(%rsp), %rsi
movl %r12d, %ecx
movl (%rsp), %r8d
movl 0x4(%rsp), %r9d
callq 0xbcbe
movl %r12d, %eax
shlq $0x4, %rax
addq %rax, %r14
movq %r14, 0x8(%rsp)
movl %ebp, %eax
movzwl %bx, %ecx
shlq $0x20, %rcx
addq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rsi
shlq $0x30, %rsi
orq %rcx, %rsi
movq 0x18(%rsp), %rdx
shlq $0x20, %rdx
addq 0x20(%rsp), %rdx
xorl %r12d, %r12d
movq %rsi, 0x10(%rsp)
movl %r15d, (%rsp)
incl %r12d
incq %r15
addq $0x10, %r13
jmp 0xb755
testl %r12d, %r12d
jle 0xb8aa
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl %r12d, %ecx
movl (%rsp), %r8d
movl 0x4(%rsp), %r9d
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbcbe
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Babkock[P]st/x.c
// Function: xbell
void
xbell(void)
{
	if (!(IS_SET(MODE_FOCUSED)))
		xseturgency(1);
	if (bellvolume)
		XkbBell(xw.dpy, xw.win, bellvolume, (Atom)NULL);
	if (vbelltimeout)
		vbellbegin();
}

// Assembly:
pushq %rax
testb $0x2, 0x124af(%rip)     # 0x1e890
jne 0xc3eb
pushq $0x1
popq %rdi
callq 0xc43d
movl 0xb9cb(%rip), %edx      # 0x17dbc
testl %edx, %edx
je 0xc40a
movq 0x1236c(%rip), %rdi     # 0x1e768
movq 0x12375(%rip), %rsi     # 0x1e778
xorl %ecx, %ecx
callq 0x6920
leaq 0x12527(%rip), %rsi     # 0x1e938
pushq $0x1
popq %rdi
callq 0x6150
cmpb $0x0, 0x12480(%rip)     # 0x1e8a0
je 0xc424
popq %rax
retq
movb $0x1, 0x12475(%rip)     # 0x1e8a0
callq 0x88e8
movq 0x12331(%rip), %rdi     # 0x1e768
popq %rax
jmp 0x6610
// File: /workspace/github_c_makefile_star2_O2/Sidd0107[P]EXT2-File-System/ext2_ls.c
// Function: main
int main(int argc, char **argv) {
    //Checks correct number number of arguments
    if(argc != 3) {
        fprintf(stderr, "Usage: ext2_ls <image file name> <path>\n");
        exit(1);
    }
    int fd = open(argv[1], O_RDWR);
	
	char *path = argv[2];

    disk = mmap(NULL, 128 * BLOCK_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
    //Checks to make sure mmap didnt fail.
    if(disk == MAP_FAILED) {
	perror("mmap");
	exit(1);
    }
	//Gets superblock and group descriptor(In this assignment there is only 1 group descr.)
    struct ext2_super_block *sb = (struct ext2_super_block *)(disk + BLOCK_SIZE);
	struct ext2_group_desc *gd = (struct ext2_group_desc *)  (disk + 2*BLOCK_SIZE + ((sb -> s_block_group_nr) *  sizeof(struct ext2_group_desc)));
	//Gets details about the file in path.
	struct basic_fileinfo fileinfo = find_file(path, get_block(disk, gd -> bg_inode_table, BLOCK_SIZE));
	//Makes sure file type is directory and calls helper to print contents of that directory.
	if(fileinfo.type == 'd'){
		print_directory_contents(get_block(disk, gd -> bg_inode_table, BLOCK_SIZE), fileinfo.inode);
	}//If type is file handle appropriately to make sure it prints error or the file name
	else if(fileinfo.type == 'f'){
		if(path[strlen(path)-1] != '/'){
			printf("%s\n", path);
		}
		else{
			printf("ls: cannot access %s: Not a directory\n", path);
		}
	}
	else{
		printf("ls: cannot access %s: No such file or directory\n", path);
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpl $0x3, %edi
jne 0x1d73
movq %rsi, %rbx
movq 0x8(%rsi), %rdi
pushq $0x2
popq %rsi
xorl %eax, %eax
callq 0x10d0
movq 0x10(%rbx), %rbx
pushq $0x3
popq %rdx
pushq $0x1
popq %rcx
movl $0x20000, %esi          # imm = 0x20000
xorl %edi, %edi
movl %eax, %r8d
xorl %r9d, %r9d
callq 0x1090
movq %rax, 0x23e0(%rip)      # 0x40a0
cmpq $-0x1, %rax
je 0x1d91
movq %rax, %r14
movzwl 0x45e(%rax), %r12d
shll $0x5, %r12d
movl 0x808(%rax,%r12), %esi
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
callq 0x15c2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12ed
movq %rax, %r15
cmpb $0x66, %r15b
je 0x1d35
movzbl %r15b, %eax
cmpl $0x64, %eax
jne 0x1d4d
shrq $0x20, %r15
movq 0x238a(%rip), %rdi      # 0x40a0
movl 0x808(%r14,%r12), %esi
movl $0x400, %edx            # imm = 0x400
callq 0x15c2
movq %rax, %rdi
movl %r15d, %esi
callq 0x1b17
jmp 0x1d68
movq %rbx, %rdi
callq 0x1080
cmpb $0x2f, -0x1(%rbx,%rax)
jne 0x1d60
leaq 0x342(%rip), %rdi       # 0x208d
jmp 0x1d54
leaq 0x360(%rip), %rdi       # 0x20b4
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10a0
jmp 0x1d68
movq %rbx, %rdi
callq 0x1070
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x227e(%rip), %rax      # 0x3ff8
movq (%rax), %rcx
leaq 0x2db(%rip), %rdi       # 0x205f
pushq $0x28
popq %rsi
pushq $0x1
popq %rdx
callq 0x1100
jmp 0x1d9d
leaq 0x2f0(%rip), %rdi       # 0x2088
callq 0x10e0
pushq $0x1
popq %rdi
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: report_encoding_test_result
int
report_encoding_test_result(
    TestTracker *tracker,
    struct kmip *ctx,
    const uint8 *expected,
    const uint8 *observed,
    int result,
    const char *function)
{
    if(result == KMIP_OK)
    {
        for(size_t i = 0; i < ctx->size; i++)
        {
            if(expected[i] != observed[i])
            {
                printf("FAIL - %s\n", function);
                printf("- byte mismatch at: %zu (exp: %X, obs: %X)\n",
                       i, expected[i], observed[i]);
                for(size_t j = 0; j < ctx->size; j++)
                {
                    printf("- %zu: %X - %X\n", j, expected[j], observed[j]);
                }
                tracker->tests_failed++;
                return(1);
            }
        }
        
        TEST_PASSED(tracker, function);
    }
    else
    {
        printf("FAIL - %s\n", function);
        if(result == KMIP_ERROR_BUFFER_FULL)
        {
            printf("- context buffer is full\n");
        }
        kmip_print_stack_trace(stderr, ctx);
        tracker->tests_failed++;
        return(1);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r13
testl %r8d, %r8d
je 0x1294
movl %r8d, %ebx
leaq 0x24f74(%rip), %rdi     # 0x261d0
movq %r9, %rsi
xorl %eax, %eax
callq 0x1090
cmpl $-0x2, %ebx
jne 0x1277
leaq 0x27356(%rip), %rdi     # 0x285c8
callq 0x1070
movq 0x3cd7a(%rip), %rax     # 0x3dff8
movq (%rax), %rdi
movq %r14, %rsi
callq 0x2199e
pushq $0x1
popq %rbx
pushq $0x2
popq %rbp
jmp 0x1336
movq %rcx, %r15
movq %rdx, %r12
movq %r13, (%rsp)
movq 0x10(%r14), %rax
xorl %r13d, %r13d
cmpq %r13, %rax
je 0x12b9
movb (%r12,%r13), %cl
cmpb (%r15,%r13), %cl
jne 0x12d5
incq %r13
jmp 0x12a5
leaq 0x24f57(%rip), %rdi     # 0x26217
xorl %ebx, %ebx
movq %r9, %rsi
xorl %eax, %eax
callq 0x1090
pushq $0x4
popq %rbp
movq (%rsp), %r13
jmp 0x1336
leaq 0x24ef4(%rip), %rdi     # 0x261d0
movq %r9, %rsi
xorl %eax, %eax
callq 0x1090
movzbl (%r12,%r13), %edx
movzbl (%r15,%r13), %ecx
leaq 0x24ee4(%rip), %rdi     # 0x261db
movq %r13, %rsi
xorl %eax, %eax
callq 0x1090
pushq $0x2
popq %rbp
leaq 0x24efc(%rip), %r13     # 0x26207
xorl %ebx, %ebx
cmpq 0x10(%r14), %rbx
jae 0x132f
movzbl (%r12,%rbx), %edx
movzbl (%r15,%rbx), %ecx
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1090
incq %rbx
jmp 0x130d
movq (%rsp), %r13
pushq $0x1
popq %rbx
incw (%r13,%rbp)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: report_decoding_test_result
int
report_decoding_test_result(
    TestTracker *tracker,
    struct kmip *ctx,
    int comparison,
    int result,
    const char *function)
{
    if(result == KMIP_OK)
    {
        if(comparison)
        {
            TEST_PASSED(tracker, function);
        }
        else
        {
            printf("FAIL - %s\n", function);
            printf("- compared objects are not identical\n");
            tracker->tests_failed++;
            return(1);
        }
    }
    else
    {
        printf("FAIL - %s\n", function);
        if(result == KMIP_ERROR_BUFFER_FULL)
        {
            printf("- context buffer is underfull\n");
        }
        kmip_print_stack_trace(stderr, ctx);
        tracker->tests_failed++;
        return(1);
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testl %ecx, %ecx
je 0x1398
movl %ecx, %ebp
movq %rsi, %r14
leaq 0x24e6c(%rip), %rdi     # 0x261d0
movq %r8, %rsi
xorl %eax, %eax
callq 0x1090
cmpl $-0x2, %ebp
jne 0x137f
leaq 0x27267(%rip), %rdi     # 0x285e1
callq 0x1070
movq 0x3cc72(%rip), %rax     # 0x3dff8
movq (%rax), %rdi
movq %r14, %rsi
callq 0x2199e
pushq $0x1
popq %rbp
pushq $0x2
jmp 0x13b1
testl %edx, %edx
je 0x13bd
leaq 0x24e74(%rip), %rdi     # 0x26217
xorl %ebp, %ebp
movq %r8, %rsi
xorl %eax, %eax
callq 0x1090
pushq $0x4
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x24e0c(%rip), %rdi     # 0x261d0
movq %r8, %rsi
xorl %eax, %eax
callq 0x1090
leaq 0x2722a(%rip), %rdi     # 0x285ff
callq 0x1070
jmp 0x1391
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_buffer_full_and_resize
int
test_buffer_full_and_resize(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[40] = {
        0x42, 0x00, 0x69, 0x01, 0x00, 0x00, 0x00, 0x20,
        0x42, 0x00, 0x6A, 0x02, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x6B, 0x02, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 too_small[30] = {0};
    uint8 large_enough[40] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, too_small, ARRAY_LENGTH(too_small), KMIP_1_0);
    
    struct protocol_version pv = {0};
    pv.major = 1;
    pv.minor = 0;
    
    int result = kmip_encode_protocol_version(&ctx, &pv);
    
    if(result == KMIP_ERROR_BUFFER_FULL)
    {
        kmip_reset(&ctx);
        kmip_set_buffer(&ctx, large_enough, ARRAY_LENGTH(large_enough));
        
        result = kmip_encode_protocol_version(&ctx, &pv);
        result = report_encoding_test_result(
            tracker,
            &ctx,
            expected,
            large_enough,
            result,
            __func__);
        
        kmip_destroy(&ctx);
        
        return(result);
    }
    else
    {
        printf("FAIL - %s\n", __func__);
        printf("- expected buffer full\n");
        
        kmip_destroy(&ctx);
        tracker->tests_failed++;
        return(1);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x900, %rsp            # imm = 0x900
movq %rdi, %rbx
incw (%rdi)
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %r14
movups %xmm0, 0xe(%r14)
movaps %xmm0, (%r14)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x30(%rsp)
leaq 0x68(%rsp), %r15
movl $0x898, %edx            # imm = 0x898
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x1e
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x128ed
leaq 0x8(%rsp), %rsi
movq $0x1, (%rsi)
movq %r15, %rdi
callq 0x17a71
cmpl $-0x2, %eax
jne 0x19fe
leaq 0x68(%rsp), %r14
movq %r14, %rdi
callq 0x12a8a
leaq 0x10(%rsp), %r15
pushq $0x28
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x12acd
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x17a71
leaq 0x27586(%rip), %rdx     # 0x28f60
leaq 0x24896(%rip), %r9      # 0x26277
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
movl %eax, %r8d
callq 0x123c
movl %eax, %ebx
movq %r14, %rdi
callq 0x12ade
jmp 0x1a30
leaq 0x247cb(%rip), %rdi     # 0x261d0
leaq 0x2486b(%rip), %rsi     # 0x26277
xorl %eax, %eax
callq 0x1090
leaq 0x26c0a(%rip), %rdi     # 0x28624
callq 0x1070
leaq 0x68(%rsp), %rdi
callq 0x12ade
incw 0x2(%rbx)
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x900, %rsp            # imm = 0x900
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_is_tag_next
int
test_is_tag_next(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[3] = {0x42, 0x00, 0x08};
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    uint8 *before = ctx.index;
    int result = 0;
    
    if(kmip_is_tag_next(&ctx, KMIP_TAG_ATTRIBUTE) == KMIP_FALSE)
    {
        printf("FAIL - %s\n", __func__);
        printf("- expected tag is not next\n");
        tracker->tests_failed++;
        result = 1;
    }
    
    uint8 *after = ctx.index;
    
    if(before != after)
    {
        printf("FAIL - %s\n", __func__);
        printf("- tag checking modifies context buffer index\n");
        tracker->tests_failed++;
        result = 1;
    }
    
    kmip_destroy(&ctx);
    
    if(result == 0)
    {
        printf("PASS - %s\n", __func__);
        tracker->tests_passed++;
    }
    
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %rbx
incw (%rdi)
leaq 0xc(%rsp), %r14
movb $0x8, 0x2(%r14)
movw $0x42, (%r14)
leaq 0x10(%rsp), %r15
xorl %ebp, %ebp
movl $0x898, %edx            # imm = 0x898
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x3
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x128ed
movq 0x8(%r15), %r14
movq %r15, %rdi
movl $0x420008, %esi         # imm = 0x420008
callq 0x12ca5
testl %eax, %eax
jne 0x1ac5
leaq 0x2472c(%rip), %rdi     # 0x261d0
leaq 0x247e8(%rip), %rsi     # 0x26293
xorl %eax, %eax
callq 0x1090
leaq 0x26b82(%rip), %rdi     # 0x2863b
callq 0x1070
incw 0x2(%rbx)
pushq $0x1
popq %rbp
cmpq 0x18(%rsp), %r14
je 0x1af4
pushq $0x1
popq %rbp
leaq 0x246fa(%rip), %rdi     # 0x261d0
leaq 0x247b6(%rip), %rsi     # 0x26293
xorl %eax, %eax
callq 0x1090
leaq 0x26b6b(%rip), %rdi     # 0x28656
callq 0x1070
incw 0x2(%rbx)
leaq 0x10(%rsp), %rdi
callq 0x12ade
testl %ebp, %ebp
jne 0x1b1b
leaq 0x2470e(%rip), %rdi     # 0x26217
leaq 0x24783(%rip), %rsi     # 0x26293
xorl %eax, %eax
callq 0x1090
incw 0x4(%rbx)
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_get_num_items_next_with_mismatch_item
int
test_get_num_items_next_with_mismatch_item(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[80] = {
        0x42, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x30, 
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x18, 
        0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 
        0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x55, 0x73, 
        0x61, 0x67, 0x65, 0x20, 0x4D, 0x61, 0x73, 0x6B, 
        0x42, 0x00, 0x0B, 0x02, 0x00, 0x00, 0x00, 0x04, 
        0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00,
        0x42, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x30, 
        0x42, 0x00, 0x0A, 0x07, 0x00, 0x00, 0x00, 0x18, 
        0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72 
    };

    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    uint8 *before = ctx.index;
    int result = 0;
    size_t count = 0;
    
    count = kmip_get_num_items_next(&ctx, KMIP_TAG_ATTRIBUTE);
    if(count != 1)
    {
        printf("FAIL - %s\n", __func__);
        printf("- expected item count not found (exp. 1, obs. %zu)\n",
               count);
        tracker->tests_failed++;
        result = 1;
    }
    
    uint8 *after = ctx.index;
    
    if(before != after)
    {
        printf("FAIL - %s\n", __func__);
        printf("- item count checking modifies context buffer index\n");
        tracker->tests_failed++;
        result = 1;
    }
    
    kmip_destroy(&ctx);
    
    if(result == 0)
    {
        printf("PASS - %s\n", __func__);
        tracker->tests_passed++;
    }
    
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8f0, %rsp            # imm = 0x8F0
movq %rdi, %rbx
incw (%rdi)
leaq 0x26bd1(%rip), %rsi     # 0x28930
pushq $0xa
popq %rcx
movq %rsp, %r14
movq %r14, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x58(%rsp), %r15
xorl %ebp, %ebp
movl $0x898, %edx            # imm = 0x898
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x50
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x128ed
movq 0x8(%r15), %r12
movq %r15, %rdi
movl $0x420008, %esi         # imm = 0x420008
callq 0x12d0c
cmpq $0x1, %rax
je 0x1dd8
movq %rax, %r14
pushq $0x1
popq %rbp
leaq 0x2441b(%rip), %rdi     # 0x261d0
leaq 0x24592(%rip), %rsi     # 0x2634e
xorl %eax, %eax
callq 0x1090
leaq 0x245af(%rip), %rdi     # 0x26379
movq %r14, %rsi
xorl %eax, %eax
callq 0x1090
incw 0x2(%rbx)
cmpq 0x60(%rsp), %r12
je 0x1e07
leaq 0x243ea(%rip), %rdi     # 0x261d0
leaq 0x24561(%rip), %rsi     # 0x2634e
xorl %eax, %eax
callq 0x1090
leaq 0x26888(%rip), %rdi     # 0x28683
callq 0x1070
incw 0x2(%rbx)
pushq $0x1
popq %rbp
leaq 0x58(%rsp), %rdi
callq 0x12ade
testl %ebp, %ebp
jne 0x1e2e
leaq 0x243fb(%rip), %rdi     # 0x26217
leaq 0x2452b(%rip), %rsi     # 0x2634e
xorl %eax, %eax
callq 0x1090
incw 0x4(%rbx)
movl %ebp, %eax
addq $0x8f0, %rsp            # imm = 0x8F0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_buffer_bytes_left
int
test_buffer_bytes_left(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 a[1] = {0x42};
    uint8 b[3] = {0x42, 0x00, 0x08};
    uint8 c[5] = {0x42, 0x00, 0x53, 0x01, 0x00};

    KMIP ctx = {0};
    kmip_init(&ctx, a, ARRAY_LENGTH(a), KMIP_1_0);

    if(BUFFER_BYTES_LEFT(&ctx) != 1)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    kmip_destroy(&ctx);
    kmip_init(&ctx, b, ARRAY_LENGTH(b), KMIP_1_0);

    if(BUFFER_BYTES_LEFT(&ctx) != 3)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    kmip_destroy(&ctx);
    kmip_init(&ctx, c, ARRAY_LENGTH(c), KMIP_1_0);

    if(BUFFER_BYTES_LEFT(&ctx) != 5)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    kmip_destroy(&ctx);

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %rbx
incw (%rdi)
leaq 0x7(%rsp), %r14
movb $0x42, (%r14)
movb $0x8, 0x6(%rsp)
movw $0x42, 0x4(%rsp)
movb $0x0, 0xc(%rsp)
movl $0x1530042, 0x8(%rsp)   # imm = 0x1530042
leaq 0x10(%rsp), %r15
movl $0x898, %edx            # imm = 0x898
movq %r15, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x128ed
movq 0x10(%r15), %r14
subq 0x8(%r15), %r14
addq (%r15), %r14
movq %r15, %rdi
callq 0x12ade
cmpq $0x1, %r14
jne 0x2135
leaq 0x10(%rsp), %r14
leaq 0x4(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x128ed
movq 0x10(%r14), %r15
subq 0x8(%r14), %r15
addq (%r14), %r15
movq %r14, %rdi
callq 0x12ade
cmpq $0x3, %r15
jne 0x214a
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %rsi
pushq $0x5
popq %rdx
xorl %ebp, %ebp
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x128ed
movq 0x10(%r14), %r15
subq 0x8(%r14), %r15
addq (%r14), %r15
movq %r14, %rdi
callq 0x12ade
cmpq $0x5, %r15
jne 0x215f
leaq 0x240f4(%rip), %rdi     # 0x26217
leaq 0x2430b(%rip), %rsi     # 0x26435
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0x217e
leaq 0x240e6(%rip), %rdi     # 0x26222
leaq 0x242f2(%rip), %rsi     # 0x26435
movl $0x2d1, %edx            # imm = 0x2D1
jmp 0x2172
leaq 0x240d1(%rip), %rdi     # 0x26222
leaq 0x242dd(%rip), %rsi     # 0x26435
movl $0x2da, %edx            # imm = 0x2DA
jmp 0x2172
leaq 0x240bc(%rip), %rdi     # 0x26222
leaq 0x242c8(%rip), %rsi     # 0x26435
movl $0x2e3, %edx            # imm = 0x2E3
xorl %eax, %eax
callq 0x1090
pushq $0x1
popq %rbp
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_init_request_batch_item
int
test_init_request_batch_item(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    kmip_init_request_batch_item(NULL);

    RequestBatchItem rbi = {0};

    if(rbi.operation != 0)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(rbi.unique_batch_item_id != NULL)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(rbi.request_payload != NULL)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(rbi.ephemeral != 0)
        TEST_FAILED(tracker, __func__, __LINE__);

    kmip_init_request_batch_item(&rbi);

    if(rbi.operation != 0)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(rbi.unique_batch_item_id != NULL)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(rbi.request_payload != NULL)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(rbi.ephemeral != KMIP_UNSET)
        TEST_FAILED(tracker, __func__, __LINE__);

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
incw (%rdi)
xorl %edi, %edi
callq 0x12f19
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movq %r14, %rdi
callq 0x12f19
cmpl $0x0, (%r14)
je 0x31f0
leaq 0x23040(%rip), %rdi     # 0x26222
leaq 0x23309(%rip), %rsi     # 0x264f2
movl $0x4db, %edx            # imm = 0x4DB
jmp 0x3244
cmpq $0x0, 0x8(%rsp)
je 0x320d
leaq 0x23023(%rip), %rdi     # 0x26222
leaq 0x232ec(%rip), %rsi     # 0x264f2
movl $0x4dd, %edx            # imm = 0x4DD
jmp 0x3244
cmpq $0x0, 0x10(%rsp)
je 0x322a
leaq 0x23006(%rip), %rdi     # 0x26222
leaq 0x232cf(%rip), %rsi     # 0x264f2
movl $0x4df, %edx            # imm = 0x4DF
jmp 0x3244
cmpl $-0x1, 0x18(%rsp)
je 0x3260
leaq 0x22fea(%rip), %rdi     # 0x26222
leaq 0x232b3(%rip), %rsi     # 0x264f2
movl $0x4e1, %edx            # imm = 0x4E1
xorl %eax, %eax
callq 0x1090
pushq $0x1
popq %rbp
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x22fb0(%rip), %rdi     # 0x26217
leaq 0x23284(%rip), %rsi     # 0x264f2
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0x3250
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_deep_copy_int32
int
test_deep_copy_int32(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    int32 expected = 42;
    int32 *observed = NULL;

    observed = kmip_deep_copy_int32(NULL, NULL);
    if(observed != NULL)
        TEST_FAILED(tracker, __func__, __LINE__);

    KMIP ctx = {0};
    kmip_init(&ctx, NULL, 0, KMIP_1_0);

    observed = kmip_deep_copy_int32(&ctx, NULL);
    if(observed != NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    observed = kmip_deep_copy_int32(&ctx, &expected);
    if(observed == NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }
    if(*observed != expected)
    {
        kmip_print_integer(stderr, expected);
        kmip_print_integer(stderr, *observed);
        ctx.free_func(ctx.state, observed);
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    ctx.free_func(ctx.state, observed);
    kmip_destroy(&ctx);

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %rbx
incw (%rdi)
movl $0x2a, 0xc(%rsp)
xorl %edi, %edi
xorl %esi, %esi
callq 0x1449f
testq %rax, %rax
je 0x3345
leaq 0x22ef9(%rip), %rdi     # 0x26222
leaq 0x23222(%rip), %rsi     # 0x26552
movl $0x521, %edx            # imm = 0x521
xorl %eax, %eax
callq 0x1090
incw 0x2(%rbx)
pushq $0x1
popq %rbp
jmp 0x33a4
leaq 0x10(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x128ed
movq %r14, %rdi
xorl %esi, %esi
callq 0x1449f
leaq 0x10(%rsp), %rdi
testq %rax, %rax
je 0x33b4
callq 0x12ade
leaq 0x22e9b(%rip), %rdi     # 0x26222
leaq 0x231c4(%rip), %rsi     # 0x26552
movl $0x52a, %edx            # imm = 0x52A
xorl %eax, %eax
callq 0x1090
pushq $0x1
popq %rbp
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc(%rsp), %rsi
callq 0x1449f
testq %rax, %rax
je 0x3407
movq %rax, %r14
movl 0xc(%rsp), %esi
cmpl %esi, (%rax)
jne 0x3429
leaq 0x10(%rsp), %r15
movq 0x890(%r15), %rdi
movq %r14, %rsi
callq *0x878(%r15)
movq %r15, %rdi
callq 0x12ade
leaq 0x22e24(%rip), %rdi     # 0x26217
leaq 0x23158(%rip), %rsi     # 0x26552
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0x339f
leaq 0x10(%rsp), %rdi
callq 0x12ade
leaq 0x22e0a(%rip), %rdi     # 0x26222
leaq 0x23133(%rip), %rsi     # 0x26552
movl $0x531, %edx            # imm = 0x531
jmp 0x3393
movq 0x3abc8(%rip), %r15     # 0x3dff8
movq (%r15), %rdi
callq 0x2349f
movq (%r15), %rdi
movl (%r14), %esi
callq 0x2349f
leaq 0x10(%rsp), %r15
movq 0x890(%r15), %rdi
movq %r14, %rsi
callq *0x878(%r15)
movq %r15, %rdi
callq 0x12ade
leaq 0x22dba(%rip), %rdi     # 0x26222
leaq 0x230e3(%rip), %rsi     # 0x26552
movl $0x539, %edx            # imm = 0x539
jmp 0x3393
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_deep_copy_int64
int
test_deep_copy_int64(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    int64 expected = 42;
    int64 *observed = NULL;

    observed = kmip_deep_copy_int64(NULL, NULL);
    if(observed != NULL)
        TEST_FAILED(tracker, __func__, __LINE__);

    KMIP ctx = {0};
    kmip_init(&ctx, NULL, 0, KMIP_1_0);

    observed = kmip_deep_copy_int64(&ctx, NULL);
    if(observed != NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    observed = kmip_deep_copy_int64(&ctx, &expected);
    if(observed == NULL)
    {
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }
    if(*observed != expected)
    {
        kmip_print_date_time(stderr, expected);
        kmip_print_date_time(stderr, *observed);
        ctx.free_func(ctx.state, observed);
        kmip_destroy(&ctx);
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    ctx.free_func(ctx.state, observed);
    kmip_destroy(&ctx);

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %rbx
incw (%rdi)
movq $0x2a, 0x8(%rsp)
xorl %edi, %edi
xorl %esi, %esi
callq 0x144f5
testq %rax, %rax
je 0x34c6
leaq 0x22d78(%rip), %rdi     # 0x26222
leaq 0x230b6(%rip), %rsi     # 0x26567
movl $0x54c, %edx            # imm = 0x54C
xorl %eax, %eax
callq 0x1090
incw 0x2(%rbx)
pushq $0x1
popq %rbp
jmp 0x3525
leaq 0x10(%rsp), %r14
movl $0x898, %edx            # imm = 0x898
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x128ed
movq %r14, %rdi
xorl %esi, %esi
callq 0x144f5
leaq 0x10(%rsp), %rdi
testq %rax, %rax
je 0x3535
callq 0x12ade
leaq 0x22d1a(%rip), %rdi     # 0x26222
leaq 0x23058(%rip), %rsi     # 0x26567
movl $0x555, %edx            # imm = 0x555
xorl %eax, %eax
callq 0x1090
pushq $0x1
popq %rbp
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %rsi
callq 0x144f5
testq %rax, %rax
je 0x358a
movq %rax, %r14
movq 0x8(%rsp), %rsi
cmpq %rsi, (%rax)
jne 0x35ac
leaq 0x10(%rsp), %r15
movq 0x890(%r15), %rdi
movq %r14, %rsi
callq *0x878(%r15)
movq %r15, %rdi
callq 0x12ade
leaq 0x22ca1(%rip), %rdi     # 0x26217
leaq 0x22fea(%rip), %rsi     # 0x26567
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0x3520
leaq 0x10(%rsp), %rdi
callq 0x12ade
leaq 0x22c87(%rip), %rdi     # 0x26222
leaq 0x22fc5(%rip), %rsi     # 0x26567
movl $0x55c, %edx            # imm = 0x55C
jmp 0x3514
movq 0x3aa45(%rip), %r15     # 0x3dff8
movq (%r15), %rdi
callq 0x23628
movq (%r15), %rdi
movq (%r14), %rsi
callq 0x23628
leaq 0x10(%rsp), %r15
movq 0x890(%r15), %rdi
movq %r14, %rsi
callq *0x878(%r15)
movq %r15, %rdi
callq 0x12ade
leaq 0x22c37(%rip), %rdi     # 0x26222
leaq 0x22f75(%rip), %rsi     # 0x26567
movl $0x564, %edx            # imm = 0x564
jmp 0x3514
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_int8_be
int
test_decode_int8_be(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[1] = {0x42};
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    int8 value = 0;
    
    int result = kmip_decode_int8_be(&ctx, &value);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        value == 0x42, 
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %r14
incw (%rdi)
leaq 0xf(%rsp), %r15
movb $0x42, (%r15)
leaq 0x10(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x128ed
leaq 0xe(%rsp), %r15
movb $0x0, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x19efb
xorl %edx, %edx
cmpb $0x42, (%r15)
sete %dl
leaq 0x21f4b(%rip), %r8      # 0x26652
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %ecx
callq 0x134d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_int32_be
int
test_decode_int32_be(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[4] = {0x11, 0x22, 0x33, 0x44};
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);

    int32 expected = 0x11223344;
    int32 observed = 0;
    
    int result = kmip_decode_int32_be(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        observed == expected,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %r14
incw (%rdi)
leaq 0xc(%rsp), %r15
movl $0x44332211, (%r15)     # imm = 0x44332211
leaq 0x10(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x4
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x128ed
leaq 0x8(%rsp), %r15
andl $0x0, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x19f38
xorl %edx, %edx
cmpl $0x11223344, (%r15)     # imm = 0x11223344
sete %dl
leaq 0x21ece(%rip), %r8      # 0x26666
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %ecx
callq 0x134d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_decode_int64_be
int
test_decode_int64_be(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 encoding[8] = {
        0x01, 0xB6, 0x9B, 0x4B, 0xA5, 0x74, 0x92, 0x00
    };
    
    struct kmip ctx = {0};
    kmip_init(&ctx, encoding, ARRAY_LENGTH(encoding), KMIP_1_0);
    
    int64 expected = 0x01B69B4BA5749200;
    int64 observed = 0;
    
    int result = kmip_decode_int64_be(&ctx, &observed);
    result = report_decoding_test_result(
        tracker,
        &ctx,
        observed == expected,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %r14
incw (%rdi)
movabsq $0x9274a54b9bb601, %rax # imm = 0x9274A54B9BB601
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
leaq 0x10(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x8
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x128ed
movq %rsp, %r15
andq $0x0, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x19fb2
movabsq $0x1b69b4ba5749200, %rcx # imm = 0x1B69B4BA5749200
xorl %edx, %edx
cmpq %rcx, (%r15)
sete %dl
leaq 0x21e48(%rip), %r8      # 0x2667b
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %ecx
callq 0x134d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_encode_integer
int
test_encode_integer(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    uint8 expected[16] = {
        0x42, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04,
        0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00
    };
    
    uint8 observed[16] = {0};
    struct kmip ctx = {0};
    kmip_init(&ctx, observed, ARRAY_LENGTH(observed), KMIP_1_0);
    
    int result = kmip_encode_integer(&ctx, KMIP_TAG_DEFAULT, 8);
    result = report_encoding_test_result(
        tracker,
        &ctx,
        expected,
        observed,
        result,
        __func__);
    kmip_destroy(&ctx);
    return(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, %r14
incw (%rdi)
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, (%r15)
leaq 0x10(%rsp), %rbx
movl $0x898, %edx            # imm = 0x898
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10c0
pushq $0x10
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x128ed
pushq $0x8
popq %rdx
movq %rbx, %rdi
movl $0x420000, %esi         # imm = 0x420000
callq 0x16853
leaq 0x217de(%rip), %rdx     # 0x26090
leaq 0x21dd7(%rip), %r9      # 0x26690
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movl %eax, %r8d
callq 0x123c
movl %eax, %ebp
movq %rbx, %rdi
callq 0x12ade
movl %ebp, %eax
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq