// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %r12d
xorl %r13d, %r13d
movq %r12, %r14
testq %r12, %r12
je 0x47da
movb %r13b, -0x29(%rbp)
movb %r13b, -0x2a(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x1, %edx
movq %rbx, %rdi
leaq -0x29(%rbp), %rsi
callq *0x10(%rbx)
testb %al, %al
je 0x474b
movzbl -0x29(%rbp), %r12d
movl %r12d, %edi
leaq -0x2a(%rbp), %rsi
callq 0x3f93
testb %al, %al
je 0x4750
movzbl -0x2a(%rbp), %r13d
cmpq $0x21, %r13
ja 0x478b
movabsq $0x3c0000006, %rax      # imm = 0x3C0000006
btq %r13, %rax
jae 0x478b
leaq -0x1(%r14), %r12
movb $0x1, %r15b
cmpl $0x21, %r13d
ja 0x477d
movl %r13d, %eax
movl $0xc0000004, %ecx       # imm = 0xC0000004
btq %rax, %rcx
jb 0x475b
movabsq $0x300000002, %rcx      # imm = 0x300000002
btq %rax, %rcx
jae 0x477d
movzbl -0x29(%rbp), %esi
movq %rbx, %rdi
movl %r13d, %edx
leaq -0x30(%rbp), %rcx
callq 0x430c
testb %al, %al
je 0x477a
movl -0x30(%rbp), %eax
leaq (%r12,%rax,2), %r12
jmp 0x477d
movb $0x7, (%rbx)
jmp 0x4753
movb $0xd, (%rbx)
xorl %r15d, %r15d
movq %r14, %r12
jmp 0x4780
movzbl -0x29(%rbp), %esi
movq %rbx, %rdi
movl %r13d, %edx
leaq -0x30(%rbp), %rcx
callq 0x430c
testb %al, %al
je 0x477a
movl -0x30(%rbp), %eax
addq %rax, %r12
jmp 0x477d
xorl %r15d, %r15d
xorl %r13d, %r13d
testb %r15b, %r15b
jne 0x4696
jmp 0x47da
movq %rbx, %rdi
movl %r12d, %esi
movl %r13d, %edx
leaq -0x30(%rbp), %rcx
callq 0x430c
testb %al, %al
je 0x47d2
movl -0x30(%rbp), %eax
testl %eax, %eax
je 0x4700
cmpl $0x1a, %r13d
ja 0x47c2
movl $0x7c00e00, %ecx        # imm = 0x7C00E00
btl %r13d, %ecx
jae 0x47c2
incl %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %esi
movq %rbx, %rdi
callq 0x4455
jmp 0x4700
xorl %r15d, %r15d
movq %r14, %r12
jmp 0x477d
testq %r14, %r14
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq