<Root>
    <!-- Child Zelda: from the cutscene where Deku Link recalls how to play Song of Time after getting his Ocarina back -->
    <File Name="object_zl4" Segment="6">
        <!-- Everything up to and including the skeleton is retained from the beginning of OoT's object_zl4 -->
        <Animation Name="gDmZl4IdleAnim" Offset="0x654" />
        <Texture Name="gDmZl4DressTLUT" OutName="dress_tlut" Format="rgba16" Width="16" Height="16" Offset="0x670" />
        <Texture Name="gDmZl4EyeTLUT" OutName="eye_tlut" Format="rgba16" Width="16" Height="16" Offset="0x870" />
        <Texture Name="gDmZl4MouthTLUT" OutName="mouth_tlut" Format="rgba16" Width="16" Height="16" Offset="0xA70" />
        <Texture Name="gDmZl4DressGradientTex" OutName="dress_gradient" Format="ci8" Width="8" Height="8" Offset="0xC70" />
        <Texture Name="gDmZl4DressPurpleTex" OutName="purple_dress_patern" Format="ci8" Width="16" Height="16" Offset="0xCB0" />
        <Texture Name="gDmZl4TriforceSashTex" OutName="triforce_sash" Format="ci8" Width="32" Height="64" Offset="0xDB0" />
        <Texture Name="gDmZl4BootLacesTex" OutName="boot_laces" Format="rgba16" Width="8" Height="8" Offset="0x15B0" />
        <Texture Name="gDmZl4BootTex" OutName="boot" Format="rgba16" Width="8" Height="8" Offset="0x1630" />
        <Texture Name="gDmZl4AltDressBeltTex" OutName="alternate_dress_belt" Format="ci8" Width="32" Height="8" Offset="0x16B0" />
        <Texture Name="gDmZl4AltDressTex" OutName="alternate_dress_patern" Format="ci8" Width="8" Height="8" Offset="0x17B0" />
        <Texture Name="gDmZl4DressWrinklesTex" OutName="dress_wrinkles" Format="ci8" Width="32" Height="32" Offset="0x17F0" />
        <Texture Name="gDmZl4AltDressLiningTex" OutName="alternate_dress_lining" Format="rgba16" Width="8" Height="16" Offset="0x1BF0" />
        <Texture Name="gDmZl4AltDressGradientTex" OutName="alternate_dress_gradient" Format="ci8" Width="16" Height="16" Offset="0x1CF0" />

        <!-- not named in OOT, some blue blemish center -->
        <Texture Name="gDmZl4_001DF0_Tex" OutName="tex_001DF0" Format="ci8" Width="8" Height="8" Offset="0x1DF0" />
        <Texture Name="gDmZl4HeadressTriforceEmblemTex" OutName="headdress_triforce_emblem" Format="rgba16" Width="16" Height="32" Offset="0x1E30" />
        <Texture Name="gDmZl4HeadressGradientTex" OutName="headdress_gradient" Format="ci8" Width="8" Height="8" Offset="0x2230" />
        <!-- not named in OOT, gradient with dark blotch bottom-->
        <Texture Name="gDmZl4_002270_Tex" OutName="tex_002270" Format="ci8" Width="8" Height="16" Offset="0x2270" />
        <Texture Name="gDmZl4HeaddressStripeTex" OutName="headdress_stripe" Format="ci8" Width="16" Height="32" Offset="0x22F0" />
        <Texture Name="gDmZl4EarTex" OutName="ear" Format="rgba16" Width="16" Height="16" Offset="0x24F0" />
        <Texture Name="gDmZl4HairOnSideTex" OutName="hair_on_side" Format="rgba16" Width="16" Height="16" Offset="0x26F0" />
        <Texture Name="gDmZl4SkinGradientTex" OutName="skin_gradient" Format="rgba16" Width="8" Height="8" Offset="0x28F0" />
        <!-- not named in OOT, some skin blemish center -->
        <Texture Name="gDmZl4_002970_Tex" OutName="tex_002970" Format="rgba16" Width="8" Height="8" Offset="0x2970" />
        <Texture Name="gDmZl4HairTex" OutName="hair" Format="rgba16" Width="16" Height="8" Offset="0x29F0" />

        <!-- Eye Textures -->
        <Texture Name="gDmZl4EyeOpenNormalTex" OutName="eye_open_normal" Format="ci8" Width="32" Height="32" Offset="0x2AF0" TlutOffset="0x870"/>
        <Texture Name="gDmZl4EyeHalfTex" OutName="eye_blinking" Format="ci8" Width="32" Height="32" Offset="0x2EF0" TlutOffset="0x870"/>
        <Texture Name="gDmZl4EyeClosedTex" OutName="eye_closed" Format="ci8" Width="32" Height="32" Offset="0x32F0" TlutOffset="0x870"/>
        <Texture Name="gDmZl4EyeWideTex" OutName="eye_wide" Format="ci8" Width="32" Height="32" Offset="0x36F0" TlutOffset="0x870"/>
        <Texture Name="gDmZl4EyeHappyTex" OutName="eye_happy" Format="ci8" Width="32" Height="32" Offset="0x3AF0" TlutOffset="0x870"/>
        <Texture Name="gDmZl4EyeOpenLookingLeftTex" OutName="eye_open_looking_left" Format="ci8" Width="32" Height="32" Offset="0x3EF0" TlutOffset="0x870"/>
        <Texture Name="gDmZl4EyeOpenLookingRightTex" OutName="eye_open_looking_right" Format="ci8" Width="32" Height="32" Offset="0x42F0" TlutOffset="0x870"/>

        <!-- Mouth Textures -->
        <Texture Name="gZl4MouthNeutralTex" OutName="mouth_neutral" Format="ci8" Width="32" Height="32" Offset="0x46F0" TlutOffset="0xA70"/>
        <Texture Name="gZl4MouthOpenSmilingTex" OutName="mouth_open_smiling" Format="ci8" Width="32" Height="32" Offset="0x4AF0" TlutOffset="0xA70"/>
        <Texture Name="gZl4MouthFrowningTex" OutName="mouth_frowning" Format="ci8" Width="32" Height="32" Offset="0x4EF0" TlutOffset="0xA70"/>
        <Texture Name="gZl4MouthOpenTex" OutName="mouth_open" Format="ci8" Width="32" Height="32" Offset="0x52F0" TlutOffset="0xA70"/>

        <Texture Name="gDmZl4FingersTex" OutName="fingers" Format="rgba16" Width="16" Height="16" Offset="0x56F0" />
        <Texture Name="gDmZl4BraceletTex" OutName="bracelet" Format="ci8" Width="16" Height="16" Offset="0x58F0" />
        <Texture Name="gDmZl4BlueUndershirtGradient1Tex" OutName="blue_undershirt_gradient" Format="rgba16" Width="8" Height="8" Offset="0x59F0" />
        <Texture Name="gDmZl4BlueUndershirtGradient2Tex" OutName="blue_undershirt_gradient_2" Format="rgba16" Width="16" Height="16" Offset="0x5A70" />
        <Texture Name="gDmZl4StripedShoulderTex" OutName="striped_shoulder_patern" Format="ci8" Width="8" Height="8" Offset="0x5C70" />
        <Texture Name="gDmZl4UndershirtWrinklesTex" OutName="undershirt_wrinkles" Format="ci8" Width="16" Height="16" Offset="0x5CB0" />
        <Texture Name="gDmZl4PendantTex" OutName="pendant" Format="rgba16" Width="32" Height="32" Offset="0x5DB0" />

        <DList Name="gDmZl4ChestDL" Offset="0xA630" />
        <DList Name="gDmZl4HeadDL" Offset="0xAFC8" />
        <DList Name="gDmZl4RightUpperArmDL" Offset="0xB8D8" />
        <DList Name="gDmZl4RightForearmDL" Offset="0xBB40" />
        <DList Name="gDmZl4RightHandDL" Offset="0xBC90" />
        <DList Name="gDmZl4LeftUpperArmDL" Offset="0xBE70" />
        <DList Name="gDmZl4LeftForearmDL" Offset="0xC0E0" />
        <DList Name="gDmZl4LeftHandDL" Offset="0xC230" />
        <DList Name="gDmZl4HorseRidingDressDL" Offset="0xC410" />
        <DList Name="gDmZl4WaistDL" Offset="0xC8D0" />
        <DList Name="gDmZl4Dress1DL" Offset="0xD0E8" />
        <DList Name="gDmZl4Dress2DL" Offset="0xD2A0" />
        <DList Name="gDmZl4Dress3DL" Offset="0xD460" />
        <DList Name="gDmZl4RightLegDL" Offset="0xD598" />
        <DList Name="gDmZl4RightBootDL" Offset="0xD5E8" />
        <DList Name="gDmZl4LeftLegDL" Offset="0xD728" />
        <DList Name="gDmZl4LeftBootDL" Offset="0xD778" />

        <!-- Ocarina, drawn to right hand in OverrideLimbDraw -->
        <Texture Name="gDmZl4OcarinaTex" OutName="ocarina" Format="rgba16" Width="32" Height="16" Offset="0xD8B8" />
        <DList Name="gDmZl4OcarinaDL" Offset="0xDE08" />

        <Limb Name="gDmZl4RootLimb" Type="Standard" EnumName="ZL4_LIMB_ROOT" Offset="0xDF28" />
        <Limb Name="gDmZl4WaistLimb" Type="Standard" EnumName="ZL4_LIMB_WAIST" Offset="0xDF34" />
        <Limb Name="gDmZl4LeftLegLimb" Type="Standard" EnumName="ZL4_LIMB_LEFT_LEG" Offset="0xDF40" />
        <Limb Name="gDmZl4LeftFootLimb" Type="Standard" EnumName="ZL4_LIMB_LEFT_FOOT" Offset="0xDF4C" />
        <Limb Name="gDmZl4RightLegLimb" Type="Standard" EnumName="ZL4_LIMB_RIGHT_LEG" Offset="0xDF58" />
        <Limb Name="gDmZl4RightFootLimb" Type="Standard" EnumName="ZL4_LIMB_RIGHT_FOOT" Offset="0xDF64" />
        <Limb Name="gDmZl4Dress1Limb" Type="Standard" EnumName="ZL4_LIMB_DRESS_1" Offset="0xDF70" />
        <Limb Name="gDmZl4Dress2Limb" Type="Standard" EnumName="ZL4_LIMB_DRESS_2" Offset="0xDF7C" />
        <Limb Name="gDmZl4Dress3Limb" Type="Standard" EnumName="ZL4_LIMB_DRESS_3" Offset="0xDF88" />
        <Limb Name="gDmZl4TorsoLimb" Type="Standard" EnumName="ZL4_LIMB_TORSO" Offset="0xDF94" />
        <Limb Name="gDmZl4LeftUpperArmLimb" Type="Standard" EnumName="ZL4_LIMB_LEFT_UPPER_ARM" Offset="0xDFA0" />
        <Limb Name="gDmZl4LeftForearmLimb" Type="Standard" EnumName="ZL4_LIMB_LEFT_FOREARM" Offset="0xDFAC" />
        <Limb Name="gDmZl4LeftHandLimb" Type="Standard" EnumName="ZL4_LIMB_LEFT_HAND" Offset="0xDFB8" />
        <Limb Name="gDmZl4RightUpperArmLimb" Type="Standard" EnumName="ZL4_LIMB_RIGHT_UPPER_ARM" Offset="0xDFC4" />
        <Limb Name="gDmZl4RightForearmLimb" Type="Standard" EnumName="ZL4_LIMB_RIGHT_FOREARM" Offset="0xDFD0" />
        <Limb Name="gDmZl4RightHandLimb" Type="Standard" EnumName="ZL4_LIMB_RIGHT_HAND" Offset="0xDFDC" />
        <Limb Name="gDmZl4HeadLimb" Type="Standard" EnumName="ZL4_LIMB_HEAD" Offset="0xDFE8" />
        <Skeleton Name="gZl4Skeleton" Type="Flex" LimbType="Standard" LimbNone="ZL4_LIMB_NONE" LimbMax="ZL4_LIMB_MAX" EnumName="Zl4Limb" Offset="0xE038" />

        
        <!-- Unused Flute Animations -->
        <Animation Name="gDmZl4HoldingFluteInFrontAnim" Offset="0xFDC8" />
        <Animation Name="gDmZl4RaiseFluteToPlayAnim" Offset="0x10334" />
        <Animation Name="gDmZl4LowerFluteAfterPlayAnim" Offset="0x105C8" />
        <Animation Name="gDmZl4PlayingFluteAnim" Offset="0x10D50" />

        <!-- Used in MM -->
        <Animation Name="gDmZl4TurningAroundAnim" Offset="0xF250" />
        <Animation Name="gDmZl4FacingAwayIdle" Offset="0x11294" />
        <Animation Name="gDmZl4GivingItemStartAnim" Offset="0x11BB8" />
        <Animation Name="gDmZl4GivingItemLoopAnim" Offset="0x122E0" />
        <Animation Name="gDmZl4RaisingOcarinaToPlayAnim" Offset="0x12A84" />
        <Animation Name="gDmZl4PlayingOcarinaAnim" Offset="0x1303C" />

        <!-- Unused Backflipping Animation -->
        <Animation Name="gDmZl4BackflipAnim" Offset="0x13934" />
        <Animation Name="gDmZl4BackflipPrepareAnim" Offset="0x13F2C" />
        <Animation Name="gDmZl4BackflipPrepareHoldingReadyAnim" Offset="0x14558" />

        <!-- Used in MM --> 
        <Animation Name="gDmZl4TurningAround2Anim" Offset="0x15494" />
        <Animation Name="gDmZl4HandsOverEmblemLoopAnim" Offset="0x15A4C" />
        <Animation Name="gDmZl4FacingAwayHandsOverEmblemLoop" Offset="0x15DA0" />

        <!-- Unused in MM, copy of OoT Animations in object_zl4:(0xE050 -> End) --> 
        <Animation Name="gDmZl4Anim_016328" Offset="0x16328" />
        <Animation Name="gDmZl4Anim_016924" Offset="0x16924" />
        <Animation Name="gDmZl4Anim_016E04" Offset="0x16E04" />
        <Animation Name="gDmZl4Anim_0175F4" Offset="0x175F4" />
        <Animation Name="gDmZl4Anim_018B58" Offset="0x18B58" />
        <Animation Name="gDmZl4Anim_018FA8" Offset="0x18FA8" />
        <Animation Name="gDmZl4Anim_0193F8" Offset="0x193F8" />
        <Animation Name="gDmZl4Anim_019894" Offset="0x19894" />
        <Animation Name="gDmZl4Anim_01A344" Offset="0x1A344" />
        <Animation Name="gDmZl4Anim_01ABB8" Offset="0x1ABB8" />
        <Animation Name="gDmZl4Anim_01AFE0" Offset="0x1AFE0" />
        <Animation Name="gDmZl4Anim_01B388" Offset="0x1B388" />
        <Animation Name="gDmZl4Anim_01B7B0" Offset="0x1B7B0" />
        <Animation Name="gDmZl4Anim_01BC00" Offset="0x1BC00" />
        <Animation Name="gDmZl4Anim_01DC74" Offset="0x1DC74" />
        <Animation Name="gDmZl4Anim_01E714" Offset="0x1E714" />
        <Animation Name="gDmZl4Anim_01EA68" Offset="0x1EA68" />
        <Animation Name="gDmZl4Anim_01EFCC" Offset="0x1EFCC" />
        <Animation Name="gDmZl4Anim_01F578" Offset="0x1F578" />
        <Animation Name="gDmZl4Anim_01FDBC" Offset="0x1FDBC" />
        <Animation Name="gDmZl4Anim_0205F8" Offset="0x205F8" />
        <Animation Name="gDmZl4Anim_020E6C" Offset="0x20E6C" />
        <Animation Name="gDmZl4Anim_021360" Offset="0x21360" />
        <Animation Name="gDmZl4Anim_02167C" Offset="0x2167C" />
        <Animation Name="gDmZl4Anim_02205C" Offset="0x2205C" />
        <Animation Name="gDmZl4Anim_022840" Offset="0x22840" />
        <Animation Name="gDmZl4Anim_022BE8" Offset="0x22BE8" />
        <Animation Name="gDmZl4Anim_0235D4" Offset="0x235D4" />
        <Animation Name="gDmZl4Anim_023A50" Offset="0x23A50" />
        <Animation Name="gDmZl4Anim_0241F4" Offset="0x241F4" />
        <Animation Name="gDmZl4Anim_024510" Offset="0x24510" />
        <Animation Name="gDmZl4Anim_024B68" Offset="0x24B68" />

        <!-- Unused Flute -->
        <DList Name="gDmZl4FluteDL" Offset="0x24D80" />
        <DList Name="gDmZl4FluteWrapperDL" Offset="0x24E40" />
        <Texture Name="gDmZl4FluteHoleTex" OutName="flute_hole" Format="rgba16" Width="16" Height="8" Offset="0x24E50" />
        
        <TextureAnimation Name="gDmZlEmptyTexAnim" Offset="0x24F50" />
    </File>
</Root>
