; ; CustomizeObjectLayer::updateColorSprite from 0x1000501bc to 0x10005028c (208 bytes) ; ; 9 xrefs: ; > CustomizeObjectLayer::onSelectMode @ 0x10004f6c4 ; > CustomizeObjectLayer::onSelectColor @ 0x10004fab8 ; > CustomizeObjectLayer::onUpdateCustomColor @ 0x10004fb4c ; > CustomizeObjectLayer::onNextColorChannel @ 0x10004ff9c ; > CustomizeObjectLayer::onPaste @ 0x100050010 ; > CustomizeObjectLayer::colorSetupClosed @ 0x1000504e0 ; > CustomizeObjectLayer::colorSelectClosed @ 0x1000507a8 ; > sub_1000507AC @ 0x1000507b0 ; > CustomizeObjectLayer::textChanged @ 0x100050c30 ; ; 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 X22, X21, [SP,#-0x10+var_20]! ; +0x0, 0x1000501bc STP X20, X19, [SP,#0x20+var_10] ; +0x4, 0x1000501c0 STP X29, X30, [SP,#0x20+var_s0] ; +0x8, 0x1000501c4 ADD X29, SP, #0x20 ; +0xc, 0x1000501c8 MOV X19, X0 ; +0x10, 0x1000501cc LDR W9, [X0,#0x2D0] ; +0x14, 0x1000501d0 MOV W21, #1 ; +0x18, 0x1000501d4 MOV W8, #1 ; +0x1c, 0x1000501d8 CMP W9, #3 ; +0x20, 0x1000501dc B.EQ loc_10005026C ; +0x24, 0x1000501e0 MOV X0, X19 ; +0x28, 0x1000501e4 MOV W1, #1 ; +0x2c, 0x1000501e8 BL CustomizeObjectLayer__getActiveMode ; +0x30, 0x1000501ec MOV X20, X0 ; +0x34, 0x1000501f0 CMP W0, #1 ; +0x38, 0x1000501f4 B.LT loc_100050238 ; +0x3c, 0x1000501f8 BL GameManager__sharedState ; +0x40, 0x1000501fc LDR X8, [X0,#0x200] ; +0x44, 0x100050200 LDR X8, [X8,#0xCD8] ; +0x48, 0x100050204 LDR X0, [X8,#0x140] ; +0x4c, 0x100050208 MOV X1, X20 ; +0x50, 0x10005020c BL GJEffectManager__colorExists ; +0x54, 0x100050210 CBZ W0, loc_100050238 ; +0x58, 0x100050214 BL GameManager__sharedState ; +0x5c, 0x100050218 LDR X8, [X0,#0x200] ; +0x60, 0x10005021c LDR X8, [X8,#0xCD8] ; +0x64, 0x100050220 LDR X0, [X8,#0x140] ; +0x68, 0x100050224 MOV X1, X20 ; +0x6c, 0x100050228 BL GJEffectManager__getColorAction ; +0x70, 0x10005022c MOV X1, X0 ; +0x74, 0x100050230 B loc_10005023C ; +0x78, 0x100050234 MOV X1, #0 ; +0x7c, 0x100050238 LDR X0, [X19,#0x368] ; +0x80, 0x10005023c BL ColorChannelSprite__updateValues ; +0x84, 0x100050240 CMP W20, #1 ; +0x88, 0x100050244 CSET W8, LT ; +0x8c, 0x100050248 SUB W9, W20, #0x3ED ; +0x90, 0x10005024c CMP W20, #1 ; +0x94, 0x100050250 CSET W10, LT ; +0x98, 0x100050254 MOV W11, #0xE7 ; +0x9c, 0x100050258 LSR W11, W11, W9 ; +0xa0, 0x10005025c ORR W10, W10, W11 ; +0xa4, 0x100050260 CMP W9, #7 ; +0xa8, 0x100050264 CSEL W8, W8, W10, HI ; +0xac, 0x100050268 LDR X0, [X19,#0x370] ; +0xb0, 0x10005026c LDR X9, [X0] ; +0xb4, 0x100050270 LDR X2, [X9,#0x148] ; +0xb8, 0x100050274 BIC W1, W21, W8 ; +0xbc, 0x100050278 LDP X29, X30, [SP,#0x20+var_s0] ; +0xc0, 0x10005027c LDP X20, X19, [SP,#0x20+var_10] ; +0xc4, 0x100050280 LDP X22, X21, [SP+0x20+var_20],#0x30 ; +0xc8, 0x100050284 BR X2 ; +0xcc, 0x100050288