// // MultilineBitmapFont::readColorInfo from 0x6aae5c to 0x6abd28 (3788 bytes) // // 2 xrefs: // > MultilineBitmapFont::initWithFont @ 0x6ac13c // > @ 0xc2d88 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:50:48 +0000 // __int64 *__usercall MultilineBitmapFont::readColorInfo@( cocos2d::CCArray **a1@, __int64 *a2@, __int64 *a3@) { unsigned __int8 v5; // w20 int v6; // w0 unsigned __int64 v7; // x21 __int64 v8; // x23 __int64 v9; // x0 int v10; // w24 unsigned __int8 v11; // w1 unsigned __int64 v12; // x21 size_t v13; // x25 unsigned __int64 v14; // x23 char *v15; // x0 unsigned __int64 v16; // x2 size_t v17; // x3 size_t v18; // x0 int v19; // w2 unsigned int v20; // w1 _BOOL4 v21; // w20 _BOOL4 v22; // w21 int v23; // w21 char *v24; // x0 const char *v25; // x0 char v26; // w22 const char *v27; // x0 const char *v28; // x0 char v29; // w23 char v30; // w28 size_t v31; // x2 int v32; // w27 __int64 *v33; // x0 const void *v34; // x1 size_t v35; // x2 unsigned __int64 v36; // x0 __int64 v37; // x25 __int64 v38; // x1 unsigned __int64 v40; // x21 __int64 v41; // x22 __int64 v42; // x21 __int64 v43; // x0 int v44; // w20 char *v45; // x21 float v46; // s8 __int64 *v47; // x0 const void *v48; // x1 size_t v49; // x2 __int64 v50; // x23 unsigned __int64 v51; // x0 unsigned __int64 v52; // x22 __int64 v53; // x0 int v54; // w22 __int64 *v55; // x0 const void *v56; // x1 size_t v57; // x2 cocos2d::CCArray *v58; // x21 long double v59; // q0 cocos2d::CCObject *v60; // x0 unsigned __int64 v61; // x27 __int64 v62; // x0 __int64 v63; // x25 __int64 *v64; // x0 const void *v65; // x1 size_t v66; // x2 cocos2d::CCArray *v67; // x20 cocos2d::CCObject *ColoredSection; // x0 unsigned __int64 v69; // x21 __int64 v70; // x22 __int64 v71; // x21 __int64 v72; // x0 int v73; // w20 unsigned __int64 v74; // x1 char *v75; // x21 int v76; // w24 char *v77; // x21 int v78; // w23 __int64 *v79; // x0 const void *v80; // x1 size_t v81; // x2 __int64 v82; // x22 unsigned __int64 v83; // x0 unsigned __int64 v84; // x25 __int64 v85; // x0 __int64 v86; // x22 __int64 *v87; // x0 const void *v88; // x1 size_t v89; // x2 cocos2d::CCArray *v90; // x21 cocos2d::CCObject *ShakeSection; // x0 __int64 v92; // x21 unsigned __int64 v93; // x20 __int64 v94; // x20 __int64 v95; // x0 int v96; // w20 float v97; // s8 __int64 *v98; // x0 const void *v99; // x1 size_t v100; // x2 cocos2d::CCArray *v101; // x21 long double v102; // q0 cocos2d::CCObject *v103; // x0 char *v104; // x21 char *v105; // x27 int v107; // [xsp+C8h] [xbp+C8h] int v108; // [xsp+CCh] [xbp+CCh] int v109; // [xsp+D0h] [xbp+D0h] __int64 v110[2]; // [xsp+D8h] [xbp+D8h] BYREF char *v111; // [xsp+E8h] [xbp+E8h] __int64 v112[2]; // [xsp+F0h] [xbp+F0h] BYREF void *v113; // [xsp+100h] [xbp+100h] __int64 v114[2]; // [xsp+108h] [xbp+108h] BYREF void *v115; // [xsp+118h] [xbp+118h] __int64 v116[2]; // [xsp+120h] [xbp+120h] BYREF void *v117; // [xsp+130h] [xbp+130h] __int64 v118[2]; // [xsp+138h] [xbp+138h] BYREF void *v119; // [xsp+148h] [xbp+148h] __int64 v120[2]; // [xsp+150h] [xbp+150h] BYREF char *v121; // [xsp+160h] [xbp+160h] while ( 1 ) { while ( 1 ) { v5 = *(_BYTE *)a2; v6 = *(_BYTE *)a2 & 1; if ( (*(_BYTE *)a2 & 1) != 0 ) { v7 = a2[1]; v8 = a2[2]; if ( v7 <= 1 ) goto LABEL_55; } else { v7 = v5 >> 1; v8 = (__int64)a2 + 1; if ( v7 <= 1 ) goto LABEL_55; } v9 = std::__search( v8, v8 + v7, "::eq); if ( v8 + v7 != v9 ) { v10 = v9 - v8; if ( v9 - v8 != -1 ) break; } v5 = *(_BYTE *)a2; v6 = *(_BYTE *)a2 & 1; LABEL_55: if ( v6 ) { v40 = a2[1]; v41 = a2[2]; if ( v40 <= 1 ) goto LABEL_90; } else { v40 = v5 >> 1; v41 = (__int64)a2 + 1; if ( v40 <= 1 ) goto LABEL_90; } v42 = v41 + v40; v43 = std::__search( v41, v42, "::eq); if ( v42 == v43 || (v44 = v43 - v41, v43 - v41 == -1) ) { v5 = *(_BYTE *)a2; v6 = *(_BYTE *)a2 & 1; LABEL_90: if ( v6 ) { v69 = a2[1]; v70 = a2[2]; if ( v69 <= 1 ) goto LABEL_136; } else { v69 = v5 >> 1; v70 = (__int64)a2 + 1; if ( v69 <= 1 ) { LABEL_136: if ( v6 ) goto LABEL_157; goto LABEL_137; } } v71 = v70 + v69; v72 = std::__search( v70, v71, "::eq); if ( v71 == v72 || (v73 = v72 - v70, v72 - v70 == -1) ) { v5 = *(_BYTE *)a2; if ( (*(_BYTE *)a2 & 1) != 0 ) { LABEL_157: v92 = a2[2]; v93 = a2[1]; goto LABEL_138; } LABEL_137: v92 = (__int64)a2 + 1; v93 = v5 >> 1; LABEL_138: if ( v93 <= 1 ) goto LABEL_53; v94 = v92 + v93; v95 = std::__search( v92, v94, "::eq); if ( v94 == v95 ) goto LABEL_53; v96 = v95 - v92; if ( v95 - v92 == -1 ) goto LABEL_53; std::string::basic_string(v120, (__int64)a2, v96 + 2, 3u); if ( (v120[0] & 1) != 0 ) { v104 = v121; v97 = (float)atoi(v121) / 100.0; operator delete(v104); } else { v97 = (float)atoi((const char *)v120 + 1) / 100.0; } v98 = std::string::replace(a2, v96, 6u, &byte_11B8890, 0); if ( a2 != v98 ) { if ( (*(_BYTE *)v98 & 1) != 0 ) { v99 = (const void *)v98[2]; v100 = v98[1]; } else { v99 = (char *)v98 + 1; v100 = *(_BYTE *)v98 >> 1; } std::string::assign(a2, v99, v100); } MultilineBitmapFont::moveSpecialDescriptors(a1, v96, 6); v101 = a1[79]; *(float *)&v102 = v97; TextStyleSection::createDelaySection((TextStyleSection *)(unsigned int)v96, v102); cocos2d::CCArray::addObject(v101, v103); } else { v74 = *(_BYTE *)a2 >> 1; if ( (*(_BYTE *)a2 & 1) != 0 ) v74 = a2[1]; if ( v73 + 6LL > v74 ) goto LABEL_53; std::string::basic_string(v120, (__int64)a2, v73 + 2, 1u); if ( (v120[0] & 1) != 0 ) { v75 = v121; v76 = atoi(v121); operator delete(v75); } else { v76 = atoi((const char *)v120 + 1); } std::string::basic_string(v120, (__int64)a2, v73 + 3, 2u); if ( (v120[0] & 1) != 0 ) { v77 = v121; v78 = atoi(v121); operator delete(v77); } else { v78 = atoi((const char *)v120 + 1); } v79 = std::string::replace(a2, v73, 6u, &byte_11B8890, 0); if ( a2 != v79 ) { if ( (*(_BYTE *)v79 & 1) != 0 ) { v80 = (const void *)v79[2]; v81 = v79[1]; } else { v80 = (char *)v79 + 1; v81 = *(_BYTE *)v79 >> 1; } std::string::assign(a2, v80, v81); } MultilineBitmapFont::moveSpecialDescriptors(a1, v73, 6); if ( (*(_BYTE *)a2 & 1) != 0 ) { v82 = a2[2]; v83 = a2[1]; } else { v82 = (__int64)a2 + 1; v83 = *(_BYTE *)a2 >> 1; } if ( v83 <= 3 ) goto LABEL_53; v84 = v82 + v83; v85 = std::__search( v82, v82 + v83, "", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v84 == v85 ) goto LABEL_53; v86 = v85 - v82; if ( v86 == -1 ) goto LABEL_53; v87 = std::string::replace(a2, (int)v86, 4u, &byte_11B8890, 0); if ( a2 != v87 ) { if ( (*(_BYTE *)v87 & 1) != 0 ) { v88 = (const void *)v87[2]; v89 = v87[1]; } else { v88 = (char *)v87 + 1; v89 = *(_BYTE *)v87 >> 1; } std::string::assign(a2, v88, v89); } MultilineBitmapFont::moveSpecialDescriptors(a1, v86, 4); v90 = a1[79]; ShakeSection = (cocos2d::CCObject *)TextStyleSection::createShakeSection( (TextStyleSection *)(unsigned int)v73, (int)v86 - 1, v76, v78); cocos2d::CCArray::addObject(v90, ShakeSection); } } else { std::string::basic_string(v120, (__int64)a2, v44 + 2, 3u); if ( (v120[0] & 1) != 0 ) { v45 = v121; v46 = (float)atoi(v121) / 100.0; operator delete(v45); } else { v46 = (float)atoi((const char *)v120 + 1) / 100.0; } v47 = std::string::replace(a2, v44, 6u, &byte_11B8890, 0); if ( a2 != v47 ) { if ( (*(_BYTE *)v47 & 1) != 0 ) { v48 = (const void *)v47[2]; v49 = v47[1]; } else { v48 = (char *)v47 + 1; v49 = *(_BYTE *)v47 >> 1; } std::string::assign(a2, v48, v49); } MultilineBitmapFont::moveSpecialDescriptors(a1, v44, 6); if ( (*(_BYTE *)a2 & 1) != 0 ) { v50 = a2[2]; v51 = a2[1]; } else { v50 = (__int64)a2 + 1; v51 = *(_BYTE *)a2 >> 1; } if ( v51 <= 3 ) goto LABEL_53; v52 = v50 + v51; v53 = std::__search( v50, v50 + v51, (unsigned __int8 *)"", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v52 == v53 ) goto LABEL_53; v54 = v53 - v50; if ( v53 - v50 == -1 ) goto LABEL_53; v55 = std::string::replace(a2, v54, 4u, &byte_11B8890, 0); if ( a2 != v55 ) { if ( (*(_BYTE *)v55 & 1) != 0 ) { v56 = (const void *)v55[2]; v57 = v55[1]; } else { v56 = (char *)v55 + 1; v57 = *(_BYTE *)v55 >> 1; } std::string::assign(a2, v56, v57); } MultilineBitmapFont::moveSpecialDescriptors(a1, v54, 4); v58 = a1[79]; *(float *)&v59 = v46; TextStyleSection::createInstantSection((TextStyleSection *)(unsigned int)v44, v54 - 1, v59); cocos2d::CCArray::addObject(v58, v60); } } v11 = *(_BYTE *)a2; if ( (*(_BYTE *)a2 & 1) != 0 ) { v12 = a2[1]; v13 = v10; if ( v12 < v10 + 4LL ) break; v14 = v10 + 2; if ( v12 <= v14 ) goto LABEL_162; v15 = (char *)a2[2]; } else { v13 = v10; v12 = v11 >> 1; if ( v12 < v10 + 4LL ) break; v14 = v10 + 2; if ( v12 <= v14 ) LABEL_162: sub_6AA520(); v15 = (char *)a2 + 1; } v108 = (unsigned __int8)v15[v14]; if ( v12 < v13 + 12 ) goto LABEL_46; v16 = v10 + 11; if ( v12 <= v16 ) goto LABEL_162; if ( v15[v16] != 62 ) { LABEL_46: v31 = 4; v21 = 0; v30 = 0; v29 = 0; v26 = -1; v32 = 4; goto LABEL_47; } v17 = v11 >> 1; v18 = v13 + 2; v19 = 3; do { if ( (*(_BYTE *)a2 & 1) != 0 ) { if ( v18 >= a2[1] ) goto LABEL_162; v20 = *(unsigned __int8 *)(a2[2] + v18); if ( v20 <= 0x2F ) goto LABEL_46; } else { if ( v18 >= v17 ) goto LABEL_162; v20 = *((unsigned __int8 *)a2 + v18 + 1); if ( v20 <= 0x2F ) goto LABEL_46; } ++v18; v21 = v20 <= 0x39; v22 = v19++ <= 10; v23 = v21 && v22; } while ( v23 ); if ( v20 > 0x39 ) { v31 = 4; v30 = 0; v29 = 0; v26 = -1; v32 = 4; goto LABEL_47; } std::string::basic_string(v110, (__int64)a2, v14, 3u); v24 = (char *)v110 + 1; if ( (v110[0] & 1) != 0 ) v24 = v111; if ( atoi(v24) > 255 ) { v107 = 0; v26 = -1; } else { std::string::basic_string(v112, (__int64)a2, v14, 3u); v25 = (char *)v112 + 1; if ( (v112[0] & 1) != 0 ) v25 = (const char *)v113; v107 = 1; v26 = atoi(v25); } std::string::basic_string(v114, (__int64)a2, v10 + 5, 3u); v27 = (char *)v114 + 1; if ( (v114[0] & 1) != 0 ) v27 = (const char *)v115; if ( atoi(v27) > 255 ) { v29 = -1; } else { std::string::basic_string(v116, (__int64)a2, v10 + 5, 3u); v28 = (char *)v116 + 1; if ( (v116[0] & 1) != 0 ) v28 = (const char *)v117; v23 = 1; v29 = atoi(v28); } std::string::basic_string(v118, (__int64)a2, v10 + 8, 3u); if ( (v118[0] & 1) != 0 ) { v30 = -1; if ( atoi((const char *)v119) <= 255 ) { LABEL_179: std::string::basic_string(v120, (__int64)a2, v10 + 8, 3u); if ( (v120[0] & 1) != 0 ) { v105 = v121; v30 = atoi(v121); operator delete(v105); } else { v30 = atoi((const char *)v120 + 1); } if ( (v118[0] & 1) == 0 ) goto LABEL_33; } operator delete(v119); goto LABEL_33; } if ( atoi((const char *)v118 + 1) <= 255 ) goto LABEL_179; v30 = -1; LABEL_33: if ( v23 && (v116[0] & 1) != 0 ) operator delete(v117); if ( (v114[0] & 1) != 0 ) operator delete(v115); if ( v107 && (v112[0] & 1) != 0 ) operator delete(v113); if ( (v110[0] & 1) != 0 ) operator delete(v111); v31 = 12; v32 = 12; LABEL_47: v33 = std::string::replace(a2, v13, v31, &byte_11B8890, 0); if ( a2 != v33 ) { if ( (*(_BYTE *)v33 & 1) != 0 ) { v34 = (const void *)v33[2]; v35 = v33[1]; } else { v34 = (char *)v33 + 1; v35 = *(_BYTE *)v33 >> 1; } std::string::assign(a2, v34, v35); } MultilineBitmapFont::moveSpecialDescriptors(a1, v10, v32); if ( (*(_BYTE *)a2 & 1) != 0 ) { v36 = a2[1]; v37 = a2[2]; if ( v36 <= 3 ) break; } else { v36 = *(_BYTE *)a2 >> 1; v37 = (__int64)a2 + 1; if ( v36 <= 3 ) break; } v61 = v37 + v36; v62 = std::__search( v37, v37 + v36, (unsigned __int8 *)"", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v61 == v62 ) break; v63 = v62 - v37; if ( v63 == -1 ) break; v64 = std::string::replace(a2, (int)v63, 4u, &byte_11B8890, 0); if ( a2 != v64 ) { if ( (*(_BYTE *)v64 & 1) != 0 ) { v65 = (const void *)v64[2]; v66 = v64[1]; } else { v65 = (char *)v64 + 1; v66 = *(_BYTE *)v64 >> 1; } std::string::assign(a2, v65, v66); } MultilineBitmapFont::moveSpecialDescriptors(a1, v63, 4); if ( v21 ) { LOBYTE(v109) = v26; BYTE1(v109) = v29; BYTE2(v109) = v30; } else { switch ( v108 ) { case 'b': LOWORD(v109) = 21066; BYTE2(v109) = -31; break; case 'g': LOWORD(v109) = -7360; BYTE2(v109) = 72; break; case 'l': LOWORD(v109) = -21664; BYTE2(v109) = -17; break; case 'j': LOWORD(v109) = -14286; BYTE2(v109) = -1; break; case 'y': BYTE2(v109) = 0; LOWORD(v109) = -1; break; case 'o': LOWORD(v109) = -23041; BYTE2(v109) = 75; break; case 'r': LOWORD(v109) = 23295; BYTE2(v109) = 90; break; case 'p': LOWORD(v109) = 255; BYTE2(v109) = -1; break; case 'a': LOWORD(v109) = 12950; BYTE2(v109) = -1; break; case 'd': LOWORD(v109) = -26881; BYTE2(v109) = -1; break; case 'c': LOWORD(v109) = -1; BYTE2(v109) = -106; break; case 'f': LOWORD(v109) = -106; BYTE2(v109) = -1; break; case 's': LOWORD(v109) = -8961; BYTE2(v109) = 65; break; case 't': LOWORD(v109) = -106; BYTE2(v109) = -56; break; default: LOWORD(v109) = 255; BYTE2(v109) = 0; break; } } v67 = a1[79]; ColoredSection = (cocos2d::CCObject *)TextStyleSection::createColoredSection(v109, v10, (int)v63 - 1); cocos2d::CCArray::addObject(v67, ColoredSection); } LABEL_53: v38 = a2[1]; *a3 = *a2; a3[1] = v38; a3[2] = a2[2]; *a2 = 0; a2[1] = 0; a2[2] = 0; return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source