← Back to team overview

hybrid-graphics-linux team mailing list archive

Acer Aspire 4750G

 

I finally got my hands on Acer Aspire 4750G.

~$ sudo dmidecode -s system-product-name && sudo dmidecode -s system-version
Aspire 4750
V1.14

~$ lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Sandy Bridge
Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA
controller])
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device
[10de:0df4] (rev a1) (prog-if 00 [VGA controller])

DSDT.dsl as attached.

BTW, I've tried to switch nvidia off but without success, can anyone help me
with it?

~$ ./test_off.sh
Trying \_SB.PCI0.P0P1.VGA._OFF: failed
Trying \_SB.PCI0.P0P2.VGA._OFF: failed
Trying \_SB_.PCI0.OVGA.ATPX: failed
Trying \_SB_.PCI0.OVGA.XTPX: failed
Trying \_SB.PCI0.P0P3.PEGP._OFF: failed
Trying \_SB.PCI0.P0P2.PEGP._OFF: failed
Trying \_SB.PCI0.P0P1.PEGP._OFF: failed
Trying \_SB.PCI0.MXR0.MXM0._OFF: failed
Trying \_SB.PCI0.PEG1.GFX0._OFF: failed
Trying \_SB.PCI0.PEG1.GFX0.DOFF: failed
Trying \_SB.PCI0.XVR0.Z01I.DGOF: failed
Trying \_SB.PCI0.PEGR.GFX0._OFF: failed
Trying \_SB.PCI0.PEG.VID._OFF: failed
Trying \_SB.PCI0.P0P2.DGPU._OFF: failed
Trying \_SB.PCI0.P0P4.DGPU.DOFF: failed
Trying \_SB.PCI0.IXVE.IGPU.DGOF: failed
Trying \_SB.PCI0.RP00.VGA._PS3: failed
Trying \_SB.PCI0.RP00.VGA.P3MO: failed
Trying \_SB.PCI0.GFX0.DSM._T_0: failed
Trying \_SB.PCI0.LPC.EC.PUBS._OFF: failed
Trying \_SB.PCI0.P0P2.NVID._OFF: failed
ACPI Warning: NsLookup: Type mismatch on WPSC (RegionField), searching for (Buffer) 20090521 nsaccess-731
/*
 * Intel ACPI Component Architecture
 * AML Disassembler version 20090521
 *
 * Disassembly of DSDT.dat, Tue Feb 22 13:33:15 2011
 *
 *
 * Original Table Header:
 *     Signature        "DSDT"
 *     Length           0x0000ABAC (43948)
 *     Revision         0x02
 *     Checksum         0x92
 *     OEM ID           "ACRSYS"
 *     OEM Table ID     "SNB-CPT"
 *     OEM Revision     0x00000000 (0)
 *     Compiler ID      "INTL"
 *     Compiler Version 0x20061109 (537268489)
 */
DefinitionBlock ("DSDT.aml", "DSDT", 2, "ACRSYS", "SNB-CPT", 0x00000000)
{
    External (HNOT, MethodObj)    // 1 Arguments
    External (SNXD)
    External (HWID, IntObj)
    External (IDAB)
    External (HDOS, MethodObj)    // 0 Arguments
    External (TNOT, MethodObj)    // 0 Arguments
    External (PDC7)
    External (PDC6)
    External (PDC5)
    External (PDC4)
    External (PDC3)
    External (PDC2)
    External (PDC1)
    External (PDC0)
    External (CFGD)
    External (\_PR_.CPU0._PPC)
    External (\_SB_.PCI0.IEIT.EITV, MethodObj)    // 0 Arguments

    Name (SS1, One)
    Name (SS2, Zero)
    Name (SS3, One)
    Name (SS4, One)
    Name (SP2O, 0x4E)
    Name (SP1O, 0x164E)
    Name (IO1B, 0x0600)
    Name (IO1L, 0x70)
    Name (IO2B, 0x0680)
    Name (IO2L, 0x20)
    Name (IO3B, 0x0290)
    Name (IO3L, 0x10)
    Name (SP3O, 0x2E)
    Name (IO4B, 0x0A20)
    Name (IO4L, 0x20)
    Name (MCHB, 0xFED10000)
    Name (MCHL, 0x8000)
    Name (EGPB, 0xFED19000)
    Name (EGPL, 0x1000)
    Name (DMIB, 0xFED18000)
    Name (DMIL, 0x1000)
    Name (IFPB, 0xFED14000)
    Name (IFPL, 0x1000)
    Name (PEBS, 0xF8000000)
    Name (PELN, 0x04000000)
    Name (SMBS, 0x0580)
    Name (SMBL, 0x20)
    Name (PBLK, 0x0410)
    Name (PMBS, 0x0400)
    Name (PMLN, 0x80)
    Name (LVL2, 0x0414)
    Name (LVL3, 0x0415)
    Name (LVL4, 0x0416)
    Name (SMIP, 0xB2)
    Name (GPBS, 0x0500)
    Name (GPLN, 0x80)
    Name (APCB, 0xFEC00000)
    Name (APCL, 0x1000)
    Name (PM30, 0x0430)
    Name (SRCB, 0xFED1C000)
    Name (SRCL, 0x4000)
    Name (HPTB, 0xFED00000)
    Name (HPTC, 0xFED1F404)
    Name (ACPH, 0xDE)
    Name (ASSB, Zero)
    Name (AOTB, Zero)
    Name (AAXB, Zero)
    Name (PEHP, One)
    Name (SHPC, One)
    Name (PEPM, One)
    Name (PEER, One)
    Name (PECS, One)
    Name (DSSP, Zero)
    Name (FHPP, Zero)
    Name (FMBL, One)
    Name (FDTP, 0x02)
    Name (FUPS, 0x03)
    Name (BSH, Zero)
    Name (BEL, One)
    Name (BEH, 0x02)
    Name (BRH, 0x03)
    Name (BTF, 0x04)
    Name (BHC, 0x05)
    Name (BYB, 0x06)
    Name (BPH, 0x07)
    Name (BSHS, 0x08)
    Name (BELS, 0x09)
    Name (BRHS, 0x0A)
    Name (BTFS, 0x0B)
    Name (BEHS, 0x0C)
    Name (BPHS, 0x0D)
    Name (BTL, 0x10)
    Name (BSR, 0x14)
    Name (BOF, 0x20)
    Name (BEF, 0x21)
    Name (BLLE, 0x22)
    Name (BLLC, 0x23)
    Name (BLCA, 0x24)
    Name (BLLS, 0x25)
    Name (BLLP, 0x26)
    Name (BLLD, 0x27)
    Name (BHBE, 0x30)
    Name (BHBC, 0x31)
    Name (BHBN, 0x32)
    Name (BHBM, 0x33)
    Name (TCGM, One)
    Name (TRTP, One)
    Name (WDTE, One)
    Name (TRTD, 0x02)
    Name (TRTI, 0x03)
    Name (PDBR, 0x4D)
    Name (DPPB, 0xFED98000)
    Name (DPPL, 0x8000)
    OperationRegion (GNVS, SystemMemory, 0xB6F41E18, 0x01A6)
    Field (GNVS, AnyAcc, Lock, Preserve)
    {
        OSYS,   16, 
        SMIF,   8, 
        PRM0,   8, 
        PRM1,   8, 
        SCIF,   8, 
        PRM2,   8, 
        PRM3,   8, 
        LCKF,   8, 
        PRM4,   8, 
        PRM5,   8, 
        P80D,   32, 
        LIDS,   8, 
        PWRS,   8, 
        DBGS,   8, 
        THOF,   8, 
        ACT1,   8, 
        ACTT,   8, 
        PSVT,   8, 
        TC1V,   8, 
        TC2V,   8, 
        TSPV,   8, 
        CRTT,   8, 
        DTSE,   8, 
        DTS1,   8, 
        DTS2,   8, 
        DTSF,   8, 
                Offset (0x25), 
        REVN,   8, 
                Offset (0x28), 
        APIC,   8, 
        TCNT,   8, 
        PCP0,   8, 
        PCP1,   8, 
        PPCM,   8, 
        PPMF,   32, 
        C67L,   8, 
        NATP,   8, 
        CMAP,   8, 
        CMBP,   8, 
        LPTP,   8, 
        FDCP,   8, 
        CMCP,   8, 
        CIRP,   8, 
        SMSC,   8, 
        W381,   8, 
        SMC1,   8, 
        IGDS,   8, 
        TLST,   8, 
        CADL,   8, 
        PADL,   8, 
        CSTE,   16, 
        NSTE,   16, 
        SSTE,   16, 
        NDID,   8, 
        DID1,   32, 
        DID2,   32, 
        DID3,   32, 
        DID4,   32, 
        DID5,   32, 
        KSV0,   32, 
        KSV1,   8, 
                Offset (0x67), 
        BLCS,   8, 
        BRTL,   8, 
        ALSE,   8, 
        ALAF,   8, 
        LLOW,   8, 
        LHIH,   8, 
                Offset (0x6E), 
        EMAE,   8, 
        EMAP,   16, 
        EMAL,   16, 
                Offset (0x74), 
        MEFE,   8, 
        DSTS,   8, 
                Offset (0x78), 
        TPMP,   8, 
        TPME,   8, 
        MORD,   8, 
        TCGP,   8, 
        PPRP,   32, 
        PPRQ,   8, 
        LPPR,   8, 
        GTF0,   56, 
        GTF2,   56, 
        IDEM,   8, 
        GTF1,   56, 
        BID,    8, 
                Offset (0xAA), 
        ASLB,   32, 
        IBTT,   8, 
        IPAT,   8, 
        ITVF,   8, 
        ITVM,   8, 
        IPSC,   8, 
        IBLC,   8, 
        IBIA,   8, 
        ISSC,   8, 
        I409,   8, 
        I509,   8, 
        I609,   8, 
        I709,   8, 
        IPCF,   8, 
        IDMS,   8, 
        IF1E,   8, 
        HVCO,   8, 
        NXD1,   32, 
        NXD2,   32, 
        NXD3,   32, 
        NXD4,   32, 
        NXD5,   32, 
        NXD6,   32, 
        NXD7,   32, 
        NXD8,   32, 
        GSMI,   8, 
        PAVP,   8, 
                Offset (0xE1), 
        OSCC,   8, 
        NEXP,   8, 
        SBV1,   8, 
        SBV2,   8, 
                Offset (0xEB), 
        DSEN,   8, 
        ECON,   8, 
        GPIC,   8, 
        CTYP,   8, 
        L01C,   8, 
        VFN0,   8, 
        VFN1,   8, 
        VFN2,   8, 
        VFN3,   8, 
        VFN4,   8, 
                Offset (0x100), 
        NVGA,   32, 
        NVHA,   32, 
        AMDA,   32, 
        DID6,   32, 
        DID7,   32, 
        DID8,   32, 
        EBAS,   32, 
        CPSP,   32, 
        EECP,   32, 
        EVCP,   32, 
        XBAS,   32, 
        OBS1,   32, 
        OBS2,   32, 
        OBS3,   32, 
        OBS4,   32, 
        OBS5,   32, 
        OBS6,   32, 
        OBS7,   32, 
        OBS8,   32, 
                Offset (0x157), 
        ATMC,   8, 
        PTMC,   8, 
        ATRA,   8, 
        PTRA,   8, 
        PNHM,   32, 
        TBAB,   32, 
        TBAH,   32, 
        RTIP,   8, 
        TSOD,   8, 
        ATPC,   8, 
        PTPC,   8, 
        PFLV,   8, 
        BREV,   8, 
        SGMD,   8, 
        SGFL,   8, 
        PWOK,   8, 
        HLRS,   8, 
        DSEL,   8, 
        ESEL,   8, 
        PSEL,   8, 
        PWEN,   8, 
        PRST,   8, 
        MXD1,   32, 
        MXD2,   32, 
        MXD3,   32, 
        MXD4,   32, 
        MXD5,   32, 
        MXD6,   32, 
        MXD7,   32, 
        MXD8,   32, 
        GBAS,   16, 
                Offset (0x19D), 
        ALFP,   8, 
        IMON,   8, 
        PDTS,   8, 
        PKGA,   8, 
        PAMT,   8, 
        AC0F,   8, 
        AC1F,   8, 
        DTS3,   8, 
        DTS4,   8
    }

    Scope (_SB)
    {
        Name (PR00, Package (0x1E)
        {
            Package (0x04)
            {
                0x001FFFFF, 
                Zero, 
                LNKF, 
                Zero
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x03, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                Zero, 
                LNKH, 
                Zero
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001BFFFF, 
                Zero, 
                LNKG, 
                Zero
            }, 

            Package (0x04)
            {
                0x0018FFFF, 
                Zero, 
                LNKE, 
                Zero
            }, 

            Package (0x04)
            {
                0x0019FFFF, 
                Zero, 
                LNKE, 
                Zero
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                0x03, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x03, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x03, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                Zero, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                One, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                0x02, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                0x03, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x0002FFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR00, Package (0x1E)
        {
            Package (0x04)
            {
                0x001FFFFF, 
                Zero, 
                Zero, 
                0x15
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x03, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                Zero, 
                Zero, 
                0x17
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001BFFFF, 
                Zero, 
                Zero, 
                0x16
            }, 

            Package (0x04)
            {
                0x0018FFFF, 
                Zero, 
                Zero, 
                0x14
            }, 

            Package (0x04)
            {
                0x0019FFFF, 
                Zero, 
                Zero, 
                0x14
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x0016FFFF, 
                0x03, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x03, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x03, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                Zero, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                One, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                0x02, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0x0006FFFF, 
                0x03, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x0002FFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x0004FFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR04, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR04, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR05, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKA, 
                Zero
            }
        })
        Name (AR05, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x10
            }
        })
        Name (PR06, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKB, 
                Zero
            }
        })
        Name (AR06, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x11
            }
        })
        Name (PR07, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKC, 
                Zero
            }
        })
        Name (AR07, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x12
            }
        })
        Name (PR08, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR08, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR09, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKA, 
                Zero
            }
        })
        Name (AR09, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x10
            }
        })
        Name (PR0E, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKB, 
                Zero
            }
        })
        Name (AR0E, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x11
            }
        })
        Name (PR0F, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKC, 
                Zero
            }
        })
        Name (AR0F, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x12
            }
        })
        Name (PR02, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR02, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR0A, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKA, 
                Zero
            }
        })
        Name (AR0A, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x10
            }
        })
        Name (PR0B, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKB, 
                Zero
            }
        })
        Name (AR0B, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x11
            }
        })
        Name (PR0C, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKC, 
                Zero
            }
        })
        Name (AR0C, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x12
            }
        })
        Name (PR01, Package (0x0C)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKF, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKG, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKH, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKE, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                Zero, 
                LNKG, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                One, 
                LNKF, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x02, 
                LNKE, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x03, 
                LNKH, 
                Zero
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                Zero, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                One, 
                LNKE, 
                Zero
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                0x02, 
                LNKG, 
                Zero
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                0x03, 
                LNKF, 
                Zero
            }
        })
        Name (AR01, Package (0x0C)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x15
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x16
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x17
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x14
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                Zero, 
                Zero, 
                0x16
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                One, 
                Zero, 
                0x15
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x02, 
                Zero, 
                0x14
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x03, 
                Zero, 
                0x17
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                Zero, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                One, 
                Zero, 
                0x14
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                0x02, 
                Zero, 
                0x16
            }, 

            Package (0x04)
            {
                0x0005FFFF, 
                0x03, 
                Zero, 
                0x15
            }
        })
        Name (PRSA, ResourceTemplate ()
        {
            IRQ (Level, ActiveLow, Shared, )
                {1,3,4,5,6,10,11,12,14,15}
        })
        Alias (PRSA, PRSB)
        Alias (PRSA, PRSC)
        Alias (PRSA, PRSD)
        Alias (PRSA, PRSE)
        Alias (PRSA, PRSF)
        Alias (PRSA, PRSG)
        Alias (PRSA, PRSH)
        Device (PCI0)
        {
            Name (_HID, EisaId ("PNP0A08"))
            Name (_CID, EisaId ("PNP0A03"))
            Name (_ADR, Zero)
            Method (^BN00, 0, NotSerialized)
            {
                Return (Zero)
            }

            Method (_BBN, 0, NotSerialized)
            {
                Return (BN00 ())
            }

            Name (_UID, Zero)
            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR00 ())
                }

                Return (PR00 ())
            }

            OperationRegion (HBUS, PCI_Config, Zero, 0x0100)
            Field (HBUS, DWordAcc, NoLock, Preserve)
            {
                        Offset (0x40), 
                EPEN,   1, 
                    ,   11, 
                EPBR,   20, 
                        Offset (0x48), 
                MHEN,   1, 
                    ,   14, 
                MHBR,   17, 
                        Offset (0x50), 
                GCLK,   1, 
                        Offset (0x54), 
                D0EN,   1, 
                        Offset (0x60), 
                PXEN,   1, 
                PXSZ,   2, 
                    ,   23, 
                PXBR,   6, 
                        Offset (0x68), 
                DIEN,   1, 
                    ,   11, 
                DIBR,   20, 
                        Offset (0x70), 
                    ,   20, 
                MEBR,   12, 
                        Offset (0x80), 
                    ,   4, 
                PM0H,   2, 
                        Offset (0x81), 
                PM1L,   2, 
                    ,   2, 
                PM1H,   2, 
                        Offset (0x82), 
                PM2L,   2, 
                    ,   2, 
                PM2H,   2, 
                        Offset (0x83), 
                PM3L,   2, 
                    ,   2, 
                PM3H,   2, 
                        Offset (0x84), 
                PM4L,   2, 
                    ,   2, 
                PM4H,   2, 
                        Offset (0x85), 
                PM5L,   2, 
                    ,   2, 
                PM5H,   2, 
                        Offset (0x86), 
                PM6L,   2, 
                    ,   2, 
                PM6H,   2, 
                        Offset (0x87), 
                        Offset (0xA8), 
                    ,   20, 
                TUUD,   19, 
                        Offset (0xBC), 
                    ,   20, 
                TLUD,   12, 
                        Offset (0xC8), 
                    ,   7, 
                HTSE,   1
            }

            OperationRegion (MCHT, SystemMemory, 0xFED10000, 0x1100)
            Field (MCHT, ByteAcc, NoLock, Preserve)
            {
            }

            Name (BUF0, ResourceTemplate ()
            {
                WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
                    0x0000,             // Granularity
                    0x0000,             // Range Minimum
                    0x00FF,             // Range Maximum
                    0x0000,             // Translation Offset
                    0x0100,             // Length
                    ,, )
                DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
                    0x00000000,         // Granularity
                    0x00000000,         // Range Minimum
                    0x00000CF7,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00000CF8,         // Length
                    ,, , TypeStatic)
                IO (Decode16,
                    0x0CF8,             // Range Minimum
                    0x0CF8,             // Range Maximum
                    0x01,               // Alignment
                    0x08,               // Length
                    )
                DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
                    0x00000000,         // Granularity
                    0x00000D00,         // Range Minimum
                    0x0000FFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x0000F300,         // Length
                    ,, , TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000A0000,         // Range Minimum
                    0x000BFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00020000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000C0000,         // Range Minimum
                    0x000C3FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000C4000,         // Range Minimum
                    0x000C7FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000C8000,         // Range Minimum
                    0x000CBFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000CC000,         // Range Minimum
                    0x000CFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000D0000,         // Range Minimum
                    0x000D3FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000D4000,         // Range Minimum
                    0x000D7FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000D8000,         // Range Minimum
                    0x000DBFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000DC000,         // Range Minimum
                    0x000DFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000E0000,         // Range Minimum
                    0x000E3FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000E4000,         // Range Minimum
                    0x000E7FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000E8000,         // Range Minimum
                    0x000EBFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000EC000,         // Range Minimum
                    0x000EFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000F0000,         // Range Minimum
                    0x000FFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00010000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x00000000,         // Range Minimum
                    0xFEAFFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0xFEB00000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0xFED40000,         // Range Minimum
                    0xFED44FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00005000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
            })
            Method (_CRS, 0, Serialized)
            {
                CreateWordField (BUF0, 0x0A, PBMX)
                Store (Subtract (ShiftRight (PELN, 0x14), 0x02), PBMX)
                CreateWordField (BUF0, 0x0E, PBLN)
                Store (Subtract (ShiftRight (PELN, 0x14), One), PBLN)
                If (PM1L)
                {
                    CreateDWordField (BUF0, 0x7C, C0LN)
                    Store (Zero, C0LN)
                }

                If (LEqual (PM1L, One))
                {
                    CreateBitField (BUF0, 0x0358, C0RW)
                    Store (Zero, C0RW)
                }

                If (PM1H)
                {
                    CreateDWordField (BUF0, 0x96, C4LN)
                    Store (Zero, C4LN)
                }

                If (LEqual (PM1H, One))
                {
                    CreateBitField (BUF0, 0x0428, C4RW)
                    Store (Zero, C4RW)
                }

                If (PM2L)
                {
                    CreateDWordField (BUF0, 0xB0, C8LN)
                    Store (Zero, C8LN)
                }

                If (LEqual (PM2L, One))
                {
                    CreateBitField (BUF0, 0x04F8, C8RW)
                    Store (Zero, C8RW)
                }

                If (PM2H)
                {
                    CreateDWordField (BUF0, 0xCA, CCLN)
                    Store (Zero, CCLN)
                }

                If (LEqual (PM2H, One))
                {
                    CreateBitField (BUF0, 0x05C8, CCRW)
                    Store (Zero, CCRW)
                }

                If (PM3L)
                {
                    CreateDWordField (BUF0, 0xE4, D0LN)
                    Store (Zero, D0LN)
                }

                If (LEqual (PM3L, One))
                {
                    CreateBitField (BUF0, 0x0698, D0RW)
                    Store (Zero, D0RW)
                }

                If (PM3H)
                {
                    CreateDWordField (BUF0, 0xFE, D4LN)
                    Store (Zero, D4LN)
                }

                If (LEqual (PM3H, One))
                {
                    CreateBitField (BUF0, 0x0768, D4RW)
                    Store (Zero, D4RW)
                }

                If (PM4L)
                {
                    CreateDWordField (BUF0, 0x0118, D8LN)
                    Store (Zero, D8LN)
                }

                If (LEqual (PM4L, One))
                {
                    CreateBitField (BUF0, 0x0838, D8RW)
                    Store (Zero, D8RW)
                }

                If (PM4H)
                {
                    CreateDWordField (BUF0, 0x0132, DCLN)
                    Store (Zero, DCLN)
                }

                If (LEqual (PM4H, One))
                {
                    CreateBitField (BUF0, 0x0908, DCRW)
                    Store (Zero, DCRW)
                }

                If (PM5L)
                {
                    CreateDWordField (BUF0, 0x014C, E0LN)
                    Store (Zero, E0LN)
                }

                If (LEqual (PM5L, One))
                {
                    CreateBitField (BUF0, 0x09D8, E0RW)
                    Store (Zero, E0RW)
                }

                If (PM5H)
                {
                    CreateDWordField (BUF0, 0x0166, E4LN)
                    Store (Zero, E4LN)
                }

                If (LEqual (PM5H, One))
                {
                    CreateBitField (BUF0, 0x0AA8, E4RW)
                    Store (Zero, E4RW)
                }

                If (PM6L)
                {
                    CreateDWordField (BUF0, 0x0180, E8LN)
                    Store (Zero, E8LN)
                }

                If (LEqual (PM6L, One))
                {
                    CreateBitField (BUF0, 0x0B78, E8RW)
                    Store (Zero, E8RW)
                }

                If (PM6H)
                {
                    CreateDWordField (BUF0, 0x019A, ECLN)
                    Store (Zero, ECLN)
                }

                If (LEqual (PM6H, One))
                {
                    CreateBitField (BUF0, 0x0C48, ECRW)
                    Store (Zero, ECRW)
                }

                If (PM0H)
                {
                    CreateDWordField (BUF0, 0x01B4, F0LN)
                    Store (Zero, F0LN)
                }

                If (LEqual (PM0H, One))
                {
                    CreateBitField (BUF0, 0x0D18, F0RW)
                    Store (Zero, F0RW)
                }

                CreateDWordField (BUF0, 0x01C2, M1MN)
                CreateDWordField (BUF0, 0x01C6, M1MX)
                CreateDWordField (BUF0, 0x01CE, M1LN)
                ShiftLeft (TLUD, 0x14, M1MN)
                Add (Subtract (M1MX, M1MN), One, M1LN)
                Return (BUF0)
            }

            Name (GUID, Buffer (0x10)
            {
                /* 0000 */    0x5B, 0x4D, 0xDB, 0x33, 0xF7, 0x1F, 0x1C, 0x40, 
                /* 0008 */    0x96, 0x57, 0x74, 0x41, 0xC0, 0x3D, 0xD7, 0x66
            })
            Name (SUPP, Zero)
            Name (CTRL, Zero)
            Method (_OSC, 4, Serialized)
            {
                Store (Arg3, Local0)
                CreateDWordField (Local0, Zero, CDW1)
                CreateDWordField (Local0, 0x04, CDW2)
                CreateDWordField (Local0, 0x08, CDW3)
                If (LAnd (LEqual (Arg0, GUID), NEXP))
                {
                    Store (CDW2, SUPP)
                    Store (CDW3, CTRL)
                    If (Not (And (CDW1, One)))
                    {
                        If (And (CTRL, One))
                        {
                            NHPG ()
                        }

                        If (And (CTRL, 0x04))
                        {
                            NPME ()
                        }
                    }

                    If (LNotEqual (Arg1, One))
                    {
                        Or (CDW1, 0x08, CDW1)
                    }

                    If (LNotEqual (CDW3, CTRL))
                    {
                        Or (CDW1, 0x10, CDW1)
                    }

                    Store (CTRL, CDW3)
                    Store (CTRL, OSCC)
                    Return (Local0)
                }
                Else
                {
                    Or (CDW1, 0x04, CDW1)
                    Return (Local0)
                }
            }

            Scope (\_SB.PCI0)
            {
                Method (AR00, 0, NotSerialized)
                {
                    Return (^^AR00)
                }

                Method (PR00, 0, NotSerialized)
                {
                    Return (^^PR00)
                }

                Method (AR01, 0, NotSerialized)
                {
                    Return (^^AR01)
                }

                Method (PR01, 0, NotSerialized)
                {
                    Return (^^PR01)
                }

                Method (AR02, 0, NotSerialized)
                {
                    Return (^^AR02)
                }

                Method (PR02, 0, NotSerialized)
                {
                    Return (^^PR02)
                }

                Method (AR04, 0, NotSerialized)
                {
                    Return (^^AR04)
                }

                Method (PR04, 0, NotSerialized)
                {
                    Return (^^PR04)
                }

                Method (AR05, 0, NotSerialized)
                {
                    Return (^^AR05)
                }

                Method (PR05, 0, NotSerialized)
                {
                    Return (^^PR05)
                }

                Method (AR06, 0, NotSerialized)
                {
                    Return (^^AR06)
                }

                Method (PR06, 0, NotSerialized)
                {
                    Return (^^PR06)
                }

                Method (AR07, 0, NotSerialized)
                {
                    Return (^^AR07)
                }

                Method (PR07, 0, NotSerialized)
                {
                    Return (^^PR07)
                }

                Method (AR08, 0, NotSerialized)
                {
                    Return (^^AR08)
                }

                Method (PR08, 0, NotSerialized)
                {
                    Return (^^PR08)
                }

                Method (AR09, 0, NotSerialized)
                {
                    Return (^^AR09)
                }

                Method (PR09, 0, NotSerialized)
                {
                    Return (^^PR09)
                }

                Method (AR0A, 0, NotSerialized)
                {
                    Return (^^AR0A)
                }

                Method (PR0A, 0, NotSerialized)
                {
                    Return (^^PR0A)
                }

                Method (AR0B, 0, NotSerialized)
                {
                    Return (^^AR0B)
                }

                Method (PR0B, 0, NotSerialized)
                {
                    Return (^^PR0B)
                }
            }

            Device (P0P1)
            {
                Name (_ADR, 0x001E0000)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0B, 0x04))
                }

                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR01 ())
                    }

                    Return (PR01 ())
                }
            }

            Device (LPCB)
            {
                Name (_ADR, 0x001F0000)
                Scope (\_SB)
                {
                    OperationRegion (PCI0.LPCB.LPC1, PCI_Config, 0x40, 0xC0)
                    Field (PCI0.LPCB.LPC1, AnyAcc, NoLock, Preserve)
                    {
                                Offset (0x20), 
                        PARC,   8, 
                        PBRC,   8, 
                        PCRC,   8, 
                        PDRC,   8, 
                                Offset (0x28), 
                        PERC,   8, 
                        PFRC,   8, 
                        PGRC,   8, 
                        PHRC,   8
                    }

                    Device (LNKA)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, One)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PARC, 0x80, PARC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSA)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLA, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLA, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PARC, 0x0F), IRQ0)
                            Return (RTLA)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PARC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PARC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKB)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x02)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PBRC, 0x80, PBRC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSB)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLB, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLB, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PBRC, 0x0F), IRQ0)
                            Return (RTLB)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PBRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PBRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKC)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x03)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PCRC, 0x80, PCRC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSC)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLC, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLC, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PCRC, 0x0F), IRQ0)
                            Return (RTLC)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PCRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PCRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKD)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x04)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PDRC, 0x80, PDRC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSD)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLD, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLD, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PDRC, 0x0F), IRQ0)
                            Return (RTLD)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PDRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PDRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKE)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x05)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PERC, 0x80, PERC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSE)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLE, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLE, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PERC, 0x0F), IRQ0)
                            Return (RTLE)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PERC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PERC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKF)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x06)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PFRC, 0x80, PFRC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSF)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLF, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLF, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PFRC, 0x0F), IRQ0)
                            Return (RTLF)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PFRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PFRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKG)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x07)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PGRC, 0x80, PGRC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSG)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLG, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLG, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PGRC, 0x0F), IRQ0)
                            Return (RTLG)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PGRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PGRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKH)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x08)
                        Method (_DIS, 0, Serialized)
                        {
                            Or (PHRC, 0x80, PHRC)
                        }

                        Method (_PRS, 0, Serialized)
                        {
                            Return (PRSH)
                        }

                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLH, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLH, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PHRC, 0x0F), IRQ0)
                            Return (RTLH)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PHRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PHRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }
                }

                OperationRegion (LPC0, PCI_Config, 0x40, 0xC0)
                Field (LPC0, AnyAcc, NoLock, Preserve)
                {
                            Offset (0x40), 
                    IOD0,   8, 
                    IOD1,   8, 
                            Offset (0xB0), 
                    RAEN,   1, 
                        ,   13, 
                    RCBA,   18
                }

                Device (DMAC)
                {
                    Name (_HID, EisaId ("PNP0200"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0000,             // Range Minimum
                            0x0000,             // Range Maximum
                            0x01,               // Alignment
                            0x20,               // Length
                            )
                        IO (Decode16,
                            0x0081,             // Range Minimum
                            0x0081,             // Range Maximum
                            0x01,               // Alignment
                            0x11,               // Length
                            )
                        IO (Decode16,
                            0x0093,             // Range Minimum
                            0x0093,             // Range Maximum
                            0x01,               // Alignment
                            0x0D,               // Length
                            )
                        IO (Decode16,
                            0x00C0,             // Range Minimum
                            0x00C0,             // Range Maximum
                            0x01,               // Alignment
                            0x20,               // Length
                            )
                        DMA (Compatibility, NotBusMaster, Transfer8_16, )
                            {4}
                    })
                }

                Device (FWHD)
                {
                    Name (_HID, EisaId ("INT0800"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        Memory32Fixed (ReadOnly,
                            0xFF000000,         // Address Base
                            0x01000000,         // Address Length
                            )
                    })
                }

                Device (HPET)
                {
                    Name (_HID, EisaId ("PNP0103"))
                    Name (_UID, Zero)
                    Name (BUF0, ResourceTemplate ()
                    {
                        Memory32Fixed (ReadWrite,
                            0xFED00000,         // Address Base
                            0x00000400,         // Address Length
                            )
                    })
                    Method (_STA, 0, NotSerialized)
                    {
                        If (LGreaterEqual (OSYS, 0x07D1))
                        {
                            If (HPAE)
                            {
                                Return (0x0F)
                            }
                        }
                        Else
                        {
                            If (HPAE)
                            {
                                Return (0x0B)
                            }
                        }

                        Return (Zero)
                    }

                    Method (_CRS, 0, Serialized)
                    {
                        If (HPAE)
                        {
                            CreateDWordField (BUF0, 0x04, HPT0)
                            If (LEqual (HPAS, One))
                            {
                                Store (0xFED01000, HPT0)
                            }

                            If (LEqual (HPAS, 0x02))
                            {
                                Store (0xFED02000, HPT0)
                            }

                            If (LEqual (HPAS, 0x03))
                            {
                                Store (0xFED03000, HPT0)
                            }
                        }

                        Return (BUF0)
                    }
                }

                Device (IPIC)
                {
                    Name (_HID, EisaId ("PNP0000"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0020,             // Range Minimum
                            0x0020,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0024,             // Range Minimum
                            0x0024,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0028,             // Range Minimum
                            0x0028,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x002C,             // Range Minimum
                            0x002C,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0030,             // Range Minimum
                            0x0030,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0034,             // Range Minimum
                            0x0034,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0038,             // Range Minimum
                            0x0038,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x003C,             // Range Minimum
                            0x003C,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00A0,             // Range Minimum
                            0x00A0,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00A4,             // Range Minimum
                            0x00A4,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00A8,             // Range Minimum
                            0x00A8,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00AC,             // Range Minimum
                            0x00AC,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00B0,             // Range Minimum
                            0x00B0,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00B4,             // Range Minimum
                            0x00B4,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00B8,             // Range Minimum
                            0x00B8,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00BC,             // Range Minimum
                            0x00BC,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x04D0,             // Range Minimum
                            0x04D0,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IRQNoFlags ()
                            {2}
                    })
                }

                Device (MATH)
                {
                    Name (_HID, EisaId ("PNP0C04"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x00F0,             // Range Minimum
                            0x00F0,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IRQNoFlags ()
                            {13}
                    })
                }

                Device (LDRC)
                {
                    Name (_HID, EisaId ("PNP0C02"))
                    Name (_UID, 0x02)
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x002E,             // Range Minimum
                            0x002E,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x004E,             // Range Minimum
                            0x004E,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0061,             // Range Minimum
                            0x0061,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0063,             // Range Minimum
                            0x0063,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0065,             // Range Minimum
                            0x0065,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0067,             // Range Minimum
                            0x0067,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0070,             // Range Minimum
                            0x0070,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0080,             // Range Minimum
                            0x0080,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0092,             // Range Minimum
                            0x0092,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x00B2,             // Range Minimum
                            0x00B2,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x1000,             // Range Minimum
                            0x1000,             // Range Maximum
                            0x01,               // Alignment
                            0x10,               // Length
                            )
                        IO (Decode16,
                            0xFFFF,             // Range Minimum
                            0xFFFF,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0xFFFF,             // Range Minimum
                            0xFFFF,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0400,             // Range Minimum
                            0x0400,             // Range Maximum
                            0x01,               // Alignment
                            0x54,               // Length
                            )
                        IO (Decode16,
                            0x0458,             // Range Minimum
                            0x0458,             // Range Maximum
                            0x01,               // Alignment
                            0x28,               // Length
                            )
                        IO (Decode16,
                            0x0500,             // Range Minimum
                            0x0500,             // Range Maximum
                            0x01,               // Alignment
                            0x80,               // Length
                            )
                        IO (Decode16,
                            0x0068,             // Range Minimum
                            0x0068,             // Range Maximum
                            0x01,               // Alignment
                            0x08,               // Length
                            )
                        Memory32Fixed (ReadWrite,
                            0xFE800000,         // Address Base
                            0x00010000,         // Address Length
                            )
                    })
                }

                Device (RTC)
                {
                    Name (_HID, EisaId ("PNP0B00"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0070,             // Range Minimum
                            0x0070,             // Range Maximum
                            0x01,               // Alignment
                            0x08,               // Length
                            )
                        IRQNoFlags ()
                            {8}
                    })
                }

                Device (TIMR)
                {
                    Name (_HID, EisaId ("PNP0100"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0040,             // Range Minimum
                            0x0040,             // Range Maximum
                            0x01,               // Alignment
                            0x04,               // Length
                            )
                        IO (Decode16,
                            0x0050,             // Range Minimum
                            0x0050,             // Range Maximum
                            0x10,               // Alignment
                            0x04,               // Length
                            )
                        IRQNoFlags ()
                            {0}
                    })
                }

                Device (CWDT)
                {
                    Name (_HID, EisaId ("INT3F0D"))
                    Name (_CID, EisaId ("PNP0C02"))
                    Name (BUF0, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0454,             // Range Minimum
                            0x0454,             // Range Maximum
                            0x04,               // Alignment
                            0x04,               // Length
                            )
                    })
                    Method (_STA, 0, Serialized)
                    {
                        If (LEqual (WDTE, One))
                        {
                            Return (0x0F)
                        }
                        Else
                        {
                            Return (Zero)
                        }
                    }

                    Method (_CRS, 0, Serialized)
                    {
                        Return (BUF0)
                    }
                }
            }
        }
    }

    Scope (_PR)
    {
        Processor (CPU0, 0x01, 0x00000410, 0x06) {}
        Processor (CPU1, 0x02, 0x00000410, 0x06) {}
        Processor (CPU2, 0x03, 0x00000410, 0x06) {}
        Processor (CPU3, 0x04, 0x00000410, 0x06) {}
        Processor (CPU4, 0x05, 0x00000410, 0x06) {}
        Processor (CPU5, 0x06, 0x00000410, 0x06) {}
        Processor (CPU6, 0x07, 0x00000410, 0x06) {}
        Processor (CPU7, 0x08, 0x00000410, 0x06) {}
    }

    Mutex (MUTX, 0x00)
    OperationRegion (PRT0, SystemIO, 0x80, 0x04)
    Field (PRT0, DWordAcc, Lock, Preserve)
    {
        P80H,   32
    }

    Method (P8XH, 2, Serialized)
    {
        If (LEqual (Arg0, Zero))
        {
            Store (Or (And (P80D, 0xFFFFFF00), Arg1), P80D)
        }

        If (LEqual (Arg0, One))
        {
            Store (Or (And (P80D, 0xFFFF00FF), ShiftLeft (Arg1, 0x08)
                ), P80D)
        }

        If (LEqual (Arg0, 0x02))
        {
            Store (Or (And (P80D, 0xFF00FFFF), ShiftLeft (Arg1, 0x10)
                ), P80D)
        }

        If (LEqual (Arg0, 0x03))
        {
            Store (Or (And (P80D, 0x00FFFFFF), ShiftLeft (Arg1, 0x18)
                ), P80D)
        }

        Store (P80D, P80H)
    }

    OperationRegion (SPRT, SystemIO, 0xB2, 0x02)
    Field (SPRT, ByteAcc, Lock, Preserve)
    {
        SSMP,   8
    }

    Method (_PIC, 1, NotSerialized)
    {
        Store (Arg0, GPIC)
        Store (Arg0, PICM)
    }

    Method (_PTS, 1, NotSerialized)
    {
        Store (Zero, P80D)
        P8XH (Zero, Arg0)
        \_SB.PCI0.LPCB.EC0.ECPS (Arg0)
        If (LEqual (Arg0, 0x03))
        {
            If (LAnd (DTSE, LGreater (TCNT, One)))
            {
                TRAP (TRTD, 0x1E)
            }
        }
    }

    Method (_WAK, 1, Serialized)
    {
        P8XH (One, 0xAB)
        \_SB.PCI0.LPCB.EC0.ECWK (Arg0)
        TMSC ()
        If (NEXP)
        {
            If (And (OSCC, 0x02))
            {
                \_SB.PCI0.NHPG ()
            }

            If (And (OSCC, 0x04))
            {
                \_SB.PCI0.NPME ()
            }
        }

        If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
        {
            If (LAnd (DTSE, LGreater (TCNT, One)))
            {
                TRAP (TRTD, 0x14)
            }

            If (LEqual (OSYS, 0x07D2))
            {
                If (And (CFGD, One))
                {
                    If (LGreater (\_PR.CPU0._PPC, Zero))
                    {
                        Subtract (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC)
                        PNOT ()
                        Add (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC)
                        PNOT ()
                    }
                    Else
                    {
                        Add (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC)
                        PNOT ()
                        Subtract (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC)
                        PNOT ()
                    }
                }
            }

            If (LEqual (RP1D, Zero))
            {
                Notify (\_SB.PCI0.RP01, Zero)
            }

            If (LEqual (RP2D, Zero))
            {
                Notify (\_SB.PCI0.RP02, Zero)
            }

            If (LEqual (RP3D, Zero))
            {
                Notify (\_SB.PCI0.RP03, Zero)
            }

            If (LEqual (RP4D, Zero))
            {
                Notify (\_SB.PCI0.RP04, Zero)
            }

            If (LEqual (RP5D, Zero))
            {
                Notify (\_SB.PCI0.RP05, Zero)
            }

            If (LEqual (RP7D, Zero))
            {
                Notify (\_SB.PCI0.RP07, Zero)
            }

            If (LEqual (RP8D, Zero))
            {
                Notify (\_SB.PCI0.RP08, Zero)
            }
        }

        Return (Package (0x02)
        {
            Zero, 
            Zero
        })
    }

    Method (GETB, 3, Serialized)
    {
        Multiply (Arg0, 0x08, Local0)
        Multiply (Arg1, 0x08, Local1)
        CreateField (Arg2, Local0, Local1, TBF3)
        Return (TBF3)
    }

    Method (PNOT, 0, Serialized)
    {
        If (LGreater (TCNT, One))
        {
            If (And (PDC0, 0x08))
            {
                Notify (\_PR.CPU0, 0x80)
                If (And (PDC0, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU0, 0x81)
                }
            }

            If (And (PDC1, 0x08))
            {
                Notify (\_PR.CPU1, 0x80)
                If (And (PDC1, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU1, 0x81)
                }
            }

            If (And (PDC2, 0x08))
            {
                Notify (\_PR.CPU2, 0x80)
                If (And (PDC2, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU2, 0x81)
                }
            }

            If (And (PDC3, 0x08))
            {
                Notify (\_PR.CPU3, 0x80)
                If (And (PDC3, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU3, 0x81)
                }
            }

            If (And (PDC4, 0x08))
            {
                Notify (\_PR.CPU4, 0x80)
                If (And (PDC4, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU4, 0x81)
                }
            }

            If (And (PDC5, 0x08))
            {
                Notify (\_PR.CPU5, 0x80)
                If (And (PDC5, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU5, 0x81)
                }
            }

            If (And (PDC6, 0x08))
            {
                Notify (\_PR.CPU6, 0x80)
                If (And (PDC6, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU6, 0x81)
                }
            }

            If (And (PDC7, 0x08))
            {
                Notify (\_PR.CPU7, 0x80)
                If (And (PDC7, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU7, 0x81)
                }
            }
        }
        Else
        {
            Notify (\_PR.CPU0, 0x80)
            Sleep (0x64)
            Notify (\_PR.CPU0, 0x81)
        }
    }

    Method (TRAP, 2, Serialized)
    {
        Store (Arg1, SMIF)
        If (LEqual (Arg0, TRTP))
        {
            Store (Zero, TRP0)
        }

        If (LEqual (Arg0, TRTD))
        {
            Store (Arg1, DTSF)
            Store (Zero, TRPD)
            Return (DTSF)
        }

        If (LEqual (Arg0, TRTI))
        {
            Store (Zero, TRPH)
        }

        Return (SMIF)
    }

    Scope (_SB.PCI0)
    {
        Method (_INI, 0, NotSerialized)
        {
            Store (0x07D0, OSYS)
            If (CondRefOf (_OSI, Local0))
            {
                If (_OSI ("Windows 2001"))
                {
                    Store (0x07D1, OSYS)
                }

                If (_OSI ("Windows 2001 SP1"))
                {
                    Store (0x07D1, OSYS)
                }

                If (_OSI ("Windows 2001 SP2"))
                {
                    Store (0x07D2, OSYS)
                }

                If (_OSI ("Windows 2001.1"))
                {
                    Store (0x07D3, OSYS)
                }

                If (_OSI ("Windows 2006"))
                {
                    Store (0x07D6, OSYS)
                }

                If (_OSI ("Windows 2009"))
                {
                    Store (0x07D9, OSYS)
                }

                If (_OSI ("Linux"))
                {
                    Store (0x03E8, OSYS)
                }
            }
        }

        Method (NHPG, 0, Serialized)
        {
            Store (Zero, ^RP01.HPEX)
            Store (Zero, ^RP02.HPEX)
            Store (Zero, ^RP03.HPEX)
            Store (Zero, ^RP04.HPEX)
            Store (One, ^RP01.HPSX)
            Store (One, ^RP02.HPSX)
            Store (One, ^RP03.HPSX)
            Store (One, ^RP04.HPSX)
        }

        Method (NPME, 0, Serialized)
        {
            Store (Zero, ^RP01.PMEX)
            Store (Zero, ^RP02.PMEX)
            Store (Zero, ^RP03.PMEX)
            Store (Zero, ^RP04.PMEX)
            Store (Zero, ^RP05.PMEX)
            Store (Zero, ^RP07.PMEX)
            Store (Zero, ^RP08.PMEX)
            Store (One, ^RP01.PMSX)
            Store (One, ^RP02.PMSX)
            Store (One, ^RP03.PMSX)
            Store (One, ^RP04.PMSX)
            Store (One, ^RP05.PMSX)
            Store (One, ^RP07.PMSX)
            Store (One, ^RP08.PMSX)
        }
    }

    Scope (\)
    {
        Name (PICM, Zero)
        Name (PRWP, Package (0x02)
        {
            Zero, 
            Zero
        })
        Method (GPRW, 2, NotSerialized)
        {
            Store (Arg0, Index (PRWP, Zero))
            Store (ShiftLeft (SS1, One), Local0)
            Or (Local0, ShiftLeft (SS2, 0x02), Local0)
            Or (Local0, ShiftLeft (SS3, 0x03), Local0)
            Or (Local0, ShiftLeft (SS4, 0x04), Local0)
            If (And (ShiftLeft (One, Arg1), Local0))
            {
                Store (Arg1, Index (PRWP, One))
            }
            Else
            {
                ShiftRight (Local0, One, Local0)
                FindSetLeftBit (Local0, Index (PRWP, One))
            }

            Return (PRWP)
        }
    }

    Scope (_SB.PCI0)
    {
        Device (PDRC)
        {
            Name (_HID, EisaId ("PNP0C02"))
            Name (_UID, One)
            Name (BUF0, ResourceTemplate ()
            {
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00004000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00008000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00001000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00001000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00000000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0xFED20000,         // Address Base
                    0x00020000,         // Address Length
                    )
                Memory32Fixed (ReadOnly,
                    0xFED90000,         // Address Base
                    0x00004000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0xFED45000,         // Address Base
                    0x0004B000,         // Address Length
                    )
                Memory32Fixed (ReadOnly,
                    0xFF000000,         // Address Base
                    0x01000000,         // Address Length
                    )
                Memory32Fixed (ReadOnly,
                    0xFEE00000,         // Address Base
                    0x00100000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00001000,         // Address Length
                    )
            })
            Method (_CRS, 0, Serialized)
            {
                CreateDWordField (BUF0, 0x04, RBR0)
                ShiftLeft (^^LPCB.RCBA, 0x0E, RBR0)
                CreateDWordField (BUF0, 0x7C, TBR0)
                Store (TBAB, TBR0)
                CreateDWordField (BUF0, 0x80, TBLN)
                If (LEqual (TBAB, Zero))
                {
                    Store (Zero, TBLN)
                }

                CreateDWordField (BUF0, 0x10, MBR0)
                ShiftLeft (MHBR, 0x0F, MBR0)
                CreateDWordField (BUF0, 0x1C, DBR0)
                ShiftLeft (DIBR, 0x0C, DBR0)
                CreateDWordField (BUF0, 0x28, EBR0)
                ShiftLeft (EPBR, 0x0C, EBR0)
                CreateDWordField (BUF0, 0x34, XBR0)
                ShiftLeft (PXBR, 0x1A, XBR0)
                CreateDWordField (BUF0, 0x38, XSZ0)
                ShiftRight (0x10000000, PXSZ, XSZ0)
                Return (BUF0)
            }
        }
    }

    Method (BRTN, 1, Serialized)
    {
        If (LEqual (And (DID1, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD01, Arg0)
        }

        If (LEqual (And (DID2, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD02, Arg0)
        }

        If (LEqual (And (DID3, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD03, Arg0)
        }

        If (LEqual (And (DID4, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD04, Arg0)
        }

        If (LEqual (And (DID5, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD05, Arg0)
        }

        If (LEqual (And (DID6, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD06, Arg0)
        }

        If (LEqual (And (DID7, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD07, Arg0)
        }

        If (LEqual (And (DID8, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD08, Arg0)
        }
    }

    Scope (_GPE)
    {
        Method (_L0B, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.P0P1, 0x02)
        }

        Method (_L09, 0, NotSerialized)
        {
            If (LEqual (RP1D, Zero))
            {
                \_SB.PCI0.RP01.HPME ()
                Notify (\_SB.PCI0.RP01, 0x02)
            }

            If (LEqual (RP2D, Zero))
            {
                \_SB.PCI0.RP02.HPME ()
                Notify (\_SB.PCI0.RP02, 0x02)
            }

            If (LEqual (RP3D, Zero))
            {
                \_SB.PCI0.RP03.HPME ()
                Notify (\_SB.PCI0.RP03, 0x02)
            }

            If (LEqual (RP4D, Zero))
            {
                \_SB.PCI0.RP04.HPME ()
                Notify (\_SB.PCI0.RP04, 0x02)
            }

            If (LEqual (RP5D, Zero))
            {
                \_SB.PCI0.RP05.HPME ()
                Notify (\_SB.PCI0.RP05, 0x02)
            }

            If (LEqual (RP7D, Zero))
            {
                \_SB.PCI0.RP07.HPME ()
                Notify (\_SB.PCI0.RP07, 0x02)
            }

            If (LEqual (RP8D, Zero))
            {
                \_SB.PCI0.RP08.HPME ()
                Notify (\_SB.PCI0.RP08, 0x02)
            }

            Notify (\_SB.PCI0.PEG0, 0x02)
            Notify (\_SB.PCI0.PEG0.PEGP, 0x02)
            Notify (\_SB.PCI0.PEG1, 0x02)
            Notify (\_SB.PCI0.PEG2, 0x02)
            Notify (\_SB.PCI0.PEG3, 0x02)
        }

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.HDEF, 0x02)
            Notify (\_SB.PCI0.GLAN, 0x02)
        }

        Method (_L01, 0, NotSerialized)
        {
            Add (L01C, One, L01C)
            P8XH (Zero, One)
            P8XH (One, L01C)
            If (LAnd (LEqual (RP1D, Zero), \_SB.PCI0.RP01.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP01.PDCX)
                {
                    Store (One, \_SB.PCI0.RP01.PDCX)
                    Store (One, \_SB.PCI0.RP01.HPSX)
                    If (LNot (\_SB.PCI0.RP01.PDSX))
                    {
                        Store (Zero, \_SB.PCI0.RP01.L0SE)
                    }

                    Notify (\_SB.PCI0.RP01, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP01.HPSX)
                }
            }

            If (LAnd (LEqual (RP2D, Zero), \_SB.PCI0.RP02.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP02.PDCX)
                {
                    Store (One, \_SB.PCI0.RP02.PDCX)
                    Store (One, \_SB.PCI0.RP02.HPSX)
                    If (LNot (\_SB.PCI0.RP02.PDSX))
                    {
                        Store (Zero, \_SB.PCI0.RP02.L0SE)
                    }

                    Notify (\_SB.PCI0.RP02, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP02.HPSX)
                }
            }

            If (LAnd (LEqual (RP3D, Zero), \_SB.PCI0.RP03.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP03.PDCX)
                {
                    Store (One, \_SB.PCI0.RP03.PDCX)
                    Store (One, \_SB.PCI0.RP03.HPSX)
                    If (LNot (\_SB.PCI0.RP03.PDSX))
                    {
                        Store (Zero, \_SB.PCI0.RP03.L0SE)
                    }

                    Notify (\_SB.PCI0.RP03, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP03.HPSX)
                }
            }

            If (LAnd (LEqual (RP4D, Zero), \_SB.PCI0.RP04.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP04.PDCX)
                {
                    Store (One, \_SB.PCI0.RP04.PDCX)
                    Store (One, \_SB.PCI0.RP04.HPSX)
                    If (LNot (\_SB.PCI0.RP04.PDSX))
                    {
                        Store (Zero, \_SB.PCI0.RP04.L0SE)
                    }

                    Notify (\_SB.PCI0.RP04, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP04.HPSX)
                }
            }

            If (LAnd (LEqual (RP5D, Zero), \_SB.PCI0.RP05.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP05.PDCX)
                {
                    Store (One, \_SB.PCI0.RP05.PDCX)
                    Store (One, \_SB.PCI0.RP05.HPSX)
                    If (LNot (\_SB.PCI0.RP05.PDSX))
                    {
                        Store (Zero, \_SB.PCI0.RP05.L0SE)
                    }

                    Notify (\_SB.PCI0.RP05, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP05.HPSX)
                }
            }

            If (LAnd (LEqual (RP7D, Zero), \_SB.PCI0.RP07.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP07.PDCX)
                {
                    Store (One, \_SB.PCI0.RP07.PDCX)
                    Store (One, \_SB.PCI0.RP07.HPSX)
                    If (LNot (\_SB.PCI0.RP07.PDSX))
                    {
                        Store (Zero, \_SB.PCI0.RP07.L0SE)
                    }

                    Notify (\_SB.PCI0.RP07, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP07.HPSX)
                }
            }

            If (LAnd (LEqual (RP8D, Zero), \_SB.PCI0.RP08.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP08.PDCX)
                {
                    Store (One, \_SB.PCI0.RP08.PDCX)
                    Store (One, \_SB.PCI0.RP08.HPSX)
                    If (LNot (\_SB.PCI0.RP08.PDSX))
                    {
                        Store (Zero, \_SB.PCI0.RP08.L0SE)
                    }

                    Notify (\_SB.PCI0.RP08, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP08.HPSX)
                }
            }
        }

        Method (_L02, 0, NotSerialized)
        {
            Store (Zero, GPEC)
            If (CondRefOf (\_SB.PCI0.IEIT.EITV))
            {
                \_SB.PCI0.IEIT.EITV ()
            }

            If (CondRefOf (TNOT))
            {
                TNOT ()
            }
        }

        Method (_L06, 0, NotSerialized)
        {
            If (LAnd (\_SB.PCI0.GFX0.GSSE, LNot (GSMI)))
            {
                \_SB.PCI0.GFX0.GSCI ()
            }
        }
    }

    Scope (\)
    {
        OperationRegion (IO_T, SystemIO, 0x1000, 0x10)
        Field (IO_T, ByteAcc, NoLock, Preserve)
        {
            TRPI,   16, 
                    Offset (0x04), 
                    Offset (0x06), 
                    Offset (0x08), 
            TRP0,   8, 
                    Offset (0x0A), 
                    Offset (0x0B), 
                    Offset (0x0C), 
                    Offset (0x0D), 
                    Offset (0x0E), 
                    Offset (0x0F), 
                    Offset (0x10)
        }

        OperationRegion (IO_D, SystemIO, 0x0810, 0x04)
        Field (IO_D, ByteAcc, NoLock, Preserve)
        {
            TRPD,   8
        }

        OperationRegion (IO_H, SystemIO, 0x1000, 0x04)
        Field (IO_H, ByteAcc, NoLock, Preserve)
        {
            TRPH,   8
        }

        OperationRegion (PMIO, SystemIO, PMBS, 0x80)
        Field (PMIO, ByteAcc, NoLock, Preserve)
        {
                    Offset (0x20), 
                    Offset (0x22), 
                ,   3, 
            GPS3,   1, 
                    Offset (0x28), 
                    Offset (0x2A), 
                ,   3, 
            GPE3,   1, 
                    Offset (0x3C), 
                ,   1, 
            UPRW,   1, 
                    Offset (0x42), 
                ,   1, 
            GPEC,   1, 
                    Offset (0x64), 
                ,   9, 
            SCIS,   1, 
                    Offset (0x66)
        }

        OperationRegion (GPIO, SystemIO, GPBS, 0x64)
        Field (GPIO, ByteAcc, NoLock, Preserve)
        {
            GU00,   8, 
            GU01,   8, 
            GU02,   8, 
            GU03,   8, 
            GIO0,   8, 
            GIO1,   8, 
            GIO2,   8, 
            GIO3,   8, 
                    Offset (0x0C), 
            GL00,   8, 
            GL01,   8, 
            GL02,   8, 
                ,   3, 
            GP27,   1, 
            GP28,   1, 
                    Offset (0x10), 
                    Offset (0x18), 
            GB00,   8, 
            GB01,   8, 
            GB02,   8, 
            GB03,   8, 
                    Offset (0x2C), 
            GIV0,   8, 
            GIV1,   8, 
            GIV2,   8, 
            GIV3,   8, 
            GU04,   8, 
            GU05,   8, 
            GU06,   8, 
            GU07,   8, 
            GIO4,   8, 
            GIO5,   8, 
            GIO6,   8, 
            GIO7,   8, 
            GL04,   8, 
            GL05,   8, 
            GL06,   8, 
            GL07,   8, 
                    Offset (0x40), 
            GU08,   8, 
            GU09,   8, 
            GU0A,   8, 
            GU0B,   8, 
            GIO8,   8, 
            GIO9,   8, 
            GIOA,   8, 
            GIOB,   8, 
            GL08,   8, 
            GL09,   8, 
            GL0A,   8, 
            GL0B,   8
        }

        OperationRegion (RCRB, SystemMemory, SRCB, 0x4000)
        Field (RCRB, DWordAcc, Lock, Preserve)
        {
                    Offset (0x1000), 
                    Offset (0x3000), 
                    Offset (0x3404), 
            HPAS,   2, 
                ,   5, 
            HPAE,   1, 
                    Offset (0x3418), 
                ,   1, 
                ,   1, 
            SATD,   1, 
            SMBD,   1, 
            HDAD,   1, 
                    Offset (0x341A), 
            RP1D,   1, 
            RP2D,   1, 
            RP3D,   1, 
            RP4D,   1, 
            RP5D,   1, 
            RP6D,   1, 
            RP7D,   1, 
            RP8D,   1, 
                    Offset (0x359C), 
            UP0D,   1, 
            UP1D,   1, 
            UP2D,   1, 
            UP3D,   1, 
            UP4D,   1, 
            UP5D,   1, 
            UP6D,   1, 
            UP7D,   1, 
            UP8D,   1, 
            UP9D,   1, 
            UPAD,   1, 
            UPBD,   1, 
            UPCD,   1, 
            UPDD,   1, 
                ,   1, 
                    Offset (0x359E)
        }
    }

    Scope (_SB.PCI0)
    {
        Device (GLAN)
        {
            Name (_ADR, 0x00190000)
            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x0D, 0x04))
            }
        }

        Device (EHC1)
        {
            Name (_ADR, 0x001D0000)
            OperationRegion (PWKE, PCI_Config, 0x62, 0x04)
            Field (PWKE, DWordAcc, NoLock, Preserve)
            {
                    ,   1, 
                PWUC,   8
            }

            Method (_PSW, 1, NotSerialized)
            {
                If (Arg0)
                {
                    Store (Ones, PWUC)
                }
                Else
                {
                    Store (Zero, PWUC)
                }
            }

            Method (_S3D, 0, NotSerialized)
            {
                Return (0x02)
            }

            Method (_S4D, 0, NotSerialized)
            {
                Return (0x02)
            }

            Device (HUBN)
            {
                Name (_ADR, Zero)
                Device (PR01)
                {
                    Name (_ADR, One)
                    Name (_UPC, Package (0x04)
                    {
                        0xFF, 
                        Zero, 
                        Zero, 
                        Zero
                    })
                    Name (_PLD, Package (0x01)
                    {
                        Buffer (0x10)
                        {
                            /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                            /* 0008 */    0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                        }
                    })
                    Device (PR11)
                    {
                        Name (_ADR, One)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }

                    Device (PR12)
                    {
                        Name (_ADR, 0x02)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }

                    Device (PR13)
                    {
                        Name (_ADR, 0x03)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }

                    Device (PR14)
                    {
                        Name (_ADR, 0x04)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                        Alias (SBV1, SDGV)
                        Method (_DSM, 4, Serialized)
                        {
                            Name (_T_0, Zero)
                            If (LEqual (Arg0, Buffer (0x10)
                                    {
                                        /* 0000 */    0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, 
                                        /* 0008 */    0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
                                    }))
                            {
                                Store (ToInteger (Arg2), _T_0)
                                If (LEqual (_T_0, Zero))
                                {
                                    If (LEqual (Arg1, One))
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x07
                                        })
                                    }
                                    Else
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x00
                                        })
                                    }
                                }
                                Else
                                {
                                    If (LEqual (_T_0, One))
                                    {
                                        If (LEqual (SDGV, 0xFF))
                                        {
                                            Return (Zero)
                                        }
                                        Else
                                        {
                                            Return (One)
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_0, 0x02))
                                        {
                                            Return (SDGV)
                                        }
                                    }
                                }
                            }

                            Return (Zero)
                        }
                    }

                    Device (PR15)
                    {
                        Name (_ADR, 0x05)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                        Alias (SBV2, SDGV)
                        Method (_DSM, 4, Serialized)
                        {
                            Name (_T_0, Zero)
                            If (LEqual (Arg0, Buffer (0x10)
                                    {
                                        /* 0000 */    0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, 
                                        /* 0008 */    0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
                                    }))
                            {
                                Store (ToInteger (Arg2), _T_0)
                                If (LEqual (_T_0, Zero))
                                {
                                    If (LEqual (Arg1, One))
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x07
                                        })
                                    }
                                    Else
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x00
                                        })
                                    }
                                }
                                Else
                                {
                                    If (LEqual (_T_0, One))
                                    {
                                        If (LEqual (SDGV, 0xFF))
                                        {
                                            Return (Zero)
                                        }
                                        Else
                                        {
                                            Return (One)
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_0, 0x02))
                                        {
                                            Return (SDGV)
                                        }
                                    }
                                }
                            }

                            Return (Zero)
                        }
                    }

                    Device (PR16)
                    {
                        Name (_ADR, 0x06)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                        Alias (SBV1, SDGV)
                        Method (_DSM, 4, Serialized)
                        {
                            Name (_T_0, Zero)
                            If (LEqual (Arg0, Buffer (0x10)
                                    {
                                        /* 0000 */    0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, 
                                        /* 0008 */    0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
                                    }))
                            {
                                Store (ToInteger (Arg2), _T_0)
                                If (LEqual (_T_0, Zero))
                                {
                                    If (LEqual (Arg1, One))
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x07
                                        })
                                    }
                                    Else
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x00
                                        })
                                    }
                                }
                                Else
                                {
                                    If (LEqual (_T_0, One))
                                    {
                                        If (LEqual (SDGV, 0xFF))
                                        {
                                            Return (Zero)
                                        }
                                        Else
                                        {
                                            Return (One)
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_0, 0x02))
                                        {
                                            Return (SDGV)
                                        }
                                    }
                                }
                            }

                            Return (Zero)
                        }
                    }

                    Device (PR17)
                    {
                        Name (_ADR, 0x07)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                        Alias (SBV2, SDGV)
                        Method (_DSM, 4, Serialized)
                        {
                            Name (_T_0, Zero)
                            If (LEqual (Arg0, Buffer (0x10)
                                    {
                                        /* 0000 */    0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, 
                                        /* 0008 */    0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
                                    }))
                            {
                                Store (ToInteger (Arg2), _T_0)
                                If (LEqual (_T_0, Zero))
                                {
                                    If (LEqual (Arg1, One))
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x07
                                        })
                                    }
                                    Else
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x00
                                        })
                                    }
                                }
                                Else
                                {
                                    If (LEqual (_T_0, One))
                                    {
                                        If (LEqual (SDGV, 0xFF))
                                        {
                                            Return (Zero)
                                        }
                                        Else
                                        {
                                            Return (One)
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_0, 0x02))
                                        {
                                            Return (SDGV)
                                        }
                                    }
                                }
                            }

                            Return (Zero)
                        }
                    }

                    Device (PR18)
                    {
                        Name (_ADR, 0x08)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x0D, 0x04))
            }
        }

        Device (EHC2)
        {
            Name (_ADR, 0x001A0000)
            OperationRegion (PWKE, PCI_Config, 0x62, 0x04)
            Field (PWKE, DWordAcc, NoLock, Preserve)
            {
                    ,   1, 
                PWUC,   6
            }

            Method (_PSW, 1, NotSerialized)
            {
                If (Arg0)
                {
                    Store (Ones, PWUC)
                }
                Else
                {
                    Store (Zero, PWUC)
                }
            }

            Method (_S3D, 0, NotSerialized)
            {
                Return (0x02)
            }

            Method (_S4D, 0, NotSerialized)
            {
                Return (0x02)
            }

            Device (HUBN)
            {
                Name (_ADR, Zero)
                Device (PR01)
                {
                    Name (_ADR, One)
                    Name (_UPC, Package (0x04)
                    {
                        0xFF, 
                        Zero, 
                        Zero, 
                        Zero
                    })
                    Name (_PLD, Package (0x01)
                    {
                        Buffer (0x10)
                        {
                            /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                            /* 0008 */    0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                        }
                    })
                    Device (PR11)
                    {
                        Name (_ADR, One)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }

                    Device (PR12)
                    {
                        Name (_ADR, 0x02)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                        Alias (SBV1, SDGV)
                        Method (_DSM, 4, Serialized)
                        {
                            Name (_T_0, Zero)
                            If (LEqual (Arg0, Buffer (0x10)
                                    {
                                        /* 0000 */    0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, 
                                        /* 0008 */    0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
                                    }))
                            {
                                Store (ToInteger (Arg2), _T_0)
                                If (LEqual (_T_0, Zero))
                                {
                                    If (LEqual (Arg1, One))
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x07
                                        })
                                    }
                                    Else
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x00
                                        })
                                    }
                                }
                                Else
                                {
                                    If (LEqual (_T_0, One))
                                    {
                                        If (LEqual (SDGV, 0xFF))
                                        {
                                            Return (Zero)
                                        }
                                        Else
                                        {
                                            Return (One)
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_0, 0x02))
                                        {
                                            Return (SDGV)
                                        }
                                    }
                                }
                            }

                            Return (Zero)
                        }
                    }

                    Device (PR13)
                    {
                        Name (_ADR, 0x03)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                        Alias (SBV2, SDGV)
                        Method (_DSM, 4, Serialized)
                        {
                            Name (_T_0, Zero)
                            If (LEqual (Arg0, Buffer (0x10)
                                    {
                                        /* 0000 */    0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, 
                                        /* 0008 */    0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
                                    }))
                            {
                                Store (ToInteger (Arg2), _T_0)
                                If (LEqual (_T_0, Zero))
                                {
                                    If (LEqual (Arg1, One))
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x07
                                        })
                                    }
                                    Else
                                    {
                                        Return (Buffer (One)
                                        {
                                            0x00
                                        })
                                    }
                                }
                                Else
                                {
                                    If (LEqual (_T_0, One))
                                    {
                                        If (LEqual (SDGV, 0xFF))
                                        {
                                            Return (Zero)
                                        }
                                        Else
                                        {
                                            Return (One)
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_0, 0x02))
                                        {
                                            Return (SDGV)
                                        }
                                    }
                                }
                            }

                            Return (Zero)
                        }
                    }

                    Device (PR14)
                    {
                        Name (_ADR, 0x04)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xE1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }

                    Device (PR15)
                    {
                        Name (_ADR, 0x05)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }

                    Device (PR16)
                    {
                        Name (_ADR, 0x06)
                        Name (_UPC, Package (0x04)
                        {
                            0xFF, 
                            0xFF, 
                            Zero, 
                            Zero
                        })
                        Name (_PLD, Package (0x01)
                        {
                            Buffer (0x10)
                            {
                                /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                            }
                        })
                    }
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x0D, 0x04))
            }
        }

        Device (HDEF)
        {
            Name (_ADR, 0x001B0000)
            OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
            Field (HDAR, WordAcc, NoLock, Preserve)
            {
                DCKA,   1, 
                        Offset (0x01), 
                DCKM,   1, 
                    ,   6, 
                DCKS,   1, 
                        Offset (0x08), 
                    ,   15, 
                PMES,   1
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x0D, 0x04))
            }
        }

        Device (RP01)
        {
            Name (_ADR, 0x001C0000)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR04 ())
                }

                Return (PR04 ())
            }
        }

        Device (RP02)
        {
            Name (_ADR, 0x001C0001)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR05 ())
                }

                Return (PR05 ())
            }
        }

        Device (RP03)
        {
            Name (_ADR, 0x001C0002)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR06 ())
                }

                Return (PR06 ())
            }
        }

        Device (RP04)
        {
            Name (_ADR, 0x001C0003)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR07 ())
                }

                Return (PR07 ())
            }
        }

        Device (RP05)
        {
            Name (_ADR, 0x001C0004)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR08 ())
                }

                Return (PR08 ())
            }
        }

        Device (RP06)
        {
            Name (_ADR, 0x001C0005)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR09 ())
                }

                Return (PR09 ())
            }
        }

        Device (RP07)
        {
            Name (_ADR, 0x001C0006)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR0E)
                }

                Return (PR0E)
            }
        }

        Device (RP08)
        {
            Name (_ADR, 0x001C0007)
            OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
            Field (PXCS, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x10), 
                L0SE,   1, 
                        Offset (0x11), 
                        Offset (0x12), 
                    ,   13, 
                LASX,   1, 
                        Offset (0x1A), 
                ABPX,   1, 
                    ,   2, 
                PDCX,   1, 
                    ,   2, 
                PDSX,   1, 
                        Offset (0x1B), 
                LSCX,   1, 
                        Offset (0x20), 
                        Offset (0x22), 
                PSPX,   1, 
                        Offset (0x98), 
                    ,   30, 
                HPEX,   1, 
                PMEX,   1, 
                    ,   30, 
                HPSX,   1, 
                PMSX,   1
            }

            Device (PXSX)
            {
                Name (_ADR, Zero)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
            }

            Method (HPME, 0, Serialized)
            {
                If (PMSX)
                {
                    Store (0xC8, Local0)
                    While (Local0)
                    {
                        Store (One, PMSX)
                        If (PMSX)
                        {
                            Decrement (Local0)
                        }
                        Else
                        {
                            Store (Zero, Local0)
                        }
                    }

                    Notify (PXSX, 0x02)
                }
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR0F)
                }

                Return (PR0F)
            }
        }

        Device (SAT0)
        {
            Name (_ADR, 0x001F0002)
        }

        Device (SAT1)
        {
            Name (_ADR, 0x001F0005)
        }

        Device (SBUS)
        {
            Name (_ADR, 0x001F0003)
            OperationRegion (SMBP, PCI_Config, 0x40, 0xC0)
            Field (SMBP, DWordAcc, NoLock, Preserve)
            {
                    ,   2, 
                I2CE,   1
            }

            OperationRegion (SMPB, PCI_Config, 0x20, 0x04)
            Field (SMPB, DWordAcc, NoLock, Preserve)
            {
                    ,   5, 
                SBAR,   11
            }

            OperationRegion (SMBI, SystemIO, ShiftLeft (SBAR, 0x05), 0x10)
            Field (SMBI, ByteAcc, NoLock, Preserve)
            {
                HSTS,   8, 
                        Offset (0x02), 
                HCON,   8, 
                HCOM,   8, 
                TXSA,   8, 
                DAT0,   8, 
                DAT1,   8, 
                HBDR,   8, 
                PECR,   8, 
                RXSA,   8, 
                SDAT,   16
            }

            Method (SSXB, 2, Serialized)
            {
                If (STRT ())
                {
                    Return (Zero)
                }

                Store (Zero, I2CE)
                Store (0xBF, HSTS)
                Store (Arg0, TXSA)
                Store (Arg1, HCOM)
                Store (0x48, HCON)
                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (One)
                }

                Return (Zero)
            }

            Method (SRXB, 1, Serialized)
            {
                If (STRT ())
                {
                    Return (0xFFFF)
                }

                Store (Zero, I2CE)
                Store (0xBF, HSTS)
                Store (Or (Arg0, One), TXSA)
                Store (0x44, HCON)
                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (DAT0)
                }

                Return (0xFFFF)
            }

            Method (SWRB, 3, Serialized)
            {
                If (STRT ())
                {
                    Return (Zero)
                }

                Store (Zero, I2CE)
                Store (0xBF, HSTS)
                Store (Arg0, TXSA)
                Store (Arg1, HCOM)
                Store (Arg2, DAT0)
                Store (0x48, HCON)
                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (One)
                }

                Return (Zero)
            }

            Method (SRDB, 2, Serialized)
            {
                If (STRT ())
                {
                    Return (0xFFFF)
                }

                Store (Zero, I2CE)
                Store (0xBF, HSTS)
                Store (Or (Arg0, One), TXSA)
                Store (Arg1, HCOM)
                Store (0x48, HCON)
                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (DAT0)
                }

                Return (0xFFFF)
            }

            Method (SWRW, 3, Serialized)
            {
                If (STRT ())
                {
                    Return (Zero)
                }

                Store (Zero, I2CE)
                Store (0xBF, HSTS)
                Store (Arg0, TXSA)
                Store (Arg1, HCOM)
                And (Arg2, 0xFF, DAT1)
                And (ShiftRight (Arg2, 0x08), 0xFF, DAT0)
                Store (0x4C, HCON)
                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (One)
                }

                Return (Zero)
            }

            Method (SRDW, 2, Serialized)
            {
                If (STRT ())
                {
                    Return (0xFFFF)
                }

                Store (Zero, I2CE)
                Store (0xBF, HSTS)
                Store (Or (Arg0, One), TXSA)
                Store (Arg1, HCOM)
                Store (0x4C, HCON)
                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (Or (ShiftLeft (DAT0, 0x08), DAT1))
                }

                Return (0xFFFFFFFF)
            }

            Method (SBLW, 4, Serialized)
            {
                If (STRT ())
                {
                    Return (Zero)
                }

                Store (Arg3, I2CE)
                Store (0xBF, HSTS)
                Store (Arg0, TXSA)
                Store (Arg1, HCOM)
                Store (SizeOf (Arg2), DAT0)
                Store (Zero, Local1)
                Store (DerefOf (Index (Arg2, Zero)), HBDR)
                Store (0x54, HCON)
                While (LGreater (SizeOf (Arg2), Local1))
                {
                    Store (0x0FA0, Local0)
                    While (LAnd (LNot (And (HSTS, 0x80)), Local0))
                    {
                        Decrement (Local0)
                        Stall (0x32)
                    }

                    If (LNot (Local0))
                    {
                        KILL ()
                        Return (Zero)
                    }

                    Store (0x80, HSTS)
                    Increment (Local1)
                    If (LGreater (SizeOf (Arg2), Local1))
                    {
                        Store (DerefOf (Index (Arg2, Local1)), HBDR)
                    }
                }

                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (One)
                }

                Return (Zero)
            }

            Method (SBLR, 3, Serialized)
            {
                Name (TBUF, Buffer (0x0100) {})
                If (STRT ())
                {
                    Return (Zero)
                }

                Store (Arg2, I2CE)
                Store (0xBF, HSTS)
                Store (Or (Arg0, One), TXSA)
                Store (Arg1, HCOM)
                Store (0x54, HCON)
                Store (0x0FA0, Local0)
                While (LAnd (LNot (And (HSTS, 0x80)), Local0))
                {
                    Decrement (Local0)
                    Stall (0x32)
                }

                If (LNot (Local0))
                {
                    KILL ()
                    Return (Zero)
                }

                Store (DAT0, Index (TBUF, Zero))
                Store (0x80, HSTS)
                Store (One, Local1)
                While (LLess (Local1, DerefOf (Index (TBUF, Zero))))
                {
                    Store (0x0FA0, Local0)
                    While (LAnd (LNot (And (HSTS, 0x80)), Local0))
                    {
                        Decrement (Local0)
                        Stall (0x32)
                    }

                    If (LNot (Local0))
                    {
                        KILL ()
                        Return (Zero)
                    }

                    Store (HBDR, Index (TBUF, Local1))
                    Store (0x80, HSTS)
                    Increment (Local1)
                }

                If (COMP ())
                {
                    Or (HSTS, 0xFF, HSTS)
                    Return (TBUF)
                }

                Return (Zero)
            }

            Method (STRT, 0, Serialized)
            {
                Store (0xC8, Local0)
                While (Local0)
                {
                    If (And (HSTS, 0x40))
                    {
                        Decrement (Local0)
                        Sleep (One)
                        If (LEqual (Local0, Zero))
                        {
                            Return (One)
                        }
                    }
                    Else
                    {
                        Store (Zero, Local0)
                    }
                }

                Store (0x0FA0, Local0)
                While (Local0)
                {
                    If (And (HSTS, One))
                    {
                        Decrement (Local0)
                        Stall (0x32)
                        If (LEqual (Local0, Zero))
                        {
                            KILL ()
                        }
                    }
                    Else
                    {
                        Return (Zero)
                    }
                }

                Return (One)
            }

            Method (COMP, 0, Serialized)
            {
                Store (0x0FA0, Local0)
                While (Local0)
                {
                    If (And (HSTS, 0x02))
                    {
                        Return (One)
                    }
                    Else
                    {
                        Decrement (Local0)
                        Stall (0x32)
                        If (LEqual (Local0, Zero))
                        {
                            KILL ()
                        }
                    }
                }

                Return (Zero)
            }

            Method (KILL, 0, Serialized)
            {
                Or (HCON, 0x02, HCON)
                Or (HSTS, 0xFF, HSTS)
            }
        }
    }

    Scope (_SB.PCI0.SAT0)
    {
        Device (PRT4)
        {
            Name (_ADR, 0x0004FFFF)
            Method (_DSM, 4, NotSerialized)
            {
                Name (_T_1, Zero)
                Name (_T_0, Zero)
                If (LEqual (Arg0, Buffer (0x10)
                        {
                            /* 0000 */    0x30, 0xEF, 0xFA, 0xBD, 0xBB, 0xAE, 0xDE, 0x11, 
                            /* 0008 */    0x8A, 0x39, 0x08, 0x00, 0x20, 0x0C, 0x9A, 0x66
                        }))
                {
                    Store (ToInteger (Arg2), _T_0)
                    If (LEqual (_T_0, Zero))
                    {
                        Store (ToInteger (Arg1), _T_1)
                        If (LEqual (_T_1, One))
                        {
                            If (LEqual (PFLV, FDTP))
                            {
                                Return (Buffer (One)
                                {
                                    0x00
                                })
                            }

                            Return (Buffer (One)
                            {
                                0x0F
                            })
                        }
                        Else
                        {
                            Return (Buffer (One)
                            {
                                0x00
                            })
                        }
                    }
                    Else
                    {
                        If (LEqual (_T_0, One))
                        {
                            Return (One)
                        }
                        Else
                        {
                            If (LEqual (_T_0, 0x02))
                            {
                                Store (Zero, GPE3)
                                If (LEqual (And (GL00, 0x08), 0x08))
                                {
                                    Or (GIV0, 0x08, GIV0)
                                }
                                Else
                                {
                                    And (GIV0, 0xF7, GIV0)
                                }

                                And (GL08, 0xEF, GL08)
                                Sleep (0xC8)
                                Store (One, GPS3)
                                Store (One, GPE3)
                                Return (One)
                            }
                            Else
                            {
                                If (LEqual (_T_0, 0x03))
                                {
                                    Store (Zero, GPE3)
                                    Store (One, GPS3)
                                    Or (GL08, 0x10, GL08)
                                    Return (One)
                                }
                                Else
                                {
                                    Return (Zero)
                                }
                            }
                        }
                    }
                }
                Else
                {
                    Return (Zero)
                }
            }
        }
    }

    Scope (_GPE)
    {
        Method (_L13, 0, NotSerialized)
        {
            If (LEqual (PFLV, FDTP))
            {
                Return (Zero)
            }

            Store (Zero, GPE3)
            Or (GL08, 0x10, GL08)
            Notify (\_SB.PCI0.SAT0, 0x84)
            Return (Zero)
        }
    }

    Scope (_SB.PCI0)
    {
        Device (PEG0)
        {
            Name (_ADR, 0x00010000)
            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR02 ())
                }

                Return (PR02 ())
            }

            Device (PEGP)
            {
                Name (_ADR, Zero)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x09, 0x04))
                }
            }
        }

        Device (PEG1)
        {
            Name (_ADR, 0x00010001)
            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR0A ())
                }

                Return (PR0A ())
            }
        }

        Device (PEG2)
        {
            Name (_ADR, 0x00010002)
            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR0B ())
                }

                Return (PR0B ())
            }
        }

        Device (PEG3)
        {
            Name (_ADR, 0x00060000)
            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR0C)
                }

                Return (PR0C)
            }
        }

        Device (B0D4)
        {
            Name (_ADR, 0x00040000)
        }

        Device (GFX0)
        {
            Name (_ADR, 0x00020000)
            Method (_INI, 0, NotSerialized)
            {
                Store (One, CLID)
            }

            Method (PCPC, 0, NotSerialized)
            {
            }

            Method (PAPR, 0, NotSerialized)
            {
                Return (Zero)
            }

            Method (_DOS, 1, NotSerialized)
            {
                Store (And (Arg0, 0x03), DSEN)
                If (LEqual (And (Arg0, 0x03), Zero))
                {
                    If (CondRefOf (HDOS))
                    {
                        HDOS ()
                    }
                }
            }

            Method (_DOD, 0, NotSerialized)
            {
                If (CondRefOf (IDAB)) {}
                Else
                {
                    Store (NDID, Local0)
                    Store (Zero, NDID)
                    If (LNotEqual (DIDL, Zero))
                    {
                        Store (SDDL (DIDL), DID1)
                    }

                    If (LNotEqual (DDL2, Zero))
                    {
                        Store (SDDL (DDL2), DID2)
                    }

                    If (LNotEqual (DDL3, Zero))
                    {
                        Store (SDDL (DDL3), DID3)
                    }

                    If (LNotEqual (DDL4, Zero))
                    {
                        Store (SDDL (DDL4), DID4)
                    }

                    If (LNotEqual (DDL5, Zero))
                    {
                        Store (SDDL (DDL5), DID5)
                    }

                    If (LNotEqual (DDL6, Zero))
                    {
                        Store (SDDL (DDL6), DID6)
                    }

                    If (LNotEqual (DDL7, Zero))
                    {
                        Store (SDDL (DDL7), DID7)
                    }

                    If (LNotEqual (DDL8, Zero))
                    {
                        Store (SDDL (DDL8), DID8)
                    }

                    If (LEqual (NDID, Zero))
                    {
                        Store (Local0, NDID)
                    }
                }

                If (LEqual (NDID, One))
                {
                    Name (TMP1, Package (0x01)
                    {
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP1, Zero))
                    Return (TMP1)
                }

                If (LEqual (NDID, 0x02))
                {
                    Name (TMP2, Package (0x02)
                    {
                        0xFFFFFFFF, 
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP2, Zero))
                    Store (Or (0x00010000, DID2), Index (TMP2, One))
                    Return (TMP2)
                }

                If (LEqual (NDID, 0x03))
                {
                    Name (TMP3, Package (0x03)
                    {
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP3, Zero))
                    Store (Or (0x00010000, DID2), Index (TMP3, One))
                    Store (Or (0x00010000, DID3), Index (TMP3, 0x02))
                    Return (TMP3)
                }

                If (LEqual (NDID, 0x04))
                {
                    Name (TMP4, Package (0x04)
                    {
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP4, Zero))
                    Store (Or (0x00010000, DID2), Index (TMP4, One))
                    Store (Or (0x00010000, DID3), Index (TMP4, 0x02))
                    Store (Or (0x00010000, DID4), Index (TMP4, 0x03))
                    Return (TMP4)
                }

                If (LEqual (NDID, 0x05))
                {
                    Name (TMP5, Package (0x05)
                    {
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP5, Zero))
                    Store (Or (0x00010000, DID2), Index (TMP5, One))
                    Store (Or (0x00010000, DID3), Index (TMP5, 0x02))
                    Store (Or (0x00010000, DID4), Index (TMP5, 0x03))
                    Store (Or (0x00010000, DID5), Index (TMP5, 0x04))
                    Return (TMP5)
                }

                If (LEqual (NDID, 0x06))
                {
                    Name (TMP6, Package (0x06)
                    {
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP6, Zero))
                    Store (Or (0x00010000, DID2), Index (TMP6, One))
                    Store (Or (0x00010000, DID3), Index (TMP6, 0x02))
                    Store (Or (0x00010000, DID4), Index (TMP6, 0x03))
                    Store (Or (0x00010000, DID5), Index (TMP6, 0x04))
                    Store (Or (0x00010000, DID6), Index (TMP6, 0x05))
                    Return (TMP6)
                }

                If (LEqual (NDID, 0x07))
                {
                    Name (TMP7, Package (0x07)
                    {
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP7, Zero))
                    Store (Or (0x00010000, DID2), Index (TMP7, One))
                    Store (Or (0x00010000, DID3), Index (TMP7, 0x02))
                    Store (Or (0x00010000, DID4), Index (TMP7, 0x03))
                    Store (Or (0x00010000, DID5), Index (TMP7, 0x04))
                    Store (Or (0x00010000, DID6), Index (TMP7, 0x05))
                    Store (Or (0x00010000, DID7), Index (TMP7, 0x06))
                    Return (TMP7)
                }

                If (LEqual (NDID, 0x08))
                {
                    Name (TMP8, Package (0x08)
                    {
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF, 
                        0xFFFFFFFF
                    })
                    Store (Or (0x00010000, DID1), Index (TMP8, Zero))
                    Store (Or (0x00010000, DID2), Index (TMP8, One))
                    Store (Or (0x00010000, DID3), Index (TMP8, 0x02))
                    Store (Or (0x00010000, DID4), Index (TMP8, 0x03))
                    Store (Or (0x00010000, DID5), Index (TMP8, 0x04))
                    Store (Or (0x00010000, DID6), Index (TMP8, 0x05))
                    Store (Or (0x00010000, DID7), Index (TMP8, 0x06))
                    Store (Or (0x00010000, DID8), Index (TMP8, 0x07))
                    Return (TMP8)
                }

                If (LEqual (NDID, 0x09))
                {
                    If (CondRefOf (HWID))
                    {
                        Return (HWID)
                    }
                }

                Return (Package (0x01)
                {
                    0x0400
                })
            }

            Device (DD01)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID1, Zero))
                    {
                        Return (One)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID1))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    Return (CDDS (DID1))
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD1)
                    }

                    Return (NDDS (DID1))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Device (DD02)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID2, Zero))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID2))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    Return (CDDS (DID2))
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD2)
                    }

                    Return (NDDS (DID2))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Device (DD03)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID3, Zero))
                    {
                        Return (0x03)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID3))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    If (LEqual (DID3, Zero))
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (CDDS (DID3))
                    }
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD3)
                    }

                    Return (NDDS (DID3))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Device (DD04)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID4, Zero))
                    {
                        Return (0x04)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID4))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    If (LEqual (DID4, Zero))
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (CDDS (DID4))
                    }
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD4)
                    }

                    Return (NDDS (DID4))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Device (DD05)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID5, Zero))
                    {
                        Return (0x05)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID5))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    If (LEqual (DID5, Zero))
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (CDDS (DID5))
                    }
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD5)
                    }

                    Return (NDDS (DID5))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Device (DD06)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID6, Zero))
                    {
                        Return (0x06)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID6))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    If (LEqual (DID6, Zero))
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (CDDS (DID6))
                    }
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD6)
                    }

                    Return (NDDS (DID6))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Device (DD07)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID7, Zero))
                    {
                        Return (0x07)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID7))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    If (LEqual (DID7, Zero))
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (CDDS (DID7))
                    }
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD7)
                    }

                    Return (NDDS (DID7))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Device (DD08)
            {
                Method (_ADR, 0, Serialized)
                {
                    If (LEqual (DID8, Zero))
                    {
                        Return (0x08)
                    }
                    Else
                    {
                        Return (And (0xFFFF, DID8))
                    }
                }

                Method (_DCS, 0, NotSerialized)
                {
                    If (LEqual (DID8, Zero))
                    {
                        Return (0x0B)
                    }
                    Else
                    {
                        Return (CDDS (DID8))
                    }
                }

                Method (_DGS, 0, NotSerialized)
                {
                    If (LAnd (LEqual (And (SGMD, One), One), CondRefOf (SNXD
                        )))
                    {
                        Return (NXD8)
                    }

                    Return (NDDS (DID8))
                }

                Method (_DSS, 1, NotSerialized)
                {
                    If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                    {
                        Store (NSTE, CSTE)
                    }
                }
            }

            Method (SDDL, 1, NotSerialized)
            {
                Increment (NDID)
                Store (And (Arg0, 0x0F0F), Local0)
                Or (0x80000000, Local0, Local1)
                If (LEqual (DIDL, Local0))
                {
                    Return (Local1)
                }

                If (LEqual (DDL2, Local0))
                {
                    Return (Local1)
                }

                If (LEqual (DDL3, Local0))
                {
                    Return (Local1)
                }

                If (LEqual (DDL4, Local0))
                {
                    Return (Local1)
                }

                If (LEqual (DDL5, Local0))
                {
                    Return (Local1)
                }

                If (LEqual (DDL6, Local0))
                {
                    Return (Local1)
                }

                If (LEqual (DDL7, Local0))
                {
                    Return (Local1)
                }

                If (LEqual (DDL8, Local0))
                {
                    Return (Local1)
                }

                Return (Zero)
            }

            Method (CDDS, 1, NotSerialized)
            {
                Store (And (Arg0, 0x0F0F), Local0)
                If (LEqual (Zero, Local0))
                {
                    Return (0x1D)
                }

                If (LEqual (CADL, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CAL2, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CAL3, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CAL4, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CAL5, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CAL6, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CAL7, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CAL8, Local0))
                {
                    Return (0x1F)
                }

                If (LEqual (CADL, Zero))
                {
                    If (LEqual (And (Arg0, 0x0F0F), 0x0400))
                    {
                        Return (0x1F)
                    }
                }

                Return (0x1D)
            }

            Method (NDDS, 1, NotSerialized)
            {
                Store (And (Arg0, 0x0F0F), Local0)
                If (LEqual (Zero, Local0))
                {
                    Return (Zero)
                }

                If (LEqual (NADL, Local0))
                {
                    Return (One)
                }

                If (LEqual (NDL2, Local0))
                {
                    Return (One)
                }

                If (LEqual (NDL3, Local0))
                {
                    Return (One)
                }

                If (LEqual (NDL4, Local0))
                {
                    Return (One)
                }

                If (LEqual (NDL5, Local0))
                {
                    Return (One)
                }

                If (LEqual (NDL6, Local0))
                {
                    Return (One)
                }

                If (LEqual (NDL7, Local0))
                {
                    Return (One)
                }

                If (LEqual (NDL8, Local0))
                {
                    Return (One)
                }

                If (LEqual (NADL, Zero))
                {
                    If (LEqual (And (Arg0, 0x0F0F), 0x0400))
                    {
                        Return (One)
                    }
                }

                Return (Zero)
            }

            Scope (^^PCI0)
            {
                OperationRegion (MCHP, PCI_Config, 0x40, 0xC0)
                Field (MCHP, AnyAcc, NoLock, Preserve)
                {
                            Offset (0x60), 
                    TASM,   10, 
                            Offset (0x62)
                }
            }

            OperationRegion (IGDP, PCI_Config, 0x40, 0xC0)
            Field (IGDP, AnyAcc, NoLock, Preserve)
            {
                        Offset (0x12), 
                    ,   1, 
                GIVD,   1, 
                    ,   2, 
                GUMA,   3, 
                        Offset (0x14), 
                    ,   4, 
                GMFN,   1, 
                        Offset (0x18), 
                        Offset (0xA4), 
                ASLE,   8, 
                        Offset (0xA8), 
                GSSE,   1, 
                GSSB,   14, 
                GSES,   1, 
                        Offset (0xB0), 
                    ,   12, 
                CDVL,   1, 
                        Offset (0xB2), 
                        Offset (0xB5), 
                LBPC,   8, 
                        Offset (0xBC), 
                ASLS,   32
            }

            OperationRegion (IGDM, SystemMemory, ASLB, 0x2000)
            Field (IGDM, AnyAcc, NoLock, Preserve)
            {
                SIGN,   128, 
                SIZE,   32, 
                OVER,   32, 
                SVER,   256, 
                VVER,   128, 
                GVER,   128, 
                MBOX,   32, 
                DMOD,   32, 
                        Offset (0x100), 
                DRDY,   32, 
                CSTS,   32, 
                CEVT,   32, 
                        Offset (0x120), 
                DIDL,   32, 
                DDL2,   32, 
                DDL3,   32, 
                DDL4,   32, 
                DDL5,   32, 
                DDL6,   32, 
                DDL7,   32, 
                DDL8,   32, 
                CPDL,   32, 
                CPL2,   32, 
                CPL3,   32, 
                CPL4,   32, 
                CPL5,   32, 
                CPL6,   32, 
                CPL7,   32, 
                CPL8,   32, 
                CADL,   32, 
                CAL2,   32, 
                CAL3,   32, 
                CAL4,   32, 
                CAL5,   32, 
                CAL6,   32, 
                CAL7,   32, 
                CAL8,   32, 
                NADL,   32, 
                NDL2,   32, 
                NDL3,   32, 
                NDL4,   32, 
                NDL5,   32, 
                NDL6,   32, 
                NDL7,   32, 
                NDL8,   32, 
                ASLP,   32, 
                TIDX,   32, 
                CHPD,   32, 
                CLID,   32, 
                CDCK,   32, 
                SXSW,   32, 
                EVTS,   32, 
                CNOT,   32, 
                NRDY,   32, 
                        Offset (0x200), 
                SCIE,   1, 
                GEFC,   4, 
                GXFC,   3, 
                GESF,   8, 
                        Offset (0x204), 
                PARM,   32, 
                DSLP,   32, 
                        Offset (0x300), 
                ARDY,   32, 
                ASLC,   32, 
                TCHE,   32, 
                ALSI,   32, 
                BCLP,   32, 
                PFIT,   32, 
                CBLV,   32, 
                BCLM,   320, 
                CPFM,   32, 
                EPFM,   32, 
                PLUT,   592, 
                PFMB,   32, 
                CCDV,   32, 
                PCFT,   32, 
                        Offset (0x400), 
                GVD1,   49152, 
                PHED,   32, 
                BDDC,   2048
            }

            Name (DBTB, Package (0x15)
            {
                Zero, 
                0x07, 
                0x38, 
                0x01C0, 
                0x0E00, 
                0x3F, 
                0x01C7, 
                0x0E07, 
                0x01F8, 
                0x0E38, 
                0x0FC0, 
                Zero, 
                Zero, 
                Zero, 
                Zero, 
                Zero, 
                0x7000, 
                0x7007, 
                0x7038, 
                0x71C0, 
                0x7E00
            })
            Name (CDCT, Package (0x05)
            {
                Package (0x02)
                {
                    0xE4, 
                    0x0140
                }, 

                Package (0x02)
                {
                    0xDE, 
                    0x014D
                }, 

                Package (0x02)
                {
                    0xDE, 
                    0x014D
                }, 

                Package (0x02)
                {
                    Zero, 
                    Zero
                }, 

                Package (0x02)
                {
                    0xDE, 
                    0x014D
                }
            })
            Name (SUCC, One)
            Name (NVLD, 0x02)
            Name (CRIT, 0x04)
            Name (NCRT, 0x06)
            Method (GSCI, 0, Serialized)
            {
                Method (GBDA, 0, Serialized)
                {
                    If (LEqual (GESF, Zero))
                    {
                        Store (0x0679, PARM)
                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, One))
                    {
                        Store (0x0240, PARM)
                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x04))
                    {
                        And (PARM, 0xEFFF0000, PARM)
                        And (PARM, ShiftLeft (DerefOf (Index (DBTB, IBTT)), 0x10), 
                            PARM)
                        Or (IBTT, PARM, PARM)
                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x05))
                    {
                        Store (IPSC, PARM)
                        Or (PARM, ShiftLeft (IPAT, 0x08), PARM)
                        Add (PARM, 0x0100, PARM)
                        Or (PARM, ShiftLeft (LIDS, 0x10), PARM)
                        Add (PARM, 0x00010000, PARM)
                        Or (PARM, ShiftLeft (IBIA, 0x14), PARM)
                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x06))
                    {
                        Store (ITVF, PARM)
                        Or (PARM, ShiftLeft (ITVM, 0x04), PARM)
                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x07))
                    {
                        Store (GIVD, PARM)
                        XOr (PARM, One, PARM)
                        Or (PARM, ShiftLeft (GMFN, One), PARM)
                        Or (PARM, 0x1800, PARM)
                        Or (PARM, ShiftLeft (IDMS, 0x11), PARM)
                        Or (ShiftLeft (DerefOf (Index (DerefOf (Index (CDCT, HVCO)), CDVL
                            )), 0x15), PARM, PARM)
                        Store (One, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x0A))
                    {
                        Store (Zero, PARM)
                        If (ISSC)
                        {
                            Or (PARM, 0x03, PARM)
                        }

                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x0B))
                    {
                        Store (KSV0, PARM)
                        Store (KSV1, GESF)
                        Return (SUCC)
                    }

                    Store (Zero, GESF)
                    Return (CRIT)
                }

                Method (SBCB, 0, Serialized)
                {
                    If (LEqual (GESF, Zero))
                    {
                        Store (Zero, PARM)
                        Store (0x000F87FD, PARM)
                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, One))
                    {
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x03))
                    {
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x04))
                    {
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x05))
                    {
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x06))
                    {
                        Store (And (PARM, 0x0F), ITVF)
                        Store (ShiftRight (And (PARM, 0xF0), 0x04), ITVM)
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x07))
                    {
                        If (LEqual (PARM, Zero))
                        {
                            Store (CLID, Local0)
                            If (And (0x80000000, Local0))
                            {
                                And (CLID, 0x0F, CLID)
                                GLID (CLID)
                            }
                        }

                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x08))
                    {
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x09))
                    {
                        And (PARM, 0xFF, IBTT)
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x0A))
                    {
                        And (PARM, 0xFF, IPSC)
                        If (And (ShiftRight (PARM, 0x08), 0xFF))
                        {
                            And (ShiftRight (PARM, 0x08), 0xFF, IPAT)
                            Decrement (IPAT)
                        }

                        And (ShiftRight (PARM, 0x14), 0x07, IBIA)
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x0B))
                    {
                        And (ShiftRight (PARM, One), One, IF1E)
                        If (And (PARM, 0x0001E000))
                        {
                            And (ShiftRight (PARM, 0x0D), 0x0F, IDMS)
                        }
                        Else
                        {
                            And (ShiftRight (PARM, 0x11), 0x0F, IDMS)
                        }

                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x10))
                    {
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x11))
                    {
                        Store (ShiftLeft (LIDS, 0x08), PARM)
                        Add (PARM, 0x0100, PARM)
                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x12))
                    {
                        If (And (PARM, One))
                        {
                            If (LEqual (ShiftRight (PARM, One), One))
                            {
                                Store (One, ISSC)
                            }
                            Else
                            {
                                Store (Zero, GESF)
                                Return (CRIT)
                            }
                        }
                        Else
                        {
                            Store (Zero, ISSC)
                        }

                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x13))
                    {
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    If (LEqual (GESF, 0x14))
                    {
                        And (PARM, 0x0F, PAVP)
                        Store (Zero, GESF)
                        Store (Zero, PARM)
                        Return (SUCC)
                    }

                    Store (Zero, GESF)
                    Return (SUCC)
                }

                If (LEqual (GEFC, 0x04))
                {
                    Store (GBDA (), GXFC)
                }

                If (LEqual (GEFC, 0x06))
                {
                    Store (SBCB (), GXFC)
                }

                Store (Zero, GEFC)
                Store (One, SCIS)
                Store (Zero, GSSE)
                Store (Zero, SCIE)
                Return (Zero)
            }

            Method (PDRD, 0, NotSerialized)
            {
                If (LNot (DRDY))
                {
                    Sleep (ASLP)
                }

                Return (LNot (DRDY))
            }

            Method (PSTS, 0, NotSerialized)
            {
                If (LGreater (CSTS, 0x02))
                {
                    Sleep (ASLP)
                }

                Return (LEqual (CSTS, 0x03))
            }

            Method (GNOT, 2, NotSerialized)
            {
                If (PDRD ())
                {
                    Return (One)
                }

                Store (Arg0, CEVT)
                Store (0x03, CSTS)
                If (LAnd (LEqual (CHPD, Zero), LEqual (Arg1, Zero)))
                {
                    If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                    {
                        Notify (PCI0, Arg1)
                    }
                    Else
                    {
                        Notify (GFX0, Arg1)
                    }
                }

                If (CondRefOf (HNOT))
                {
                    HNOT (Arg0)
                }
                Else
                {
                    Notify (GFX0, 0x80)
                }

                Return (Zero)
            }

            Method (GHDS, 1, NotSerialized)
            {
                Store (Arg0, TIDX)
                Return (GNOT (One, Zero))
            }

            Method (GLID, 1, NotSerialized)
            {
                If (LEqual (Arg0, One))
                {
                    Store (0x03, CLID)
                }
                Else
                {
                    Store (Arg0, CLID)
                }

                Return (GNOT (0x02, Zero))
            }

            Method (GDCK, 1, NotSerialized)
            {
                Store (Arg0, CDCK)
                Return (GNOT (0x04, Zero))
            }

            Method (PARD, 0, NotSerialized)
            {
                If (LNot (ARDY))
                {
                    Sleep (ASLP)
                }

                Return (LNot (ARDY))
            }

            Method (AINT, 2, NotSerialized)
            {
                If (LNot (And (TCHE, ShiftLeft (One, Arg0))))
                {
                    Return (One)
                }

                If (PARD ())
                {
                    Return (One)
                }

                If (LEqual (Arg0, 0x02))
                {
                    If (CPFM)
                    {
                        And (CPFM, 0x0F, Local0)
                        And (EPFM, 0x0F, Local1)
                        If (LEqual (Local0, One))
                        {
                            If (And (Local1, 0x06))
                            {
                                Store (0x06, PFIT)
                            }
                            Else
                            {
                                If (And (Local1, 0x08))
                                {
                                    Store (0x08, PFIT)
                                }
                                Else
                                {
                                    Store (One, PFIT)
                                }
                            }
                        }

                        If (LEqual (Local0, 0x06))
                        {
                            If (And (Local1, 0x08))
                            {
                                Store (0x08, PFIT)
                            }
                            Else
                            {
                                If (And (Local1, One))
                                {
                                    Store (One, PFIT)
                                }
                                Else
                                {
                                    Store (0x06, PFIT)
                                }
                            }
                        }

                        If (LEqual (Local0, 0x08))
                        {
                            If (And (Local1, One))
                            {
                                Store (One, PFIT)
                            }
                            Else
                            {
                                If (And (Local1, 0x06))
                                {
                                    Store (0x06, PFIT)
                                }
                                Else
                                {
                                    Store (0x08, PFIT)
                                }
                            }
                        }
                    }
                    Else
                    {
                        XOr (PFIT, 0x07, PFIT)
                    }

                    Or (PFIT, 0x80000000, PFIT)
                    Store (0x04, ASLC)
                }
                Else
                {
                    If (LEqual (Arg0, One))
                    {
                        Store (Divide (Multiply (Arg1, 0xFF), 0x64, ), BCLP)
                        Or (BCLP, 0x80000000, BCLP)
                        Store (0x02, ASLC)
                    }
                    Else
                    {
                        If (LEqual (Arg0, Zero))
                        {
                            Store (Arg1, ALSI)
                            Store (One, ASLC)
                        }
                        Else
                        {
                            Return (One)
                        }
                    }
                }

                Store (One, ASLE)
                Return (Zero)
            }

            Method (SCIP, 0, NotSerialized)
            {
                If (LNotEqual (OVER, Zero))
                {
                    Return (LNot (GSMI))
                }

                Return (Zero)
            }

            Device (^^MEM2)
            {
                Name (_HID, EisaId ("PNP0C01"))
                Name (_UID, 0x02)
                Name (CRS, ResourceTemplate ()
                {
                    Memory32Fixed (ReadWrite,
                        0x20000000,         // Address Base
                        0x00200000,         // Address Length
                        )
                    Memory32Fixed (ReadWrite,
                        0x40000000,         // Address Base
                        0x00200000,         // Address Length
                        )
                })
                Method (_CRS, 0, NotSerialized)
                {
                    If (IGDS)
                    {
                        Return (CRS)
                    }
                }
            }
        }
    }

    Scope (\)
    {
        OperationRegion (CNVS, SystemMemory, 0xB6F9E018, 0x00000800)
        Field (CNVS, AnyAcc, Lock, Preserve)
        {
            SFUN,   8, 
            SPR0,   8, 
            SPR1,   8, 
            SPR2,   8, 
            WNVA,   32, 
            WNVB,   32, 
            WNVC,   32, 
            WNVD,   32, 
            WFLG,   32, 
            WNVS,   32, 
            WNVI,   32, 
            TSMI,   8, 
                    Offset (0x400), 
            WDBA,   32, 
                    Offset (0x408), 
            SGSD,   32, 
            CDST,   16, 
            NDST,   16, 
                    Offset (0x411), 
                    Offset (0x412), 
            SKUT,   8, 
            MOID,   8, 
            GPUT,   8, 
            PMDP,   8, 
            VNTR,   8, 
            TRBO,   8, 
            DDST,   16, 
            BRAN,   8, 
                    Offset (0x41C), 
            OSBT,   8, 
            DCMS,   8, 
            TMST,   8, 
            CTMS,   8, 
                    Offset (0x440), 
            AWCB,   384, 
            AWDB,   640, 
                    Offset (0x600)
        }

        Method (TRPS, 2, NotSerialized)
        {
            Acquire (MSMI, 0xFFFF)
            Store (Arg1, SPR0)
            Store (Arg0, SFUN)
            Store (TSMI, SSMP)
            Store (SPR0, Local0)
            Release (MSMI)
            Return (Local0)
        }
    }

    Scope (\)
    {
        Mutex (MSMI, 0x07)
        Method (WSMI, 1, NotSerialized)
        {
            Store (Arg0, SFUN)
            Store (TSMI, SSMP)
        }

        Method (HKEY, 1, NotSerialized)
        {
            TRPS (0x14, Arg0)
        }

        Method (LAMN, 1, NotSerialized)
        {
            If (\_SB.AMW0.WLMP)
            {
                Store (Arg0, \_SB.AMW0.WLID)
                Notify (\_SB.AMW0, 0xB0)
            }
            Else
            {
                TRPS (0x13, Arg0)
            }
        }

        Method (RBEC, 1, NotSerialized)
        {
            Return (TRPS (0x10, Arg0))
        }

        Method (WBEC, 2, NotSerialized)
        {
            Acquire (MSMI, 0xFFFF)
            Store (Arg1, SPR1)
            Store (Arg0, SPR0)
            Store (0x11, SFUN)
            Store (TSMI, SSMP)
            Release (MSMI)
        }

        Method (MBEC, 3, NotSerialized)
        {
            Acquire (MSMI, 0xFFFF)
            Store (Arg2, SPR2)
            Store (Arg1, SPR1)
            Store (Arg0, SPR0)
            Store (0x12, SFUN)
            Store (TSMI, SSMP)
            Release (MSMI)
        }
    }

    Scope (\)
    {
        Name (BCEN, One)
        Name (BCVE, Zero)
        Name (SGEN, Zero)
        Name (PSBN, Zero)
    }

    Scope (_SB.PCI0.LPCB)
    {
        Device (EC0)
        {
            Name (_HID, EisaId ("PNP0C09"))
            Name (_GPE, 0x17)
            Method (_STA, 0, NotSerialized)
            {
                Return (0x0F)
            }

            Name (_CRS, ResourceTemplate ()
            {
                IO (Decode16,
                    0x0062,             // Range Minimum
                    0x0062,             // Range Maximum
                    0x00,               // Alignment
                    0x01,               // Length
                    )
                IO (Decode16,
                    0x0066,             // Range Minimum
                    0x0066,             // Range Maximum
                    0x00,               // Alignment
                    0x01,               // Length
                    )
            })
            OperationRegion (ECO1, SystemIO, 0x62, One)
            Field (ECO1, ByteAcc, Lock, Preserve)
            {
                PX62,   8
            }

            OperationRegion (ECO2, SystemIO, 0x66, One)
            Field (ECO2, ByteAcc, Lock, Preserve)
            {
                PX66,   8
            }

            OperationRegion (ECMB, SystemMemory, 0xFE802000, 0x0200)
            OperationRegion (RAM, EmbeddedControl, Zero, 0xFF)
            Field (RAM, ByteAcc, Lock, Preserve)
            {
                        Offset (0x52), 
                    ,   1, 
                    ,   1, 
                    ,   1, 
                    ,   4, 
                WEPM,   1, 
                        Offset (0x5C), 
                OSTP,   8, 
                        Offset (0x70), 
                    ,   5, 
                ACDC,   1, 
                        Offset (0x71), 
                WLEN,   1, 
                BTEN,   1, 
                        Offset (0x73), 
                WWEN,   1
            }

            Field (RAM, ByteAcc, Lock, Preserve)
            {
                        Offset (0x87), 
                BNVA,   8
            }

            Method (RDEC, 1, NotSerialized)
            {
                If (ECON)
                {
                    OperationRegion (ECRM, EmbeddedControl, Arg0, One)
                    Field (ECRM, ByteAcc, Lock, Preserve)
                    {
                        ECRB,   8
                    }

                    Return (ECRB)
                }
                Else
                {
                    Return (RBEC (Arg0))
                }
            }

            Method (WREC, 2, NotSerialized)
            {
                If (ECON)
                {
                    OperationRegion (ECRM, EmbeddedControl, Arg0, One)
                    Field (ECRM, ByteAcc, Lock, Preserve)
                    {
                        ECRB,   8
                    }

                    Store (Arg1, ECRB)
                }
                Else
                {
                    WBEC (Arg0, Arg1)
                }
            }

            Method (MDEC, 3, NotSerialized)
            {
                If (ECON)
                {
                    OperationRegion (ECRM, EmbeddedControl, Arg0, One)
                    Field (ECRM, ByteAcc, Lock, Preserve)
                    {
                        ECRB,   8
                    }

                    Store (ECRB, Local0)
                    And (Local0, Arg1, Local0)
                    Or (Local0, Arg2, Local0)
                    Store (Local0, ECRB)
                }
                Else
                {
                    MBEC (Arg0, Arg1, Arg2)
                }
            }

            Method (_REG, 2, NotSerialized)
            {
                If (LEqual (Arg0, 0x03))
                {
                    Store (Arg1, ECON)
                    TINI ()
                    ShiftLeft (0x05, 0x04, Local0)
                    MDEC (0x76, 0x0F, Local0)
                    If (LGreaterEqual (OSYS, 0x07D6))
                    {
                        MDEC (0x7F, 0xFE, Zero)
                    }

                    And (RDEC (0x7F), One, BCEN)
                    And (RDEC (0x7F), 0x08, BCVE)
                    If (BCEN)
                    {
                        If (BCVE) {}
                    }

                    Store (Zero, PSBN)
                    Store (GOST (), OSTP)
                }

                Store (One, ^^^GFX0.CLID)
            }

            Method (TINI, 0, NotSerialized)
            {
                WREC (0x92, Zero)
                MDEC (0x10, 0xFD, 0x02)
            }

            Name (EPMS, Zero)
            Name (WLES, Zero)
            Name (BTES, Zero)
            Name (WWES, Zero)
            Name (ACIS, Zero)
            Method (ECPS, 1, NotSerialized)
            {
                ShiftLeft (Arg0, Zero, Local0)
                MDEC (0x76, 0xF0, Local0)
                MDEC (0x71, 0xF7, 0x08)
                If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
                {
                    Store (WEPM, EPMS)
                    Store (WLEN, WLES)
                    Store (BTEN, BTES)
                    Store (WWEN, WWES)
                    Store (Zero, WLEN)
                    Store (Zero, WWEN)
                    Store (KACS, ACIS)
                }

                If (LEqual (Arg0, 0x04))
                {
                    MDEC (0x0A, 0xFC, 0x02)
                }

                If (LEqual (Arg0, 0x05))
                {
                    TRPS (0xC1, Zero)
                }
            }

            Method (ECWK, 1, NotSerialized)
            {
                ShiftLeft (Arg0, 0x04, Local0)
                MDEC (0x76, 0x0F, Local0)
                MDEC (0x71, 0xF7, Zero)
                TINI ()
                Notify (BAT0, 0x81)
                If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
                {
                    MDEC (0x7F, 0xFE, BCEN)
                    MDEC (0x7F, 0xF7, BCVE)
                    Store (EPMS, WEPM)
                    Store (WLES, WLEN)
                    Store (BTES, BTEN)
                    Store (WWES, WWEN)
                    If (PSBN)
                    {
                        Store (KACS, Local2)
                        If (LNotEqual (Local2, ACIS))
                        {
                            If (Local2)
                            {
                                PSKY (One)
                            }
                            Else
                            {
                                PSKY (0x02)
                            }
                        }
                    }
                }

                If (LEqual (Arg0, 0x03)) {}
                If (LEqual (Arg0, 0x04)) {}
                If (LOr (LEqual (Arg0, 0x04), LEqual (Arg0, 0x05))) {}
            }

            Scope (\_GPE)
            {
                Method (_L1B, 0, NotSerialized)
                {
                    Store (0x1B, P80H)
                    Notify (\_SB.SLPB, 0x02)
                }
            }
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Field (ECMB, ByteAcc, Lock, Preserve)
        {
                    Offset (0x02), 
                ,   5, 
            KACS,   1
        }

        Name (ACST, One)
        Device (ADP1)
        {
            Name (_HID, "ACPI0003")
            Method (_PSR, 0, NotSerialized)
            {
                Store (KACS, Local0)
                If (Local0)
                {
                    Store (One, ACST)
                }
                Else
                {
                    Store (Zero, ACST)
                }

                Return (ACST)
            }

            Method (_PCL, 0, NotSerialized)
            {
                Return (_SB)
            }

            Method (_STA, 0, NotSerialized)
            {
                Return (0x0F)
            }
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Field (ECMB, ByteAcc, Lock, Preserve)
        {
                    Offset (0x08), 
            NB0S,   8, 
            NB1S,   8, 
                    Offset (0x80), 
            BSRC,   16, 
            BSFC,   16, 
            BSPE,   16, 
            BSAC,   16, 
            BSVO,   16, 
                ,   15, 
            BSCM,   1, 
            BSCU,   16, 
            BSTV,   16, 
            BSDC,   16, 
            BSDV,   16, 
            BSSN,   16, 
                    Offset (0xC0), 
            BSMN,   128, 
            BSDN,   256, 
            BSCH,   128
        }

        Method (GBIF, 3, NotSerialized)
        {
            If (Arg2)
            {
                Store (0xFFFFFFFF, Index (Arg1, One))
                Store (0xFFFFFFFF, Index (Arg1, 0x02))
                Store (0xFFFFFFFF, Index (Arg1, 0x04))
                Store (Zero, Index (Arg1, 0x05))
                Store (Zero, Index (Arg1, 0x06))
            }
            Else
            {
                Store (BSCM, Local0)
                XOr (Local0, One, Index (Arg1, Zero))
                If (Local0)
                {
                    Multiply (BSDC, 0x0A, Local1)
                }
                Else
                {
                    Store (BSDC, Local1)
                }

                Store (Local1, Index (Arg1, One))
                If (Local0)
                {
                    Multiply (BSFC, 0x0A, Local2)
                }
                Else
                {
                    Store (BSFC, Local2)
                }

                Store (Local2, Index (Arg1, 0x02))
                Store (BSDV, Index (Arg1, 0x04))
                Divide (Local2, 0x64, Local7, Local6)
                Multiply (Local6, 0x07, Local3)
                Store (Local3, Index (Arg1, 0x05))
                Multiply (0x05, 0x02, Local4)
                Add (Local4, One, Local4)
                Multiply (Local6, Local4, Local4)
                Divide (Local4, 0x02, Local7, Local4)
                Store (Local4, Index (Arg1, 0x06))
                Subtract (Local3, Local4, Index (Arg1, 0x07))
                Subtract (Local2, Local3, Index (Arg1, 0x08))
                Store (BSSN, Local7)
                Name (SERN, Buffer (0x06)
                {
                    "     "
                })
                Store (0x04, Local6)
                While (Local7)
                {
                    Divide (Local7, 0x0A, Local5, Local7)
                    Add (Local5, 0x30, Index (SERN, Local6))
                    Decrement (Local6)
                }

                Store (SERN, Index (Arg1, 0x0A))
                Store (BSDN, Index (Arg1, 0x09))
                Store (BSCH, Index (Arg1, 0x0B))
                Store (BSMN, Index (Arg1, 0x0C))
            }

            Return (Arg1)
        }

        Method (GBST, 4, NotSerialized)
        {
            If (And (Arg1, 0x02))
            {
                Store (0x02, Local0)
                If (And (Arg1, 0x20))
                {
                    Store (Zero, Local0)
                }
            }
            Else
            {
                If (And (Arg1, 0x04))
                {
                    Store (One, Local0)
                }
                Else
                {
                    Store (Zero, Local0)
                }
            }

            If (And (Arg1, 0x10))
            {
                Or (Local0, 0x04, Local0)
            }

            If (And (Arg1, One))
            {
                Store (BSAC, Local1)
                Store (BSRC, Local2)
                If (ACST)
                {
                    If (And (Arg1, 0x20))
                    {
                        Store (BSFC, Local2)
                    }
                }

                If (Arg2)
                {
                    Multiply (Local2, 0x0A, Local2)
                }

                Store (BSVO, Local3)
                If (LGreaterEqual (Local1, 0x8000))
                {
                    If (And (Local0, One))
                    {
                        Subtract (0x00010000, Local1, Local1)
                    }
                    Else
                    {
                        Store (Zero, Local1)
                    }
                }
                Else
                {
                    If (LEqual (And (Local0, 0x02), Zero))
                    {
                        Store (Zero, Local1)
                    }
                }

                If (Arg2)
                {
                    Multiply (Local3, Local1, Local1)
                    Divide (Local1, 0x03E8, Local7, Local1)
                }
            }
            Else
            {
                Store (Zero, Local0)
                Store (0xFFFFFFFF, Local1)
                Store (0xFFFFFFFF, Local2)
                Store (0xFFFFFFFF, Local3)
            }

            Store (Local0, Index (Arg3, Zero))
            Store (Local1, Index (Arg3, One))
            Store (Local2, Index (Arg3, 0x02))
            Store (Local3, Index (Arg3, 0x03))
            Return (Arg3)
        }

        Name (B0ST, Zero)
        Device (BAT0)
        {
            Name (_HID, EisaId ("PNP0C0A"))
            Name (_UID, One)
            Method (_PCL, 0, NotSerialized)
            {
                Return (_SB)
            }

            Name (B0IP, Package (0x0D)
            {
                One, 
                0xFFFFFFFF, 
                0xFFFFFFFF, 
                One, 
                0xFFFFFFFF, 
                Zero, 
                Zero, 
                0x5A, 
                0x5A, 
                "", 
                "100", 
                "Lion", 
                Zero
            })
            Name (B0SP, Package (0x04)
            {
                Zero, 
                0xFFFFFFFF, 
                0xFFFFFFFF, 
                0xFFFFFFFF
            })
            Method (_STA, 0, NotSerialized)
            {
                Store (NB0S, Local1)
                And (Local1, One, Local0)
                If (And (Local1, 0x40))
                {
                    Store (Zero, Local0)
                }

                Store (Local0, B0ST)
                If (Local0)
                {
                    Return (0x1F)
                }
                Else
                {
                    Return (0x0F)
                }
            }

            Method (_BIF, 0, NotSerialized)
            {
                Store (B0ST, Local6)
                Store (0x14, Local7)
                While (LAnd (Local6, Local7))
                {
                    Store (NB0S, Local1)
                    If (And (Local1, 0x08))
                    {
                        Store (Zero, Local6)
                    }
                    Else
                    {
                        Sleep (0x01F4)
                        Decrement (Local7)
                    }
                }

                Return (GBIF (Zero, B0IP, Local6))
            }

            Method (_BST, 0, NotSerialized)
            {
                XOr (DerefOf (Index (B0IP, Zero)), One, Local0)
                Store (NB0S, Local1)
                Return (GBST (Zero, Local1, Local0, B0SP))
            }
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Field (ECMB, ByteAcc, Lock, Preserve)
        {
                    Offset (0x06), 
            TPTP,   8
        }
    }

    Scope (_SB.PCI0.LPCB)
    {
        Device (KBD0)
        {
            Name (_HID, EisaId ("PNP0303"))
            Name (_CRS, ResourceTemplate ()
            {
                IO (Decode16,
                    0x0060,             // Range Minimum
                    0x0060,             // Range Maximum
                    0x01,               // Alignment
                    0x01,               // Length
                    )
                IO (Decode16,
                    0x0064,             // Range Minimum
                    0x0064,             // Range Maximum
                    0x01,               // Alignment
                    0x01,               // Length
                    )
                IRQ (Edge, ActiveHigh, Exclusive, )
                    {1}
            })
        }

        Device (PS2M)
        {
            Method (_HID, 0, NotSerialized)
            {
                Store (^^EC0.TPTP, Local0)
                If (LEqual (Local0, One))
                {
                    Return (0x451B2E4F)
                }

                If (LEqual (Local0, 0x02))
                {
                    Return (0x00058416)
                }

                If (LEqual (Local0, 0x04))
                {
                    If (LOr (LEqual (BRAN, 0x02), LEqual (BRAN, 0x03)))
                    {
                        Return (0x3520A906)
                    }

                    If (LEqual (BRAN, One))
                    {
                        Return (0x3020A906)
                    }

                    If (LEqual (BRAN, 0x04))
                    {
                        Return (0x4020A906)
                    }

                    If (LEqual (BRAN, 0x05))
                    {
                        Return (0x3520A906)
                    }

                    Return (0x3020A906)
                }

                If (LEqual (Local0, 0x08))
                {
                    Return (0x43C08C4E)
                }

                If (LEqual (Local0, 0x10))
                {
                    Return (0x0100330F)
                }

                Return (0x451B2E4F)
            }

            Method (_CID, 0, NotSerialized)
            {
                Store (^^EC0.TPTP, Local0)
                If (LEqual (Local0, One))
                {
                    Return (Package (0x03)
                    {
                        0x001B2E4F, 
                        0x02002E4F, 
                        0x130FD041
                    })
                }

                If (LEqual (Local0, 0x02))
                {
                    Return (Package (0x05)
                    {
                        0x0B0FD041, 
                        0x120FD041, 
                        0x030FD041, 
                        0x0E0FD041, 
                        0x130FD041
                    })
                }

                If (LEqual (Local0, 0x04))
                {
                    Return (Package (0x01)
                    {
                        0x130FD041
                    })
                }

                If (LEqual (Local0, 0x08))
                {
                    Return (Package (0x01)
                    {
                        0x130FD041
                    })
                }

                If (LEqual (Local0, 0x10))
                {
                    Return (Package (0x01)
                    {
                        0x130FD041
                    })
                }

                Return (Package (0x03)
                {
                    0x001B2E4F, 
                    0x02002E4F, 
                    0x130FD041
                })
            }

            Name (_CRS, ResourceTemplate ()
            {
                IRQ (Edge, ActiveHigh, Exclusive, )
                    {12}
            })
        }
    }

    Scope (\)
    {
        Mutex (MSGF, 0x07)
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Method (_Q5C, 0, NotSerialized)
        {
            Store (0x5C, P80H)
        }

        Method (_Q1C, 0, NotSerialized)
        {
            Store (0x1C, P80H)
            If (BCEN)
            {
                If (BCVE)
                {
                    If (LNotEqual (^^^GFX0.IGID, 0xFFFF))
                    {
                        ^^^GFX0.SPBR (BNVA, Zero)
                    }

                    If (LEqual (^^^PEG0.PEGP.DGID, 0x1002))
                    {
                        HKEY (0x1C)
                    }
                }
            }
            Else
            {
                Acquire (MSGF, 0xFFFF)
                If (LNotEqual (^^^GFX0.IGID, 0xFFFF))
                {
                    BIAN (0x86)
                }

                If (LNotEqual (^^^PEG0.PEGP.DGID, 0xFFFF))
                {
                    Notify (^^^PEG0.PEGP.LCD, 0x86)
                }

                Release (MSGF)
            }
        }

        Method (_Q1D, 0, NotSerialized)
        {
            Store (0x1D, P80H)
            If (BCEN)
            {
                If (BCVE)
                {
                    If (LNotEqual (^^^GFX0.IGID, 0xFFFF))
                    {
                        ^^^GFX0.SPBR (BNVA, Zero)
                    }

                    If (LEqual (^^^PEG0.PEGP.DGID, 0x1002))
                    {
                        HKEY (0x1D)
                    }
                }
            }
            Else
            {
                Acquire (MSGF, 0xFFFF)
                If (LNotEqual (^^^GFX0.IGID, 0xFFFF))
                {
                    BIAN (0x87)
                }

                If (LNotEqual (^^^PEG0.PEGP.DGID, 0xFFFF))
                {
                    Notify (^^^PEG0.PEGP.LCD, 0x87)
                }

                Release (MSGF)
            }
        }

        Method (_Q2D, 0, NotSerialized)
        {
            Store (0x2D, P80H)
            SGSW (One)
        }

        Method (_Q2E, 0, NotSerialized)
        {
            Store (0x2E, P80H)
            Store (One, Local0)
            If (^^^^AMWA.WCDA)
            {
                Store (Zero, Local0)
                ^^^^AMWA.ACRN (0x10)
            }

            ^^^^AMWA.ALMN ()
            If (Local0)
            {
                HKEY (0x2E)
            }
        }

        Method (_Q2F, 0, NotSerialized)
        {
            Store (0x2F, P80H)
            If (^^^^AMWA.FIRE)
            {
                ^^^^AMWA.ACRN (0x0E)
            }

            ^^^^AMWA.ALMN ()
            PSKY (Zero)
        }

        Method (_Q32, 0, NotSerialized)
        {
            Store (0x32, P80H)
            HKEY (0x32)
            MDEC (0x92, 0xFD, Zero)
        }

        Method (_Q33, 0, NotSerialized)
        {
            Store (0x33, P80H)
            MDEC (0x92, 0xFE, Zero)
            NTMR ()
        }

        Method (_Q34, 0, NotSerialized)
        {
            Store (0x34, P80H)
            MDEC (0x92, 0xFE, One)
            NTMR ()
        }

        Method (_Q35, 0, NotSerialized)
        {
            Store (0x35, P80H)
            HKEY (0x35)
            MDEC (0x92, 0xFD, 0x02)
        }

        Method (_Q36, 0, NotSerialized)
        {
            Store (0x36, P80H)
            MDEC (0x92, 0xF7, 0x08)
            Sleep (0x01F4)
            NTMR ()
        }

        Method (_Q40, 0, NotSerialized)
        {
            Store (0x40, P80H)
            Notify (BAT0, 0x81)
        }

        Method (_Q41, 0, NotSerialized)
        {
            Store (0x41, P80H)
            Notify (BAT0, 0x81)
        }

        Method (_Q48, 0, NotSerialized)
        {
            Store (0x48, P80H)
            Notify (BAT0, 0x80)
        }

        Method (_Q4C, 0, NotSerialized)
        {
            Store (0x4C, P80H)
            If (B0ST)
            {
                Notify (BAT0, 0x80)
            }
        }

        Method (_Q4D, 0, NotSerialized)
        {
            Store (0x4D, P80H)
        }

        Method (_Q50, 0, NotSerialized)
        {
            Store (0x50, P80H)
            TMSC ()
            Notify (ADP1, 0x80)
            PSKY (One)
        }

        Method (_Q51, 0, NotSerialized)
        {
            Store (0x51, P80H)
            TMSC ()
            Notify (ADP1, 0x80)
            PSKY (0x02)
        }

        Method (_Q52, 0, NotSerialized)
        {
            Store (0x52, P80H)
            Notify (LID0, 0x80)
        }

        Method (_Q53, 0, NotSerialized)
        {
            Store (0x53, P80H)
            Notify (LID0, 0x80)
        }

        Method (NTMR, 0, NotSerialized)
        {
            Notify (\_TZ.TZS0, 0x80)
            Notify (\_TZ.TZS1, 0x80)
        }

        Method (SBNL, 2, NotSerialized)
        {
            If (BCEN)
            {
                If (BCVE) {}
            }
        }

        Method (SGSW, 1, NotSerialized)
        {
            If (LEqual (BCEN, Zero))
            {
                Store (One, Local1)
                If (LAnd (LEqual (Arg0, One), LEqual (PO52, Zero)))
                {
                    Store (Zero, Local1)
                }

                If (LAnd (LEqual (Arg0, 0x02), LEqual (PO52, One)))
                {
                    Store (Zero, Local1)
                }

                If (Local1)
                {
                    If (LEqual (SGEN, One)) {}
                    If (LEqual (SGEN, 0x02))
                    {
                        Notify (GFX0, 0xD0)
                    }
                }
            }
        }

        Method (PSKY, 1, NotSerialized)
        {
            If (PSBN)
            {
                Store (One, Local1)
                If (^^^^AMWA.FIRE)
                {
                    Store (Zero, Local1)
                }

                If (Local1)
                {
                    If (LEqual (Arg0, Zero))
                    {
                        Store (KACS, Local2)
                        Store (^^^^AMWA.BBST, Local3)
                    }

                    If (LEqual (Arg0, One))
                    {
                        Store (One, Local2)
                    }

                    If (LEqual (Arg0, 0x02))
                    {
                        Store (Zero, Local2)
                        Store (One, Local3)
                    }

                    Sleep (0x32)
                    If (Local2)
                    {
                        SGSW (One)
                        SBNL (BNVA, 0x09)
                    }
                    Else
                    {
                        If (Local3)
                        {
                            SGSW (0x02)
                            SBNL (BNVA, 0x02)
                        }
                        Else
                        {
                            SGSW (One)
                            SBNL (BNVA, 0x04)
                        }
                    }
                }
            }
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Method (HKDS, 1, NotSerialized)
        {
            If (LEqual (Zero, DSEN))
            {
                Store (One, Local2)
                If (LEqual (SGEN, Zero)) {}
                If (Local2) {}
                If (LNotEqual (CADL, PADL))
                {
                    Store (CADL, PADL)
                    If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                    {
                        Notify (PCI0, Zero)
                    }
                    Else
                    {
                        If (LNotEqual (^^^GFX0.IGID, 0xFFFF))
                        {
                            Notify (GFX0, Zero)
                        }

                        If (LEqual (SGEN, Zero))
                        {
                            If (LNotEqual (^^^PEG0.PEGP.DGID, 0xFFFF))
                            {
                                Notify (^^^PEG0.PEGP, Zero)
                            }
                        }
                    }

                    Sleep (0x02EE)
                }

                If (LEqual (Arg0, 0x10))
                {
                    If (LNotEqual (^^^GFX0.IGID, 0xFFFF))
                    {
                        ^^^GFX0.GHDS (Zero)
                        Return (Zero)
                    }

                    Store (One, Local2)
                    If (LEqual (SGEN, Zero)) {}
                    If (Local2) {}
                    Store (GNDI (), Local0)
                }
                Else
                {
                    Store (Arg0, Local0)
                }

                SNDI (Local0)
                If (LNotEqual (^^^GFX0.IGID, 0xFFFF))
                {
                    ^^^GFX0.SNDL (NDST)
                    ^^^GFX0.GHDS (Zero)
                }

                If (LEqual (SGEN, Zero))
                {
                    If (LNotEqual (^^^PEG0.PEGP.DGID, 0xFFFF))
                    {
                        Notify (^^^PEG0.PEGP, 0x80)
                    }
                }
            }

            If (LEqual (One, DSEN)) {}
        }

        Method (GNDI, 0, NotSerialized)
        {
            Store (One, Local1)
            Store (CADL, Local2)
            If (LEqual (CDST, 0x0808))
            {
                If (And (0x0101, Local2))
                {
                    Store (0x02, Local1)
                }
                Else
                {
                    If (And (0x0404, Local2))
                    {
                        Store (0x03, Local1)
                    }
                }
            }

            If (LEqual (CDST, 0x0101))
            {
                If (And (0x0404, Local2))
                {
                    Store (0x05, Local1)
                }
                Else
                {
                    Store (One, Local1)
                }
            }

            If (LEqual (CDST, 0x0404))
            {
                Store (One, Local1)
            }

            If (LEqual (CDST, 0x0909))
            {
                If (And (0x0404, Local2))
                {
                    Store (0x03, Local1)
                }
                Else
                {
                    Store (0x04, Local1)
                }
            }

            If (LEqual (CDST, 0x0C0C))
            {
                If (And (0x0101, Local2))
                {
                    Store (0x04, Local1)
                }
                Else
                {
                    Store (0x05, Local1)
                }
            }

            Return (Local1)
        }

        Method (SNDI, 1, NotSerialized)
        {
            If (LEqual (Arg0, 0x04))
            {
                Store (0x0101, NDST)
            }

            If (LEqual (Arg0, One))
            {
                Store (0x0808, NDST)
            }

            If (LEqual (Arg0, 0x02))
            {
                Store (0x0909, NDST)
            }

            If (LEqual (Arg0, 0x05))
            {
                Store (0x0404, NDST)
            }

            If (LEqual (Arg0, 0x06))
            {
                Store (0x0202, NDST)
            }

            If (LEqual (Arg0, 0x03))
            {
                Store (0x0C0C, NDST)
            }

            If (LEqual (Arg0, 0x07))
            {
                Store (0x0A0A, NDST)
            }

            If (LEqual (Arg0, 0x08))
            {
                Store (0x0505, NDST)
            }
        }

        Method (_Q19, 0, NotSerialized)
        {
            Store (0x19, P80H)
            Store (One, Local1)
            If (SGEN)
            {
                If (LNotEqual (SGEN, 0x03))
                {
                    If (LEqual (PO52, Zero))
                    {
                        Store (Zero, Local1)
                        If (LEqual (SGEN, One)) {}
                        If (LEqual (SGEN, 0x02)) {}
                    }
                }
            }

            If (Local1)
            {
                Store (One, Local2)
                If (LEqual (SGEN, Zero)) {}
                If (Local2)
                {
                    HKDS (0x10)
                }
            }
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Field (ECMB, ByteAcc, Lock, Preserve)
        {
                    Offset (0x20), 
            THS0,   8, 
            THS1,   8, 
            THS2,   8, 
            THS3,   8, 
            THS4,   8, 
            THS5,   8, 
            THS6,   8, 
            THS7,   8, 
                    Offset (0x53), 
            KCSS,   1, 
            KCTT,   1, 
            KDTT,   1, 
            KOSD,   1, 
            KVTP,   1, 
                    Offset (0x54), 
            TSP0,   8, 
            TSC0,   8, 
            TSP1,   8, 
            TSC1,   8
        }
    }

    Scope (_TZ)
    {
        Name (TBSE, 0x0AAC)
        Name (CRT0, Zero)
        Name (PSV0, Zero)
        ThermalZone (TZS0)
        {
            Method (_TMP, 0, NotSerialized)
            {
                Store (\_SB.PCI0.LPCB.EC0.THS0, Local0)
                Store (\_SB.PCI0.LPCB.EC0.KCSS, Local1)
                Store (\_SB.PCI0.LPCB.EC0.KOSD, Local2)
                If (Local1)
                {
                    Add (PSV0, One, Local0)
                }

                If (Local2)
                {
                    If (LLessEqual (Local0, CRT0))
                    {
                        Add (CRT0, 0x02, Local0)
                    }
                }

                Return (C2K (Local0))
            }

            Method (_CRT, 0, NotSerialized)
            {
                Store (\_SB.PCI0.LPCB.EC0.TSC0, Local0)
                If (LOr (LGreaterEqual (Local0, 0x80), LLess (Local0, 0x1E)))
                {
                    Store (0x78, Local0)
                }

                Store (Local0, CRT0)
                Return (C2K (Local0))
            }

            Method (_SCP, 1, Serialized)
            {
                \_SB.PCI0.LPCB.EC0.MDEC (0x90, 0xFE, Arg0)
            }

            Method (_PSL, 0, Serialized)
            {
                If (LEqual (TCNT, 0x08))
                {
                    Return (Package (0x08)
                    {
                        \_PR.CPU0, 
                        \_PR.CPU1, 
                        \_PR.CPU2, 
                        \_PR.CPU3, 
                        \_PR.CPU4, 
                        \_PR.CPU5, 
                        \_PR.CPU6, 
                        \_PR.CPU7
                    })
                }

                If (LEqual (TCNT, 0x04))
                {
                    Return (Package (0x04)
                    {
                        \_PR.CPU0, 
                        \_PR.CPU1, 
                        \_PR.CPU2, 
                        \_PR.CPU3
                    })
                }

                If (LEqual (TCNT, 0x02))
                {
                    Return (Package (0x02)
                    {
                        \_PR.CPU0, 
                        \_PR.CPU1
                    })
                }

                Return (Package (0x01)
                {
                    \_PR.CPU0
                })
            }

            Method (_PSV, 0, NotSerialized)
            {
                Store (\_SB.PCI0.LPCB.EC0.TSP0, Local0)
                If (LOr (LGreaterEqual (Local0, 0x80), LLess (Local0, 0x1E)))
                {
                    Store (0x5A, Local0)
                }

                Store (Local0, PSV0)
                Return (C2K (Local0))
            }

            Name (_TC1, Zero)
            Name (_TC2, 0x32)
            Name (_TSP, Zero)
        }

        ThermalZone (TZS1)
        {
            Method (_TMP, 0, NotSerialized)
            {
                Store (\_SB.PCI0.LPCB.EC0.THS1, Local0)
                Return (C2K (Local0))
            }

            Method (_CRT, 0, NotSerialized)
            {
                Store (\_SB.PCI0.LPCB.EC0.TSC1, Local0)
                If (LOr (LGreaterEqual (Local0, 0x80), LLess (Local0, 0x1E)))
                {
                    Store (0x78, Local0)
                }

                Return (C2K (Local0))
            }
        }

        Method (C2K, 1, NotSerialized)
        {
            Store (Arg0, Local0)
            If (LLessEqual (Local0, 0x10))
            {
                Store (0x1E, Local0)
            }

            If (LGreaterEqual (Local0, 0x7F))
            {
                Store (0x1E, Local0)
            }

            Add (Multiply (Local0, 0x0A), TBSE, Local0)
            Return (Local0)
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Field (ECMB, ByteAcc, Lock, Preserve)
        {
                    Offset (0x02), 
                ,   1, 
            KLID,   1
        }
    }

    Scope (_SB)
    {
        Device (LID0)
        {
            Name (_HID, EisaId ("PNP0C0D"))
            Method (_LID, 0, NotSerialized)
            {
                Store (^^PCI0.LPCB.EC0.KLID, Local0)
                If (Local0)
                {
                    Return (One)
                }
                Else
                {
                    Return (Zero)
                }
            }

            Method (_PSW, 1, NotSerialized)
            {
                If (Arg0)
                {
                    ^^PCI0.LPCB.EC0.MDEC (0x72, 0xEF, 0x10)
                }
                Else
                {
                    ^^PCI0.LPCB.EC0.MDEC (0x72, 0xEF, Zero)
                }
            }

            Name (_PRW, Package (0x02)
            {
                0x1B, 
                0x03
            })
        }
    }

    Scope (_SB)
    {
        Device (SLPB)
        {
            Name (_HID, EisaId ("PNP0C0E"))
            Name (_PRW, Package (0x02)
            {
                0x1B, 
                0x03
            })
        }
    }

    Scope (\)
    {
        Name (B2ED, Buffer (0x1C)
        {
            /* 0000 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0008 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0010 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0018 */    0x00, 0x00, 0x00, 0x00
        })
        Method (WH15, 2, NotSerialized)
        {
            Acquire (MSMI, 0xFFFF)
            CreateDWordField (Arg1, Zero, DEAX)
            CreateDWordField (Arg1, 0x04, DEBX)
            CreateDWordField (Arg1, 0x08, DECX)
            CreateDWordField (Arg1, 0x0C, DEDX)
            CreateDWordField (B2ED, Zero, OEAX)
            CreateDWordField (B2ED, 0x04, OEBX)
            CreateDWordField (B2ED, 0x08, OECX)
            CreateDWordField (B2ED, 0x0C, OEDX)
            CreateDWordField (B2ED, 0x10, OFLG)
            Store (DECX, OECX)
            Store (DEDX, OEDX)
            If (LEqual (\_SB.AMW0.WMID, One))
            {
                CreateDWordField (Arg1, 0x10, DESI)
                CreateDWordField (Arg1, 0x14, DEDI)
                CreateDWordField (B2ED, 0x14, OESI)
                CreateDWordField (B2ED, 0x18, OEDI)
                Store (DESI, OESI)
                Store (DEDI, OEDI)
            }

            If (LEqual (And (DEAX, 0xFFFF), 0x9630))
            {
                If (LEqual (And (DEBX, 0xFF), 0x06))
                {
                    WB15 (B2ED, DEBX, DECX, DEDX, DESI, DEDI)
                    Release (MSMI)
                    Return (B2ED)
                }
            }

            Store (DEAX, WNVA)
            Store (DEBX, WNVB)
            Store (DECX, WNVC)
            Store (DEDX, WNVD)
            If (LEqual (\_SB.AMW0.WMID, One))
            {
                Store (DESI, WNVS)
                Store (DEDI, WNVI)
            }

            WSMI (One)
            Store (WNVA, OEAX)
            Store (WNVB, OEBX)
            Store (WNVC, OECX)
            Store (WNVD, OEDX)
            Store (WFLG, OFLG)
            If (LEqual (\_SB.AMW0.WMID, One))
            {
                Store (WNVS, OESI)
                Store (WNVI, OEDI)
            }

            Release (MSMI)
            Return (B2ED)
        }

        Method (I15H, 5, NotSerialized)
        {
            Acquire (MSMI, 0xFFFF)
            Store (Arg0, Local1)
            Store (Arg1, WNVA)
            Store (Arg2, WNVB)
            Store (Arg3, WNVC)
            Store (Arg4, WNVD)
            WSMI (One)
            If (LEqual (Local1, One))
            {
                Store (WNVA, Local0)
            }

            If (LEqual (Local1, 0x02))
            {
                Store (WNVB, Local0)
            }

            If (LEqual (Local1, 0x03))
            {
                Store (WNVC, Local0)
            }

            If (LEqual (Local1, 0x04))
            {
                Store (WNVD, Local0)
            }

            If (LEqual (Local1, 0x05))
            {
                Store (WFLG, Local0)
            }

            Release (MSMI)
            Return (Local0)
        }
    }

    Scope (\)
    {
        Name (B3ED, Buffer (0x28)
        {
            /* 0000 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0008 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0010 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0018 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0020 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
        })
        Method (AWMI, 5, NotSerialized)
        {
            Acquire (MSMI, 0xFFFF)
            Store (Arg1, WNVA)
            Store (Arg2, WNVB)
            Store (Arg3, WNVC)
            Store (Arg4, WNVD)
            TRPS (0x80, Arg0)
            CreateDWordField (B3ED, Zero, B3R0)
            CreateDWordField (B3ED, 0x08, B3R1)
            CreateDWordField (B3ED, 0x10, B3R2)
            CreateDWordField (B3ED, 0x18, B3R3)
            If (LEqual (Arg0, Zero))
            {
                Store (Zero, B3ED)
                Store (WNVD, B3R0)
                Store (WNVC, B3R1)
                Store (WNVB, B3R2)
                Store (WNVA, B3R3)
            }

            If (LOr (LEqual (Arg0, One), LEqual (Arg0, 0x02)))
            {
                Store (Zero, B3ED)
                Store (WNVA, B3R0)
                Store (WNVD, B3R1)
            }

            If (LEqual (Arg0, 0x03))
            {
                Store (Zero, B3ED)
                Store (WNVA, B3R0)
            }

            Release (MSMI)
            Return (B3ED)
        }
    }

    Scope (\)
    {
        Field (CNVS, AnyAcc, Lock, Preserve)
        {
                    Offset (0x470), 
            CBBS,   32
        }
    }

    Scope (_SB)
    {
        Device (AMWA)
        {
            Name (_HID, EisaId ("PNP0C14"))
            Name (_UID, "APGe")
            Name (FLMA, Zero)
            Name (BGET, Buffer (0x08)
            {
                /* 0000 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
            })
            CreateWordField (BGET, Zero, BGER)
            CreateWordField (BGET, 0x02, BGDM)
            CreateByteField (BGET, 0x04, BGD0)
            CreateDWordField (BGET, One, BGBS)
            CreateByteField (BGET, One, BGSB)
            Name (BSET, Buffer (0x04)
            {
                0x00, 0x00, 0x00, 0x00
            })
            CreateWordField (BSET, Zero, BSER)
            CreateByteField (BSET, 0x02, BBTR)
            Name (B6ED, Buffer (0x08)
            {
                /* 0000 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
            })
            CreateByteField (B6ED, Zero, WFUN)
            CreateByteField (B6ED, One, KEYN)
            CreateWordField (B6ED, 0x02, DEVM)
            OperationRegion (RAM, EmbeddedControl, Zero, 0xFF)
            Field (RAM, ByteAcc, Lock, Preserve)
            {
                        Offset (0x15), 
                DEB0,   16, 
                        Offset (0x57), 
                    ,   7, 
                AHKB,   1, 
                AHKE,   8, 
                        Offset (0x75), 
                    ,   1, 
                ALMA,   1, 
                        Offset (0x8D)
            }

            Name (_WDG, Buffer (0x0118)
            {
                /* 0000 */    0x5E, 0xA1, 0x6A, 0x67, 0x47, 0x6A, 0x9F, 0x4D, 
                /* 0008 */    0xA2, 0xCC, 0x1E, 0x6D, 0x18, 0xD1, 0x40, 0x26, 
                /* 0010 */    0xBC, 0x00, 0x01, 0x08, 0xEA, 0x69, 0xEF, 0x61, 
                /* 0018 */    0x5C, 0x86, 0xC3, 0x4B, 0xA5, 0x02, 0xA0, 0xDE, 
                /* 0020 */    0xBA, 0x0C, 0xB5, 0x31, 0x41, 0x41, 0x01, 0x02, 
                /* 0028 */    0x21, 0x12, 0x90, 0x05, 0x66, 0xD5, 0xD1, 0x11, 
                /* 0030 */    0xB2, 0xF0, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10, 
                /* 0038 */    0x45, 0x45, 0x01, 0x00, 0xDA, 0xBB, 0x1D, 0xFE, 
                /* 0040 */    0x14, 0x30, 0x56, 0x48, 0x87, 0x0C, 0x5B, 0x3A, 
                /* 0048 */    0x74, 0x4B, 0xF3, 0x41, 0x42, 0x4C, 0x01, 0x02, 
                /* 0050 */    0x09, 0x4E, 0x76, 0x95, 0x56, 0xFB, 0x83, 0x4E, 
                /* 0058 */    0xB3, 0x1A, 0x37, 0x76, 0x1F, 0x60, 0x99, 0x4A, 
                /* 0060 */    0x43, 0x38, 0x01, 0x01, 0x45, 0xDD, 0x23, 0x59, 
                /* 0068 */    0x80, 0x04, 0xD5, 0x4E, 0xB6, 0x1A, 0xC9, 0xEC, 
                /* 0070 */    0x6C, 0x90, 0xE2, 0x6A, 0x43, 0x39, 0x01, 0x02, 
                /* 0078 */    0x58, 0xF2, 0xF4, 0x6A, 0x01, 0xB4, 0xFD, 0x42, 
                /* 0080 */    0xBE, 0x91, 0x3D, 0x4A, 0xC2, 0xD7, 0xC0, 0xD3, 
                /* 0088 */    0x43, 0x41, 0x01, 0x02, 0xAC, 0x61, 0x1A, 0xCC, 
                /* 0090 */    0x56, 0x42, 0xA3, 0x41, 0xB9, 0xE0, 0x05, 0xA4, 
                /* 0098 */    0x45, 0xAD, 0xE2, 0xF5, 0xB2, 0x00, 0x01, 0x08, 
                /* 00A0 */    0x53, 0x44, 0x8C, 0xE7, 0x27, 0x02, 0x61, 0x48, 
                /* 00A8 */    0x9E, 0xDE, 0xF5, 0x60, 0x0B, 0x4A, 0x3D, 0x39, 
                /* 00B0 */    0x43, 0x42, 0x01, 0x02, 0x7B, 0x4F, 0xE0, 0xAA, 
                /* 00B8 */    0xC5, 0xB3, 0x65, 0x48, 0x95, 0xD6, 0x9F, 0xAC, 
                /* 00C0 */    0x7F, 0xF3, 0xE9, 0x2B, 0x43, 0x43, 0x01, 0x02, 
                /* 00C8 */    0x79, 0x4C, 0xF9, 0xCF, 0x77, 0x6C, 0xF7, 0x4A, 
                /* 00D0 */    0xAC, 0x56, 0x7D, 0xD0, 0xCE, 0x01, 0xC9, 0x97, 
                /* 00D8 */    0x43, 0x44, 0x01, 0x02, 0xC5, 0x2E, 0x77, 0x79, 
                /* 00E0 */    0xB1, 0x04, 0xFD, 0x4B, 0x84, 0x3C, 0x61, 0xE7, 
                /* 00E8 */    0xF7, 0x7B, 0x6C, 0xC9, 0x43, 0x45, 0x01, 0x02, 
                /* 00F0 */    0x97, 0x13, 0xAA, 0xFA, 0x88, 0x11, 0x8F, 0x44, 
                /* 00F8 */    0x85, 0x16, 0x9A, 0x07, 0x98, 0x7D, 0xD3, 0x8A, 
                /* 0100 */    0x42, 0x49, 0x01, 0x02, 0x39, 0xD1, 0xB9, 0x83, 
                /* 0108 */    0x71, 0xCE, 0xDB, 0x45, 0xA7, 0xA6, 0x26, 0x28, 
                /* 0110 */    0xD3, 0xA6, 0x5F, 0x4C, 0x42, 0x4A, 0x01, 0x02
            })
            Method (_WED, 1, NotSerialized)
            {
                Store (Arg0, P80H)
                If (LEqual (Arg0, 0xBC))
                {
                    Store (Zero, B6ED)
                    Store (AHKB, Local0)
                    Store (AHKE, Local1)
                    Store (Local1, WNVA)
                    If (Local0)
                    {
                        Store (0x02, WFUN)
                        Store (Zero, DEVM)
                    }
                    Else
                    {
                        Store (One, WFUN)
                        TRPS (0x90, Zero)
                        Store (WNVD, DEVM)
                    }

                    Store (Local1, KEYN)
                    Return (B6ED)
                }

                If (LEqual (Arg0, 0xB2))
                {
                    GACR ()
                    Return (B2ED)
                }
            }

            Method (WMAA, 3, NotSerialized)
            {
                CreateByteField (Arg2, Zero, AAFN)
                CreateByteField (Arg2, One, AAKN)
                CreateWordField (Arg2, 0x02, AADM)
                If (LEqual (Arg1, One))
                {
                    Store (Zero, BSET)
                    If (LEqual (AAFN, One))
                    {
                        CreateDWordField (Arg2, One, AAD1)
                        CreateByteField (Arg2, 0x05, AAD5)
                        If (LEqual (And (AAD5, 0xC0), 0x40))
                        {
                            Store (AAD1, WNVD)
                            TRPS (0x91, Zero)
                            Store (WNVA, BSER)
                        }
                        Else
                        {
                            Store (Zero, BSER)
                        }

                        Store (AAD5, ALMA)
                        And (AAD5, One, FLMA)
                        Store (OSBT, BBTR)
                        Return (BSET)
                    }

                    If (LEqual (AAFN, 0x02))
                    {
                        CreateByteField (Arg2, 0x04, AAD4)
                        Store (AAKN, WNVA)
                        Store (AADM, WNVD)
                        Store (AAD4, WNVC)
                        TRPS (0x92, Zero)
                        Store (WNVA, BSER)
                        Return (BSET)
                    }

                    If (LEqual (AAFN, 0x03))
                    {
                        CreateByteField (Arg2, One, AASO)
                        CreateByteField (Arg2, 0x03, AASB)
                        If (LEqual (AASO, One))
                        {
                            Store (0x9610, WNVA)
                            Store (0x0116, WNVB)
                            Store (AASB, WNVC)
                            TRPS (One, Zero)
                        }

                        If (LEqual (AASO, 0x02)) {}
                        If (LEqual (AASO, 0x03))
                        {
                            CreateDWordField (Arg2, 0x03, AAD3)
                            Store (Zero, BGER)
                            Store (AAD3, CBBS)
                            Store (0x9610, WNVA)
                            Store (0x1117, WNVB)
                            Store (WDBA, WNVS)
                            TRPS (One, Zero)
                        }

                        If (LEqual (AASO, 0x04)) {}
                        Return (BSET)
                    }

                    Store (0xE1, BSER)
                    Return (BSET)
                }

                If (LEqual (Arg1, 0x02))
                {
                    Store (Zero, BGET)
                    If (LEqual (AAFN, One))
                    {
                        Store (AAKN, WNVA)
                        Store (AADM, WNVD)
                        TRPS (0x93, Zero)
                        Store (WNVD, BGDM)
                        Store (WNVA, BGER)
                        Store (WNVC, BGD0)
                        Return (BGET)
                    }

                    If (LEqual (AAFN, 0x02))
                    {
                        CreateByteField (Arg2, One, AAGO)
                        If (LEqual (AAGO, One))
                        {
                            Store (0x9610, WNVA)
                            Store (0x16, WNVB)
                            TRPS (One, Zero)
                            Store (WNVC, BGSB)
                        }

                        If (LEqual (AAGO, 0x02))
                        {
                            Store (Zero, BGSB)
                            If (LGreater (OSYS, 0x07D0))
                            {
                                Store (One, BGSB)
                            }
                        }

                        If (LEqual (AAGO, 0x03))
                        {
                            Store (Zero, BGER)
                            Store (Zero, CBBS)
                            Store (0x9610, WNVA)
                            Store (0x1017, WNVB)
                            Store (WDBA, WNVS)
                            TRPS (One, Zero)
                            Store (CBBS, BGBS)
                        }

                        If (LEqual (AAGO, 0x04)) {}
                        Return (BGET)
                    }

                    If (LEqual (AAFN, 0x03))
                    {
                        CreateWordField (BGET, One, BGDD)
                        Store (Zero, BGER)
                        Store (DDST, BGDD)
                        Return (BGET)
                    }

                    Store (0xE1, BGER)
                    Return (BGET)
                }
            }

            Method (ALMN, 0, NotSerialized)
            {
                If (FLMA)
                {
                    Notify (AMWA, 0xBC)
                }
            }
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        Method (_Q2C, 0, NotSerialized)
        {
            ^^^^AMWA.ALMN ()
        }
    }

    Scope (\)
    {
        Field (CNVS, AnyAcc, Lock, Preserve)
        {
                    Offset (0x470), 
            CBP0,   32, 
            CBP4,   32, 
            CBP8,   32
        }
    }

    Scope (_SB.AMWA)
    {
        Name (BCPW, Buffer (0x08)
        {
            /* 0000 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
        })
        CreateDWordField (BCPW, Zero, BCPE)
        CreateDWordField (BCPW, 0x04, BCPS)
        Name (BSPW, Buffer (0x04)
        {
            0x00, 0x00, 0x00, 0x00
        })
        CreateDWordField (BSPW, Zero, BSPE)
        Method (WMBL, 3, NotSerialized)
        {
            If (LEqual (Arg1, One))
            {
                Store (0x03, BCPE)
                CreateWordField (Arg2, Zero, BL1L)
                CreateDWordField (Arg2, 0x02, BL10)
                Store (BL10, CBP0)
                CreateDWordField (Arg2, 0x06, BL11)
                Store (BL11, CBP4)
                CreateDWordField (Arg2, 0x0A, BL12)
                Store (BL12, CBP8)
                CreateWordField (Arg2, 0x0E, BL1C)
                Store (PWSC (BL1C, 0x10, Arg2), BL1C)
                Store (PASK (BL1C), Local1)
                If (Local1)
                {
                    Store (Local1, BCPE)
                }
                Else
                {
                    Store (0x9610, WNVA)
                    Store (BL1L, WNVC)
                    Store (WDBA, WNVS)
                    If (LEqual (BL1C, 0x08))
                    {
                        Store (0x1307, WNVB)
                        TRPS (One, Zero)
                        And (WNVA, 0xFF, BCPE)
                        And (WNVA, 0xFF00, Local0)
                        ShiftRight (Local0, 0x08, BCPS)
                    }

                    If (LEqual (BL1C, 0x0A))
                    {
                        Store (0x1308, WNVB)
                        TRPS (One, Zero)
                        And (WNVA, 0xFF, BCPE)
                        And (WNVA, 0xFF00, Local0)
                        ShiftRight (Local0, 0x08, BCPS)
                    }
                }

                Return (BCPW)
            }

            If (LEqual (Arg1, 0x02))
            {
                Store (0x03, BSPE)
                CreateWordField (Arg2, Zero, BL2L)
                CreateDWordField (Arg2, 0x02, BL20)
                Store (BL20, CBP0)
                CreateDWordField (Arg2, 0x06, BL21)
                Store (BL21, CBP4)
                CreateDWordField (Arg2, 0x0A, BL22)
                Store (BL22, CBP8)
                CreateWordField (Arg2, 0x1C, BL2C)
                Store (PWSC (BL2C, 0x1E, Arg2), BL2C)
                Store (PASK (BL2C), Local2)
                If (LEqual (BL2L, Zero))
                {
                    If (LEqual (Local2, Zero))
                    {
                        Store (0x02, BSPE)
                        Store (0x02, Local2)
                    }
                    Else
                    {
                        Store (Zero, BSPE)
                    }
                }
                Else
                {
                    If (LNotEqual (Local2, Zero))
                    {
                        Store (Local2, BSPE)
                    }
                }

                If (LEqual (Local2, Zero))
                {
                    Store (0x9610, WNVA)
                    Store (BL2L, WNVC)
                    Store (WDBA, WNVS)
                    If (LEqual (BL2C, 0x08))
                    {
                        Store (0x1307, WNVB)
                        TRPS (One, Zero)
                        And (WNVA, 0xFFFF, BSPE)
                        If (LNotEqual (BSPE, Zero))
                        {
                            Store (0x02, BSPE)
                        }
                    }

                    If (LEqual (BL2C, 0x0A))
                    {
                        Store (0x1308, WNVB)
                        TRPS (One, Zero)
                        And (WNVA, 0xFFFF, BSPE)
                        If (LNotEqual (BSPE, Zero))
                        {
                            Store (0x02, BSPE)
                        }
                    }
                }

                If (LEqual (BSPE, Zero))
                {
                    CreateWordField (Arg2, 0x0E, BL3L)
                    CreateDWordField (Arg2, 0x10, BL30)
                    Store (BL30, CBP0)
                    CreateDWordField (Arg2, 0x14, BL31)
                    Store (BL31, CBP4)
                    CreateDWordField (Arg2, 0x18, BL32)
                    Store (BL32, CBP8)
                    If (LEqual (BL3L, Zero))
                    {
                        If (PDIS (BL2C))
                        {
                            Store (0x08, BSPE)
                        }
                        Else
                        {
                            Store (Zero, BSPE)
                        }
                    }
                    Else
                    {
                        Store (Zero, Local1)
                        If (LEqual (BL2C, 0x08))
                        {
                            Store (PASK (0x0A), Local1)
                        }

                        If (Local1)
                        {
                            Store (0x05, BSPE)
                        }
                        Else
                        {
                            Store (0x9610, WNVA)
                            Store (BL3L, WNVC)
                            Store (WDBA, WNVS)
                            If (LEqual (BL2C, 0x08))
                            {
                                Store (0x1207, WNVB)
                                TRPS (One, Zero)
                                And (WNVA, 0xFFFF, BSPE)
                            }

                            If (LEqual (BL2C, 0x08))
                            {
                                Store (0x1208, WNVB)
                                TRPS (One, Zero)
                                And (WNVA, 0xFFFF, BSPE)
                            }
                        }
                    }
                }

                Return (BSPW)
            }

            Store (0x06, BSPE)
            Return (BSPW)
        }

        Method (PASK, 1, NotSerialized)
        {
            If (LEqual (Arg0, 0x0A))
            {
                Store (0x05, Local1)
                Store (0x0108, Local0)
            }
            Else
            {
                Store (0x04, Local1)
                Store (0x0107, Local0)
            }

            Store (0x9610, WNVA)
            Store (Local0, WNVB)
            TRPS (One, Zero)
            And (WNVA, 0xFF, Local0)
            If (LEqual (Local0, Zero))
            {
                Store (Zero, Local1)
            }

            Return (Local1)
        }

        Method (PDIS, 1, NotSerialized)
        {
            If (LEqual (Arg0, 0x0A))
            {
                Store (0x08, Local0)
            }
            Else
            {
                Store (0x07, Local0)
            }

            Store (0x9610, WNVA)
            Store (Local0, WNVB)
            TRPS (One, Zero)
            And (WNVA, 0xFF, Local0)
            Return (Local0)
        }
    }

    Method (PWSC, 3, NotSerialized)
    {
        Store (Arg0, Local0)
        CreateDWordField (Arg2, Arg1, PCM0)
        If (LEqual (Local0, 0x0A))
        {
            If (LNotEqual (PCM0, 0x00440041))
            {
                Store (Zero, Local0)
            }
        }

        If (LEqual (Local0, 0x08))
        {
            If (LNotEqual (PCM0, 0x00530055))
            {
                Store (Zero, Local0)
            }
        }

        Return (Local0)
    }

    Scope (_SB)
    {
        Device (AMW0)
        {
            Name (_HID, EisaId ("PNP0C14"))
            Name (_UID, Zero)
            Name (WLMP, Zero)
            Name (WMID, Zero)
            Name (B0ED, Buffer (0x04)
            {
                0x00, 0x00, 0x00, 0x00
            })
            CreateDWordField (B0ED, Zero, WLID)
            Name (B1ED, Buffer (0x04)
            {
                0x00, 0x00, 0x00, 0x00
            })
            Name (_WDG, Buffer (0x64)
            {
                /* 0000 */    0x81, 0x17, 0xF4, 0xD9, 0x33, 0xF6, 0x00, 0x44, 
                /* 0008 */    0x93, 0x55, 0x60, 0x17, 0x70, 0xBE, 0xC5, 0x10, 
                /* 0010 */    0x41, 0x41, 0x01, 0x00, 0x1D, 0x37, 0xC3, 0x67, 
                /* 0018 */    0xA3, 0x95, 0x37, 0x4C, 0xBB, 0x61, 0xDD, 0x47, 
                /* 0020 */    0xB4, 0x91, 0xDA, 0xAB, 0x41, 0x42, 0x01, 0x02, 
                /* 0028 */    0xED, 0x16, 0x1F, 0x43, 0x2B, 0x0C, 0x4C, 0x44, 
                /* 0030 */    0xB2, 0x67, 0x27, 0xDE, 0xB1, 0x40, 0xCF, 0x9C, 
                /* 0038 */    0x41, 0x43, 0x01, 0x02, 0x71, 0xBF, 0xD1, 0x40, 
                /* 0040 */    0x2D, 0xA8, 0x59, 0x4E, 0xA1, 0x68, 0x39, 0x85, 
                /* 0048 */    0xE0, 0x3B, 0x2E, 0x87, 0xB0, 0x00, 0x01, 0x08, 
                /* 0050 */    0x21, 0x12, 0x90, 0x05, 0x66, 0xD5, 0xD1, 0x11, 
                /* 0058 */    0xB2, 0xF0, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10, 
                /* 0060 */    0x44, 0x44, 0x01, 0x00
            })
            Method (_WED, 1, NotSerialized)
            {
                Store (Arg0, P80H)
                If (LEqual (Arg0, 0xB0))
                {
                    Return (B0ED)
                }
            }

            Method (WQAA, 1, NotSerialized)
            {
                Store (0xAA, P80H)
                Return (B1ED)
            }

            Method (WSAA, 2, NotSerialized)
            {
                Store (0xA1, P80H)
                CreateDWordField (Arg1, Zero, DDD0)
                If (LEqual (DDD0, One))
                {
                    Add (DDD0, 0x02, DDD0)
                    Store (DDD0, Index (B1ED, Zero))
                }
            }

            Method (WMAB, 3, NotSerialized)
            {
                Store (0xAB, P80H)
                Store (One, WLMP)
                Store (Zero, WMID)
                Return (WH15 (Arg1, Arg2))
            }

            Method (WMAC, 3, NotSerialized)
            {
                Store (0xAC, P80H)
                Store (One, WLMP)
                Store (One, WMID)
                Return (WH15 (Arg1, Arg2))
            }
        }
    }

    Scope (_SB.AMW0)
    {
        Name (WQDD, Buffer (0x0560)
        {
            /* 0000 */    0x46, 0x4F, 0x4D, 0x42, 0x01, 0x00, 0x00, 0x00, 
            /* 0008 */    0x50, 0x05, 0x00, 0x00, 0x70, 0x1D, 0x00, 0x00, 
            /* 0010 */    0x44, 0x53, 0x00, 0x01, 0x1A, 0x7D, 0xDA, 0x54, 
            /* 0018 */    0x18, 0xCB, 0x8D, 0x00, 0x01, 0x06, 0x18, 0x42, 
            /* 0020 */    0x10, 0x09, 0x10, 0x8A, 0xE7, 0x80, 0x42, 0x04, 
            /* 0028 */    0x0A, 0x0D, 0xA1, 0x40, 0x30, 0x28, 0x38, 0x4B, 
            /* 0030 */    0x82, 0x90, 0x0B, 0x26, 0x26, 0x40, 0x08, 0x84, 
            /* 0038 */    0x24, 0x0A, 0x30, 0x2F, 0x40, 0xB7, 0x00, 0xC3, 
            /* 0040 */    0x02, 0x6C, 0x0B, 0x30, 0x2D, 0xC0, 0x31, 0x90, 
            /* 0048 */    0xFA, 0xF7, 0x87, 0x28, 0x0D, 0x44, 0x22, 0x20, 
            /* 0050 */    0xA9, 0x14, 0x08, 0x09, 0x15, 0xA0, 0x5C, 0x80, 
            /* 0058 */    0x6F, 0x01, 0xDA, 0x11, 0x25, 0x59, 0x80, 0x65, 
            /* 0060 */    0x18, 0x11, 0xD8, 0x2B, 0x32, 0x41, 0xE3, 0x04, 
            /* 0068 */    0xE5, 0x0C, 0x03, 0x05, 0x6F, 0xC0, 0x36, 0x05, 
            /* 0070 */    0x98, 0x1C, 0x04, 0x95, 0x3D, 0x08, 0x94, 0x0C, 
            /* 0078 */    0x08, 0x79, 0x14, 0x60, 0x15, 0x4E, 0xD3, 0x49, 
            /* 0080 */    0x60, 0xF7, 0x73, 0x91, 0x30, 0x18, 0x19, 0x13, 
            /* 0088 */    0xA0, 0x50, 0x80, 0x46, 0x01, 0xDE, 0x40, 0x64, 
            /* 0090 */    0x4B, 0x80, 0x41, 0x01, 0xE2, 0x04, 0x28, 0x83, 
            /* 0098 */    0x12, 0x4A, 0xB8, 0x83, 0x69, 0x4D, 0x80, 0x39, 
            /* 00A0 */    0x28, 0x82, 0x56, 0x1B, 0x98, 0x50, 0x3A, 0x03, 
            /* 00A8 */    0x12, 0x48, 0xAC, 0x16, 0xC1, 0x05, 0x13, 0x3B, 
            /* 00B0 */    0x6A, 0x94, 0x40, 0xD1, 0xDB, 0x1F, 0x04, 0x09, 
            /* 00B8 */    0xA7, 0x00, 0xA2, 0x06, 0x10, 0x45, 0x1A, 0x0D, 
            /* 00C0 */    0x6A, 0x44, 0x09, 0x0E, 0xCC, 0xA3, 0x39, 0xD5, 
            /* 00C8 */    0xCE, 0x05, 0x48, 0x9F, 0xAB, 0x40, 0x8E, 0xF5, 
            /* 00D0 */    0x34, 0xEA, 0x1C, 0x2E, 0x01, 0x49, 0x60, 0xAC, 
            /* 00D8 */    0x04, 0xB7, 0xEE, 0x21, 0xE2, 0x5D, 0x03, 0x6A, 
            /* 00E0 */    0xE2, 0x87, 0xC8, 0x04, 0xC1, 0xA1, 0x86, 0xE8, 
            /* 00E8 */    0xF1, 0x86, 0x3B, 0x81, 0xA3, 0x3E, 0x12, 0x06, 
            /* 00F0 */    0x71, 0x50, 0x47, 0x83, 0x39, 0x07, 0xD8, 0xE1, 
            /* 00F8 */    0x64, 0x34, 0xE3, 0x52, 0x05, 0x98, 0x1D, 0xBA, 
            /* 0100 */    0x46, 0x96, 0xE0, 0x78, 0x0C, 0x7D, 0xF6, 0xE7, 
            /* 0108 */    0xD3, 0x33, 0x24, 0x91, 0x3F, 0x08, 0xD4, 0xC8, 
            /* 0110 */    0x0C, 0xED, 0xA1, 0x9E, 0x56, 0xCC, 0x90, 0x4F, 
            /* 0118 */    0x01, 0x87, 0xC5, 0xC4, 0x42, 0x68, 0x93, 0x1A, 
            /* 0120 */    0x0F, 0xC4, 0xFF, 0xFF, 0x78, 0xC0, 0xA3, 0xF8, 
            /* 0128 */    0x68, 0x20, 0x84, 0x57, 0x82, 0xD8, 0x1E, 0x50, 
            /* 0130 */    0x82, 0x01, 0x21, 0xE4, 0x64, 0x3C, 0xA8, 0x51, 
            /* 0138 */    0x18, 0x35, 0xDC, 0x61, 0x1C, 0xB5, 0x8F, 0x0F, 
            /* 0140 */    0x3A, 0x3C, 0x50, 0x51, 0xC3, 0xA6, 0x67, 0x06, 
            /* 0148 */    0x7E, 0x5C, 0x60, 0xE7, 0x82, 0x98, 0x8F, 0x00, 
            /* 0150 */    0x1E, 0xC9, 0x09, 0xF9, 0x38, 0xE1, 0x81, 0xC1, 
            /* 0158 */    0x07, 0xC4, 0x7B, 0x9F, 0x32, 0x19, 0xC1, 0x99, 
            /* 0160 */    0x7A, 0x80, 0xE0, 0xB0, 0x3E, 0x7C, 0x02, 0xFC, 
            /* 0168 */    0xB2, 0xF0, 0xB0, 0x90, 0xC0, 0xF7, 0x07, 0x03, 
            /* 0170 */    0xE3, 0x46, 0x68, 0xBF, 0x02, 0x10, 0x82, 0x97, 
            /* 0178 */    0x79, 0x02, 0x90, 0x53, 0x04, 0x8D, 0xCD, 0xD0, 
            /* 0180 */    0x4F, 0x03, 0x2F, 0x0E, 0xE1, 0x83, 0x47, 0x38, 
            /* 0188 */    0xDF, 0x03, 0x38, 0x85, 0xC7, 0x00, 0x0F, 0xC1, 
            /* 0190 */    0x04, 0x16, 0x39, 0x02, 0x94, 0x98, 0x11, 0xA0, 
            /* 0198 */    0x8E, 0x0D, 0x27, 0x70, 0x3C, 0x61, 0x8F, 0xE0, 
            /* 01A0 */    0x78, 0xA2, 0x9C, 0xC4, 0x01, 0xF9, 0xA8, 0x61, 
            /* 01A8 */    0x84, 0xE0, 0xE5, 0x9E, 0x38, 0x88, 0xE6, 0x71, 
            /* 01B0 */    0x6A, 0x16, 0xEF, 0x00, 0x87, 0xC0, 0xC6, 0x84, 
            /* 01B8 */    0x3B, 0x40, 0x78, 0x08, 0x7C, 0x00, 0x8F, 0x1A, 
            /* 01C0 */    0xE7, 0x67, 0xA5, 0xB3, 0x42, 0x9E, 0x3B, 0xF8, 
            /* 01C8 */    0x98, 0xB0, 0x03, 0xE0, 0xD2, 0x0F, 0x27, 0x28, 
            /* 01D0 */    0xB1, 0xE7, 0x13, 0x50, 0xFC, 0xFF, 0xCF, 0x27, 
            /* 01D8 */    0xC0, 0x1E, 0xE4, 0x99, 0xE4, 0xED, 0xE4, 0x68, 
            /* 01E0 */    0x9E, 0x4B, 0x1E, 0x48, 0x9E, 0x48, 0x9E, 0x4F, 
            /* 01E8 */    0x8C, 0xF3, 0x66, 0xF2, 0x64, 0x10, 0xE1, 0xF9, 
            /* 01F0 */    0xC4, 0xD7, 0x14, 0x23, 0x44, 0x09, 0x19, 0xE8, 
            /* 01F8 */    0xE1, 0x24, 0x42, 0x94, 0x70, 0x81, 0xC2, 0x1A, 
            /* 0200 */    0x21, 0xC8, 0x63, 0xC1, 0x09, 0x1F, 0x76, 0xAC, 
            /* 0208 */    0x40, 0x61, 0x9E, 0x4F, 0x98, 0xF0, 0xA7, 0x86, 
            /* 0210 */    0x2C, 0x9C, 0x4F, 0x00, 0xBA, 0xFC, 0xFF, 0xCF, 
            /* 0218 */    0x27, 0x80, 0x33, 0x81, 0xE7, 0x13, 0x90, 0x0E, 
            /* 0220 */    0x8F, 0x1F, 0x4F, 0x80, 0xC9, 0x08, 0xB8, 0x16, 
            /* 0228 */    0x13, 0x87, 0x2F, 0xD4, 0xE3, 0xC0, 0xA7, 0x11, 
            /* 0230 */    0x40, 0xCE, 0x09, 0xE4, 0xFD, 0xE3, 0x38, 0x9F, 
            /* 0238 */    0x44, 0x7C, 0xF7, 0xF2, 0xFF, 0xFF, 0xE6, 0xE5, 
            /* 0240 */    0x83, 0xC8, 0x1B, 0xC8, 0xC1, 0x3E, 0x8D, 0xB0, 
            /* 0248 */    0x51, 0x05, 0x33, 0xCA, 0xE9, 0x47, 0x88, 0xFA, 
            /* 0250 */    0x52, 0x62, 0xC4, 0x08, 0xC1, 0x42, 0x05, 0x8A, 
            /* 0258 */    0x11, 0x35, 0xB2, 0x61, 0x23, 0xC4, 0x79, 0xF8, 
            /* 0260 */    0xA2, 0x0F, 0x06, 0x0D, 0xD5, 0xA7, 0x11, 0x80, 
            /* 0268 */    0x1F, 0xA7, 0x09, 0xDC, 0xE9, 0x02, 0x4C, 0x93, 
            /* 0270 */    0x38, 0x80, 0x28, 0x45, 0xC3, 0x68, 0x3A, 0x8F, 
            /* 0278 */    0x03, 0x01, 0x9F, 0x2F, 0x80, 0x89, 0xE2, 0x97, 
            /* 0280 */    0x9E, 0xCE, 0x27, 0xFE, 0xFF, 0xAB, 0x05, 0x91, 
            /* 0288 */    0x8D, 0xB5, 0x7A, 0x58, 0x34, 0xF3, 0x03, 0x48, 
            /* 0290 */    0xF0, 0xC5, 0x03, 0x6B, 0xD8, 0x27, 0x79, 0x16, 
            /* 0298 */    0x27, 0x99, 0x60, 0x56, 0x28, 0xC1, 0x7A, 0xD8, 
            /* 02A0 */    0x4E, 0x09, 0xA3, 0x04, 0x24, 0x1A, 0x8E, 0xA1, 
            /* 02A8 */    0xAD, 0x19, 0x46, 0x70, 0x06, 0xF1, 0x79, 0xC8, 
            /* 02B0 */    0x21, 0xCE, 0x31, 0x50, 0x8E, 0x0C, 0x1E, 0xC5, 
            /* 02B8 */    0x59, 0x3D, 0x07, 0x78, 0x8C, 0x8F, 0x0B, 0x6C, 
            /* 02C0 */    0x7C, 0x3E, 0x08, 0xF0, 0xC3, 0xA0, 0x6F, 0x06, 
            /* 02C8 */    0x46, 0xB6, 0x9A, 0xD3, 0x0C, 0x0A, 0xCC, 0xC7, 
            /* 02D0 */    0x0B, 0x4E, 0x50, 0xD7, 0xCD, 0x05, 0x64, 0x43, 
            /* 02D8 */    0x82, 0x79, 0x10, 0x38, 0x24, 0x30, 0x4F, 0xD5, 
            /* 02E0 */    0x43, 0x02, 0x1E, 0xE0, 0x87, 0x04, 0xE6, 0x2B, 
            /* 02E8 */    0x81, 0x87, 0x04, 0x2C, 0xFE, 0xFF, 0xA8, 0x07, 
            /* 02F0 */    0x71, 0x48, 0x60, 0x46, 0xF2, 0x90, 0xC0, 0xA6, 
            /* 02F8 */    0xEF, 0xC8, 0x01, 0x0A, 0x20, 0xDF, 0x30, 0x7C, 
            /* 0300 */    0xDC, 0x7B, 0xCA, 0x60, 0x63, 0x78, 0xE2, 0x33, 
            /* 0308 */    0x9A, 0xD1, 0xB9, 0xC4, 0xE5, 0xE8, 0x42, 0xC1, 
            /* 0310 */    0x45, 0xC1, 0xE8, 0x58, 0x60, 0x10, 0x4F, 0xCB, 
            /* 0318 */    0x51, 0xA6, 0x8A, 0x9E, 0x89, 0x7D, 0x9E, 0x42, 
            /* 0320 */    0xC8, 0x89, 0x82, 0x5F, 0xDD, 0x74, 0x9F, 0x81, 
            /* 0328 */    0x76, 0xF7, 0x08, 0xEA, 0x8B, 0x0A, 0x83, 0xF3, 
            /* 0330 */    0x64, 0x39, 0x9C, 0xAF, 0x14, 0xFC, 0xAE, 0xE3, 
            /* 0338 */    0xCB, 0x15, 0xF8, 0x46, 0x05, 0xF7, 0x50, 0xC1, 
            /* 0340 */    0x46, 0x05, 0xF6, 0xEB, 0x88, 0x47, 0x05, 0xD6, 
            /* 0348 */    0xFF, 0xFF, 0xA8, 0x60, 0x9D, 0x2B, 0xD8, 0xA8, 
            /* 0350 */    0xC0, 0x7E, 0x26, 0xF0, 0xA8, 0x80, 0xCB, 0xD1, 
            /* 0358 */    0x82, 0x8D, 0x0A, 0xEC, 0x1E, 0x46, 0x05, 0xCA, 
            /* 0360 */    0x20, 0xD7, 0x0F, 0x28, 0xD0, 0x8F, 0x96, 0xAF, 
            /* 0368 */    0x40, 0x0F, 0x41, 0x8F, 0x51, 0x1E, 0x14, 0xB8, 
            /* 0370 */    0x61, 0x7C, 0xDF, 0x03, 0x4E, 0x17, 0x10, 0x98, 
            /* 0378 */    0xF0, 0x18, 0xC1, 0x47, 0x18, 0xF2, 0xFF, 0x27, 
            /* 0380 */    0x28, 0x6B, 0x5C, 0xA8, 0xFB, 0x8A, 0xAF, 0x72, 
            /* 0388 */    0xEC, 0x3A, 0x85, 0xBB, 0x2A, 0x62, 0x60, 0x3D, 
            /* 0390 */    0x52, 0x0E, 0x6B, 0xB4, 0xB0, 0x07, 0xFC, 0xA6, 
            /* 0398 */    0xE5, 0x63, 0x9A, 0x67, 0x66, 0x8C, 0xB0, 0x1E, 
            /* 03A0 */    0xAD, 0x95, 0x92, 0xD2, 0x2B, 0x9F, 0x23, 0xDD, 
            /* 03A8 */    0xFA, 0x00, 0x41, 0x73, 0x79, 0x10, 0x78, 0xCE, 
            /* 03B0 */    0x7B, 0x4B, 0x78, 0x73, 0xF7, 0x59, 0xC2, 0xC7, 
            /* 03B8 */    0xBD, 0xC7, 0x82, 0x97, 0x80, 0x97, 0x81, 0xF7, 
            /* 03C0 */    0x92, 0x57, 0x5A, 0x76, 0xED, 0xF3, 0xAD, 0xCF, 
            /* 03C8 */    0x48, 0x0F, 0x80, 0x46, 0x09, 0x12, 0x23, 0xE6, 
            /* 03D0 */    0xFB, 0x89, 0x91, 0x1F, 0x6D, 0x7D, 0x69, 0xF0, 
            /* 03D8 */    0xBD, 0x2F, 0xC6, 0x5B, 0x1F, 0x8B, 0x77, 0xEB, 
            /* 03E0 */    0x03, 0x44, 0xFD, 0xFF, 0x6F, 0x7D, 0xC0, 0xFE, 
            /* 03E8 */    0x72, 0xF1, 0xD6, 0x07, 0x1C, 0x30, 0x23, 0xBE, 
            /* 03F0 */    0xF6, 0x01, 0x93, 0x34, 0x2B, 0xD0, 0x59, 0xC3, 
            /* 03F8 */    0x49, 0x40, 0x74, 0xED, 0xC3, 0xE9, 0x01, 0xD2, 
            /* 0400 */    0xB5, 0x0F, 0xAF, 0x03, 0x96, 0x8E, 0xDB, 0x0A, 
            /* 0408 */    0x60, 0x94, 0xE4, 0x58, 0x85, 0xD2, 0x7E, 0xAC, 
            /* 0410 */    0xA2, 0x20, 0x3E, 0xCE, 0xF8, 0xDA, 0x07, 0x58, 
            /* 0418 */    0xF9, 0xFF, 0x5F, 0xFB, 0x00, 0x26, 0x0E, 0x09, 
            /* 0420 */    0xE6, 0xF5, 0xE2, 0x09, 0xC7, 0x43, 0x02, 0xEB, 
            /* 0428 */    0x8D, 0xC6, 0x43, 0x82, 0xFB, 0xFF, 0x1F, 0x34, 
            /* 0430 */    0xD8, 0x86, 0x04, 0xE6, 0x8B, 0x9D, 0xAF, 0x8E, 
            /* 0438 */    0xC0, 0x59, 0xF6, 0x82, 0x75, 0x29, 0xE1, 0x42, 
            /* 0440 */    0x61, 0x74, 0xB4, 0x30, 0x88, 0x01, 0x7D, 0x75, 
            /* 0448 */    0x04, 0x7E, 0x17, 0x3E, 0xE0, 0x73, 0x75, 0x04, 
            /* 0450 */    0x0E, 0x17, 0x3E, 0xFC, 0xFF, 0xFF, 0xEA, 0x08, 
            /* 0458 */    0x38, 0xB8, 0xF1, 0x81, 0xF3, 0xEA, 0x08, 0xFC, 
            /* 0460 */    0x4C, 0x5C, 0x1D, 0x01, 0x1D, 0x2A, 0x46, 0x0E, 
            /* 0468 */    0x74, 0x4E, 0x31, 0x8C, 0xE0, 0xFF, 0x7F, 0x54, 
            /* 0470 */    0xE0, 0x06, 0xF6, 0xF1, 0x00, 0xD8, 0x8C, 0x0A, 
            /* 0478 */    0x18, 0x9C, 0x06, 0x7C, 0x09, 0x05, 0xBC, 0x2A, 
            /* 0480 */    0xB4, 0xE9, 0x53, 0xA3, 0x51, 0xAB, 0x06, 0x65, 
            /* 0488 */    0x6A, 0x94, 0x69, 0x50, 0xAB, 0x4F, 0xA5, 0xC6, 
            /* 0490 */    0x8C, 0x5D, 0x29, 0x13, 0x8C, 0xB1, 0x02, 0x8D, 
            /* 0498 */    0xC5, 0x22, 0x96, 0x23, 0x10, 0x87, 0x04, 0xA1, 
            /* 04A0 */    0x22, 0x1F, 0x43, 0x02, 0x71, 0x44, 0x10, 0x1A, 
            /* 04A8 */    0xE1, 0x4D, 0x23, 0x10, 0xC7, 0x5B, 0x9B, 0x40, 
            /* 04B0 */    0x2C, 0xEE, 0xA1, 0x21, 0x10, 0xFF, 0xFF, 0x83, 
            /* 04B8 */    0x3C, 0x23, 0x64, 0x04, 0x44, 0xA9, 0x40, 0x74, 
            /* 04C0 */    0x4B, 0x22, 0x6B, 0x12, 0x90, 0x95, 0x81, 0x08, 
            /* 04C8 */    0xC8, 0x81, 0x80, 0x68, 0x3A, 0x20, 0x2A, 0xEA, 
            /* 04D0 */    0x21, 0x20, 0x20, 0x2B, 0x04, 0x11, 0x90, 0xD5, 
            /* 04D8 */    0xD8, 0x00, 0x62, 0xDA, 0x40, 0x04, 0xE4, 0x5C, 
            /* 04E0 */    0x40, 0x34, 0x25, 0x10, 0x55, 0xA8, 0x03, 0x88, 
            /* 04E8 */    0xE9, 0x05, 0x11, 0x90, 0xB3, 0x02, 0xD1, 0xE4, 
            /* 04F0 */    0x40, 0x54, 0xB3, 0x0F, 0x20, 0x96, 0x00, 0x44, 
            /* 04F8 */    0x40, 0x4E, 0x4A, 0x23, 0x10, 0xEB, 0x54, 0x02, 
            /* 0500 */    0xC2, 0x52, 0xBD, 0x1D, 0x04, 0xE8, 0x88, 0x20, 
            /* 0508 */    0x02, 0xB2, 0xB2, 0x2F, 0xAB, 0x80, 0x2C, 0x13, 
            /* 0510 */    0x44, 0x40, 0x4E, 0x07, 0x44, 0xA3, 0x02, 0x51, 
            /* 0518 */    0x85, 0x56, 0x80, 0x98, 0x5C, 0x10, 0x01, 0x39, 
            /* 0520 */    0x25, 0x10, 0x8D, 0x0C, 0x44, 0x95, 0x6A, 0x01, 
            /* 0528 */    0x62, 0xB2, 0x41, 0x04, 0x64, 0x89, 0x5E, 0x80, 
            /* 0530 */    0x98, 0x60, 0x10, 0x01, 0x39, 0x2C, 0x10, 0x8D, 
            /* 0538 */    0x0E, 0x44, 0x65, 0xBF, 0x0A, 0x04, 0xE4, 0x10, 
            /* 0540 */    0x20, 0x3A, 0x25, 0x10, 0x33, 0x40, 0x4C, 0x0E, 
            /* 0548 */    0x88, 0x0E, 0x00, 0x04, 0x88, 0xC6, 0x02, 0xA2, 
            /* 0550 */    0x92, 0xFE, 0x5B, 0x02, 0xB2, 0x40, 0x10, 0x01, 
            /* 0558 */    0x39, 0x1C, 0x10, 0x8D, 0x0A, 0x44, 0xFF, 0xFF
        })
    }

    Scope (\)
    {
        Field (CNVS, DWordAcc, Lock, Preserve)
        {
                    Offset (0x470), 
            CBE0,   32
        }

        Field (CNVS, DWordAcc, Lock, Preserve)
        {
                    Offset (0x470), 
            BER4,   32
        }

        Field (CNVS, WordAcc, Lock, Preserve)
        {
                    Offset (0x470), 
            BUF0,   16, 
            BER2,   16
        }
    }

    Scope (_SB.AMWA)
    {
        Name (FIRE, Zero)
        Name (WCDA, Zero)
        Name (B2ED, Buffer (0x04)
        {
            0x00, 0x00, 0x00, 0x00
        })
        CreateDWordField (B2ED, Zero, BUID)
        Field (RAM, ByteAcc, Lock, Preserve)
        {
                    Offset (0x50), 
            ODPW,   1, 
                    Offset (0x51), 
            BLST,   1, 
            BBST,   1, 
                    Offset (0x52), 
            WDEV,   1, 
            BDEV,   1, 
            GDEV,   1, 
                ,   4, 
            WEPM,   1, 
                    Offset (0x88), 
            NB0A,   1, 
                    Offset (0x89), 
            NB1A,   1
        }

        Field (RAM, ByteAcc, Lock, Preserve)
        {
                    Offset (0x17), 
            SMCS,   8, 
            SPTL,   8, 
                    Offset (0x1A), 
            SADD,   8, 
            SCOM,   8, 
            SDTA,   16
        }

        Method (WQC8, 1, NotSerialized)
        {
            Store (0xC8, P80H)
            Store (Zero, Local0)
            Store (Zero, Local1)
            If (PSBN)
            {
                Store (One, Local1)
            }

            ShiftLeft (Local1, 0x07, Local1)
            Or (Local0, Local1, Local0)
            Store (Zero, Local1)
            ShiftLeft (Local1, 0x09, Local1)
            Or (Local0, Local1, Local0)
            Store (Zero, BER2)
            Store (Local0, BUF0)
            Return (CBE0)
        }

        Method (WMCA, 3, NotSerialized)
        {
            Store (0xCA, P80H)
            CreateDWordField (Arg2, Zero, CB04)
            CreateByteField (Arg2, Zero, CB01)
            Store (Zero, BER2)
            If (LEqual (Arg1, 0x07))
            {
                If (CB04)
                {
                    Store (One, Local0)
                }
                Else
                {
                    Store (Zero, Local0)
                }

                Store (Local0, FIRE)
                Store (Local0, WEPM)
                Store (Zero, BER4)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x09))
            {
                Store (Zero, Local0)
                Store (I15H (One, 0x9610, 0x023D, Zero, Zero), Local0)
                Store (Local0, BUF0)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x0E))
            {
                Store (BBST, Local0)
                Store (Local0, BUF0)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x0F))
            {
                If (CB04)
                {
                    Store (One, Local0)
                }
                Else
                {
                    Store (Zero, Local0)
                }

                Store (Local0, BBST)
                Store (Zero, BER4)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x10))
            {
                If (CB04)
                {
                    Store (One, Local0)
                }
                Else
                {
                    Store (Zero, Local0)
                }

                Store (Local0, WCDA)
                Store (Zero, BER4)
                Return (CBE0)
            }

            Store (One, BER2)
            Return (CBE0)
        }

        Method (WMCC, 3, NotSerialized)
        {
            Store (0xCC, P80H)
            CreateDWordField (Arg2, Zero, CB04)
            Store (One, BER2)
            If (LEqual (Arg1, 0x05))
            {
                Store (ODPW, BUF0)
                Store (Zero, BER2)
            }

            If (LEqual (Arg1, 0x0E))
            {
                If (CB04)
                {
                    Store (One, ODPW)
                }
                Else
                {
                    Store (Zero, ODPW)
                }

                Store (ODPW, BUF0)
                Store (Zero, BER2)
                Sleep (0xC8)
                Notify (^^PCI0.SAT0.PRT4, One)
            }

            Return (CBE0)
        }

        Method (WMCE, 3, NotSerialized)
        {
            Store (0xCE, P80H)
            CreateDWordField (Arg2, Zero, CD04)
            CreateByteField (Arg2, Zero, CD01)
            CreateByteField (Arg2, 0x04, CD02)
            If (LEqual (Arg1, 0x13))
            {
                GBID (CD02)
                If (BER2)
                {
                    Return (CBE0)
                }

                Decrement (CD02)
                Store (CD02, SMCS)
                Store (0x16, SADD)
                Store (CD01, SCOM)
                Store (0x09, SPTL)
                Store (Zero, Local0)
                Store (0x02, BER2)
                While (LLess (Local0, 0x64))
                {
                    If (LEqual (SPTL, Zero))
                    {
                        Store (Zero, BER2)
                        Store (SDTA, BUF0)
                        Break
                    }
                    Else
                    {
                        Sleep (One)
                        Increment (Local0)
                    }
                }

                Return (CBE0)
            }

            Store (One, BER2)
            Return (CBE0)
        }

        Method (GBID, 1, NotSerialized)
        {
            Store (Zero, Local1)
            If (LEqual (Arg0, One))
            {
                If (NB0A)
                {
                    Store (Zero, Local0)
                }
                Else
                {
                    Store (0x02, Local1)
                }
            }
            Else
            {
                If (LEqual (Arg0, 0x02))
                {
                    If (NB1A)
                    {
                        Store (0x10, Local0)
                    }
                    Else
                    {
                        Store (0x02, Local1)
                    }
                }
                Else
                {
                    Store (0x02, Local1)
                }
            }

            Store (Zero, BUF0)
            Store (Local1, BER2)
            Return (Local0)
        }

        Method (ACRN, 1, NotSerialized)
        {
            Store (Zero, Local0)
            If (FIRE)
            {
                If (LEqual (Arg0, 0x0E))
                {
                    Store (0x0B00, Local0)
                }

                Store (Local0, BUID)
                Notify (AMWA, 0xB2)
            }

            If (LOr (FIRE, WCDA))
            {
                If (LEqual (Arg0, 0x10))
                {
                    Store (0x0C00, Local0)
                    Store (Local0, BUID)
                    Notify (AMWA, 0xB2)
                }
            }
        }

        Method (GACR, 0, NotSerialized)
        {
            Store (Zero, Local0)
            And (BUID, 0xFF00, Local1)
            If (FIRE)
            {
                If (LEqual (Local1, 0x0B00))
                {
                    Or (Local1, BBST, Local0)
                }
            }

            If (LOr (FIRE, WCDA))
            {
                If (LEqual (Local1, 0x0C00))
                {
                    Store (Local1, Local0)
                }
            }

            Store (Local0, BUID)
        }

        Name (TMPV, Zero)
        Method (WMBI, 3, NotSerialized)
        {
            Store (One, BER2)
            Store (Zero, TMPV)
            If (LEqual (Arg1, 0x03))
            {
                Store (I15H (One, 0x9610, 0x10, Zero, Zero), TMPV)
                Store (Zero, BER2)
            }

            If (LEqual (Arg1, 0x06))
            {
                Store (I15H (One, 0x9610, 0x0236, Zero, Zero), TMPV)
                B2HV ()
                Store (Zero, BER2)
            }

            If (LEqual (Arg1, 0x07))
            {
                Store (I15H (0x02, 0x9610, 0x38, Zero, Zero), TMPV)
                Store (Zero, BER2)
            }

            If (LEqual (Arg1, 0x08))
            {
                Store (I15H (One, 0x9610, 0x0239, Zero, Zero), TMPV)
                B2HV ()
                Store (Zero, BER2)
            }

            If (LEqual (Arg1, 0x09))
            {
                Store (I15H (One, 0x9610, 0x023B, Zero, Zero), TMPV)
                B2HV ()
                Store (Zero, BER2)
            }

            If (LEqual (Arg1, 0x0A))
            {
                Store (I15H (0x02, 0x9610, 0x0261, Zero, Zero), TMPV)
                Store (Zero, BER2)
            }

            If (LEqual (Arg1, 0x0B))
            {
                Store (Zero, BER2)
            }

            Store (TMPV, BUF0)
            Return (CBE0)
        }

        Method (B2HV, 0, NotSerialized)
        {
            If (LEqual (TMPV, 0x04))
            {
                Store (0x03, TMPV)
            }

            If (LEqual (TMPV, 0x08))
            {
                Store (0x04, TMPV)
            }

            If (LEqual (TMPV, 0x10))
            {
                Store (0x05, TMPV)
            }

            If (LEqual (TMPV, 0x20))
            {
                Store (0x06, TMPV)
            }

            If (LEqual (TMPV, 0x40))
            {
                Store (0x07, TMPV)
            }

            If (LEqual (TMPV, 0x80))
            {
                Store (0x08, TMPV)
            }
        }

        Method (WMBJ, 3, NotSerialized)
        {
            Store (One, BER2)
            Return (CBE0)
        }
    }

    Scope (\)
    {
        OperationRegion (CMIO, SystemIO, 0x72, 0x02)
        Field (CMIO, ByteAcc, Lock, Preserve)
        {
            CINX,   8, 
            CDAT,   8
        }

        IndexField (CINX, CDAT, ByteAcc, NoLock, Preserve)
        {
                    Offset (0x10), 
            CMX0,   32, 
            CMX1,   32, 
            CMX2,   32, 
            CMX3,   32, 
            CMX4,   32, 
            CMX5,   32, 
            CMX6,   32, 
            CMX7,   32
        }

        Method (WB15, 6, NotSerialized)
        {
            CreateDWordField (Arg0, Zero, OEAX)
            CreateDWordField (Arg0, 0x04, OEBX)
            CreateDWordField (Arg0, 0x08, OECX)
            CreateDWordField (Arg0, 0x0C, OEDX)
            CreateDWordField (Arg0, 0x10, OFLG)
            CreateDWordField (Arg0, 0x14, OESI)
            CreateDWordField (Arg0, 0x18, OEDI)
            Store (One, OFLG)
            ShiftRight (Arg1, 0x08, Local6)
            And (Local6, 0xFF, Local6)
            If (LEqual (Local6, Zero))
            {
                Store (CMX0, OECX)
                Store (CMX1, OEDX)
                Store (CMX2, OESI)
                Store (CMX3, OEDI)
                Store (Zero, OFLG)
                Return (Zero)
            }

            If (LEqual (Local6, 0x10))
            {
                Store (CMX4, OECX)
                Store (CMX5, OEDX)
                Store (CMX6, OESI)
                Store (CMX7, OEDI)
                Store (Zero, OFLG)
                Return (Zero)
            }

            If (LEqual (Local6, One))
            {
                Store (Arg2, CMX0)
                Store (Arg3, CMX1)
                Store (Arg4, CMX2)
                Store (Arg5, CMX3)
                Store (Zero, OFLG)
                Return (Zero)
            }

            If (LEqual (Local6, 0x11))
            {
                Store (Arg2, CMX4)
                Store (Arg3, CMX5)
                Store (Arg4, CMX6)
                Store (Arg5, CMX7)
                Store (Zero, OFLG)
                Return (Zero)
            }
        }
    }

    Scope (\)
    {
        Field (CNVS, AnyAcc, Lock, Preserve)
        {
                    Offset (0x440), 
            WPSO,   32, 
            WPSL,   32, 
            WPSC,   256
        }

        Field (CNVS, AnyAcc, Lock, Preserve)
        {
                    Offset (0x470), 
            CBE1,   160
        }
    }

    Scope (_SB.AMWA)
    {
        Name (B0UC, Buffer (0x46)
        {
            /* 0000 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0008 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0010 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0018 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0020 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0028 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0030 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0038 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
            /* 0040 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00
        })
        Method (WMC9, 3, NotSerialized)
        {
            Store (0xC9, P80H)
            Store (Zero, BER2)
            If (LEqual (Arg1, One))
            {
                Store (Zero, AWCB)
                Store (Arg2, AWCB)
                If (LEqual (WPSO, Zero))
                {
                    Store (I15H (0x05, 0x9610, 0x0107, Zero, Zero), Local0)
                }

                If (LEqual (WPSO, One))
                {
                    Store (I15H (0x05, 0x9610, 0x0108, Zero, Zero), Local0)
                }

                If (And (Local0, One))
                {
                    Store (Zero, BUF0)
                }
                Else
                {
                    Store (One, BUF0)
                }

                Store (Zero, BER2)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x02))
            {
                Store (Zero, AWCB)
                Store (Arg2, AWCB)
                Store (WPSC, AWDB)
                CreateByteField (WPSC, Zero, PSSR)
                If (LEqual (WPSO, Zero))
                {
                    If (LEqual (PSSR, Zero))
                    {
                        I15H (0x05, 0x9610, 0x07, WPSL, Zero)
                    }
                    Else
                    {
                        I15H (0x05, 0x9610, 0x0207, WPSL, Zero)
                    }
                }

                If (LEqual (WPSO, One))
                {
                    If (LEqual (PSSR, Zero))
                    {
                        I15H (0x05, 0x9610, 0x08, WPSL, Zero)
                    }
                    Else
                    {
                        I15H (0x05, 0x9610, 0x0208, WPSL, Zero)
                    }
                }

                Store (Zero, BER2)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x03))
            {
                Store (Zero, AWCB)
                Store (Arg2, AWCB)
                Store (WPSC, AWDB)
                If (LEqual (WPSO, Zero))
                {
                    Store (I15H (0x05, 0x9610, 0x0307, WPSL, Zero), Local0)
                }

                If (LEqual (WPSO, One))
                {
                    Store (I15H (0x05, 0x9610, 0x0308, WPSL, Zero), Local0)
                }

                If (And (Local0, One))
                {
                    Store (One, BUF0)
                }
                Else
                {
                    Store (Zero, BUF0)
                }

                Store (Zero, BER2)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x04))
            {
                Store (Zero, CBE1)
                I15H (0x05, 0x9610, 0x17, Zero, Zero)
                Store (Zero, BER2)
                Return (CBE1)
            }

            If (LEqual (Arg1, 0x05))
            {
                Store (Zero, AWCB)
                Store (Arg2, AWCB)
                Store (Arg2, CBE1)
                I15H (0x05, 0x9610, 0x0117, Zero, Zero)
                Store (Zero, CBE0)
                Store (Zero, BER2)
                Return (CBE0)
            }

            If (LEqual (Arg1, 0x0A))
            {
                Store (I15H (0x03, 0x9610, 0x16, Zero, Zero), Local0)
                If (And (Local0, 0xFF))
                {
                    Store (Zero, BUF0)
                }
                Else
                {
                    Store (One, BUF0)
                }

                Store (Zero, BER2)
                Return (CBE0)
            }
        }

        Method (WS2C, 2, NotSerialized)
        {
            Store (SizeOf (Arg0), Local0)
            Increment (Local0)
            Name (STR1, Buffer (Local0) {})
            Store (Arg0, STR1)
            Store (Arg1, Local1)
            Store (Zero, Local2)
            While (LLess (Local1, Local0))
            {
                Store (DerefOf (Index (STR1, Local1)), Local3)
                If (Local3)
                {
                    WRCB (Local2, Local3)
                    Increment (Local2)
                }

                Increment (Local1)
            }

            If (LLess (Local2, 0x20))
            {
                WRCB (Local2, Zero)
            }

            Return (Local2)
        }

        Method (WH2C, 2, NotSerialized)
        {
            Store (SizeOf (Arg0), Local0)
            Increment (Local0)
            Name (STR1, Buffer (Local0) {})
            Store (Arg0, STR1)
            Store (Zero, Local1)
            Store (Zero, Local2)
            While (LLess (Local1, Local0))
            {
                Store (DerefOf (Index (STR1, Local1)), Local3)
                WRCB (Local2, Local3)
                Increment (Local2)
                Increment (Local1)
                If (LEqual (Local3, 0xFF))
                {
                    Break
                }
            }

            If (LLess (Local2, 0x20))
            {
                WRCB (Local2, 0xFF)
            }

            Return (Local2)
        }

        Method (RC2H, 1, NotSerialized)
        {
            Store (Arg0, Local0)
            If (LGreaterEqual (Local0, 0x20))
            {
                Store (0x20, Local0)
            }

            Store (Zero, Local1)
            While (LLess (Local1, Local0))
            {
                Store (RDCB (Local1), Local2)
                Store (Local2, Index (CBE1, Local1))
                Increment (Local1)
                If (LEqual (Local2, 0xFF))
                {
                    Break
                }
            }

            Return (Local1)
        }

        Method (RC2U, 1, NotSerialized)
        {
            Store (0x20, Local0)
            While (Local0)
            {
                Decrement (Local0)
                If (LNotEqual (RDCB (Local0), 0x20))
                {
                    Increment (Local0)
                    Break
                }
            }

            Store (Zero, Local1)
            Store (Arg0, Local2)
            While (LLess (Local1, Local0))
            {
                Store (RDCB (Local1), Local3)
                Store (Local3, Index (B0UC, Local2))
                Increment (Local2)
                Store (Zero, Index (B0UC, Local2))
                Increment (Local2)
                If (LEqual (Local3, Zero))
                {
                    Break
                }

                Increment (Local1)
            }

            If (LEqual (Local1, Zero))
            {
                Increment (Local1)
            }

            ShiftLeft (Local1, One, Local1)
            Return (Local1)
        }

        Method (WRCB, 2, NotSerialized)
        {
            If (LGreaterEqual (Arg0, 0x20))
            {
                Return (Zero)
            }

            Acquire (MSMI, 0xFFFF)
            Add (Arg0, 0x10, Local0)
            Store (Local0, CINX)
            Store (Arg1, CDAT)
            Release (MSMI)
        }

        Method (RDCB, 1, NotSerialized)
        {
            If (LGreaterEqual (Arg0, 0x20))
            {
                Return (Zero)
            }

            Acquire (MSMI, 0xFFFF)
            Add (Arg0, 0x10, Local0)
            Store (Local0, CINX)
            Store (CDAT, Local0)
            Release (MSMI)
            Return (Local0)
        }
    }

    Scope (_SB.AMWA)
    {
        Name (WQEE, Buffer (0x07DE)
        {
            /* 0000 */    0x46, 0x4F, 0x4D, 0x42, 0x01, 0x00, 0x00, 0x00, 
            /* 0008 */    0xCE, 0x07, 0x00, 0x00, 0xA0, 0x26, 0x00, 0x00, 
            /* 0010 */    0x44, 0x53, 0x00, 0x01, 0x1A, 0x7D, 0xDA, 0x54, 
            /* 0018 */    0x28, 0xC9, 0x92, 0x00, 0x01, 0x06, 0x18, 0x42, 
            /* 0020 */    0x10, 0x0B, 0x10, 0x22, 0x21, 0x04, 0x12, 0x01, 
            /* 0028 */    0xA1, 0xC8, 0x2C, 0x0C, 0x86, 0x10, 0x38, 0x2E, 
            /* 0030 */    0x84, 0x1C, 0x40, 0x48, 0x1C, 0x14, 0x4A, 0x08, 
            /* 0038 */    0x84, 0xFA, 0x13, 0xC8, 0xAF, 0x00, 0x84, 0x0E, 
            /* 0040 */    0x05, 0xC8, 0x14, 0x60, 0x50, 0x80, 0x53, 0x04, 
            /* 0048 */    0x11, 0xF4, 0x2A, 0xC0, 0xA6, 0x00, 0x93, 0x02, 
            /* 0050 */    0x2C, 0x0A, 0xD0, 0x2E, 0xC0, 0xB2, 0x00, 0xDD, 
            /* 0058 */    0x02, 0xA4, 0xC3, 0x12, 0x91, 0xE0, 0x28, 0x31, 
            /* 0060 */    0xE0, 0x28, 0x9D, 0xD8, 0xC2, 0x0D, 0x1B, 0xBC, 
            /* 0068 */    0x50, 0x14, 0xCD, 0x20, 0x4A, 0x82, 0xCA, 0x05, 
            /* 0070 */    0xF8, 0x46, 0x10, 0x78, 0xB9, 0x02, 0x24, 0x4F, 
            /* 0078 */    0x40, 0x9A, 0x05, 0x18, 0x16, 0x60, 0x5D, 0x80, 
            /* 0080 */    0xEC, 0x21, 0x50, 0xA9, 0x43, 0x40, 0xC9, 0x19, 
            /* 0088 */    0x02, 0x6A, 0x00, 0xAD, 0x4E, 0x40, 0xF8, 0x95, 
            /* 0090 */    0x4E, 0x09, 0x49, 0x10, 0xCE, 0x58, 0xC5, 0xE3, 
            /* 0098 */    0x6B, 0x16, 0x4D, 0xCF, 0x49, 0xCE, 0x31, 0xE4, 
            /* 00A0 */    0x78, 0x5C, 0xE8, 0x41, 0xF0, 0xA8, 0x12, 0x40, 
            /* 00A8 */    0x98, 0xFC, 0x21, 0x2B, 0x1C, 0x0C, 0x4A, 0xC3, 
            /* 00B0 */    0x58, 0xA8, 0x8B, 0x51, 0xA3, 0x46, 0xCA, 0x06, 
            /* 00B8 */    0x64, 0x88, 0x92, 0xE0, 0x50, 0xA3, 0xB6, 0x44, 
            /* 00C0 */    0x01, 0xE6, 0xC7, 0xA1, 0xD9, 0xB5, 0x3D, 0x16, 
            /* 00C8 */    0x02, 0xC9, 0xA4, 0x0D, 0x05, 0x25, 0x05, 0x42, 
            /* 00D0 */    0x63, 0x3B, 0x53, 0xCF, 0x28, 0xE2, 0x91, 0x1A, 
            /* 00D8 */    0x26, 0x81, 0x47, 0x11, 0xD9, 0x68, 0x1C, 0x1A, 
            /* 00E0 */    0x3B, 0x0C, 0x0F, 0x33, 0xD8, 0x41, 0x1C, 0xC6, 
            /* 00E8 */    0x31, 0x47, 0x4E, 0xE0, 0x09, 0x1D, 0xE9, 0x91, 
            /* 00F0 */    0x17, 0x36, 0x4F, 0xA1, 0xC6, 0x68, 0x0E, 0x8A, 
            /* 00F8 */    0x08, 0x3E, 0x0A, 0xA0, 0xC7, 0x14, 0xF6, 0x68, 
            /* 0100 */    0x63, 0x9F, 0xAF, 0x85, 0x0F, 0x56, 0x18, 0x47, 
            /* 0108 */    0x70, 0x5C, 0x09, 0xFE, 0xFF, 0x27, 0x7E, 0x28, 
            /* 0110 */    0x3D, 0xC2, 0x49, 0xD0, 0x14, 0x29, 0xC8, 0x51, 
            /* 0118 */    0x63, 0x64, 0xE1, 0x48, 0xEB, 0xAC, 0xC8, 0xDC, 
            /* 0120 */    0x0D, 0x6C, 0xA0, 0xCA, 0x04, 0xE8, 0x1A, 0x89, 
            /* 0128 */    0x08, 0x8E, 0xE7, 0x40, 0x30, 0x32, 0x20, 0xE4, 
            /* 0130 */    0xF9, 0x5C, 0xA0, 0x11, 0x9A, 0xC0, 0xEE, 0x05, 
            /* 0138 */    0x68, 0x13, 0xE0, 0x0D, 0x42, 0xE3, 0x88, 0xD0, 
            /* 0140 */    0x98, 0x00, 0x6B, 0x93, 0x90, 0x2D, 0x1C, 0x32, 
            /* 0148 */    0xAF, 0x58, 0x51, 0x62, 0x1C, 0xD3, 0x91, 0xD5, 
            /* 0150 */    0x88, 0x22, 0xA4, 0x73, 0x78, 0x33, 0x88, 0x10, 
            /* 0158 */    0x25, 0x66, 0xC8, 0x88, 0xC1, 0x82, 0x3C, 0x46, 
            /* 0160 */    0xC4, 0xF0, 0x10, 0x0D, 0x17, 0xA9, 0xFD, 0x41, 
            /* 0168 */    0x10, 0x79, 0x8F, 0x09, 0x9D, 0x07, 0x1C, 0x69, 
            /* 0170 */    0x34, 0xA8, 0xC3, 0x82, 0xCF, 0x04, 0x9E, 0xDC, 
            /* 0178 */    0x33, 0x82, 0xC7, 0x76, 0xCE, 0x41, 0xCE, 0xF3, 
            /* 0180 */    0xD8, 0x1E, 0x21, 0x1E, 0x06, 0x3C, 0x6C, 0x76, 
            /* 0188 */    0x4B, 0xF0, 0xD9, 0xC2, 0xA7, 0x03, 0xBC, 0x6B, 
            /* 0190 */    0x40, 0x5D, 0x0B, 0x1E, 0x0A, 0xD8, 0x24, 0xC3, 
            /* 0198 */    0x61, 0x86, 0xE8, 0xB1, 0x86, 0x3B, 0x81, 0x43, 
            /* 01A0 */    0x64, 0x80, 0x1E, 0xAB, 0xCF, 0x03, 0xB8, 0xB9, 
            /* 01A8 */    0x9D, 0xCC, 0xA1, 0xBF, 0x4F, 0x34, 0x7B, 0x93, 
            /* 01B0 */    0x20, 0x04, 0xC7, 0xE3, 0x4B, 0x04, 0x9B, 0xF0, 
            /* 01B8 */    0xA3, 0x03, 0x19, 0x04, 0x6A, 0x64, 0x86, 0xF6, 
            /* 01C0 */    0x50, 0x4F, 0xEB, 0x65, 0xC0, 0xC7, 0x00, 0x13, 
            /* 01C8 */    0x58, 0x2C, 0x84, 0x14, 0x40, 0x68, 0x3C, 0xE0, 
            /* 01D0 */    0x57, 0x7C, 0xF0, 0x20, 0x37, 0x06, 0xCF, 0xD7, 
            /* 01D8 */    0x67, 0x08, 0x9D, 0x2C, 0x64, 0x64, 0x15, 0x1E, 
            /* 01E0 */    0x0F, 0x3D, 0x2E, 0xF8, 0x8E, 0x80, 0xB9, 0x30, 
            /* 01E8 */    0x78, 0xE8, 0x1E, 0xD2, 0xF3, 0x81, 0x25, 0x1D, 
            /* 01F0 */    0x32, 0xE8, 0xFF, 0x5F, 0xD4, 0xC8, 0xE9, 0xA1, 
            /* 01F8 */    0x82, 0x9F, 0x27, 0x18, 0x6C, 0xD0, 0xB0, 0x1E, 
            /* 0200 */    0xCC, 0x39, 0xF9, 0xCF, 0xE2, 0xB1, 0xC1, 0x07, 
            /* 0208 */    0xC4, 0x7B, 0x9F, 0x35, 0x19, 0xC1, 0xC9, 0x1A, 
            /* 0210 */    0xD0, 0x87, 0x07, 0xDC, 0xA1, 0x02, 0xBC, 0x30, 
            /* 0218 */    0x87, 0xC5, 0xAF, 0x15, 0x70, 0x0F, 0x0B, 0x6C, 
            /* 0220 */    0x94, 0x7C, 0x34, 0x1E, 0xC2, 0x59, 0x3C, 0x0D, 
            /* 0228 */    0x18, 0xC6, 0xE8, 0x4F, 0x01, 0xB0, 0x6F, 0x18, 
            /* 0230 */    0x1E, 0x8B, 0x0F, 0x3A, 0x3E, 0xE9, 0x80, 0x63, 
            /* 0238 */    0x70, 0xFC, 0x0A, 0x83, 0x3B, 0xE9, 0x00, 0x8F, 
            /* 0240 */    0xB9, 0x3E, 0xE9, 0x80, 0xED, 0x7C, 0xC0, 0x4E, 
            /* 0248 */    0x39, 0xD0, 0x4C, 0x80, 0xB0, 0x00, 0x6F, 0x04, 
            /* 0250 */    0xC9, 0x5A, 0x37, 0x85, 0xF1, 0xFF, 0xFF, 0x94, 
            /* 0258 */    0x03, 0xB8, 0xBA, 0x4B, 0xF8, 0x04, 0x01, 0x56, 
            /* 0260 */    0x8C, 0xE7, 0x0D, 0x8B, 0x06, 0xD4, 0x08, 0x9E, 
            /* 0268 */    0x1F, 0x60, 0x1F, 0x73, 0xE0, 0x5F, 0x6D, 0x7C, 
            /* 0270 */    0xBE, 0x09, 0x72, 0x52, 0x41, 0x0E, 0xE5, 0xF5, 
            /* 0278 */    0xE6, 0xC9, 0x21, 0xCC, 0x8B, 0xCE, 0x13, 0x8E, 
            /* 0280 */    0x87, 0x56, 0x21, 0x88, 0x9C, 0x1D, 0x73, 0x08, 
            /* 0288 */    0xD2, 0x03, 0x8E, 0x51, 0x0C, 0x72, 0x66, 0x51, 
            /* 0290 */    0xA3, 0x45, 0x31, 0x5E, 0x90, 0x68, 0x11, 0x8F, 
            /* 0298 */    0xE0, 0x31, 0x87, 0xC5, 0x3A, 0x10, 0xE8, 0x1F, 
            /* 02A0 */    0xE5, 0x63, 0x0E, 0x70, 0xFF, 0xFF, 0x1F, 0x73, 
            /* 02A8 */    0x00, 0x47, 0xF2, 0x8E, 0x24, 0xA0, 0x1A, 0x15, 
            /* 02B0 */    0xBF, 0x32, 0xB0, 0x33, 0x09, 0x30, 0x89, 0xF2, 
            /* 02B8 */    0xF4, 0xD0, 0x38, 0xAD, 0xF1, 0x39, 0x20, 0x1B, 
            /* 02C0 */    0x27, 0x21, 0x3A, 0x08, 0x2B, 0xA1, 0xD2, 0x08, 
            /* 02C8 */    0xDE, 0x23, 0x7C, 0x6B, 0x88, 0xFB, 0x6C, 0xE0, 
            /* 02D0 */    0xF9, 0x60, 0xD2, 0x1F, 0x14, 0x74, 0xFE, 0x31, 
            /* 02D8 */    0xB8, 0x73, 0x93, 0x28, 0xF7, 0x80, 0x28, 0xBC, 
            /* 02E0 */    0x93, 0x1E, 0x83, 0x28, 0x88, 0x01, 0x1D, 0x03, 
            /* 02E8 */    0x42, 0x56, 0x0E, 0x02, 0xE8, 0xEB, 0x84, 0x8F, 
            /* 02F0 */    0x0C, 0x3E, 0x67, 0x44, 0x39, 0x23, 0x1F, 0x30, 
            /* 02F8 */    0x1E, 0x17, 0xD8, 0x70, 0x7C, 0x10, 0xE0, 0x07, 
            /* 0300 */    0x14, 0xDF, 0x0C, 0x8C, 0x6D, 0x35, 0xC7, 0x1D, 
            /* 0308 */    0x14, 0x98, 0xE1, 0x5F, 0x60, 0x4C, 0xE0, 0x7B, 
            /* 0310 */    0xC6, 0xCB, 0x00, 0xBC, 0xFF, 0xFF, 0x6D, 0x07, 
            /* 0318 */    0x7B, 0xC6, 0x78, 0x2C, 0xB1, 0xBE, 0xC3, 0x00, 
            /* 0320 */    0x28, 0x80, 0x3C, 0x7D, 0x9F, 0x68, 0x1E, 0x01, 
            /* 0328 */    0xD8, 0x18, 0x1E, 0x6A, 0x8C, 0x66, 0x74, 0x1E, 
            /* 0330 */    0x7F, 0xAE, 0xA8, 0xC0, 0x73, 0xA5, 0x20, 0x9E, 
            /* 0338 */    0xAB, 0xC3, 0x40, 0xC8, 0xC9, 0x5C, 0x51, 0xB7, 
            /* 0340 */    0x17, 0x8F, 0xC8, 0x3E, 0xA7, 0x4A, 0x06, 0xCB, 
            /* 0348 */    0x09, 0xA2, 0xBC, 0x6A, 0xC0, 0x3A, 0x08, 0x44, 
            /* 0350 */    0x64, 0xF3, 0xF0, 0x5D, 0x09, 0x3F, 0x5B, 0x3E, 
            /* 0358 */    0x18, 0x5F, 0x25, 0xE0, 0x0F, 0x97, 0x9F, 0x4A, 
            /* 0360 */    0xDE, 0x4D, 0x12, 0x58, 0xE0, 0x74, 0x41, 0x0E, 
            /* 0368 */    0x8F, 0x11, 0xB4, 0x1E, 0x5D, 0x41, 0x7D, 0x97, 
            /* 0370 */    0xF2, 0xB8, 0xF8, 0xED, 0xC0, 0x37, 0x1E, 0x76, 
            /* 0378 */    0xA7, 0xC1, 0x5D, 0xC4, 0x30, 0xB0, 0x1E, 0x29, 
            /* 0380 */    0x87, 0x35, 0x5A, 0xD8, 0x03, 0x7E, 0xE3, 0xF0, 
            /* 0388 */    0x71, 0xC5, 0x33, 0x33, 0x46, 0x58, 0xDF, 0x53, 
            /* 0390 */    0xC0, 0x71, 0x27, 0x83, 0x1F, 0x60, 0x6C, 0x88, 
            /* 0398 */    0xFF, 0xFF, 0x15, 0x08, 0x7C, 0x67, 0x0D, 0x76, 
            /* 03A0 */    0x25, 0x33, 0xC8, 0x8B, 0x92, 0xCF, 0x35, 0x46, 
            /* 03A8 */    0x0F, 0xF4, 0xBE, 0x81, 0xBF, 0x09, 0xC1, 0xBE, 
            /* 03B0 */    0x81, 0xC0, 0x19, 0x8A, 0x6F, 0x20, 0xC0, 0xE1, 
            /* 03B8 */    0x18, 0x81, 0xBB, 0x81, 0x00, 0xEB, 0x3B, 0x04, 
            /* 03C0 */    0xBB, 0x81, 0x00, 0xCB, 0xD3, 0x0B, 0xEE, 0x06, 
            /* 03C8 */    0x02, 0xCE, 0xFF, 0xFF, 0x0D, 0x04, 0xB8, 0xDC, 
            /* 03D0 */    0x5F, 0xD8, 0x0D, 0x04, 0x98, 0x8F, 0xDA, 0x37, 
            /* 03D8 */    0x10, 0xC0, 0xD2, 0x59, 0x83, 0xDD, 0x40, 0xC0, 
            /* 03E0 */    0x2F, 0xD2, 0xC3, 0x78, 0x58, 0x8C, 0xA1, 0x4B, 
            /* 03E8 */    0xE0, 0xC2, 0x29, 0x8C, 0x4F, 0x89, 0xE0, 0xFA, 
            /* 03F0 */    0xFF, 0x9F, 0x12, 0x81, 0xFF, 0xB9, 0xC2, 0x27, 
            /* 03F8 */    0x00, 0x70, 0x9C, 0x1F, 0xCE, 0xE0, 0x14, 0xA2, 
            /* 0400 */    0x9D, 0xB9, 0x47, 0x1E, 0xE3, 0x0D, 0xC1, 0x28, 
            /* 0408 */    0x01, 0xE3, 0xC5, 0x88, 0x1B, 0xD2, 0x87, 0x3B, 
            /* 0410 */    0xDF, 0xDE, 0x0C, 0x14, 0xEF, 0xB0, 0xC2, 0xC6, 
            /* 0418 */    0x79, 0x11, 0xF0, 0x19, 0xEE, 0xE5, 0xD5, 0xA7, 
            /* 0420 */    0x03, 0x03, 0x3D, 0xF7, 0xF9, 0xA0, 0x08, 0xFB, 
            /* 0428 */    0x60, 0x7D, 0x56, 0x21, 0x22, 0x3C, 0x09, 0xBC, 
            /* 0430 */    0x53, 0x9C, 0xCC, 0xB3, 0xE1, 0x0B, 0xE2, 0xA1, 
            /* 0438 */    0x3D, 0x26, 0xFA, 0x72, 0xF8, 0xA0, 0xE8, 0x31, 
            /* 0440 */    0x3C, 0xB5, 0x45, 0x7D, 0x5A, 0x34, 0xCC, 0x93, 
            /* 0448 */    0xCA, 0xD3, 0xA2, 0x0F, 0x8D, 0x0C, 0xF8, 0xF1, 
            /* 0450 */    0x20, 0xB6, 0x41, 0x03, 0x3D, 0x64, 0x7B, 0x04, 
            /* 0458 */    0x0F, 0x8A, 0x2C, 0xDA, 0x41, 0x11, 0x50, 0xF4, 
            /* 0460 */    0xFF, 0x3F, 0x28, 0x02, 0x0E, 0x8E, 0xBA, 0xB8, 
            /* 0468 */    0xC3, 0x0B, 0xBC, 0x73, 0xC0, 0x23, 0x02, 0x0E, 
            /* 0470 */    0xED, 0x65, 0x01, 0x77, 0x54, 0x04, 0x2E, 0xD1, 
            /* 0478 */    0x9F, 0x03, 0x3A, 0xED, 0x38, 0xF6, 0xC5, 0x0A, 
            /* 0480 */    0x75, 0x8A, 0x71, 0xC8, 0x8B, 0x15, 0x62, 0x4A, 
            /* 0488 */    0xFC, 0x82, 0x60, 0xF8, 0x43, 0x08, 0xE2, 0x61, 
            /* 0490 */    0xB1, 0x29, 0xF8, 0x8C, 0x60, 0x02, 0xC7, 0x01, 
            /* 0498 */    0xD6, 0xED, 0x8A, 0x07, 0xA1, 0x50, 0x14, 0x1A, 
            /* 04A0 */    0x1D, 0x91, 0xB8, 0xF8, 0x4B, 0x16, 0x05, 0xF1, 
            /* 04A8 */    0x51, 0xC1, 0x81, 0x6E, 0x57, 0xE8, 0x83, 0x89, 
            /* 04B0 */    0x27, 0x75, 0xB2, 0xD8, 0xB9, 0xE0, 0x66, 0xE7, 
            /* 04B8 */    0x13, 0xC8, 0x2B, 0x16, 0xB0, 0xF8, 0xFF, 0x5F, 
            /* 04C0 */    0xB1, 0xC0, 0x91, 0x64, 0x60, 0x68, 0x2D, 0x03, 
            /* 04C8 */    0x83, 0x72, 0x14, 0x38, 0xAE, 0x93, 0x02, 0xEF, 
            /* 04D0 */    0x98, 0x7D, 0x0E, 0x03, 0xCE, 0xE1, 0xCF, 0x61, 
            /* 04D8 */    0xA8, 0xB8, 0x43, 0xA2, 0x20, 0x3E, 0x1D, 0x38, 
            /* 04E0 */    0xCA, 0x15, 0x0E, 0xD2, 0x00, 0x5E, 0x18, 0x0C, 
            /* 04E8 */    0x72, 0xB2, 0x07, 0xE9, 0x63, 0x18, 0xB8, 0x47, 
            /* 04F0 */    0xE2, 0x7B, 0x25, 0xF0, 0x16, 0x72, 0x0C, 0x43, 
            /* 04F8 */    0xFD, 0xFF, 0x8F, 0x61, 0xE0, 0x18, 0xB2, 0x8F, 
            /* 0500 */    0x61, 0xC0, 0xF5, 0xD4, 0x04, 0x9E, 0x1B, 0x18, 
            /* 0508 */    0x3F, 0x29, 0x61, 0x81, 0x9E, 0x3D, 0x38, 0xCE, 
            /* 0510 */    0x23, 0x93, 0x81, 0x39, 0x18, 0xBB, 0x9A, 0x60, 
            /* 0518 */    0x6F, 0x13, 0x1E, 0x94, 0x74, 0x8C, 0x85, 0x49, 
            /* 0520 */    0x1F, 0xB6, 0x44, 0x2D, 0x9A, 0xC2, 0xF8, 0x08, 
            /* 0528 */    0x06, 0xB8, 0x3A, 0x17, 0xF9, 0x08, 0x06, 0xCE, 
            /* 0530 */    0xFF, 0xFF, 0x11, 0x8C, 0xCD, 0x9D, 0x21, 0x19, 
            /* 0538 */    0xD5, 0x88, 0xEF, 0x04, 0xBE, 0x4A, 0xF9, 0xF0, 
            /* 0540 */    0x05, 0xFF, 0xB8, 0xF5, 0x1E, 0xF1, 0xC2, 0x75, 
            /* 0548 */    0x2C, 0xCF, 0x2C, 0x11, 0x62, 0x3C, 0xF4, 0xFB, 
            /* 0550 */    0x6C, 0x71, 0x52, 0x91, 0x0E, 0xEB, 0xE1, 0xCB, 
            /* 0558 */    0x47, 0xAF, 0x17, 0xB0, 0x97, 0xAE, 0x87, 0x2F, 
            /* 0560 */    0x9F, 0xBB, 0xDE, 0xF7, 0x8D, 0x12, 0x28, 0x68, 
            /* 0568 */    0xC4, 0xA0, 0x81, 0xE2, 0x3D, 0x86, 0x79, 0x00, 
            /* 0570 */    0x71, 0x82, 0x3C, 0xF4, 0xF3, 0xC3, 0x17, 0xC0, 
            /* 0578 */    0x25, 0xAB, 0x57, 0x04, 0xE4, 0x2D, 0x18, 0xC6, 
            /* 0580 */    0xE1, 0x8B, 0xFF, 0xFF, 0x0F, 0x5F, 0xE0, 0x8F, 
            /* 0588 */    0xAC, 0x62, 0xA4, 0x4C, 0xCF, 0x23, 0x46, 0x87, 
            /* 0590 */    0x2F, 0x7E, 0x24, 0xB0, 0x82, 0x27, 0x82, 0xF0, 
            /* 0598 */    0xDF, 0x60, 0x02, 0x9F, 0xCD, 0x23, 0xC1, 0x31, 
            /* 05A0 */    0x3C, 0x4D, 0xB0, 0xAB, 0xCA, 0xA3, 0x84, 0xA7, 
            /* 05A8 */    0xEB, 0xCC, 0x47, 0x31, 0x0A, 0xEF, 0xB4, 0x30, 
            /* 05B0 */    0x52, 0x45, 0xA2, 0x33, 0x11, 0xD7, 0x71, 0xFE, 
            /* 05B8 */    0xA2, 0x20, 0x3E, 0x34, 0xF8, 0x4C, 0x64, 0x25, 
            /* 05C0 */    0x67, 0x01, 0xD4, 0xE0, 0x3C, 0x09, 0xFC, 0x74, 
            /* 05C8 */    0xDF, 0x68, 0x7C, 0xEA, 0x02, 0x8E, 0x77, 0x8B, 
            /* 05D0 */    0xA7, 0x8C, 0x04, 0x43, 0x41, 0xC8, 0xC8, 0x60, 
            /* 05D8 */    0xE9, 0xA8, 0x3C, 0x30, 0xCF, 0x14, 0x46, 0x02, 
            /* 05E0 */    0x08, 0x4D, 0xD0, 0x73, 0x82, 0x77, 0x6F, 0xC2, 
            /* 05E8 */    0x0F, 0xE6, 0x69, 0xE0, 0x15, 0x85, 0x9F, 0xBD, 
            /* 05F0 */    0x60, 0x9E, 0x89, 0x3C, 0x35, 0x70, 0x1C, 0x47, 
            /* 05F8 */    0x5E, 0xBA, 0xD9, 0x19, 0x04, 0x07, 0xCC, 0x06, 
            /* 0600 */    0xF6, 0xFC, 0xF1, 0xDC, 0x63, 0xCC, 0xFF, 0xFF, 
            /* 0608 */    0x99, 0x79, 0xF4, 0x60, 0xBD, 0x1E, 0x78, 0xF4, 
            /* 0610 */    0xF0, 0x6F, 0x1F, 0xD8, 0xDB, 0x19, 0xB0, 0x88, 
            /* 0618 */    0x75, 0x05, 0x44, 0x05, 0xB9, 0x02, 0x52, 0x10, 
            /* 0620 */    0x4F, 0xCC, 0x71, 0x6E, 0x67, 0xE8, 0x49, 0xFA, 
            /* 0628 */    0x74, 0x86, 0x9B, 0xAE, 0x4F, 0x18, 0xBE, 0x75, 
            /* 0630 */    0x83, 0x1F, 0xCA, 0xF7, 0x33, 0xF0, 0xC5, 0x1A, 
            /* 0638 */    0x17, 0x5A, 0xD4, 0xE5, 0x01, 0xCA, 0x04, 0xC2, 
            /* 0640 */    0x9C, 0x48, 0xF0, 0x27, 0x91, 0x08, 0xEF, 0x4D, 
            /* 0648 */    0xBE, 0x86, 0xB1, 0xB1, 0x81, 0xFD, 0x40, 0xE1, 
            /* 0650 */    0xB1, 0xC1, 0xFC, 0xFF, 0x5F, 0xE5, 0x80, 0x9D, 
            /* 0658 */    0x88, 0xAB, 0x1C, 0xE8, 0xEE, 0x19, 0xFC, 0x2A, 
            /* 0660 */    0x07, 0x3C, 0xAF, 0x1B, 0xBE, 0x7D, 0x81, 0xE5, 
            /* 0668 */    0x8A, 0xC3, 0x6F, 0x5F, 0xFC, 0xEE, 0x65, 0x90, 
            /* 0670 */    0x30, 0x31, 0xC3, 0xF8, 0x90, 0x66, 0x9C, 0x27, 
            /* 0678 */    0x30, 0x86, 0xF4, 0x94, 0x80, 0x3D, 0x79, 0x38, 
            /* 0680 */    0xDF, 0xBD, 0x07, 0x35, 0x14, 0x67, 0x7A, 0x15, 
            /* 0688 */    0x68, 0xEA, 0xE7, 0xEB, 0xD3, 0x0B, 0x8C, 0x1C, 
            /* 0690 */    0x70, 0xBA, 0xF6, 0xF0, 0x04, 0x30, 0xD2, 0xBF, 
            /* 0698 */    0x7C, 0x1D, 0x36, 0xB8, 0xE2, 0xDB, 0x0F, 0x05, 
            /* 06A0 */    0xF1, 0x95, 0xC4, 0x69, 0xAE, 0x3D, 0x68, 0x3D, 
            /* 06A8 */    0x20, 0xF2, 0x39, 0x76, 0x0D, 0xE1, 0xC1, 0x07, 
            /* 06B0 */    0x3C, 0xFF, 0xFF, 0x83, 0x0F, 0xF0, 0xCA, 0x75, 
            /* 06B8 */    0xF0, 0x41, 0x0F, 0xC6, 0xD3, 0x82, 0x75, 0xF3, 
            /* 06C0 */    0x01, 0x1C, 0x1C, 0x01, 0xE0, 0x5C, 0xB9, 0x4E, 
            /* 06C8 */    0xFE, 0xC8, 0x1E, 0x01, 0x80, 0xCD, 0xE9, 0x07, 
            /* 06D0 */    0x1C, 0x47, 0x00, 0x30, 0x4C, 0x0B, 0xD6, 0x11, 
            /* 06D8 */    0x00, 0xAC, 0xFF, 0xFF, 0x23, 0x00, 0x6C, 0x24, 
            /* 06E0 */    0xDF, 0xA5, 0x00, 0x0B, 0xC3, 0xF4, 0x5D, 0x0A, 
            /* 06E8 */    0x38, 0x7F, 0x21, 0x7C, 0x1F, 0xE1, 0x91, 0xAF, 
            /* 06F0 */    0x11, 0x14, 0xC4, 0x57, 0x04, 0xDF, 0xA5, 0x80, 
            /* 06F8 */    0xE7, 0x05, 0xC8, 0x17, 0x24, 0xE0, 0xF5, 0xFF, 
            /* 0700 */    0xBF, 0x20, 0xC1, 0x97, 0x70, 0x41, 0x02, 0xDD, 
            /* 0708 */    0xB0, 0x7D, 0x41, 0x02, 0xAE, 0xA8, 0xBE, 0x20, 
            /* 0710 */    0x81, 0xE3, 0x2E, 0xC4, 0xEE, 0x47, 0x60, 0x55, 
            /* 0718 */    0x68, 0xD3, 0xA7, 0x46, 0xA3, 0x56, 0x0D, 0xCA, 
            /* 0720 */    0xD4, 0x28, 0xD3, 0xA0, 0x56, 0x9F, 0x4A, 0x8D, 
            /* 0728 */    0x19, 0x3B, 0xE2, 0x1E, 0x96, 0xD6, 0xAC, 0xCB, 
            /* 0730 */    0x1C, 0x01, 0xA1, 0xC1, 0x1F, 0x16, 0x02, 0x71, 
            /* 0738 */    0x78, 0x0F, 0x20, 0x4C, 0xFA, 0xAA, 0x04, 0xE2, 
            /* 0740 */    0x98, 0x26, 0x0E, 0x28, 0x3A, 0x6C, 0x1A, 0x44, 
            /* 0748 */    0x40, 0x4E, 0x78, 0xF8, 0x14, 0x90, 0xF3, 0x82, 
            /* 0750 */    0x08, 0xC8, 0x4A, 0x6C, 0x00, 0x31, 0x59, 0x20, 
            /* 0758 */    0x02, 0xB2, 0x88, 0x33, 0xB5, 0x80, 0x2C, 0x09, 
            /* 0760 */    0x44, 0x40, 0x0E, 0x4B, 0x23, 0x10, 0x4B, 0xFD, 
            /* 0768 */    0xD7, 0x08, 0xC4, 0x71, 0x1F, 0x13, 0x02, 0x74, 
            /* 0770 */    0x76, 0x10, 0x01, 0x59, 0xF7, 0x2B, 0x5A, 0x40, 
            /* 0778 */    0x0E, 0x01, 0x22, 0x20, 0x0B, 0xB6, 0x02, 0xC4, 
            /* 0780 */    0xE4, 0x83, 0x68, 0x10, 0xC4, 0x0C, 0x08, 0x8B, 
            /* 0788 */    0x00, 0x42, 0x83, 0xFF, 0x43, 0x04, 0x68, 0x15, 
            /* 0790 */    0x6E, 0x80, 0xD8, 0xFF, 0x3F, 0x0D, 0x88, 0x80, 
            /* 0798 */    0x1C, 0x0D, 0x88, 0x4A, 0x7A, 0x51, 0x08, 0xC8, 
            /* 07A0 */    0xFA, 0x40, 0x04, 0x64, 0x3D, 0x76, 0x80, 0x98, 
            /* 07A8 */    0x3A, 0x10, 0x01, 0x39, 0x25, 0x10, 0xCD, 0x0C, 
            /* 07B0 */    0x44, 0x85, 0x3C, 0x0C, 0x04, 0x64, 0x55, 0x20, 
            /* 07B8 */    0x02, 0x72, 0x40, 0x20, 0x9A, 0x16, 0x88, 0x8A, 
            /* 07C0 */    0x35, 0x04, 0xC4, 0x94, 0x83, 0x68, 0x50, 0x44, 
            /* 07C8 */    0x11, 0x10, 0x53, 0x04, 0x22, 0x20, 0x27, 0x01, 
            /* 07D0 */    0xA2, 0xB1, 0x80, 0x68, 0x0C, 0x47, 0x40, 0x2C, 
            /* 07D8 */    0x14, 0x88, 0x80, 0xFC, 0xFF, 0x07
        })
    }

    Scope (\)
    {
        Name (BCLP, Package (0x0C)
        {
            0x64, 
            0x3C, 
            0x0A, 
            0x14, 
            0x1E, 
            0x28, 
            0x32, 
            0x3C, 
            0x46, 
            0x50, 
            0x5A, 
            0x64
        })
        Name (MAXL, 0x0B)
        Method (BIAN, 1, NotSerialized)
        {
            If (LEqual (And (DID1, 0x0F00), 0x0400))
            {
                Notify (\_SB.PCI0.GFX0.DD01, Arg0)
            }

            If (LEqual (And (DID2, 0x0F00), 0x0400))
            {
                Notify (\_SB.PCI0.GFX0.DD02, Arg0)
            }

            If (LEqual (And (DID3, 0x0F00), 0x0400))
            {
                Notify (\_SB.PCI0.GFX0.DD03, Arg0)
            }

            If (LEqual (And (DID4, 0x0F00), 0x0400))
            {
                Notify (\_SB.PCI0.GFX0.DD04, Arg0)
            }

            If (LEqual (And (DID5, 0x0F00), 0x0400))
            {
                Notify (\_SB.PCI0.GFX0.DD05, Arg0)
            }
        }
    }

    Scope (_SB.PCI0.PEG0.PEGP)
    {
        OperationRegion (DGPU, PCI_Config, Zero, 0x10)
        Field (DGPU, AnyAcc, NoLock, Preserve)
        {
            DGID,   16, 
            GDID,   16
        }

        Method (_DOS, 1, NotSerialized)
        {
            Store (And (Arg0, 0x03), DSEN)
        }

        Method (_DOD, 0, NotSerialized)
        {
            If (LNotEqual (SKUT, 0x03))
            {
                If (LEqual (GPUT, 0x03))
                {
                    If (LAnd (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                    {
                        Return (Package (0x03)
                        {
                            0x0110, 
                            0x0100, 
                            0x0120
                        })
                    }
                    Else
                    {
                        Return (Package (0x03)
                        {
                            0x0110, 
                            0x80000100, 
                            0x80007330
                        })
                    }
                }

                If (LEqual (PMDP, 0x03))
                {
                    Return (Package (0x03)
                    {
                        0x0400, 
                        0x00010100, 
                        0x00010210
                    })
                }

                Return (Package (0x03)
                {
                    0x00010110, 
                    0x00010100, 
                    0x00010210
                })
            }
        }

        Device (CRT)
        {
            Method (_ADR, 0, NotSerialized)
            {
                If (LEqual (GPUT, 0x03))
                {
                    If (LAnd (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                    {
                        Return (0x0100)
                    }
                    Else
                    {
                        Return (0x80000100)
                    }
                }

                Return (0x00010100)
            }

            Method (_DCS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (CDST, 0x0101))
                {
                    Return (0x1F)
                }

                Return (0x1D)
            }

            Method (_DGS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (NDST, 0x0101))
                {
                    Return (One)
                }

                Return (Zero)
            }

            Method (_DSS, 1, NotSerialized)
            {
                If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                {
                    Store (NDST, CDST)
                }
            }
        }

        Device (LCD)
        {
            Method (_ADR, 0, NotSerialized)
            {
                If (LEqual (PMDP, 0x03))
                {
                    Return (0x0400)
                }

                Return (0x0110)
            }

            Method (_DCS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (CDST, 0x0808))
                {
                    Return (0x1F)
                }

                Return (0x1D)
            }

            Method (_DGS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (NDST, 0x0808))
                {
                    Return (One)
                }

                Return (Zero)
            }

            Method (_DSS, 1, NotSerialized)
            {
                If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                {
                    Store (NDST, CDST)
                }
            }

            Method (_BCL, 0, NotSerialized)
            {
                Return (BCLP)
            }

            Method (_BCM, 1, NotSerialized)
            {
                Store (One, Local0)
                Store (0x02, Local1)
                While (Local0)
                {
                    If (LEqual (Arg0, DerefOf (Index (BCLP, Local1))))
                    {
                        Store (Zero, Local0)
                    }
                    Else
                    {
                        Increment (Local1)
                        If (LEqual (0x0B, Local1))
                        {
                            Store (Zero, Local0)
                        }
                    }
                }

                Decrement (Local1)
                Decrement (Local1)
                If (And (^^^^LPCB.EC0.RDEC (0x7F), 0x02))
                {
                    If (^^^^LPCB.EC0.ACST)
                    {
                        ShiftLeft (Local1, Zero, Local1)
                        ^^^^LPCB.EC0.MDEC (0x83, 0xF0, Local1)
                    }
                    Else
                    {
                        ShiftLeft (Local1, 0x04, Local1)
                        ^^^^LPCB.EC0.MDEC (0x83, 0x0F, Local1)
                    }
                }
                Else
                {
                    ShiftLeft (Local1, Zero, Local1)
                    ^^^^LPCB.EC0.MDEC (0x83, 0xF0, Local1)
                }

                If (BCVE)
                {
                    If (LEqual (SGEN, Zero))
                    {
                        If (LEqual (DGID, 0x1002))
                        {
                            HKEY (0x1C)
                        }
                    }
                }
            }

            Method (_BQC, 0, NotSerialized)
            {
                If (And (^^^^LPCB.EC0.RDEC (0x7F), 0x02))
                {
                    If (^^^^LPCB.EC0.ACST)
                    {
                        And (^^^^LPCB.EC0.RDEC (0x83), 0x0F, Local1)
                        ShiftRight (Local1, Zero, Local1)
                    }
                    Else
                    {
                        And (^^^^LPCB.EC0.RDEC (0x83), 0xF0, Local1)
                        ShiftRight (Local1, 0x04, Local1)
                    }
                }
                Else
                {
                    And (^^^^LPCB.EC0.RDEC (0x83), 0x0F, Local1)
                    ShiftRight (Local1, Zero, Local1)
                }

                Increment (Local1)
                Increment (Local1)
                Store (DerefOf (Index (BCLP, Local1)), Local0)
                Return (Local0)
            }
        }

        Device (TV0)
        {
            Method (_ADR, 0, NotSerialized)
            {
                If (LEqual (GPUT, 0x03))
                {
                    If (LAnd (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                    {
                        Return (0x0200)
                    }
                    Else
                    {
                        Return (0x80000200)
                    }
                }

                Return (0x0200)
            }

            Method (_DCS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (CDST, 0x0202))
                {
                    Return (0x1F)
                }

                Return (0x1D)
            }

            Method (_DGS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (NDST, 0x0202))
                {
                    Return (One)
                }

                Return (Zero)
            }

            Method (_DSS, 1, NotSerialized)
            {
                If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                {
                    Store (NDST, CDST)
                }
            }
        }

        Device (HDMI)
        {
            Method (_ADR, 0, NotSerialized)
            {
                If (LEqual (GPUT, 0x03))
                {
                    If (LAnd (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                    {
                        Return (0x0120)
                    }
                    Else
                    {
                        Return (0x80007330)
                    }
                }

                Return (0x00010210)
            }

            Method (_DCS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (CDST, 0x0404))
                {
                    Return (0x1F)
                }

                Return (0x1D)
            }

            Method (_DGS, 0, NotSerialized)
            {
                If (LEqual (SKUT, 0x03))
                {
                    Return (Zero)
                }

                If (And (NDST, 0x0404))
                {
                    Return (One)
                }

                Return (Zero)
            }

            Method (_DSS, 1, NotSerialized)
            {
                If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                {
                    Store (NDST, CDST)
                }
            }
        }
    }

    Scope (_SB.PCI0.GFX0)
    {
        Name (NDLC, Zero)
        Method (SNDL, 1, NotSerialized)
        {
            Store (Zero, NDLC)
            Store (Zero, NADL)
            Store (Zero, NDL2)
            Store (Zero, NDL3)
            Store (Zero, NDL4)
            Store (Zero, NDL5)
            If (And (Arg0, 0x08))
            {
                S2ND (0x0400)
            }

            If (And (Arg0, One))
            {
                S2ND (0x0100)
            }

            If (And (Arg0, 0x02))
            {
                S2ND (0x0200)
            }

            If (And (Arg0, 0x04))
            {
                S2ND (0x0300)
            }
        }

        Method (S2ND, 1, NotSerialized)
        {
            Increment (NDLC)
            If (LEqual (NDLC, One))
            {
                Store (Arg0, NADL)
            }

            If (LEqual (NDLC, 0x02))
            {
                Store (Arg0, NDL2)
            }

            If (LEqual (NDLC, 0x03))
            {
                Store (Arg0, NDL3)
            }

            If (LEqual (NDLC, 0x04))
            {
                Store (Arg0, NDL4)
            }

            If (LEqual (NDLC, 0x05))
            {
                Store (Arg0, NDL5)
            }
        }

        Method (SPBR, 2, NotSerialized)
        {
            If (Arg1)
            {
                SBLX (Arg0)
            }
            Else
            {
                Store (DMOD, Local0)
                If (LEqual (Local0, Zero))
                {
                    HKEY (0x1C)
                }
                Else
                {
                    If (LEqual (Local0, One))
                    {
                        SBLX (Arg0)
                    }
                }
            }
        }

        Method (SBLX, 1, NotSerialized)
        {
            Store (Arg0, BCLP)
            Or (BCLP, 0x80000000, BCLP)
            Store (0x02, ASLC)
            Store (One, ASLE)
        }

        OperationRegion (IGPU, PCI_Config, Zero, 0x10)
        Field (IGPU, AnyAcc, NoLock, Preserve)
        {
            IGID,   16, 
            GDID,   16
        }
    }

    Scope (_SB.PCI0.GFX0.DD02)
    {
        Method (_BCL, 0, NotSerialized)
        {
            Return (\BCLP)
        }

        Method (_BCM, 1, NotSerialized)
        {
            Store (One, Local0)
            Store (0x02, Local1)
            While (Local0)
            {
                If (LEqual (Arg0, DerefOf (Index (\BCLP, Local1))))
                {
                    Store (Zero, Local0)
                }
                Else
                {
                    Increment (Local1)
                    If (LEqual (0x0B, Local1))
                    {
                        Store (Zero, Local0)
                    }
                }
            }

            Decrement (Local1)
            Decrement (Local1)
            If (And (^^^LPCB.EC0.RDEC (0x7F), 0x02))
            {
                If (^^^LPCB.EC0.ACST)
                {
                    ShiftLeft (Local1, Zero, Local1)
                    ^^^LPCB.EC0.MDEC (0x83, 0xF0, Local1)
                }
                Else
                {
                    ShiftLeft (Local1, 0x04, Local1)
                    ^^^LPCB.EC0.MDEC (0x83, 0x0F, Local1)
                }
            }
            Else
            {
                ShiftLeft (Local1, Zero, Local1)
                ^^^LPCB.EC0.MDEC (0x83, 0xF0, Local1)
            }

            If (BCVE)
            {
                If (LEqual (SGEN, Zero))
                {
                    If (LEqual (^^^PEG0.PEGP.DGID, 0x1002))
                    {
                        HKEY (0x1C)
                    }
                }
            }
        }

        Method (_BQC, 0, NotSerialized)
        {
            If (And (^^^LPCB.EC0.RDEC (0x7F), 0x02))
            {
                If (^^^LPCB.EC0.ACST)
                {
                    And (^^^LPCB.EC0.RDEC (0x83), 0x0F, Local1)
                    ShiftRight (Local1, Zero, Local1)
                }
                Else
                {
                    And (^^^LPCB.EC0.RDEC (0x83), 0xF0, Local1)
                    ShiftRight (Local1, 0x04, Local1)
                }
            }
            Else
            {
                And (^^^LPCB.EC0.RDEC (0x83), 0x0F, Local1)
                ShiftRight (Local1, Zero, Local1)
            }

            Increment (Local1)
            Increment (Local1)
            Store (DerefOf (Index (\BCLP, Local1)), Local0)
            Return (Local0)
        }
    }

    Scope (_SB.PCI0)
    {
        Method (GOST, 0, NotSerialized)
        {
            Store (Zero, Local0)
            If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
            {
                Store (One, Local0)
            }

            If (LEqual (OSYS, 0x07D6))
            {
                Store (0x02, Local0)
            }

            If (LEqual (OSYS, 0x07D9))
            {
                Store (0x03, Local0)
            }

            If (LEqual (OSYS, 0x03E8))
            {
                Store (0x40, Local0)
            }

            Return (Local0)
        }
    }

    Scope (_SB.PCI0.EHC1)
    {
        Device (RHUB)
        {
            Name (_ADR, Zero)
            Device (RMCH)
            {
                Name (_ADR, One)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Buffer (0x10)
                {
                    /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                    /* 0008 */    0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                })
                Device (U2P2)
                {
                    Name (_ADR, 0x03)
                    Name (_UPC, Package (0x04)
                    {
                        0xFF, 
                        0xFF, 
                        Zero, 
                        Zero
                    })
                    Name (_PLD, Buffer (0x10)
                    {
                        /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                        /* 0008 */    0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                    })
                }

                Device (U2P3)
                {
                    Name (_ADR, 0x04)
                    Name (_UPC, Package (0x04)
                    {
                        0xFF, 
                        0xFF, 
                        Zero, 
                        Zero
                    })
                    Name (_PLD, Buffer (0x10)
                    {
                        /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                        /* 0008 */    0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                    })
                }

                Device (U2P4)
                {
                    Name (_ADR, 0x05)
                    Name (_UPC, Package (0x04)
                    {
                        0xFF, 
                        0xFF, 
                        Zero, 
                        Zero
                    })
                    Name (_PLD, Buffer (0x10)
                    {
                        /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                        /* 0008 */    0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                    })
                    Method (_S3D, 0, NotSerialized)
                    {
                        Return (0x03)
                    }

                    Method (_S4D, 0, NotSerialized)
                    {
                        Return (0x03)
                    }
                }
            }
        }
    }

    Scope (_SB.PCI0.EHC2)
    {
        Device (RHUB)
        {
            Name (_ADR, Zero)
            Device (RMCH)
            {
                Name (_ADR, One)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Buffer (0x10)
                {
                    /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                    /* 0008 */    0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                })
                Device (U2PC)
                {
                    Name (_ADR, 0x05)
                    Name (_UPC, Package (0x04)
                    {
                        0xFF, 
                        0xFF, 
                        Zero, 
                        Zero
                    })
                    Name (_PLD, Buffer (0x10)
                    {
                        /* 0000 */    0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                        /* 0008 */    0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                    })
                }
            }
        }
    }

    Scope (_SB.PCI0.LPCB.EC0)
    {
        OperationRegion (GPIO, SystemIO, 0x1180, 0x60)
        Field (GPIO, ByteAcc, Lock, Preserve)
        {
                    Offset (0x0C), 
                ,   17, 
            PI17,   1, 
                    Offset (0x38), 
                ,   18, 
            PO50,   1, 
                ,   1, 
            PO52,   1, 
            PO53,   1, 
            PO54,   1, 
                    Offset (0x48), 
                ,   3, 
            PI67,   1
        }

        OperationRegion (CMOS, SystemIO, 0x72, 0x02)
        Field (CMOS, ByteAcc, Lock, Preserve)
        {
            INDX,   8, 
            DATA,   8
        }

        IndexField (INDX, DATA, ByteAcc, Lock, Preserve)
        {
            R00H,   8, 
            R01H,   8, 
            R02H,   8, 
            R03H,   8, 
            R04H,   8, 
            R05H,   8, 
            R06H,   8, 
            R07H,   8, 
            R08H,   8, 
            R09H,   8, 
            R0AH,   8, 
            R0BH,   8, 
            R0CH,   8, 
            R0DH,   8, 
            R0EH,   8, 
            R0FH,   8
        }

        IndexField (INDX, DATA, ByteAcc, Lock, Preserve)
        {
            R00W,   16, 
            R02W,   16, 
            R04W,   16, 
            R06W,   16, 
            R08D,   32
        }
    }

    Scope (\)
    {
        Method (TMSC, 0, NotSerialized)
        {
            If (LEqual (TMST, One))
            {
                If (LEqual (DCMS, One))
                {
                    If (LEqual (\_SB.PCI0.LPCB.EC0.ACDC, Zero))
                    {
                        If (LNotEqual (CTMS, Zero))
                        {
                            TRPS (0xC2, Zero)
                        }
                    }
                    Else
                    {
                        If (LNotEqual (CTMS, One))
                        {
                            TRPS (0xC2, One)
                        }
                    }
                }
                Else
                {
                    If (LNotEqual (CTMS, One))
                    {
                        TRPS (0xC2, One)
                    }
                }
            }
        }
    }

    Name (_S0, Package (0x04)
    {
        Zero, 
        Zero, 
        Zero, 
        Zero
    })
    If (SS1)
    {
        Name (_S1, Package (0x04)
        {
            One, 
            Zero, 
            Zero, 
            Zero
        })
    }

    If (SS3)
    {
        Name (_S3, Package (0x04)
        {
            0x05, 
            Zero, 
            Zero, 
            Zero
        })
    }

    If (SS4)
    {
        Name (_S4, Package (0x04)
        {
            0x06, 
            Zero, 
            Zero, 
            Zero
        })
    }

    Name (_S5, Package (0x04)
    {
        0x07, 
        Zero, 
        Zero, 
        Zero
    })
    Method (PTS, 1, NotSerialized)
    {
        If (Arg0) {}
    }

    Method (WAK, 1, NotSerialized)
    {
    }
}