code: def parse_instruction(string, location, tokens):
      
      mnemonic_str = tokens.get("mnemonic")
      operands = [op for op in tokens.get("operands", [])]
  
      instr = ArmInstruction(
          string,
          mnemonic_str["ins"],
          operands,
          arch_info.architecture_mode
      )
  
      if "cc" in mnemonic_str:
          instr.condition_code = cc_mapper[mnemonic_str["cc"]]
  
      if "uf" in mnemonic_str:
          instr.update_flags = True
  
      if "ldm_stm_addr_mode" in mnemonic_str:
          instr.ldm_stm_addr_mode = ldm_stm_am_mapper[mnemonic_str["ldm_stm_addr_mode"]]
  
      return instr
docs: Parse an ARM instruction.