function cryobox_slot_21() /* entry=379 class_id=0x05E1 slot=0x21 */
{
  set_info(1, *(arg_06));
  ITEM.slot_24(0x1000, arg_0A);
  if (!Intrinsic006A()) {
    if ((Item.getShape(arg_0A) == 0x05D9) || (Item.getShape(arg_0A) != 0x05DA)) {
      while ((Item.getFrame(arg_0A) == 39) && (Item.isEntirelyOnScreen(arg_0A) != 1)) {
        spawn FREE.slot_3B(pid, 2, 0x00000000);
        suspend;
      }
    }
    else {
      while ((Item.getFrame(arg_0A) == 23) && (Item.isEntirelyOnScreen(arg_0A) != 1)) {
        spawn FREE.slot_3B(pid, 2, 0x00000000);
        suspend;
      }
    }
  }
  else {
    spawn FREE.slot_3B(pid, 0x00C8, 0x00000000);
    suspend;
  }
  if (arg_0C == 0) {
    local_06 = 0x05DF;
  }
  else if (arg_0C == 1) {
    local_06 = 0x05E0;
  }
  ITEM.slot_24(0x1000, local_04);
  if (!Intrinsic006A()) {
    while ((Item.getFrame(local_04) == 29) && (Item.isEntirelyOnScreen(local_04) != 1)) {
      spawn FREE.slot_3B(pid, 2, 0x00000000);
      suspend;
    }
  }
  else {
    spawn FREE.slot_3B(pid, 0x00C8, 0x00000000);
    suspend;
  }
  ITEM.slot_25(0x1000, local_04);
  return;
}
