; ; ConfigureHSVWidget::setBaseColor from 0x5e4d74 to 0x5e4ed4 (352 bytes) ; ; 2 xrefs: ; > HSVWidgetPopup::init @ 0x5e6022 ; > HSVLiveOverlay::createHSVWidget @ 0x69c42c ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; 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 11:54:19 +0000 ; PUSH.W {R4-R10,LR} ; +0x0, 0x5e4d74 MOV R4, R0 ; +0x4, 0x5e4d78 VPUSH {D8} ; +0x6, 0x5e4d7a LDR R3, =(__stack_chk_guard_ptr - 0x5E4D84) ; +0xa, 0x5e4d7e ADD R3, PC; __stack_chk_guard_ptr ; +0xc, 0x5e4d80 LDR R3, [R3]; __stack_chk_guard ; +0xe, 0x5e4d82 SUB SP, SP, #0x28 ; +0x10, 0x5e4d84 LDR R2, [R3] ; +0x12, 0x5e4d86 MOV R5, R3 ; +0x14, 0x5e4d88 STR R1, [SP,#0x28+var_1C] ; +0x16, 0x5e4d8a ADD R6, SP, #0x28+var_C ; +0x18, 0x5e4d8c STRH.W R1, [R0,#0x144] ; +0x1a, 0x5e4d8e LSRS R1, R1, #0x10; char * ; +0x1e, 0x5e4d92 STR R2, [SP,#0x28+var_4] ; +0x20, 0x5e4d94 MOVS R2, #1 ; +0x22, 0x5e4d96 STRB.W R2, [R0,#0x150] ; +0x24, 0x5e4d98 LDR.W R2, [R0,#0x14C] ; +0x28, 0x5e4d9c STRB.W R1, [R0,#0x146] ; +0x2c, 0x5e4da0 CMP R2, #0 ; +0x30, 0x5e4da4 BNE loc_5E4E7A ; +0x32, 0x5e4da6 LDR R7, =(aWhitesquare600 - 0x5E4DAE); "whiteSquare60_001.png" ; +0x34, 0x5e4da8 ADD R7, PC; "whiteSquare60_001.png" ; +0x36, 0x5e4daa MOV R0, R7; this ; +0x38, 0x5e4dac BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x3a, 0x5e4dae LDR R1, =0x3F333333 ; +0x3e, 0x5e4db2 STR.W R0, [R4,#0x14C] ; +0x40, 0x5e4db4 LDR R3, [R0] ; +0x44, 0x5e4db8 LDR R3, [R3,#0x50] ; +0x46, 0x5e4dba BLX R3 ; +0x48, 0x5e4dbc LDR.W R0, [R4,#0x14C] ; +0x4a, 0x5e4dbe LDR R3, [R0] ; +0x4e, 0x5e4dc2 LDR.W R3, [R3,#0xA4] ; +0x50, 0x5e4dc4 BLX R3 ; +0x54, 0x5e4dc8 VLDR S16, [R0,#4] ; +0x56, 0x5e4dca LDR.W R0, [R4,#0x14C] ; +0x5a, 0x5e4dce LDR R3, [R0] ; +0x5e, 0x5e4dd2 LDR R3, [R3,#0x54] ; +0x60, 0x5e4dd4 BLX R3 ; +0x62, 0x5e4dd6 LDR R3, [R4] ; +0x64, 0x5e4dd8 LDR.W R1, [R4,#0x14C] ; +0x66, 0x5e4dda LDR.W R3, [R3,#0xE4] ; +0x6a, 0x5e4dde VMOV S15, R0 ; +0x6e, 0x5e4de2 MOV R0, R4 ; +0x72, 0x5e4de6 VMUL.F32 S16, S16, S15 ; +0x74, 0x5e4de8 BLX R3 ; +0x78, 0x5e4dec VLDR S15, =80.0 ; +0x7a, 0x5e4dee MOV R0, R6; this ; +0x7e, 0x5e4df2 LDR.W R8, [R4,#0x14C] ; +0x80, 0x5e4df4 LDR R1, flt_5E4EDC; float ; +0x84, 0x5e4df8 LDR.W R3, [R8] ; +0x86, 0x5e4dfa LDR.W R9, [R3,#0x5C] ; +0x8a, 0x5e4dfe VMOV.F32 S14, #1.5 ; +0x8e, 0x5e4e02 VNMLS.F32 S15, S16, S14 ; +0x92, 0x5e4e06 VMOV.F32 S14, #4.0 ; +0x96, 0x5e4e0a VADD.F32 S15, S15, S14 ; +0x9a, 0x5e4e0e VMOV R2, S15; float ; +0x9e, 0x5e4e12 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa2, 0x5e4e16 MOV R0, R8 ; +0xa6, 0x5e4e1a MOV R1, R6 ; +0xa8, 0x5e4e1c ADD.W R8, SP, #0x28+var_14 ; +0xaa, 0x5e4e1e BLX R9 ; +0xae, 0x5e4e22 MOV R0, R7; this ; +0xb0, 0x5e4e24 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0xb2, 0x5e4e26 LDR R1, =0x3F333333 ; +0xb6, 0x5e4e2a STR.W R0, [R4,#0x148] ; +0xb8, 0x5e4e2c LDR R3, [R0] ; +0xbc, 0x5e4e30 LDR R3, [R3,#0x50] ; +0xbe, 0x5e4e32 BLX R3 ; +0xc0, 0x5e4e34 LDR R3, [R4] ; +0xc2, 0x5e4e36 LDR.W R1, [R4,#0x148] ; +0xc4, 0x5e4e38 MOV R0, R4 ; +0xc8, 0x5e4e3c LDR.W R3, [R3,#0xE4] ; +0xca, 0x5e4e3e BLX R3 ; +0xce, 0x5e4e42 LDR.W R7, [R4,#0x148] ; +0xd0, 0x5e4e44 LDR.W R0, [R4,#0x14C] ; +0xd4, 0x5e4e48 LDR R3, [R7] ; +0xd8, 0x5e4e4c LDR.W R9, [R3,#0x5C] ; +0xda, 0x5e4e4e LDR R3, [R0] ; +0xde, 0x5e4e52 LDR R3, [R3,#0x60] ; +0xe0, 0x5e4e54 BLX R3 ; +0xe2, 0x5e4e56 VNEG.F32 S15, S16 ; +0xe4, 0x5e4e58 MOVS R1, #0; float ; +0xe8, 0x5e4e5c VMOV R2, S15; float ; +0xea, 0x5e4e5e MOV R10, R0 ; +0xee, 0x5e4e62 MOV R0, R8; this ; +0xf0, 0x5e4e64 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf2, 0x5e4e66 MOV R0, R6 ; +0xf6, 0x5e4e6a MOV R1, R10 ; +0xf8, 0x5e4e6c MOV R2, R8 ; +0xfa, 0x5e4e6e BL _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xfc, 0x5e4e70 MOV R0, R7 ; +0x100, 0x5e4e74 MOV R1, R6 ; +0x102, 0x5e4e76 BLX R9 ; +0x104, 0x5e4e78 LDR.W R3, [R4,#0x130] ; +0x106, 0x5e4e7a ADD.W R0, R4, #0x144 ; +0x10a, 0x5e4e7e STR R3, [SP,#0x28+var_28] ; +0x10e, 0x5e4e82 ADD.W R3, R4, #0x124 ; +0x110, 0x5e4e84 LDM R3, {R1-R3} ; +0x114, 0x5e4e88 BL _ZN11GameToolbox14transformColorERKN7cocos2d10_ccColor3BENS0_11_ccHSVValueE; GameToolbox::transformColor(cocos2d::_ccColor3B const&,cocos2d::_ccHSVValue) ; +0x116, 0x5e4e8a MOV R1, R6 ; +0x11a, 0x5e4e8e STRB.W R0, [SP,#0x28+var_C] ; +0x11c, 0x5e4e90 UBFX.W R3, R0, #8, #8 ; +0x120, 0x5e4e94 UBFX.W R0, R0, #0x10, #8 ; +0x124, 0x5e4e98 STRB.W R0, [SP,#0x28+var_A] ; +0x128, 0x5e4e9c LDR.W R0, [R4,#0x148] ; +0x12c, 0x5e4ea0 STRB.W R3, [SP,#0x28+var_B] ; +0x130, 0x5e4ea4 LDR R3, [R0] ; +0x134, 0x5e4ea8 LDR.W R3, [R3,#0x1E0] ; +0x136, 0x5e4eaa BLX R3 ; +0x13a, 0x5e4eae LDR.W R0, [R4,#0x14C] ; +0x13c, 0x5e4eb0 MOV R1, R6 ; +0x140, 0x5e4eb4 LDR R3, [R0] ; +0x142, 0x5e4eb6 LDR.W R3, [R3,#0x1E0] ; +0x144, 0x5e4eb8 BLX R3 ; +0x148, 0x5e4ebc LDR R2, [SP,#0x28+var_4] ; +0x14a, 0x5e4ebe LDR R3, [R5] ; +0x14c, 0x5e4ec0 CMP R2, R3 ; +0x14e, 0x5e4ec2 BEQ loc_5E4ECA ; +0x150, 0x5e4ec4 BLX __stack_chk_fail ; +0x152, 0x5e4ec6 ADD SP, SP, #0x28 ; '(' ; +0x156, 0x5e4eca VPOP {D8} ; +0x158, 0x5e4ecc POP.W {R4-R10,PC} ; +0x15c, 0x5e4ed0