; ; ColorSelectPopup::colorToHex from 0x4e1a00 to 0x4e1bb0 (432 bytes) ; ; 2 xrefs: ; > ColorSelectPopup::updateColorLabels @ 0x4e1c98 ; > SetupPulsePopup::updateColorLabels @ 0x5ef4d8 ; ; 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:51:01 +0000 ; LDR R3, =(__stack_chk_guard_ptr - 0x4E1A0A) ; +0x0, 0x4e1a00 PUSH.W {R4-R11,LR} ; +0x2, 0x4e1a02 ADD R3, PC; __stack_chk_guard_ptr ; +0x6, 0x4e1a06 LDR R3, [R3]; __stack_chk_guard ; +0x8, 0x4e1a08 LDR R6, =(word_BEC5C4 - 0x4E1A16) ; +0xa, 0x4e1a0a SUB SP, SP, #0x5C ; +0xc, 0x4e1a0c LDR R2, [R3] ; +0xe, 0x4e1a0e MOV R4, R0 ; +0x10, 0x4e1a10 ADD R6, PC; word_BEC5C4 ; +0x12, 0x4e1a12 STR R1, [SP,#0x5C+var_48] ; +0x14, 0x4e1a14 ADDS R5, R6, #(a0123456789abcd_1 - 0xBEC5C4); "0123456789ABCDEF" ; +0x16, 0x4e1a16 ADD.W R7, R6, #(a0123456789abcd_1+0x10 - 0xBEC5C4); "" ; +0x18, 0x4e1a18 STR R2, [SP,#0x5C+var_8] ; +0x1c, 0x4e1a1c MOVS R2, #0 ; +0x1e, 0x4e1a1e STR R2, [R0] ; +0x20, 0x4e1a20 STR R2, [R0,#4] ; +0x22, 0x4e1a22 STR R2, [R0,#8] ; +0x24, 0x4e1a24 ADD R2, SP, #0x5C+var_18 ; +0x26, 0x4e1a26 STR R3, [SP,#0x5C+var_58] ; +0x28, 0x4e1a28 LDR R0, [R5] ; +0x2a, 0x4e1a2a ADDS R5, #8 ; +0x2c, 0x4e1a2c LDR.W R1, [R5,#-4] ; +0x2e, 0x4e1a2e CMP R5, R7 ; +0x32, 0x4e1a32 MOV R3, R2 ; +0x34, 0x4e1a34 STM R3!, {R0,R1} ; +0x36, 0x4e1a36 MOV R2, R3 ; +0x38, 0x4e1a38 BNE loc_4E1A2A ; +0x3a, 0x4e1a3a LDR R3, =(a00 - 0x4E1A4A); "00" ; +0x3c, 0x4e1a3c ADD.W R9, SP, #0x5C+var_24 ; +0x3e, 0x4e1a3e MOV.W R8, #0 ; +0x42, 0x4e1a42 ADD R3, PC; "00" ; +0x46, 0x4e1a46 STR R3, [SP,#0x5C+var_50] ; +0x48, 0x4e1a48 LDR R3, =(a0 - 0x4E1A50); "0" ; +0x4a, 0x4e1a4a ADD R3, PC; "0" ; +0x4c, 0x4e1a4c STR R3, [SP,#0x5C+var_4C] ; +0x4e, 0x4e1a4e CMP.W R8, #0 ; +0x50, 0x4e1a50 BEQ loc_4E1A62 ; +0x54, 0x4e1a54 CMP.W R8, #1 ; +0x56, 0x4e1a56 BNE loc_4E1A68 ; +0x5a, 0x4e1a5a LDRB.W R10, [SP,#0x5C+var_48+1] ; +0x5c, 0x4e1a5c B loc_4E1A6C ; +0x60, 0x4e1a60 LDRB.W R10, [SP,#0x5C+var_48+2] ; +0x62, 0x4e1a62 B loc_4E1A6C ; +0x66, 0x4e1a66 LDRB.W R10, [SP,#0x5C+var_48] ; +0x68, 0x4e1a68 CMP.W R10, #0 ; +0x6c, 0x4e1a6c BEQ loc_4E1B44 ; +0x70, 0x4e1a70 ADD R6, SP, #0x5C+var_3C ; +0x72, 0x4e1a72 MOV R11, R10 ; +0x74, 0x4e1a74 MOVS R5, #0 ; +0x76, 0x4e1a76 ADD.W R3, SP, #0x5C+var_3D ; +0x78, 0x4e1a78 STR R3, [SP,#0x5C+var_54] ; +0x7c, 0x4e1a7c LDRB R7, [R4] ; +0x7e, 0x4e1a7e ADD R2, SP, #0x5C+var_4 ; +0x80, 0x4e1a80 AND.W R3, R11, #0xF ; +0x82, 0x4e1a82 MOV R0, R6 ; +0x86, 0x4e1a86 ADD R3, R2 ; +0x88, 0x4e1a88 LSLS R2, R7, #0x1F ; +0x8a, 0x4e1a8a IT PL ; +0x8c, 0x4e1a8c ASRPL R7, R7, #1 ; +0x8e, 0x4e1a8e MOV.W R2, #1 ; +0x90, 0x4e1a90 LDRB.W R3, [R3,#-0x14] ; +0x94, 0x4e1a94 IT MI ; +0x98, 0x4e1a98 LDRMI R7, [R4,#4] ; +0x9a, 0x4e1a9a LDR R1, [SP,#0x5C+var_54] ; +0x9c, 0x4e1a9c STRB.W R3, [SP,#0x5C+var_3D] ; +0x9e, 0x4e1a9e ADDS R3, R7, R2 ; +0xa2, 0x4e1aa2 STR R5, [SP,#0x5C+var_3C] ; +0xa4, 0x4e1aa4 STR R5, [SP,#0x5C+var_38] ; +0xa6, 0x4e1aa6 STR R5, [SP,#0x5C+var_34] ; +0xa8, 0x4e1aa8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcjj; std::string::__init(char const*,uint,uint) ; +0xaa, 0x4e1aaa LDRB R3, [R4] ; +0xae, 0x4e1aae MOV R0, R6 ; +0xb0, 0x4e1ab0 MOV R2, R7 ; +0xb2, 0x4e1ab2 LSLS R3, R3, #0x1F ; +0xb4, 0x4e1ab4 ITE PL ; +0xb6, 0x4e1ab6 ADDPL R1, R4, #1 ; +0xb8, 0x4e1ab8 LDRMI R1, [R4,#8] ; +0xba, 0x4e1aba BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj; std::string::append(char const*,uint) ; +0xbc, 0x4e1abc B loc_4E1ACA ; +0xc0, 0x4e1ac0 MOV R0, R6 ; +0xc2, 0x4e1ac2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc4, 0x4e1ac4 B loc_4E1B90 ; +0xc8, 0x4e1ac8 LDRB R3, [R4] ; +0xca, 0x4e1aca MOV R0, R4 ; +0xcc, 0x4e1acc MOVS R1, #0 ; +0xce, 0x4e1ace ANDS.W R3, R3, #1 ; +0xd0, 0x4e1ad0 ITTEE EQ ; +0xd4, 0x4e1ad4 STRBEQ R3, [R4,#1] ; +0xd6, 0x4e1ad6 STRBEQ R3, [R4] ; +0xd8, 0x4e1ad8 LDRNE R3, [R4,#8] ; +0xda, 0x4e1ada STRBNE R5, [R3] ; +0xdc, 0x4e1adc IT NE ; +0xde, 0x4e1ade STRNE R5, [R4,#4] ; +0xe0, 0x4e1ae0 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0xe2, 0x4e1ae2 LDM.W R6, {R0-R2} ; +0xe6, 0x4e1ae6 STR R5, [SP,#0x5C+var_3C] ; +0xea, 0x4e1aea STR R5, [SP,#0x5C+var_38] ; +0xec, 0x4e1aec STR R5, [SP,#0x5C+var_34] ; +0xee, 0x4e1aee STM.W R4, {R0-R2} ; +0xf0, 0x4e1af0 MOV R0, R6 ; +0xf4, 0x4e1af4 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf6, 0x4e1af6 MOVS.W R11, R11,ASR#4 ; +0xfa, 0x4e1afa BNE loc_4E1A7E ; +0xfe, 0x4e1afe CMP.W R10, #0xF ; +0x100, 0x4e1b00 BGT loc_4E1B82 ; +0x104, 0x4e1b04 ADD R5, SP, #0x5C+var_30 ; +0x106, 0x4e1b06 LDR R1, [SP,#0x5C+var_4C]; char * ; +0x108, 0x4e1b08 MOV R2, R4 ; +0x10a, 0x4e1b0a MOV R0, R5; int ; +0x10c, 0x4e1b0c BL _ZNSt6__ndk1plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEPKS6_RKS9_; std::operator+(char const*,std::string const&) ; +0x10e, 0x4e1b0e LDRB R3, [R4] ; +0x112, 0x4e1b12 MOV R0, R4 ; +0x114, 0x4e1b14 MOVS R1, #0 ; +0x116, 0x4e1b16 ANDS.W R3, R3, #1 ; +0x118, 0x4e1b18 ITTEE EQ ; +0x11c, 0x4e1b1c STRBEQ R3, [R4,#1] ; +0x11e, 0x4e1b1e STRBEQ R3, [R4] ; +0x120, 0x4e1b20 LDRNE R2, [R4,#8] ; +0x122, 0x4e1b22 MOVNE R3, #0 ; +0x124, 0x4e1b24 ITT NE ; +0x126, 0x4e1b26 STRBNE R3, [R2] ; +0x128, 0x4e1b28 STRNE R3, [R4,#4] ; +0x12a, 0x4e1b2a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0x12c, 0x4e1b2c LDM.W R5, {R0-R2} ; +0x130, 0x4e1b30 MOVS R3, #0 ; +0x134, 0x4e1b34 STR R3, [SP,#0x5C+var_30] ; +0x136, 0x4e1b36 STR R3, [SP,#0x5C+var_2C] ; +0x138, 0x4e1b38 STR R3, [SP,#0x5C+var_28] ; +0x13a, 0x4e1b3a STM.W R4, {R0-R2} ; +0x13c, 0x4e1b3c MOV R0, R5 ; +0x140, 0x4e1b40 B loc_4E1B7E ; +0x142, 0x4e1b42 MOV R0, R9; int ; +0x144, 0x4e1b44 LDR R1, [SP,#0x5C+var_50]; char * ; +0x146, 0x4e1b46 MOV R2, R4 ; +0x148, 0x4e1b48 BL _ZNSt6__ndk1plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEPKS6_RKS9_; std::operator+(char const*,std::string const&) ; +0x14a, 0x4e1b4a LDRB R3, [R4] ; +0x14e, 0x4e1b4e MOV R0, R4 ; +0x150, 0x4e1b50 MOVS R1, #0 ; +0x152, 0x4e1b52 ANDS.W R3, R3, #1 ; +0x154, 0x4e1b54 ITTEE EQ ; +0x158, 0x4e1b58 STRBEQ R3, [R4,#1] ; +0x15a, 0x4e1b5a STRBEQ R3, [R4] ; +0x15c, 0x4e1b5c LDRNE R2, [R4,#8] ; +0x15e, 0x4e1b5e MOVNE R3, #0 ; +0x160, 0x4e1b60 ITT NE ; +0x162, 0x4e1b62 STRBNE R3, [R2] ; +0x164, 0x4e1b64 STRNE R3, [R4,#4] ; +0x166, 0x4e1b66 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0x168, 0x4e1b68 LDM.W R9, {R0-R2} ; +0x16c, 0x4e1b6c MOVS R3, #0 ; +0x170, 0x4e1b70 STR R3, [SP,#0x5C+var_24] ; +0x172, 0x4e1b72 STR R3, [SP,#0x5C+var_20] ; +0x174, 0x4e1b74 STR R3, [SP,#0x5C+var_1C] ; +0x176, 0x4e1b76 STM.W R4, {R0-R2} ; +0x178, 0x4e1b78 MOV R0, R9 ; +0x17c, 0x4e1b7c BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x17e, 0x4e1b7e ADD.W R8, R8, #1 ; +0x182, 0x4e1b82 CMP.W R8, #3 ; +0x186, 0x4e1b86 BNE.W loc_4E1A50 ; +0x18a, 0x4e1b8a B loc_4E1B9A ; +0x18e, 0x4e1b8e MOV R0, R4 ; +0x190, 0x4e1b90 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x192, 0x4e1b92 BL __cxa_end_cleanup ; +0x196, 0x4e1b96 LDR R3, [SP,#0x5C+var_58] ; +0x19a, 0x4e1b9a MOV R0, R4 ; +0x19c, 0x4e1b9c LDR R2, [SP,#0x5C+var_8] ; +0x19e, 0x4e1b9e LDR R3, [R3] ; +0x1a0, 0x4e1ba0 CMP R2, R3 ; +0x1a2, 0x4e1ba2 BEQ loc_4E1BAA ; +0x1a4, 0x4e1ba4 BLX __stack_chk_fail ; +0x1a6, 0x4e1ba6 ADD SP, SP, #0x5C ; '\' ; +0x1aa, 0x4e1baa POP.W {R4-R11,PC} ; +0x1ac, 0x4e1bac