function flame_slot_21() /* entry=381 class_id=0x0A0B slot=0x21 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    ref, /* [BP+0Ah] type=0x69 */
    n; /* [BP-02h] type=0x24 */

  entry:
    set_info(0x0001, *(arg_06));
    n = ref;
    if (Item.getStatus(arg_06) & 4) goto block_023E;

  block_0238:
    goto block_02AF;

  block_023E:
    ITEM.slot_23(4, arg_06);

  block_024C:
    suspend;
    if (ref < 0x00FF) goto block_02AC;

  block_0268:
    NPC.slot_2B(n);
    if (!retval) goto block_0298;

  block_027C:

  block_0298:
    spawn FLAME.slot_20(arg_06);
    goto block_02AF;

  block_02AC:
    goto block_024C;

  block_02AF:
    return;

}
