{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9235146641731262,
        "class": 0
      }
    ],
    "prob": 0.92351466,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T04:58:32Z"
  },
  "path": "imx6_ssi.c",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O(Er₂)",
        "x": 1,
        "id": 0,
        "is": [
          "mix_getdevinfo",
          "snd_mtxlock",
          "pcm_setflags",
          "pcm_getflags",
          "mix_setdevs",
          "snd_mtxunlock",
          "mix_getdevinfo",
          "device_printf",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "MIXER_DECLARE",
          "snd_mtxlock",
          "snd_mtxunlock",
          "sndbuf_setup",
          "device_printf",
          "device_printf",
          "snd_mtxlock",
          "snd_mtxunlock",
          "ssi_configure_clock",
          "pll4_configure_output",
          "sndbuf_resize",
          "setup_dma",
          "sndbuf_getblksz",
          "sndbuf_getsize",
          "chn_intr",
          "ofw_bus_get_node",
          "OF_getproplen",
          "device_printf",
          "OF_getencprop",
          "devclass_get_device",
          "devclass_find",
          "device_get_softc",
          "device_printf",
          "rman_get_start",
          "sndbuf_getblksz",
          "sndbuf_getblkcnt",
          "sndbuf_getfmt",
          "device_printf",
          "sdma_configure",
          "device_printf",
          "WRITE4",
          "sdma_start",
          "READ4",
          "WRITE4",
          "sdma_stop",
          "bzero",
          "snd_mtxlock",
          "device_printf",
          "ssi_start",
          "device_printf",
          "ssi_stop",
          "snd_mtxunlock",
          "SND_FORMAT",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "KOBJMETHOD",
          "CHANNEL_DECLARE",
          "ofw_bus_status_okay",
          "ofw_bus_is_compatible",
          "device_set_desc",
          "device_printf",
          "READ4",
          "READ4",
          "WRITE4",
          "READ4",
          "WRITE4",
          "READ4",
          "WRITE4",
          "READ4",
          "WRITE4",
          "malloc",
          "malloc",
          "snd_mtxcreate",
          "device_get_nameunit",
          "device_printf",
          "bus_alloc_resources",
          "device_printf",
          "rman_get_bustag",
          "rman_get_bushandle",
          "find_sdma_controller",
          "device_printf",
          "malloc",
          "bus_dma_tag_create",
          "bus_get_dma_tag",
          "bus_dmamem_alloc",
          "device_printf",
          "bus_dmamap_load",
          "device_printf",
          "bzero",
          "bus_setup_intr",
          "device_printf",
          "pcm_setflags",
          "pcm_getflags",
          "pcm_init",
          "pcm_addchan",
          "snprintf",
          "pcm_register",
          "device_printf",
          "mixer_init",
          "setup_ssi",
          "imx_ccm_ssi_configure",
          "sdma_alloc",
          "device_printf",
          "DEVMETHOD",
          "DEVMETHOD",
          "DRIVER_MODULE",
          "MODULE_DEPEND",
          "MODULE_DEPEND",
          "MODULE_VERSION"
        ],
        "ms": {
          "text": {
            "tab_count": 708.0,
            "digit_ratio": 0.04,
            "space_count": 2361.0,
            "total_lines": 855.0,
            "char_entropy": 5.51,
            "mixed_indent": true,
            "unique_chars": 96.0,
            "import_density": 13.33,
            "string_density": 0.09,
            "ascii_art_lines": 1.0,
            "avg_line_length": 23.03,
            "max_line_length": 77.0,
            "empty_line_ratio": 0.19,
            "last_line_length": 23.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.19,
            "most_common_ratio": 0.05,
            "identifier_density": 0.95,
            "line_length_stddev": 21.18,
            "normalized_import_count": 3.9,
            "normalized_string_count": 2.56,
            "repeated_char_sequences": 11.0,
            "suspicious_comment_ratio": 0.03,
            "max_inline_whitespace_run": 13.0,
            "normalized_function_count": 0.72,
            "trailing_whitespace_lines": 2.0,
            "imports_to_functions_ratio": 5.43,
            "strings_to_functions_ratio": 3.57,
            "suspicious_identifier_ratio": 0.02,
            "normalized_unique_identifiers": 24.95,
            "identifiers_to_functions_ratio": 11.57
          },
          "imports": {
            "total": 114.0,
            "unique_modules": 63.0,
            "third_party_count": 114.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 75.0,
            "avg_length": 18.75,
            "max_length": 53.0,
            "avg_entropy": 3.39,
            "total_bytes": 1406.0,
            "entropy_stddev": 0.67
          },
          "comments": {
            "chars": 5060.0,
            "lines": 161.0,
            "total": 97.0,
            "todo_count": 2.0,
            "to_code_ratio": 0.23,
            "high_entropy_comments": 3.0
          },
          "functions": {
            "total": 21.0,
            "length_stddev": 22.71,
            "over_100_lines": 1.0,
            "avg_name_length": 44.05,
            "no_params_count": 21.0,
            "avg_length_lines": 26.62,
            "max_length_lines": 114.0,
            "min_length_lines": 6.0,
            "high_entropy_names": 21.0,
            "density_per_100_lines": 2.46,
            "code_in_functions_ratio": 0.65
          },
          "identifiers": {
            "total": 809.0,
            "avg_length": 10.45,
            "max_length": 23.0,
            "min_length": 1.0,
            "avg_entropy": 2.78,
            "reuse_ratio": 0.3,
            "unique_count": 243.0,
            "length_stddev": 4.44,
            "has_digit_ratio": 0.15,
            "sequential_names": 4.0,
            "single_char_count": 4.0,
            "single_char_ratio": 0.02,
            "high_entropy_count": 23.0,
            "high_entropy_ratio": 0.09,
            "all_lowercase_ratio": 0.54,
            "all_uppercase_ratio": 0.3,
            "numeric_suffix_count": 10.0,
            "underscore_prefix_count": 3.0
          }
        },
        "ss": [
          [
            1527,
            "\u003csys/param.h\u003e"
          ],
          [
            1550,
            "\u003csys/systm.h\u003e"
          ],
          [
            1573,
            "\u003csys/bus.h\u003e"
          ],
          [
            1594,
            "\u003csys/kernel.h\u003e"
          ],
          [
            1618,
            "\u003csys/module.h\u003e"
          ],
          [
            1642,
            "\u003csys/malloc.h\u003e"
          ],
          [
            1666,
            "\u003csys/rman.h\u003e"
          ],
          [
            1688,
            "\u003csys/timeet.h\u003e"
          ],
          [
            1712,
            "\u003csys/timetc.h\u003e"
          ],
          [
            1737,
            "\u003cdev/sound/pcm/sound.h\u003e"
          ],
          [
            1770,
            "\u003cmixer_if.h\u003e"
          ],
          [
            1793,
            "\u003cdev/ofw/openfirm.h\u003e"
          ],
          [
            1823,
            "\u003cdev/ofw/ofw_bus.h\u003e"
          ],
          [
            1852,
            "\u003cdev/ofw/ofw_bus_subr.h\u003e"
          ],
          [
            1887,
            "\u003cmachine/bus.h\u003e"
          ],
          [
            1912,
            "\u003cmachine/cpu.h\u003e"
          ],
          [
            1937,
            "\u003cmachine/intr.h\u003e"
          ],
          [
            1964,
            "\u003carm/freescale/imx/imx6_sdma.h\u003e"
          ],
          [
            2005,
            "\u003carm/freescale/imx/imx6_anatopvar.h\u003e"
          ],
          [
            2051,
            "\u003carm/freescale/imx/imx_ccmvar.h\u003e"
          ],
          [
            5507,
            "ssi audio"
          ],
          [
            5508,
            "ssi audio"
          ],
          [
            8793,
            "ssimixer_set() %d %d\\n"
          ],
          [
            8794,
            "ssimixer_set() %d %d"
          ],
          [
            9553,
            "Can't setup sndbuf.\\n"
          ],
          [
            9554,
            "Can't setup sndbuf."
          ],
          [
            9794,
            "ssichan_free()\\n"
          ],
          [
            9795,
            "ssichan_free()"
          ],
          [
            11962,
            "dmas"
          ],
          [
            11963,
            "dmas"
          ],
          [
            12060,
            "\\\"dmas\\\" property length is invalid: %d (expected %d)"
          ],
          [
            12063,
            "dmas"
          ],
          [
            12069,
            " property length is invalid: %d (expected %d)"
          ],
          [
            12191,
            "dmas"
          ],
          [
            12192,
            "dmas"
          ],
          [
            12360,
            "sdma"
          ],
          [
            12361,
            "sdma"
          ],
          [
            12478,
            "No sDMA found. Can't operate\\n"
          ],
          [
            12479,
            "No sDMA found. Can't operate"
          ],
          [
            13372,
            "Unknown format\\n"
          ],
          [
            13373,
            "Unknown format"
          ],
          [
            13604,
            "Can't configure sDMA\\n"
          ],
          [
            13605,
            "Can't configure sDMA"
          ],
          [
            14305,
            "trigger start\\n"
          ],
          [
            14306,
            "trigger start"
          ],
          [
            14450,
            "trigger stop or abort\\n"
          ],
          [
            14451,
            "trigger stop or abort"
          ],
          [
            15636,
            "fsl,imx6q-ssi"
          ],
          [
            15637,
            "fsl,imx6q-ssi"
          ],
          [
            15695,
            "i.MX6 Synchronous Serial Interface (SSI)"
          ],
          [
            15696,
            "i.MX6 Synchronous Serial Interface (SSI)"
          ],
          [
            15965,
            "SSI Intr 0x%08x\\n"
          ],
          [
            15966,
            "SSI Intr 0x%08x"
          ],
          [
            17683,
            "ssi softc"
          ],
          [
            17684,
            "ssi softc"
          ],
          [
            17743,
            "Can't create mtx\\n"
          ],
          [
            17744,
            "Can't create mtx"
          ],
          [
            17861,
            "could not allocate resources\\n"
          ],
          [
            17862,
            "could not allocate resources"
          ],
          [
            18092,
            "could not find active SDMA\\n"
          ],
          [
            18093,
            "could not find active SDMA"
          ],
          [
            19044,
            "cannot allocate framebuffer\\n"
          ],
          [
            19045,
            "cannot allocate framebuffer"
          ],
          [
            19267,
            "cannot load DMA map\\n"
          ],
          [
            19268,
            "cannot load DMA map"
          ],
          [
            19519,
            "Unable to alloc interrupt resource.\\n"
          ],
          [
            19520,
            "Unable to alloc interrupt resource."
          ],
          [
            19778,
            "at simplebus"
          ],
          [
            19779,
            "at simplebus"
          ],
          [
            19862,
            "Can't register pcm.\\n"
          ],
          [
            19863,
            "Can't register pcm."
          ],
          [
            20085,
            "Can't get sDMA channel\\n"
          ],
          [
            20086,
            "Can't get sDMA channel"
          ],
          [
            20320,
            "pcm"
          ],
          [
            20321,
            "pcm"
          ]
        ],
        "sz": 20548,
        "ts": [
          {
            "c": 0.20000000298023224,
            "d": "command keyword",
            "e": [
              "command"
            ],
            "i": "micro-behaviors/data/text/keywords::command-dup",
            "l": 1
          },
          {
            "c": 0.699999988079071,
            "d": "Scanning for x86 REX prefix",
            "e": [
              "0x40"
            ],
            "i": "objectives/evasion/kernel-hide/hook::x86-opcode-prefix-rex",
            "l": 1
          },
          {
            "a": "T1014",
            "c": 0.949999988079071,
            "d": "FreeBSD kernel module header include",
            "e": [
              "sys/module.h"
            ],
            "i": "objectives/evasion/kernel-hide/lkm::sys-module-header",
            "l": 3
          },
          {
            "c": 0.20000000298023224,
            "d": "output keyword",
            "e": [
              "output"
            ],
            "i": "micro-behaviors/data/text/keywords::output",
            "l": 1
          }
        ],
        "sha": "8f76d84745a20f552066cc3de8d751d44cbd88c006f25eea35f37f17ed417250",
        "path": "imx6_ssi.c",
        "type": "c"
      }
    ],
    "tv": "f6eaa"
  }
}