def supported_arches_for_api(emulator, api):
    """Returns a list of supported archs for this emulator and api."""
    arches = []
    for arch, apis in emulator["supports"].items():
        if api in apis:
            arches.append(arch)
    return arches