; ; CharacterColorPage::updateIconColors from 0x1001532cc to 0x100153408 (316 bytes) ; ; 3 xrefs: ; > CharacterColorPage::init @ 0x100152e04 ; > CharacterColorPage::toggleGlow @ 0x100153794 ; > CharacterColorPage::onPlayerColor @ 0x100153c94 ; ; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 10:59:40 +0000 ; SUB SP, SP, #0x40 ; +0x0, 0x1001532cc STP X22, X21, [SP,#0x30+var_20] ; +0x4, 0x1001532d0 STP X20, X19, [SP,#0x30+var_10] ; +0x8, 0x1001532d4 STP X29, X30, [SP,#0x30+var_s0] ; +0xc, 0x1001532d8 ADD X29, SP, #0x30 ; +0x10, 0x1001532dc MOV X19, X0 ; +0x14, 0x1001532e0 BL GameManager__sharedState ; +0x18, 0x1001532e4 LDRB W22, [X0,#0x390] ; +0x1c, 0x1001532e8 BL GameManager__sharedState ; +0x20, 0x1001532ec MOV X20, X0 ; +0x24, 0x1001532f0 BL GameManager__sharedState ; +0x28, 0x1001532f4 LDR W8, [X0,#0x32C] ; +0x2c, 0x1001532f8 LDR W9, [X0,#0x330] ; +0x30, 0x1001532fc SUB W1, W8, W9 ; +0x34, 0x100153300 MOV X0, X20 ; +0x38, 0x100153304 BL GameManager__colorForIdx ; +0x3c, 0x100153308 STRH W0, [SP,#0x30+var_24] ; +0x40, 0x10015330c LSR W8, W0, #0x10 ; +0x44, 0x100153310 STRB W8, [SP,#0x30+var_22] ; +0x48, 0x100153314 BL GameManager__sharedState ; +0x4c, 0x100153318 MOV X20, X0 ; +0x50, 0x10015331c BL GameManager__sharedState ; +0x54, 0x100153320 LDR W8, [X0,#0x338] ; +0x58, 0x100153324 LDR W9, [X0,#0x33C] ; +0x5c, 0x100153328 SUB W1, W8, W9 ; +0x60, 0x10015332c MOV X0, X20 ; +0x64, 0x100153330 BL GameManager__colorForIdx ; +0x68, 0x100153334 STRH W0, [SP,#0x30+var_28] ; +0x6c, 0x100153338 LSR W8, W0, #0x10 ; +0x70, 0x10015333c STRB W8, [SP,#0x30+var_26] ; +0x74, 0x100153340 BL GameManager__sharedState ; +0x78, 0x100153344 LDR W8, [X0,#0x344] ; +0x7c, 0x100153348 LDR W9, [X0,#0x348] ; +0x80, 0x10015334c SUB W20, W8, W9 ; +0x84, 0x100153350 BL GameManager__sharedState ; +0x88, 0x100153354 MOV X1, X20 ; +0x8c, 0x100153358 BL GameManager__colorForIdx ; +0x90, 0x10015335c STRH W0, [SP,#0x30+var_2C] ; +0x94, 0x100153360 LSR W8, W0, #0x10 ; +0x98, 0x100153364 STRB W8, [SP,#0x30+var_2A] ; +0x9c, 0x100153368 LDR X0, [X19,#0x2A0] ; +0xa0, 0x10015336c BL sub_1002E757C ; +0xa4, 0x100153370 CBZ W0, loc_1001533F4 ; +0xa8, 0x100153374 MOV W20, #0 ; +0xac, 0x100153378 LDR X0, [X19,#0x2A0] ; +0xb0, 0x10015337c MOV X1, X20 ; +0xb4, 0x100153380 BL sub_1002E75A0 ; +0xb8, 0x100153384 MOV X21, X0 ; +0xbc, 0x100153388 LDR X8, [X0] ; +0xc0, 0x10015338c LDR X8, [X8,#0x3C0] ; +0xc4, 0x100153390 ADD X1, SP, #0x30+var_24 ; +0xc8, 0x100153394 BLR X8 ; +0xcc, 0x100153398 ADD X1, SP, #0x30+var_28 ; +0xd0, 0x10015339c MOV X0, X21 ; +0xd4, 0x1001533a0 BL SimplePlayer__setSecondColor ; +0xd8, 0x1001533a4 STRB W22, [X21,#0x294] ; +0xdc, 0x1001533a8 BL GameManager__sharedState ; +0xe0, 0x1001533ac LDR W8, [X0,#0x344] ; +0xe4, 0x1001533b0 LDR W9, [X0,#0x348] ; +0xe8, 0x1001533b4 CMP W8, W9 ; +0xec, 0x1001533b8 B.GE loc_1001533CC ; +0xf0, 0x1001533bc MOV X0, X21 ; +0xf4, 0x1001533c0 BL SimplePlayer__disableCustomGlowColor ; +0xf8, 0x1001533c4 B loc_1001533D8 ; +0xfc, 0x1001533c8 ADD X1, SP, #0x30+var_2C ; +0x100, 0x1001533cc MOV X0, X21 ; +0x104, 0x1001533d0 BL SimplePlayer__enableCustomGlowColor ; +0x108, 0x1001533d4 MOV X0, X21 ; +0x10c, 0x1001533d8 BL SimplePlayer__updateColors ; +0x110, 0x1001533dc ADD W20, W20, #1 ; +0x114, 0x1001533e0 LDR X0, [X19,#0x2A0] ; +0x118, 0x1001533e4 BL sub_1002E757C ; +0x11c, 0x1001533e8 CMP W20, W0 ; +0x120, 0x1001533ec B.CC loc_10015337C ; +0x124, 0x1001533f0 LDP X29, X30, [SP,#0x30+var_s0] ; +0x128, 0x1001533f4 LDP X20, X19, [SP,#0x30+var_10] ; +0x12c, 0x1001533f8 LDP X22, X21, [SP,#0x30+var_20] ; +0x130, 0x1001533fc ADD SP, SP, #0x40 ; '@' ; +0x134, 0x100153400 RET ; +0x138, 0x100153404