// // MultilineBitmapFont::readColorInfo from 0x100234c18 to 0x100235350 (1848 bytes) // // 1 xrefs: // > MultilineBitmapFont::initWithFont @ 0x10023457c // // 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 // __n128 __usercall MultilineBitmapFont::readColorInfo@( __int64 *__return_ptr a1@, std::string *__s@, MultilineBitmapFont *a3@) { __int64 v5; // x24 std::string *v6; // x23 __int64 size; // x8 char *v8; // x25 std::string *v9; // x0 char *v10; // x0 signed __int64 v11; // x23 int v12; // w25 std::string *v13; // x0 __int64 v14; // x8 std::string *v15; // x24 std::string *v16; // x23 __int64 v17; // x8 char *v18; // x25 std::string *v19; // x0 char *v20; // x0 signed __int64 v21; // x23 int v22; // w24 std::string *v23; // x23 __int64 v24; // x8 char *v25; // x25 std::string *v26; // x0 char *v27; // x0 signed __int64 v28; // x23 std::string *v29; // x23 char *v30; // x25 std::string *v31; // x0 char *v32; // x0 signed __int64 v33; // x23 int v34; // w24 void *v35; // x25 float v36; // s8 std::string *v37; // x0 cocos2d::CCArray *m_specialDescriptors; // x24 TextStyleSection *v39; // x1 char *v40; // x26 std::string *v41; // x0 char *v42; // x0 void *v43; // x25 std::string *v44; // x0 __int64 v45; // x8 std::string *v46; // x25 char *v47; // x26 std::string *v48; // x0 char *v49; // x0 signed __int64 v50; // x24 std::string *v51; // x0 __int64 v52; // x25 void *v53; // x25 int v54; // w25 void *v55; // x26 std::string *v56; // x0 __int64 v57; // x8 std::string *v58; // x26 char *v59; // x24 std::string *v60; // x0 char *v61; // x0 signed __int64 v62; // x25 float v63; // s8 std::string *v64; // x0 signed __int64 v65; // x26 std::string *v66; // x0 int v67; // w1 cocos2d::CCArray *v68; // x26 TextStyleSection *v69; // x0 int v70; // w1 __n128 result; // q0 int v72; // [xsp+Ch] [xbp-94h] std::string v74; // [xsp+20h] [xbp-80h] BYREF std::allocator __a; // [xsp+3Fh] [xbp-61h] BYREF LABEL_1: v5 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v5 < 0 ) { v6 = (std::string *)__s->__r_.__value_.__r.__words[0]; size = __s->__r_.__value_.__l.__size_; } else { v6 = __s; size = SHIBYTE(__s->__r_.__value_.__r.__words[2]); } if ( size >= 2 ) { v8 = (char *)v6 + size; v9 = v6; do { v10 = (char *)memchr(v9, 60, size - 1); if ( !v10 ) break; if ( *(_WORD *)v10 == 25404 ) { if ( v10 == v8 ) break; v11 = v10 - (char *)v6; if ( v11 == -1 ) break; v12 = (unsigned __int8)*std::string::at(__s, (int)v11 + 2); v13 = std::string::replace(__s, (int)v11, 4u, ""); std::string::operator=(__s, v13); MultilineBitmapFont::moveSpecialDescriptors(a3, v11, 4); v14 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v14 < 0 ) { v15 = (std::string *)__s->__r_.__value_.__r.__words[0]; v14 = __s->__r_.__value_.__l.__size_; } else { v15 = __s; } if ( v14 >= 4 ) { v40 = (char *)v15 + v14; v41 = v15; while ( 1 ) { v42 = (char *)memchr(v41, 60, v14 - 3); if ( !v42 ) break; if ( *(_DWORD *)v42 == 1046687548 ) { if ( v42 == v40 ) goto LABEL_98; v50 = v42 - (char *)v15; if ( v50 == -1 ) goto LABEL_98; v51 = std::string::replace(__s, (int)v50, 4u, ""); std::string::operator=(__s, v51); MultilineBitmapFont::moveSpecialDescriptors(a3, v50, 4); if ( (unsigned int)(v12 - 97) > 0x18 ) LODWORD(v52) = 255; else v52 = qword_10063AC20[(unsigned __int8)(v12 - 97)]; v70 = v50 - 1; m_specialDescriptors = a3->m_specialDescriptors; v39 = TextStyleSection::create(v11, v70, Colored); v39->m_color = (cocos2d::ccColor3B)v52; LABEL_55: sub_10024A2D0(m_specialDescriptors, v39); goto LABEL_1; } v41 = (std::string *)(v42 + 1); v14 = v40 - (char *)v41; if ( v40 - (char *)v41 < 4 ) goto LABEL_98; } } goto LABEL_98; } v9 = (std::string *)(v10 + 1); size = v8 - (char *)v9; } while ( v8 - (char *)v9 >= 2 ); } if ( (v5 & 0x80000000) != 0 ) { v16 = (std::string *)__s->__r_.__value_.__r.__words[0]; v17 = __s->__r_.__value_.__l.__size_; } else { v16 = __s; v17 = v5; } if ( v17 >= 2 ) { v18 = (char *)v16 + v17; v19 = v16; do { v20 = (char *)memchr(v19, 60, v17 - 1); if ( !v20 ) break; if ( *(_WORD *)v20 == 26940 ) { if ( v20 == v18 ) break; v21 = v20 - (char *)v16; if ( v21 == -1 ) break; std::string::basic_string(&v74, __s, ((v21 << 32) + 0x200000000LL) >> 32, 3u, &__a); if ( SHIBYTE(v74.__r_.__value_.__r.__words[2]) < 0 ) { v43 = (void *)v74.__r_.__value_.__r.__words[0]; v22 = atoi(v74.__r_.__value_.__l.__data_); operator delete(v43); } else { v22 = atoi((const char *)&v74); } v44 = std::string::replace(__s, (int)v21, 6u, ""); std::string::operator=(__s, v44); MultilineBitmapFont::moveSpecialDescriptors(a3, v21, 6); v45 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v45 < 0 ) { v46 = (std::string *)__s->__r_.__value_.__r.__words[0]; v45 = __s->__r_.__value_.__l.__size_; } else { v46 = __s; } if ( v45 >= 4 ) { v47 = (char *)v46 + v45; v48 = v46; while ( 1 ) { v49 = (char *)memchr(v48, 60, v45 - 3); if ( !v49 ) break; if ( *(_DWORD *)v49 == 1047080764 ) { if ( v49 != v47 ) { v62 = v49 - (char *)v46; if ( v62 != -1 ) { v63 = (float)v22 / 100.0; v64 = std::string::replace(__s, (int)v62, 4u, ""); std::string::operator=(__s, v64); MultilineBitmapFont::moveSpecialDescriptors(a3, v62, 4); m_specialDescriptors = a3->m_specialDescriptors; v39 = TextStyleSection::create(v21, (int)v62 - 1, (TextStyleType)2); v39->m_instantTime = v63; goto LABEL_55; } } goto LABEL_98; } v48 = (std::string *)(v49 + 1); v45 = v47 - (char *)v48; if ( v47 - (char *)v48 < 4 ) goto LABEL_98; } } goto LABEL_98; } v19 = (std::string *)(v20 + 1); v17 = v18 - (char *)v19; } while ( v18 - (char *)v19 >= 2 ); } if ( (v5 & 0x80000000) != 0 ) { v23 = (std::string *)__s->__r_.__value_.__r.__words[0]; v24 = __s->__r_.__value_.__l.__size_; } else { v23 = __s; v24 = v5; } if ( v24 >= 2 ) { v25 = (char *)v23 + v24; v26 = v23; do { v27 = (char *)memchr(v26, 60, v24 - 1); if ( !v27 ) break; if ( *(_WORD *)v27 == 29500 ) { if ( v27 == v25 ) break; v28 = v27 - (char *)v23; if ( v28 == -1 ) break; std::string::basic_string(&v74, __s, ((v28 << 32) + 0x200000000LL) >> 32, 1u, &__a); if ( SHIBYTE(v74.__r_.__value_.__r.__words[2]) < 0 ) { v53 = (void *)v74.__r_.__value_.__r.__words[0]; v72 = atoi(v74.__r_.__value_.__l.__data_); operator delete(v53); } else { v72 = atoi((const char *)&v74); } std::string::basic_string(&v74, __s, ((v28 << 32) + 0x300000000LL) >> 32, 2u, &__a); if ( SHIBYTE(v74.__r_.__value_.__r.__words[2]) < 0 ) { v55 = (void *)v74.__r_.__value_.__r.__words[0]; v54 = atoi(v74.__r_.__value_.__l.__data_); operator delete(v55); } else { v54 = atoi((const char *)&v74); } v56 = std::string::replace(__s, (int)v28, 6u, ""); std::string::operator=(__s, v56); MultilineBitmapFont::moveSpecialDescriptors(a3, v28, 6); v57 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v57 < 0 ) { v58 = (std::string *)__s->__r_.__value_.__r.__words[0]; v57 = __s->__r_.__value_.__l.__size_; } else { v58 = __s; } if ( v57 >= 4 ) { v59 = (char *)v58 + v57; v60 = v58; while ( 1 ) { v61 = (char *)memchr(v60, 60, v57 - 3); if ( !v61 ) break; if ( *(_DWORD *)v61 == 1047736124 ) { if ( v61 != v59 ) { v65 = v61 - (char *)v58; if ( v65 != -1 ) { v66 = std::string::replace(__s, (int)v65, 4u, ""); std::string::operator=(__s, v66); MultilineBitmapFont::moveSpecialDescriptors(a3, v65, 4); v67 = v65 - 1; v68 = a3->m_specialDescriptors; v69 = TextStyleSection::create(v28, v67, Shake); v69->m_shakeIntensity = v72; v69->m_shakesPerSecond = v54; sub_10024A2D0(v68, v69); goto LABEL_1; } } goto LABEL_98; } v60 = (std::string *)(v61 + 1); v57 = v59 - (char *)v60; if ( v59 - (char *)v60 < 4 ) goto LABEL_98; } } goto LABEL_98; } v26 = (std::string *)(v27 + 1); v24 = v25 - (char *)v26; } while ( v25 - (char *)v26 >= 2 ); } if ( (v5 & 0x80000000) != 0 ) { v29 = (std::string *)__s->__r_.__value_.__r.__words[0]; v5 = __s->__r_.__value_.__l.__size_; } else { v29 = __s; } if ( v5 >= 2 ) { v30 = (char *)v29 + v5; v31 = v29; do { v32 = (char *)memchr(v31, 60, v5 - 1); if ( !v32 ) break; if ( *(_WORD *)v32 == 25660 ) { if ( v32 == v30 ) break; v33 = v32 - (char *)v29; if ( v33 == -1 ) break; std::string::basic_string(&v74, __s, ((v33 << 32) + 0x200000000LL) >> 32, 3u, &__a); if ( SHIBYTE(v74.__r_.__value_.__r.__words[2]) < 0 ) { v35 = (void *)v74.__r_.__value_.__r.__words[0]; v34 = atoi(v74.__r_.__value_.__l.__data_); operator delete(v35); } else { v34 = atoi((const char *)&v74); } v36 = (float)v34 / 100.0; v37 = std::string::replace(__s, (int)v33, 6u, ""); std::string::operator=(__s, v37); MultilineBitmapFont::moveSpecialDescriptors(a3, v33, 6); m_specialDescriptors = a3->m_specialDescriptors; v39 = TextStyleSection::create(v33, -1, Delayed); v39->m_delay = v36; goto LABEL_55; } v31 = (std::string *)(v32 + 1); v5 = v30 - (char *)v31; } while ( v30 - (char *)v31 >= 2 ); } LABEL_98: result = *(__n128 *)&__s->__r_.__value_.__l.__data_; *(_OWORD *)a1 = *(_OWORD *)&__s->__r_.__value_.__l.__data_; a1[2] = __s->__r_.__value_.__r.__words[2]; __s->__r_.__value_.__l.__size_ = 0; __s->__r_.__value_.__r.__words[2] = 0; __s->__r_.__value_.__r.__words[0] = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source