function free_slot_40() /* entry=382 class_id=0x0A0C slot=0x40 */
{
  var
    source, /* [BP+06h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    leftOvers; /* [BP-03h] type=0x62 */

  /* loopscr value_u8=0x24 */
  /* loop current_var=0xFE string_bytes=0x1 loop_type=0x4 */
  while (!condition) {
    if (MainActor.addItemCru(1, item)) {
      /* global_address global_id=0x3C */
      /* global_address global_id=0x3C */
      /* global_address global_id=0x3C */
    }
    /* loopnext  */
  }
  return;
}
