; ; CharacterColorPage::updateIconColors from 0x10012989c to 0x1001299d8 (316 bytes) ; ; 3 xrefs: ; > CharacterColorPage::init @ 0x1001293d4 ; > CharacterColorPage::toggleGlow @ 0x100129d64 ; > CharacterColorPage::onPlayerColor @ 0x10012a264 ; ; 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 ; SUB SP, SP, #0x40 ; +0x0, 0x10012989c STP X22, X21, [SP,#0x30+var_20] ; +0x4, 0x1001298a0 STP X20, X19, [SP,#0x30+var_10] ; +0x8, 0x1001298a4 STP X29, X30, [SP,#0x30+var_s0] ; +0xc, 0x1001298a8 ADD X29, SP, #0x30 ; +0x10, 0x1001298ac MOV X19, X0 ; +0x14, 0x1001298b0 BL GameManager__sharedState ; +0x18, 0x1001298b4 LDRB W22, [X0,#0x368] ; +0x1c, 0x1001298b8 BL GameManager__sharedState ; +0x20, 0x1001298bc MOV X20, X0 ; +0x24, 0x1001298c0 BL GameManager__sharedState ; +0x28, 0x1001298c4 LDR W8, [X0,#0x304] ; +0x2c, 0x1001298c8 LDR W9, [X0,#0x308] ; +0x30, 0x1001298cc SUB W1, W8, W9 ; +0x34, 0x1001298d0 MOV X0, X20 ; +0x38, 0x1001298d4 BL GameManager__colorForIdx ; +0x3c, 0x1001298d8 STRH W0, [SP,#0x30+var_24] ; +0x40, 0x1001298dc LSR W8, W0, #0x10 ; +0x44, 0x1001298e0 STRB W8, [SP,#0x30+var_22] ; +0x48, 0x1001298e4 BL GameManager__sharedState ; +0x4c, 0x1001298e8 MOV X20, X0 ; +0x50, 0x1001298ec BL GameManager__sharedState ; +0x54, 0x1001298f0 LDR W8, [X0,#0x310] ; +0x58, 0x1001298f4 LDR W9, [X0,#0x314] ; +0x5c, 0x1001298f8 SUB W1, W8, W9 ; +0x60, 0x1001298fc MOV X0, X20 ; +0x64, 0x100129900 BL GameManager__colorForIdx ; +0x68, 0x100129904 STRH W0, [SP,#0x30+var_28] ; +0x6c, 0x100129908 LSR W8, W0, #0x10 ; +0x70, 0x10012990c STRB W8, [SP,#0x30+var_26] ; +0x74, 0x100129910 BL GameManager__sharedState ; +0x78, 0x100129914 LDR W8, [X0,#0x31C] ; +0x7c, 0x100129918 LDR W9, [X0,#0x320] ; +0x80, 0x10012991c SUB W20, W8, W9 ; +0x84, 0x100129920 BL GameManager__sharedState ; +0x88, 0x100129924 MOV X1, X20 ; +0x8c, 0x100129928 BL GameManager__colorForIdx ; +0x90, 0x10012992c STRH W0, [SP,#0x30+var_2C] ; +0x94, 0x100129930 LSR W8, W0, #0x10 ; +0x98, 0x100129934 STRB W8, [SP,#0x30+var_2A] ; +0x9c, 0x100129938 LDR X0, [X19,#0x288] ; +0xa0, 0x10012993c BL sub_10024A36C ; +0xa4, 0x100129940 CBZ W0, loc_1001299C4 ; +0xa8, 0x100129944 MOV W20, #0 ; +0xac, 0x100129948 LDR X0, [X19,#0x288] ; +0xb0, 0x10012994c MOV X1, X20 ; +0xb4, 0x100129950 BL sub_10024A388 ; +0xb8, 0x100129954 MOV X21, X0 ; +0xbc, 0x100129958 LDR X8, [X0] ; +0xc0, 0x10012995c LDR X8, [X8,#0x3B0] ; +0xc4, 0x100129960 ADD X1, SP, #0x30+var_24 ; +0xc8, 0x100129964 BLR X8 ; +0xcc, 0x100129968 ADD X1, SP, #0x30+var_28 ; +0xd0, 0x10012996c MOV X0, X21 ; +0xd4, 0x100129970 BL SimplePlayer__setSecondColor ; +0xd8, 0x100129974 STRB W22, [X21,#0x294] ; +0xdc, 0x100129978 BL GameManager__sharedState ; +0xe0, 0x10012997c LDR W8, [X0,#0x31C] ; +0xe4, 0x100129980 LDR W9, [X0,#0x320] ; +0xe8, 0x100129984 CMP W8, W9 ; +0xec, 0x100129988 B.GE loc_10012999C ; +0xf0, 0x10012998c MOV X0, X21 ; +0xf4, 0x100129990 BL SimplePlayer__disableCustomGlowColor ; +0xf8, 0x100129994 B loc_1001299A8 ; +0xfc, 0x100129998 ADD X1, SP, #0x30+var_2C ; +0x100, 0x10012999c MOV X0, X21 ; +0x104, 0x1001299a0 BL SimplePlayer__enableCustomGlowColor ; +0x108, 0x1001299a4 MOV X0, X21 ; +0x10c, 0x1001299a8 BL SimplePlayer__updateColors ; +0x110, 0x1001299ac ADD W20, W20, #1 ; +0x114, 0x1001299b0 LDR X0, [X19,#0x288] ; +0x118, 0x1001299b4 BL sub_10024A36C ; +0x11c, 0x1001299b8 CMP W20, W0 ; +0x120, 0x1001299bc B.CC loc_10012994C ; +0x124, 0x1001299c0 LDP X29, X30, [SP,#0x30+var_s0] ; +0x128, 0x1001299c4 LDP X20, X19, [SP,#0x30+var_10] ; +0x12c, 0x1001299c8 LDP X22, X21, [SP,#0x30+var_20] ; +0x130, 0x1001299cc ADD SP, SP, #0x40 ; '@' ; +0x134, 0x1001299d0 RET ; +0x138, 0x1001299d4