I've noticed that all your RAM writes lead to the same function call.
For PAL this is 0x80799FBC (the li r4 instruction you are modifying is the 2nd arg of the call).
stwu sp, -0x0070 (sp) #Default Instruction
li r4, X #Item
NTSC-U
C2790FB0 00000002
9421FF90 3880000X
60000000 00000000
PAL
C2799FBC 00000002
9421FF90 3880000X
60000000 00000000
NTSC-J
C2799628 00000002
9421FF90 3880000X
60000000 00000000
NTSC-K
C278837C 00000002
9421FF90 3880000X
60000000 00000000
For PAL this is 0x80799FBC (the li r4 instruction you are modifying is the 2nd arg of the call).
stwu sp, -0x0070 (sp) #Default Instruction
li r4, X #Item
NTSC-U
C2790FB0 00000002
9421FF90 3880000X
60000000 00000000
PAL
C2799FBC 00000002
9421FF90 3880000X
60000000 00000000
NTSC-J
C2799628 00000002
9421FF90 3880000X
60000000 00000000
NTSC-K
C278837C 00000002
9421FF90 3880000X
60000000 00000000