Help with editing SSDT

So I'm trying to edit this SSDT to prevent it from loading when I boot Windows from the OpenCore boot selector; I know I need a ( If ("Darwin") ) line in there somewhere, but I don't know where it needs to go (since it's an IF statement, I also need a THEN, right??) ... Does anyone know where it would go, and what else (if anything) needs to be added?

Thanks in advance for your help.

/* * Intel ACPI Component Architecture * AML/ASL+ Disassembler version 20180427 (64-bit version)(RM) * Copyright (c) 2000 - 2018 Intel Corporation * * Disassembling to non-symbolic legacy ASL operators * * Disassembly of iASLa8BTCI.aml, Thu Jul 23 11:21:39 2020 * * Original Table Header: * Signature "SSDT" * Length 0x00000295 (661) * Revision 0x02 * Checksum 0x13 * OEM ID "hack" * OEM Table ID "matty" * OEM Revision 0x00000000 (0) * Compiler ID "INTL" * Compiler Version 0x20200110 (538968336) */ DefinitionBlock ("", "SSDT", 2, "hack", "matty", 0x00000000) { External (_SB_.PCI0.PEG0.PEGP.EGP1, DeviceObj) // (from opcode) External (OSDW, MethodObj) // 0 Arguments (from opcode) Device (_SB.PCI0.PEG0.PEGP.EGP1) { Name (_ADR, Zero) // _ADR: Address Device (GFX0) { Name (_ADR, Zero) // _ADR: Address Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { If (LEqual (Arg2, Zero)) { Return (Buffer (One) { 0x03 }) } Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake { If (OSDW ()) { Return (Package (0x02) { 0x69, 0x03 }) } Else { Return (Package (0x02) { 0x69, 0x03 }) } } Return (Package (0x14) { "AAPL,slot-name", Buffer (0x19) { "Slot-1@0,1,0/0,0/0,0/0,0" }, "@0,ATY,EFIDisplay", Buffer (0x04) { "DP1" }, "ATY,EFIVersionB", Buffer (0x10) { /* 0000 */ 0x31, 0x31, 0x33, 0x2D, 0x44, 0x31, 0x38, 0x32, /* 0008 */ 0x30, 0x35, 0x30, 0x31, 0x2D, 0x31, 0x30, 0x31 }, "@0,name", Buffer (0x0B) { "ATY,Adder" }, "@0,AAPL,boot-display", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "@0,av-signal-type", Buffer (0x04) { 0x10, 0x00, 0x00, 0x00 }, "ATY,EFIEnabledMode", Buffer (One) { 0x01 }, "ATY,EFIVersion", Buffer (0x09) { /* 0000 */ 0x30, 0x31, 0x2E, 0x30, 0x31, 0x2E, 0x31, 0x38, /* 0008 */ 0x33 }, "ATY,copyright", Buffer (0x31) { /* 0000 */ 0x43, 0x6F, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, /* 0008 */ 0x74, 0x20, 0x41, 0x4D, 0x44, 0x20, 0x49, 0x6E, /* 0010 */ 0x63, 0x2E, 0x20, 0x41, 0x6C, 0x6C, 0x20, 0x52, /* 0018 */ 0x69, 0x67, 0x68, 0x74, 0x73, 0x20, 0x52, 0x65, /* 0020 */ 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x2E, 0x20, /* 0028 */ 0x32, 0x30, 0x30, 0x35, 0x2D, 0x32, 0x30, 0x31, /* 0030 */ 0x39 }, "hda-gfx", Buffer (0x0A) { "onboard-2" } }) } } Device (HDAU) { Name (_ADR, One) // _ADR: Address Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { If (LEqual (Arg2, Zero)) { Return (Buffer (One) { 0x03 }) } Return (Package (0x08) { "AAPL,slot-name", Buffer (0x19) { "Slot-1@0,1,0/0,0/0,0/0,1" }, "model", Buffer (0x14) { " Navi 10 HDMI Audio" }, "hda-gfx", Buffer (0x0A) { "onboard-2" }, "layout-id", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 } }) } } } } 
submitted by /u/TokyoHam
[link] [comments]