Soak the corn husks. Cover the dried husks with very hot water in a large bowl. Weigh them down with a plate so they stay under. Leave for 45 minutes, until soft and bendable. Drain and pat dry.
Simmer the pork. Put the pork, quartered onion, 4 garlic cloves, bay leaves, 1 teaspoon of salt and 8 cups of water in a large pot. Boil, skim off any foam, then simmer gently, covered, for 2 hours, until the pork shreds easily. Lift the pork out. Strain the broth and keep 3 1/2 cups for the masa.
Toast and soak the chillies. While the pork cooks, heat a dry pan over medium heat. Press the chillies flat for 30 to 45 seconds per side, until fragrant and soft. Do not let them char — burnt chillies make a bitter sauce. Cover with very hot water and leave for 20 minutes.
Blend the red chile sauce. Drain the chillies and blend with the small onion, 2 garlic cloves, cumin, oregano, vinegar, 1 teaspoon of salt and 1 1/2 cups of reserved broth until very smooth, about 1 minute. Simmer gently for 10 minutes, stirring now and then, until it darkens. Taste and add salt if needed.
Shred the pork and make the filling. Shred the pork with two forks. Stir in 1 1/2 cups of sauce — enough to coat the meat without making it wet. Keep the rest for serving.
Whip the lard and make the masa. Beat the lard with an electric mixer on medium-high for 3 to 5 minutes, until pale and fluffy. Whisk the masa harina, baking powder and salt in a separate bowl. Add the masa mixture to the lard a little at a time on low speed, pouring in 3 cups of warm broth as you go. Beat 3 to 4 minutes more, until soft and light.
Do the float test. Drop a spoonful of masa into a glass of cold water. If it floats, the masa is ready. If it sinks, beat in 2 more tablespoons of warm broth, beat for 2 more minutes, then test again.
Spread the masa on the husks. Lay a soaked husk flat, smooth side up, wide end towards you. Spread about 3 tablespoons of masa over the wide half, starting 1/2 inch from the top and leaving a 1-inch border on each side. Spread thin and even, about 1/4 inch thick.
Fill and fold each tamale. Spoon about 2 tablespoons of filling down the centre of the masa. Fold the long sides over so the masa edges meet, then fold the narrow end up. Stand folded-end down. Repeat until you have about 24 tamales.
Load the steamer. Set a steamer basket in a large pot with 1 to 2 inches of water below it — or, without a basket, put an upside-down heatproof plate or a tight ball of foil in the pot, pour in 1 to 2 inches of water, and set a plate on top. Stand the tamales upright, open ends up, packed snugly. Lay torn extra husks over the top to trap the steam.
Steam for 90 minutes. Lid on, bring the water to a boil, then simmer gently for 90 minutes. Check the water every 30 minutes and top up with hot water — a pot that boils dry burns the tamales. They are done when the masa pulls cleanly from the husk.
Rest before serving. Turn the heat off and leave the tamales in the pot for 15 minutes — they are too soft to unwrap straight from the steamer. Serve hot in their husks, with the reserved sauce spooned over and lime wedges on the side.