function thrmbckn_equip() /* entry=324 class_id=0x0566 slot=0x0A */
{
  var
    referent, /* [BP+00h] type=0x69 */
    var, /* [BP+0Ah] type=0x69 */
    ewall, /* [BP-02h] type=0x24 */
    therma, /* [BP-04h] type=0x24 */
    a, /* [BP-06h] type=0x69 */
    b; /* [BP-08h] type=0x69 */

  set_info(0x0211, *(arg_06));
  process_exclude();
  if (!var) {
    while (!AudioProcess.isSFXPlayingForObject(4, arg_06)) {
      spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
      suspend;
    }
    while (!AudioProcess.isSFXPlayingForObject(4, arg_06)) {
      spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
      suspend;
    }
    while (!AudioProcess.isSFXPlayingForObject(4, arg_06)) {
      spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
      suspend;
    }
    for ewall in selector_0x42(arg0=0x0564, arg1=0x0565, arg2=(6 * 32), origin=arg_06) {
      /* loopnext  */
    }
    /* loopscr value_u8=0x24 */
    /* loopscr value_u8=0x44 */
    /* loop current_var=0xFC string_bytes=0xA loop_type=0x2 */
    while (!condition) {
      if (Actor.GetNPCDataField0x63_00B(therma) == Item.getQLo(arg_06)) {
        b = 3;
        if (Game.getDifficultyLevel() <= 2) {
          a = 10;
        }
        else {
          a = 5;
        }
        spawn FREE.waitNTimerTicks(pid, 40, 0x00000000);
        suspend;
        spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
        suspend;
        return;
      }
      /* loopnext  */
    }
  }
  return;
}
