// File: /workspace/github_c_makefile_star2_O0/BatchLabs[P]msgpack-dump/src/cmp.c
// Function: cmp_skip_object_no_limit
bool cmp_skip_object_no_limit(cmp_ctx_t *ctx) {
  size_t element_count = 1;

  while (element_count) {
    uint8_t type_marker = 0;
    uint8_t cmp_type = 0;
    uint32_t size = 0;

    if (!read_type_marker(ctx, &type_marker)) {
      return false;
    }

    if (!type_marker_to_cmp_type(type_marker, &cmp_type)) {
      ctx->error = INVALID_TYPE_ERROR;
      return false;
    }

    switch (cmp_type) {
      case CMP_TYPE_FIXARRAY:
      case CMP_TYPE_ARRAY16:
      case CMP_TYPE_ARRAY32:
      case CMP_TYPE_FIXMAP:
      case CMP_TYPE_MAP16:
      case CMP_TYPE_MAP32:
        break;
      default:
        if (!read_type_size(ctx, type_marker, cmp_type, &size)) {
          return false;
        }

        if (size) {
          switch (cmp_type) {
            case CMP_TYPE_FIXEXT1:
            case CMP_TYPE_FIXEXT2:
            case CMP_TYPE_FIXEXT4:
            case CMP_TYPE_FIXEXT8:
            case CMP_TYPE_FIXEXT16:
            case CMP_TYPE_EXT8:
            case CMP_TYPE_EXT16:
            case CMP_TYPE_EXT32:
              size++;
            default:
              break;
          }

          skip_bytes(ctx, size);
        }
    }

    element_count--;

    switch (cmp_type) {
      case CMP_TYPE_FIXARRAY:
      case CMP_TYPE_ARRAY16:
      case CMP_TYPE_ARRAY32:
        if (!read_type_size(ctx, type_marker, cmp_type, &size)) {
          return false;
        }
        element_count += size;
        break;
      case CMP_TYPE_FIXMAP:
      case CMP_TYPE_MAP16:
      case CMP_TYPE_MAP32:
        if (!read_type_size(ctx, type_marker, cmp_type, &size)) {
          return false;
        }
        element_count += ((size_t)size) * 2;
        break;
      default:
        break;
    }
  }

  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq $0x1, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6c6e
movb $0x0, -0x19(%rbp)
movb $0x0, -0x1a(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x19(%rbp), %rsi
callq 0x57f0
testb $0x1, %al
jne 0x6b28
movb $0x0, -0x1(%rbp)
jmp 0x6c72
leaq -0x1a(%rbp), %rsi
movzbl -0x19(%rbp), %edi
callq 0x5830
testb $0x1, %al
jne 0x6b49
movq -0x10(%rbp), %rax
movb $0xd, (%rax)
movb $0x0, -0x1(%rbp)
jmp 0x6c72
movzbl -0x1a(%rbp), %eax
movl %eax, -0x24(%rbp)
decl %eax
subl $0x2, %eax
jb 0x6b66
jmp 0x6b59
movl -0x24(%rbp), %eax
addl $-0x1e, %eax
subl $0x3, %eax
ja 0x6b68
jmp 0x6b66
jmp 0x6bcb
movq -0x10(%rbp), %rdi
movb -0x19(%rbp), %al
leaq -0x20(%rbp), %rcx
movzbl %al, %esi
movzbl -0x1a(%rbp), %edx
callq 0x62f0
testb $0x1, %al
jne 0x6b8c
movb $0x0, -0x1(%rbp)
jmp 0x6c72
cmpl $0x0, -0x20(%rbp)
je 0x6bc9
movzbl -0x1a(%rbp), %eax
movl %eax, -0x28(%rbp)
addl $-0x9, %eax
subl $0x3, %eax
jb 0x6bb0
jmp 0x6ba3
movl -0x28(%rbp), %eax
addl $-0x16, %eax
subl $0x4, %eax
ja 0x6bb9
jmp 0x6bb0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x6bbb
movq -0x10(%rbp), %rdi
movl -0x20(%rbp), %eax
movl %eax, %esi
callq 0x6860
jmp 0x6bcb
movq -0x18(%rbp), %rax
decq %rax
movq %rax, -0x18(%rbp)
movzbl -0x1a(%rbp), %eax
movl %eax, -0x2c(%rbp)
subl $0x1, %eax
je 0x6c36
jmp 0x6be4
movl -0x2c(%rbp), %eax
subl $0x2, %eax
je 0x6c08
jmp 0x6bee
movl -0x2c(%rbp), %eax
addl $-0x1e, %eax
subl $0x2, %eax
jb 0x6c08
jmp 0x6bfb
movl -0x2c(%rbp), %eax
addl $-0x20, %eax
subl $0x2, %eax
jb 0x6c36
jmp 0x6c67
movq -0x10(%rbp), %rdi
movb -0x19(%rbp), %al
leaq -0x20(%rbp), %rcx
movzbl %al, %esi
movzbl -0x1a(%rbp), %edx
callq 0x62f0
testb $0x1, %al
jne 0x6c29
movb $0x0, -0x1(%rbp)
jmp 0x6c72
movl -0x20(%rbp), %eax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x6c69
movq -0x10(%rbp), %rdi
movb -0x19(%rbp), %al
leaq -0x20(%rbp), %rcx
movzbl %al, %esi
movzbl -0x1a(%rbp), %edx
callq 0x62f0
testb $0x1, %al
jne 0x6c57
movb $0x0, -0x1(%rbp)
jmp 0x6c72
movl -0x20(%rbp), %eax
shlq %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x6c69
jmp 0x6c69
jmp 0x6af4
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)