// // ColorAction::setupFromMap from 0x140259b60 to 0x14025a474 (2324 bytes) // // 2 xrefs: // > ColorAction::setupFromString @ 0x140259ae2 // > @ 0x1406cfc18 // // 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 // // Hidden C++ exception states: #wind=2 void ColorAction::setupFromMap(ColorAction *a1, std::map *a2) { __int64 v4; // rax GLubyte v5; // r15 void *v6; // rcx __int64 v7; // rax GLubyte v8; // r14 void *v9; // rcx __int64 v10; // rax GLubyte v11; // si void *v12; // rcx __int64 v13; // rax GLubyte v14; // r15 void *v15; // rcx __int64 v16; // rax GLubyte v17; // r14 void *v18; // rcx __int64 v19; // rax GLubyte v20; // si void *v21; // rcx __int64 v22; // rax void *v23; // rcx __int64 v24; // rax float v25; // xmm1_4 void *v26; // rcx __int64 v27; // rax void *v28; // rcx __int64 v29; // rax void *v30; // rcx __int64 v31; // rax __int64 v32; // rax int v33; // esi void *v34; // rcx __int64 v35; // rax float v36; // xmm1_4 __int64 v37; // rax float v38; // xmm1_4 void *v39; // rcx __int64 v40; // rax void *v41; // rcx __int64 *v42; // rax void *v43; // rcx __int64 v44; // rax float v45; // xmm1_4 void *v46; // rcx __int64 v47; // rax void *Block[2]; // [rsp+20h] [rbp-50h] BYREF __int64 v49; // [rsp+30h] [rbp-40h] unsigned __int64 v50; // [rsp+38h] [rbp-38h] void *v51[2]; // [rsp+40h] [rbp-30h] BYREF __int64 v52; // [rsp+50h] [rbp-20h] unsigned __int64 v53; // [rsp+58h] [rbp-18h] *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 49; v4 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v4 + 24) > 0xFu ) v4 = *(_QWORD *)v4; v5 = atoi((const char *)v4); if ( v50 > 0xF ) { v6 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v6); } *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 50; v7 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v7 + 24) > 0xFu ) v7 = *(_QWORD *)v7; v8 = atoi((const char *)v7); if ( v50 > 0xF ) { v9 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 51; v10 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v10 + 24) > 0xFu ) v10 = *(_QWORD *)v10; v11 = atoi((const char *)v10); if ( v50 > 0xF ) { v12 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v12 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } a1->m_fromColor.r = v5; a1->m_fromColor.g = v8; a1->m_fromColor.b = v11; *(_OWORD *)Block = 0; v49 = 2; v50 = 15; strcpy((char *)Block, "11"); v13 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v13 + 24) > 0xFu ) v13 = *(_QWORD *)v13; v14 = atoi((const char *)v13); if ( v50 > 0xF ) { v15 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v15 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v15); } *(_OWORD *)Block = 0; v49 = 2; v50 = 15; strcpy((char *)Block, "12"); v16 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v16 + 24) > 0xFu ) v16 = *(_QWORD *)v16; v17 = atoi((const char *)v16); if ( v50 > 0xF ) { v18 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v18 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v18); } *(_OWORD *)Block = 0; v49 = 2; v50 = 15; strcpy((char *)Block, "13"); v19 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v19 + 24) > 0xFu ) v19 = *(_QWORD *)v19; v20 = atoi((const char *)v19); if ( v50 > 0xF ) { v21 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v21 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v21 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v21); } a1->m_toColor.r = v14; a1->m_toColor.g = v17; a1->m_toColor.b = v20; *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 52; v22 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v22 + 24) > 0xFu ) v22 = *(_QWORD *)v22; a1->m_playerColor = atoi((const char *)v22); if ( v50 > 0xF ) { v23 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v23 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v23 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v23); } *(_OWORD *)Block = 0; v49 = 2; v50 = 15; strcpy((char *)Block, "16"); v24 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v24 + 24) > 0xFu ) v24 = *(_QWORD *)v24; v25 = atof((const char *)v24); a1->m_duration = v25; if ( v50 > 0xF ) { v26 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v26 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v26); } if ( !a1->m_colorID ) { *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 54; v27 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v27 + 24) > 0xFu ) v27 = *(_QWORD *)v27; a1->m_colorID = atoi((const char *)v27); if ( v50 > 0xF ) { v28 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v28 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v28 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v28); } } *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 53; v29 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v29 + 24) > 0xFu ) v29 = *(_QWORD *)v29; a1->m_blending = atof((const char *)v29) != 0.0; if ( v50 > 0xF ) { v30 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v30 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v30 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v30); } *(_OWORD *)v51 = 0; v52 = 2; v53 = 15; strcpy((char *)v51, "17"); v31 = sub_1402659E0(a2, v51); if ( *(_QWORD *)(v31 + 24) > 0xFu ) v31 = *(_QWORD *)v31; a1->m_copyOpacity = atoi((const char *)v31) != 0; sub_14003A830((__int64)v51); a1->m_fromOpacity = 1.0; *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 56; v32 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v32 + 24) > 0xFu ) v32 = *(_QWORD *)v32; v33 = atoi((const char *)v32); if ( v50 > 0xF ) { v34 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v34 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v34 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v34); } if ( v33 >= 1 ) { *(_OWORD *)v51 = 0; v52 = 1; v53 = 15; LOWORD(v51[0]) = 55; v35 = sub_1402659E0(a2, v51); if ( *(_QWORD *)(v35 + 24) > 0xFu ) v35 = *(_QWORD *)v35; v36 = atof((const char *)v35); a1->m_fromOpacity = v36; sub_14003A830((__int64)v51); } *(_OWORD *)Block = 0; v49 = 2; v50 = 15; strcpy((char *)Block, "15"); v37 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v37 + 24) > 0xFu ) v37 = *(_QWORD *)v37; v38 = atof((const char *)v37); a1->m_toOpacity = v38; if ( v50 > 0xF ) { v39 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v39 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v39 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v39); } *(_OWORD *)Block = 0; v49 = 1; v50 = 15; LOWORD(Block[0]) = 57; v40 = sub_1402659E0(a2, Block); if ( *(_QWORD *)(v40 + 24) > 0xFu ) v40 = *(_QWORD *)v40; a1->m_copyID = atoi((const char *)v40); if ( v50 > 0xF ) { v41 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v41 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v41 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v41); } *(_OWORD *)v51 = 0; v52 = 2; v53 = 15; strcpy((char *)v51, "10"); v42 = (__int64 *)sub_1402659E0(a2, v51); a1->m_copyHSV = (cocos2d::ccHSVValue)*GameToolbox::hsvFromString((__int128 *)Block, v42); if ( v53 > 0xF ) { v43 = v51[0]; if ( v53 + 1 >= 0x1000 ) { v43 = *((void **)v51[0] - 1); if ( (unsigned __int64)((char *)v51[0] - (char *)v43 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v43); } *(_OWORD *)v51 = 0; v52 = 2; v53 = 15; strcpy((char *)v51, "14"); v44 = sub_1402659E0(a2, v51); if ( *(_QWORD *)(v44 + 24) > 0xFu ) v44 = *(_QWORD *)v44; v45 = atof((const char *)v44); a1->m_deltaTime = v45; if ( v53 > 0xF ) { v46 = v51[0]; if ( v53 + 1 >= 0x1000 ) { v46 = *((void **)v51[0] - 1); if ( (unsigned __int64)((char *)v51[0] - (char *)v46 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v46); } *(_OWORD *)v51 = 0; v52 = 2; v53 = 15; strcpy((char *)v51, "19"); v47 = sub_1402659E0(a2, v51); if ( *(_QWORD *)(v47 + 24) > 0xFu ) v47 = *(_QWORD *)v47; a1->m_paused = atoi((const char *)v47) != 0; sub_14003A830((__int64)v51); }