loc_40A01C: # CODE XREF: sub_409EE4+130j
seg001:0040A01C 020 39 80 00 02 li r12, 2
seg001:0040A020 020 9B AD FA BD stb r29, byte_7FFAAD
seg001:0040A024 020 99 8D FA BE stb r12, byte_7FFAAE
seg001:0040A028 020 38 6D FA D4 addi r3, r13, -0x52C # unk_7FFAC4
seg001:0040A02C 020 38 8D FA BA addi r4, r13, -0x546 # word_7FFAAA
seg001:0040A030 020 38 BF 00 08 addi r5, r31, 8
seg001:0040A034 020 48 01 4D B1 bl sub_41EDE4
seg001:0040A038 020 A9 9F 01 30 lha r12, 0x130(r31)
seg001:0040A03C 020 7C 0C E0 00 cmpw r12, r28
seg001:0040A040 020 40 80 00 0C bge loc_40A04C
seg001:0040A044 020 3B A0 00 01 li r29, 1
seg001:0040A048 020 48 00 00 08 b loc_40A050