static void test_dst_table(AcpiSdtTable *sdt_table, uint32_t addr)

{

    uint8_t checksum;



    memset(sdt_table, 0, sizeof(*sdt_table));

    ACPI_READ_TABLE_HEADER(&sdt_table->header, addr);



    sdt_table->aml_len = le32_to_cpu(sdt_table->header.length)

                         - sizeof(AcpiTableHeader);

    sdt_table->aml = g_malloc0(sdt_table->aml_len);

    ACPI_READ_ARRAY_PTR(sdt_table->aml, sdt_table->aml_len, addr);



    checksum = acpi_calc_checksum((uint8_t *)sdt_table,

                                  sizeof(AcpiTableHeader)) +

               acpi_calc_checksum((uint8_t *)sdt_table->aml,

                                  sdt_table->aml_len);

    g_assert(!checksum);

}

static void test_dst_table(AcpiSdtTable *sdt_table, uint32_t addr)

{

    uint8_t checksum;



    memset(sdt_table, 0, sizeof(*sdt_table));

    ACPI_READ_TABLE_HEADER(&sdt_table->header, addr);



    sdt_table->aml_len = le32_to_cpu(sdt_table->header.length)

                         - sizeof(AcpiTableHeader);

    sdt_table->aml = g_malloc0(sdt_table->aml_len);

    ACPI_READ_ARRAY_PTR(sdt_table->aml, sdt_table->aml_len, addr);



    checksum = acpi_calc_checksum((uint8_t *)sdt_table,

                                  sizeof(AcpiTableHeader)) +

               acpi_calc_checksum((uint8_t *)sdt_table->aml,

                                  sdt_table->aml_len);

    g_assert(!checksum);

}

static void FUNC_0(AcpiSdtTable *VAR_0, uint32_t VAR_1)

{

    uint8_t checksum;



    memset(VAR_0, 0, sizeof(*VAR_0));

    ACPI_READ_TABLE_HEADER(&VAR_0->header, VAR_1);



    VAR_0->aml_len = le32_to_cpu(VAR_0->header.length)

                         - sizeof(AcpiTableHeader);

    VAR_0->aml = g_malloc0(VAR_0->aml_len);

    ACPI_READ_ARRAY_PTR(VAR_0->aml, VAR_0->aml_len, VAR_1);



    checksum = acpi_calc_checksum((uint8_t *)VAR_0,

                                  sizeof(AcpiTableHeader)) +

               acpi_calc_checksum((uint8_t *)VAR_0->aml,

                                  VAR_0->aml_len);

    g_assert(!checksum);

}

static void FUNC_0(AcpiSdtTable *VAR_0, uint32_t VAR_1)
{ uint8_t checksum; memset(VAR_0, 0, sizeof(*VAR_0)); ACPI_READ_TABLE_HEADER(&VAR_0->header, VAR_1); VAR_0->aml_len = le32_to_cpu(VAR_0->header.length)
- sizeof(AcpiTableHeader); VAR_0->aml = g_malloc0(VAR_0->aml_len); ACPI_READ_ARRAY_PTR(VAR_0->aml, VAR_0->aml_len, VAR_1); checksum = acpi_calc_checksum((uint8_t *)VAR_0,
sizeof(AcpiTableHeader)) +
acpi_calc_checksum((uint8_t *)VAR_0->aml,
VAR_0->aml_len); g_assert(!checksum); }