; ; CustomizeObjectLayer::onSelectMode from 0x841b04 to 0x841d2c (552 bytes) ; ; 6 xrefs: ; > CustomizeObjectLayer::init @ 0x8433dc ; > @ 0x8a6f0 ; > CustomizeObjectLayer::init @ 0x842138 ; > CustomizeObjectLayer::init @ 0x842214 ; > CustomizeObjectLayer::init @ 0x843488 ; > @ 0x122cb60 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; STP X29, X30, [SP,#var_20]! ; +0x0, 0x841b04 MOV X29, SP ; +0x4, 0x841b08 STR X19, [SP,#0x20+var_10] ; +0x8, 0x841b0c MOV X19, X0 ; +0xc, 0x841b10 MOV X0, X1 ; +0x10, 0x841b14 LDR X1, [X1] ; +0x14, 0x841b18 LDR X1, [X1,#0x40] ; +0x18, 0x841b1c BLR X1 ; +0x1c, 0x841b20 CMP W0, #1 ; +0x20, 0x841b24 STR W0, [X19,#0x2D0] ; +0x24, 0x841b28 LDR X2, [X19,#0x308] ; +0x28, 0x841b2c B.EQ loc_841D10 ; +0x2c, 0x841b30 CMP W0, #2 ; +0x30, 0x841b34 B.EQ loc_841CE8 ; +0x34, 0x841b38 MOV X0, X2 ; +0x38, 0x841b3c LDR X2, [X2] ; +0x3c, 0x841b40 ADRL X1, aInsertText; "Insert Text" ; +0x40, 0x841b44 LDR X2, [X2,#0x390] ; +0x48, 0x841b4c BLR X2 ; +0x4c, 0x841b50 LDR X1, [X19,#0x2E0] ; +0x50, 0x841b54 MOV X0, X1 ; +0x54, 0x841b58 LDR X1, [X1] ; +0x58, 0x841b5c LDR X1, [X1,#0x420] ; +0x5c, 0x841b60 BLR X1 ; +0x60, 0x841b64 LDR W1, [X19,#0x2D0] ; +0x64, 0x841b68 CMP W1, #1 ; +0x68, 0x841b6c B.EQ loc_841CD0 ; +0x6c, 0x841b70 ADRL X1, aGjButton04Png; "GJ_button_04.png" ; +0x70, 0x841b74 BL _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x78, 0x841b7c LDR X1, [X19,#0x2E8] ; +0x7c, 0x841b80 MOV X0, X1 ; +0x80, 0x841b84 LDR X1, [X1] ; +0x84, 0x841b88 LDR X1, [X1,#0x420] ; +0x88, 0x841b8c BLR X1 ; +0x8c, 0x841b90 LDR W1, [X19,#0x2D0] ; +0x90, 0x841b94 CMP W1, #2 ; +0x94, 0x841b98 B.EQ loc_841CDC ; +0x98, 0x841b9c ADRL X1, aGjButton04Png; "GJ_button_04.png" ; +0x9c, 0x841ba0 BL _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xa4, 0x841ba8 LDR X0, [X19,#0x2F0] ; +0xa8, 0x841bac CBZ X0, loc_841BD8 ; +0xac, 0x841bb0 LDR X1, [X0] ; +0xb0, 0x841bb4 LDR X1, [X1,#0x420] ; +0xb4, 0x841bb8 BLR X1 ; +0xb8, 0x841bbc LDR W1, [X19,#0x2D0] ; +0xbc, 0x841bc0 CMP W1, #3 ; +0xc0, 0x841bc4 B.EQ loc_841D04 ; +0xc4, 0x841bc8 ADRL X1, aGjButton04Png; "GJ_button_04.png" ; +0xc8, 0x841bcc BL _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xd0, 0x841bd4 MOV X0, X19; this ; +0xd4, 0x841bd8 BL _ZN20CustomizeObjectLayer13toggleVisibleEv; CustomizeObjectLayer::toggleVisible(void) ; +0xd8, 0x841bdc LDR X1, [X19,#0x2F8] ; +0xdc, 0x841be0 LDR W3, [X19,#0x2D0] ; +0xe0, 0x841be4 MOV X0, X1 ; +0xe4, 0x841be8 LDR X2, [X1] ; +0xe8, 0x841bec CMP W3, #1 ; +0xec, 0x841bf0 CSET W1, EQ ; +0xf0, 0x841bf4 LDR X2, [X2,#0x148] ; +0xf4, 0x841bf8 BLR X2 ; +0xf8, 0x841bfc LDR X1, [X19,#0x2F8] ; +0xfc, 0x841c00 LDR W3, [X19,#0x2D0] ; +0x100, 0x841c04 MOV X0, X1 ; +0x104, 0x841c08 LDR X2, [X1] ; +0x108, 0x841c0c CMP W3, #1 ; +0x10c, 0x841c10 CSET W1, EQ ; +0x110, 0x841c14 LDR X2, [X2,#0x410] ; +0x114, 0x841c18 BLR X2 ; +0x118, 0x841c1c LDR X1, [X19,#0x300] ; +0x11c, 0x841c20 LDR W3, [X19,#0x2D0] ; +0x120, 0x841c24 MOV X0, X1 ; +0x124, 0x841c28 LDR X2, [X1] ; +0x128, 0x841c2c CMP W3, #2 ; +0x12c, 0x841c30 CSET W1, EQ ; +0x130, 0x841c34 LDR X2, [X2,#0x148] ; +0x134, 0x841c38 BLR X2 ; +0x138, 0x841c3c LDR X1, [X19,#0x300] ; +0x13c, 0x841c40 LDR W3, [X19,#0x2D0] ; +0x140, 0x841c44 MOV X0, X1 ; +0x144, 0x841c48 LDR X2, [X1] ; +0x148, 0x841c4c CMP W3, #2 ; +0x14c, 0x841c50 CSET W1, EQ ; +0x150, 0x841c54 LDR X2, [X2,#0x410] ; +0x154, 0x841c58 BLR X2 ; +0x158, 0x841c5c LDR X1, [X19,#0x378] ; +0x15c, 0x841c60 LDR W3, [X19,#0x2D0] ; +0x160, 0x841c64 MOV X0, X1 ; +0x164, 0x841c68 LDR X2, [X1] ; +0x168, 0x841c6c CMP W3, #3 ; +0x16c, 0x841c70 CSET W1, NE ; +0x170, 0x841c74 LDR X2, [X2,#0x148] ; +0x174, 0x841c78 BLR X2 ; +0x178, 0x841c7c LDR X1, [X19,#0x378] ; +0x17c, 0x841c80 LDR W3, [X19,#0x2D0] ; +0x180, 0x841c84 MOV X0, X1 ; +0x184, 0x841c88 LDR X2, [X1] ; +0x188, 0x841c8c CMP W3, #3 ; +0x18c, 0x841c90 CSET W1, NE ; +0x190, 0x841c94 LDR X2, [X2,#0x410] ; +0x194, 0x841c98 BLR X2 ; +0x198, 0x841c9c MOV X0, X19; this ; +0x19c, 0x841ca0 BL _ZN20CustomizeObjectLayer16updateHSVButtonsEv; CustomizeObjectLayer::updateHSVButtons(void) ; +0x1a0, 0x841ca4 MOV X0, X19; this ; +0x1a4, 0x841ca8 BL _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x1a8, 0x841cac MOV X0, X19; this ; +0x1ac, 0x841cb0 MOV W1, #1; bool ; +0x1b0, 0x841cb4 BL _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x1b4, 0x841cb8 MOV W1, W0; GJSpecialColorSelect * ; +0x1b8, 0x841cbc MOV X0, X19; this ; +0x1bc, 0x841cc0 LDR X19, [SP,#0x20+var_10] ; +0x1c0, 0x841cc4 LDP X29, X30, [SP+0x20+var_20],#0x20 ; +0x1c4, 0x841cc8 B _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x1c8, 0x841ccc ADRL X1, aGjButton03Png; "GJ_button_03.png" ; +0x1cc, 0x841cd0 B loc_841B7C ; +0x1d4, 0x841cd8 ADRL X1, aGjButton03Png; "GJ_button_03.png" ; +0x1d8, 0x841cdc B loc_841BA8 ; +0x1e0, 0x841ce4 MOV X0, X2 ; +0x1e4, 0x841ce8 LDR X2, [X2] ; +0x1e8, 0x841cec ADRL X1, aDetailColor; "Detail Color" ; +0x1ec, 0x841cf0 LDR X2, [X2,#0x390] ; +0x1f4, 0x841cf8 BLR X2 ; +0x1f8, 0x841cfc B loc_841B54 ; +0x1fc, 0x841d00 ADRL X1, aGjButton03Png; "GJ_button_03.png" ; +0x200, 0x841d04 B loc_841BD4 ; +0x208, 0x841d0c MOV X0, X2 ; +0x20c, 0x841d10 LDR X2, [X2] ; +0x210, 0x841d14 ADRL X1, aBaseColor; "Base Color" ; +0x214, 0x841d18 LDR X2, [X2,#0x390] ; +0x21c, 0x841d20 BLR X2 ; +0x220, 0x841d24 B loc_841B54 ; +0x224, 0x841d28