WIP: region decoding

Change-Id: I466a8d4e41b4f7da6430f32ff75934b1de6337b8