; ; ColorChannelSprite::updateValues from 0x4992e0 to 0x499390 (176 bytes) ; ; 3 xrefs: ; > CustomizeObjectLayer::updateColorSprite @ 0x461c4c ; > GJColorSetupLayer::updateSpriteColor @ 0x498046 ; > LevelSettingsLayer::updateColorSprite @ 0x570558 ; ; 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 ; LDR R3, =(__stack_chk_guard_ptr - 0x4992E8) ; +0x0, 0x4992e0 PUSH {R0,R1,R4-R6,LR} ; +0x2, 0x4992e2 ADD R3, PC; __stack_chk_guard_ptr ; +0x4, 0x4992e4 LDR R3, [R3]; __stack_chk_guard ; +0x6, 0x4992e6 MOV R5, R0 ; +0x8, 0x4992e8 MOV R4, R1 ; +0xa, 0x4992ea LDR R2, [R3] ; +0xc, 0x4992ec MOV R6, R3 ; +0xe, 0x4992ee STR R2, [SP,#8+var_4] ; +0x10, 0x4992f0 CBZ R1, loc_499340 ; +0x12, 0x4992f2 LDRB.W R2, [R4,#0x7A]; bool ; +0x14, 0x4992f4 LDR R1, [R1,#0x74]; GJSpecialColorSelect * ; +0x18, 0x4992f8 BL _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0x1a, 0x4992fa MOV R0, R5; this ; +0x1e, 0x4992fe LDR R1, [R4,#0x5C]; float ; +0x20, 0x499300 BL _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0x22, 0x499302 LDRB.W R1, [R4,#0x50]; bool ; +0x26, 0x499306 MOV R0, R5; this ; +0x2a, 0x49930a BL _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x2c, 0x49930c LDRB.W R3, [R4,#0x46] ; +0x30, 0x499310 LDRB.W R1, [R4,#0x44] ; +0x34, 0x499314 LDRB.W R2, [R4,#0x45] ; +0x38, 0x499318 STRB.W R3, [SP,#8+var_6] ; +0x3c, 0x49931c LDR R3, [R4,#0x74] ; +0x40, 0x499320 STRB.W R1, [SP,#8+var_8] ; +0x42, 0x499322 MOV R1, SP ; +0x46, 0x499326 STRB.W R2, [SP,#8+var_8+1] ; +0x48, 0x499328 CBZ R3, loc_499334 ; +0x4c, 0x49932c LDRB.W R3, [R4,#0x7A] ; +0x4e, 0x49932e CBZ R3, loc_49936C ; +0x52, 0x499332 LDR R3, [R5] ; +0x54, 0x499334 MOV R0, R5 ; +0x56, 0x499336 LDR.W R3, [R3,#0x1D8] ; +0x58, 0x499338 BLX R3 ; +0x5c, 0x49933c B loc_499380 ; +0x5e, 0x49933e LDR R3, [R0] ; +0x60, 0x499340 LDR R1, =(unk_9AC080 - 0x499348) ; +0x62, 0x499342 ADD R1, PC; unk_9AC080 ; +0x64, 0x499344 LDR.W R3, [R3,#0x1D8] ; +0x66, 0x499346 ADDS R1, #(word_9AC083 - 0x9AC080) ; +0x6a, 0x49934a BLX R3 ; +0x6c, 0x49934c MOV R0, R5; this ; +0x6e, 0x49934e MOV R1, R4; GJSpecialColorSelect * ; +0x70, 0x499350 MOV R2, R4; bool ; +0x72, 0x499352 BL _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0x74, 0x499354 MOV R0, R5; this ; +0x78, 0x499358 MOV.W R1, #0x3F800000; float ; +0x7a, 0x49935a BL _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0x7e, 0x49935e MOV R0, R5; this ; +0x82, 0x499362 MOV R1, R4; bool ; +0x84, 0x499364 BL _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x86, 0x499366 B loc_499380 ; +0x8a, 0x49936a LDR R3, =(unk_9AC080 - 0x499372) ; +0x8c, 0x49936c ADD R3, PC; unk_9AC080 ; +0x8e, 0x49936e LDRH.W R2, [R3,#(word_9AC086 - 0x9AC080)]! ; +0x90, 0x499370 LDRB R3, [R3,#(byte_9AC088 - 0x9AC086)] ; +0x94, 0x499374 STRH.W R2, [SP,#8+var_8] ; +0x96, 0x499376 STRB.W R3, [SP,#8+var_6] ; +0x9a, 0x49937a B loc_499334 ; +0x9e, 0x49937e LDR R2, [SP,#8+var_4] ; +0xa0, 0x499380 LDR R3, [R6] ; +0xa2, 0x499382 CMP R2, R3 ; +0xa4, 0x499384 BEQ loc_49938C ; +0xa6, 0x499386 BLX __stack_chk_fail ; +0xa8, 0x499388 ADD SP, SP, #8 ; +0xac, 0x49938c POP {R4-R6,PC} ; +0xae, 0x49938e