// // cocos2d::CCBMFontConfiguration::parseCharacterDefinition from 0x1006a8520 to 0x1006a93e3 (3779 bytes) // // 1 xrefs: // > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x1006a7054 // // This function is hookable on this platform (idp: pc, 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:35:21 +0000 // void __fastcall cocos2d::CCBMFontConfiguration::parseCharacterDefinition(__int64 a1, std::string *a2, __int64 a3) { unsigned int v3; // edx unsigned __int8 *data; // rbx __int64 size; // rdx unsigned __int8 *v6; // r14 unsigned __int8 *v7; // rax _WORD *v8; // rax int v9; // ecx int v10; // ecx bool v11; // zf int v12; // eax std::string::size_type v13; // r12 int v14; // eax unsigned int v15; // r15d std::string::size_type v16; // r15 std::string::pointer v17; // rbx size_t v18; // rax size_t v19; // r15 char *v20; // r13 size_t v21; // r14 const char *v22; // rdi unsigned int v23; // edx std::string::pointer v24; // rbx __int64 v25; // rdx char *v26; // r14 std::string::pointer v27; // rax char *v28; // rax int v29; // ecx int v30; // ecx int v31; // eax std::string::size_type v32; // r13 int v33; // eax unsigned int v34; // r15d std::string::size_type v35; // r15 std::string::pointer v36; // rbx size_t v37; // rax size_t v38; // r15 char *v39; // r12 const char *v40; // rdi unsigned int v41; // edx std::string::pointer v42; // rbx __int64 v43; // rdx char *v44; // r14 size_t v45; // r14 std::string::pointer v46; // rax char *v47; // rax int v48; // ecx int v49; // ecx int v50; // eax std::string::size_type v51; // r13 int v52; // eax unsigned int v53; // r15d std::string::size_type v54; // r15 std::string::pointer v55; // rbx size_t v56; // rax size_t v57; // r15 char *v58; // r12 const char *v59; // rdi unsigned int v60; // edx std::string::pointer v61; // rbx __int64 v62; // rdx char *v63; // r14 size_t v64; // r14 std::string::pointer v65; // rax char *v66; // rax int v67; // ecx int v68; // ecx int v69; // eax std::string::size_type v70; // r13 int v71; // eax unsigned int v72; // r15d std::string::size_type v73; // r15 std::string::pointer v74; // rbx size_t v75; // rax size_t v76; // r15 char *v77; // r12 const char *v78; // rdi const std::string *v79; // r12 unsigned int v80; // edx std::string::pointer v81; // rbx __int64 v82; // rdx char *v83; // r14 std::string::pointer v84; // rax _DWORD *v85; // rax int v86; // ecx size_t v87; // r14 int v88; // ecx int v89; // eax std::string::size_type v90; // r13 int v91; // eax unsigned int v92; // r15d std::string::size_type v93; // r15 std::string::pointer v94; // rbx size_t v95; // rax size_t v96; // r15 char *v97; // r12 const char *v98; // rdi unsigned int v99; // edx std::string::pointer v100; // rbx __int64 v101; // rdx char *v102; // r14 size_t v103; // r14 std::string::pointer v104; // rax char *v105; // rax int v106; // ecx int v107; // ecx int v108; // eax std::string::size_type v109; // r13 int v110; // eax unsigned int v111; // r15d std::string::size_type v112; // r15 std::string::pointer v113; // rbx size_t v114; // rax size_t v115; // r15 char *v116; // r12 const char *v117; // rdi unsigned int v118; // edx std::string::pointer v119; // rbx __int64 v120; // rdx char *v121; // r14 size_t v122; // r14 std::string::pointer v123; // rax char *v124; // rax int v125; // ecx int v126; // ecx int v127; // eax std::string::size_type v128; // r13 int v129; // eax unsigned int v130; // r15d std::string::size_type v131; // r15 std::string::pointer v132; // rbx size_t v133; // rax size_t v134; // r15 char *v135; // r12 const char *v136; // rdi unsigned int v137; // edx std::string::pointer v138; // rbx __int64 v139; // rdx char *v140; // r14 size_t v141; // r14 std::string::pointer v142; // rax char *v143; // rax int v144; // ecx int v145; // ecx int v146; // eax std::string::size_type v147; // r15 int v148; // eax unsigned int v149; // r13d std::string::size_type v150; // r13 std::string::pointer v151; // r12 size_t v152; // rax size_t v153; // r13 char *v154; // rbx size_t v155; // r14 void *v156; // rbx std::string *v158; // [rsp+10h] [rbp-70h] __int128 v159; // [rsp+18h] [rbp-68h] BYREF void *v160; // [rsp+28h] [rbp-58h] __int128 __dst; // [rsp+30h] [rbp-50h] BYREF void *__p; // [rsp+40h] [rbp-40h] char v163; // [rsp+57h] [rbp-29h] v3 = (unsigned int)a2->__r_.__value_.__l.0; if ( (v3 & 1) != 0 ) { size = a2->__r_.__value_.__l.__size_; data = (unsigned __int8 *)a2->__r_.__value_.__l.__data_; v6 = &data[size]; v158 = a2; if ( size < 3 ) goto LABEL_9; } else { data = (unsigned __int8 *)a2->__r_.__value_.__s.__data_; size = v3 >> 1; v6 = (unsigned __int8 *)&a2->__r_.__value_.__l.0 + size + 1; v158 = a2; if ( size < 3 ) goto LABEL_9; } v7 = data; do { v8 = memchr(v7, 105, size - 2); if ( !v8 ) break; if ( !(*v8 ^ 0x6469 | *((unsigned __int8 *)v8 + 2) ^ 0x3D) ) { v9 = (int)v8; goto LABEL_10; } v7 = (unsigned __int8 *)v8 + 1; size = v6 - v7; } while ( v6 - v7 > 2 ); LABEL_9: v9 = (int)v6; v8 = v6; LABEL_10: v10 = v9 - (_DWORD)data; v11 = v8 == (_WORD *)v6; v12 = -1; if ( !v11 ) v12 = v10; v13 = v12; v14 = std::string::find(v158, 32, v12); v15 = (unsigned int)v158->__r_.__value_.__l.0; if ( (v15 & 1) == 0 ) { v16 = v15 >> 1; if ( v13 <= v16 ) { v17 = v158->__r_.__value_.__s.__data_; goto LABEL_17; } LABEL_249: sub_100056810(); } v16 = v158->__r_.__value_.__l.__size_; if ( v16 < v13 ) goto LABEL_249; v17 = v158->__r_.__value_.__l.__data_; LABEL_17: v18 = v14 - (int)v13; v19 = v16 - v13; if ( v19 >= v18 ) v19 = v18; if ( v19 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v20 = (char *)&__dst + 1; if ( v19 >= 0x17 ) { v21 = 26; if ( (v19 | 7) != 0x17 ) v21 = (v19 | 7) + 1; v20 = (char *)operator new(v21); __p = v20; *(_QWORD *)&__dst = v21 + 1; *((_QWORD *)&__dst + 1) = v19; goto LABEL_26; } LOBYTE(__dst) = 2 * v19; if ( v19 ) LABEL_26: memmove(v20, &v17[v13], v19); v20[v19] = 0; v22 = (const char *)__p; if ( (__dst & 1) == 0 ) v22 = (char *)&__dst + 1; sscanf(v22, "id=%u", a3); v23 = (unsigned int)v158->__r_.__value_.__l.0; v163 = __dst & 1; if ( (v23 & 1) != 0 ) { v25 = v158->__r_.__value_.__l.__size_; v24 = v158->__r_.__value_.__l.__data_; v26 = &v24[v25]; if ( v25 < 2 ) goto LABEL_37; } else { v24 = v158->__r_.__value_.__s.__data_; v25 = v23 >> 1; v26 = (char *)&v158->__r_.__value_.__l.0 + v25 + 1; if ( v25 < 2 ) goto LABEL_37; } v27 = v24; do { v28 = (char *)memchr(v27, 120, v25 - 1); if ( !v28 ) break; if ( *(_WORD *)v28 == 15736 ) { v29 = (int)v28; goto LABEL_38; } v27 = v28 + 1; v25 = v26 - v27; } while ( v26 - v27 > 1 ); LABEL_37: v29 = (int)v26; v28 = v26; LABEL_38: v30 = v29 - (_DWORD)v24; v11 = v28 == v26; v31 = -1; if ( !v11 ) v31 = v30; v32 = v31; v33 = std::string::find(v158, 32, v31); v34 = (unsigned int)v158->__r_.__value_.__l.0; if ( (v34 & 1) == 0 ) { v35 = v34 >> 1; if ( v32 <= v35 ) { v36 = v158->__r_.__value_.__s.__data_; goto LABEL_45; } LABEL_251: sub_100056810(); } v35 = v158->__r_.__value_.__l.__size_; if ( v35 < v32 ) goto LABEL_251; v36 = v158->__r_.__value_.__l.__data_; LABEL_45: v37 = v33 - (int)v32; v38 = v35 - v32; if ( v38 >= v37 ) v38 = v37; if ( v38 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v38 >= 0x17 ) { v45 = 26; if ( (v38 | 7) != 0x17 ) v45 = (v38 | 7) + 1; v39 = (char *)operator new(v45); v160 = v39; *(_QWORD *)&v159 = v45 | 1; *((_QWORD *)&v159 + 1) = v38; } else { LOBYTE(v159) = 2 * v38; v39 = (char *)&v159 + 1; if ( !v38 ) { BYTE1(v159) = 0; if ( (__dst & 1) == 0 ) goto LABEL_52; goto LABEL_51; } } memmove(v39, &v36[v32], v38); v39[v38] = 0; if ( (__dst & 1) != 0 ) LABEL_51: operator delete(__p); LABEL_52: __p = v160; __dst = v159; v40 = (const char *)v160; if ( (v159 & 1) == 0 ) v40 = (char *)&__dst + 1; sscanf(v40, "x=%f", a3 + 4); v41 = (unsigned int)v158->__r_.__value_.__l.0; v163 = v159 & 1; if ( (v41 & 1) != 0 ) { v43 = v158->__r_.__value_.__l.__size_; v42 = v158->__r_.__value_.__l.__data_; v44 = &v42[v43]; if ( v43 < 2 ) goto LABEL_67; } else { v42 = v158->__r_.__value_.__s.__data_; v43 = v41 >> 1; v44 = (char *)&v158->__r_.__value_.__l.0 + v43 + 1; if ( v43 < 2 ) goto LABEL_67; } v46 = v42; do { v47 = (char *)memchr(v46, 121, v43 - 1); if ( !v47 ) break; if ( *(_WORD *)v47 == 15737 ) { v48 = (int)v47; goto LABEL_68; } v46 = v47 + 1; v43 = v44 - v46; } while ( v44 - v46 > 1 ); LABEL_67: v48 = (int)v44; v47 = v44; LABEL_68: v49 = v48 - (_DWORD)v42; v11 = v47 == v44; v50 = -1; if ( !v11 ) v50 = v49; v51 = v50; v52 = std::string::find(v158, 32, v50); v53 = (unsigned int)v158->__r_.__value_.__l.0; if ( (v53 & 1) == 0 ) { v54 = v53 >> 1; if ( v51 <= v54 ) { v55 = v158->__r_.__value_.__s.__data_; goto LABEL_75; } LABEL_253: sub_100056810(); } v54 = v158->__r_.__value_.__l.__size_; if ( v54 < v51 ) goto LABEL_253; v55 = v158->__r_.__value_.__l.__data_; LABEL_75: v56 = v52 - (int)v51; v57 = v54 - v51; if ( v57 >= v56 ) v57 = v56; if ( v57 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v57 >= 0x17 ) { v64 = 26; if ( (v57 | 7) != 0x17 ) v64 = (v57 | 7) + 1; v58 = (char *)operator new(v64); v160 = v58; *(_QWORD *)&v159 = v64 | 1; *((_QWORD *)&v159 + 1) = v57; } else { LOBYTE(v159) = 2 * v57; v58 = (char *)&v159 + 1; if ( !v57 ) { BYTE1(v159) = 0; if ( (__dst & 1) == 0 ) goto LABEL_82; goto LABEL_81; } } memmove(v58, &v55[v51], v57); v58[v57] = 0; if ( (__dst & 1) != 0 ) LABEL_81: operator delete(__p); LABEL_82: __p = v160; __dst = v159; v59 = (const char *)v160; if ( (v159 & 1) == 0 ) v59 = (char *)&__dst + 1; sscanf(v59, "y=%f", a3 + 8); v60 = (unsigned int)v158->__r_.__value_.__l.0; v163 = v159 & 1; if ( (v60 & 1) != 0 ) { v62 = v158->__r_.__value_.__l.__size_; v61 = v158->__r_.__value_.__l.__data_; v63 = &v61[v62]; if ( v62 < 6 ) goto LABEL_97; } else { v61 = v158->__r_.__value_.__s.__data_; v62 = v60 >> 1; v63 = (char *)&v158->__r_.__value_.__l.0 + v62 + 1; if ( v62 < 6 ) goto LABEL_97; } v65 = v61; do { v66 = (char *)memchr(v65, 119, v62 - 5); if ( !v66 ) break; if ( !(*(_DWORD *)v66 ^ 0x74646977 | *((unsigned __int16 *)v66 + 2) ^ 0x3D68) ) { v67 = (int)v66; goto LABEL_98; } v65 = v66 + 1; v62 = v63 - v65; } while ( v63 - v65 > 5 ); LABEL_97: v67 = (int)v63; v66 = v63; LABEL_98: v68 = v67 - (_DWORD)v61; v11 = v66 == v63; v69 = -1; if ( !v11 ) v69 = v68; v70 = v69; v71 = std::string::find(v158, 32, v69); v72 = (unsigned int)v158->__r_.__value_.__l.0; if ( (v72 & 1) == 0 ) { v73 = v72 >> 1; if ( v70 <= v73 ) { v74 = v158->__r_.__value_.__s.__data_; goto LABEL_105; } LABEL_255: sub_100056810(); } v73 = v158->__r_.__value_.__l.__size_; if ( v73 < v70 ) goto LABEL_255; v74 = v158->__r_.__value_.__l.__data_; LABEL_105: v75 = v71 - (int)v70; v76 = v73 - v70; if ( v76 >= v75 ) v76 = v75; if ( v76 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v76 >= 0x17 ) { v87 = 26; if ( (v76 | 7) != 0x17 ) v87 = (v76 | 7) + 1; v77 = (char *)operator new(v87); v160 = v77; *(_QWORD *)&v159 = v87 | 1; *((_QWORD *)&v159 + 1) = v76; } else { LOBYTE(v159) = 2 * v76; v77 = (char *)&v159 + 1; if ( !v76 ) { BYTE1(v159) = 0; if ( (__dst & 1) == 0 ) goto LABEL_112; goto LABEL_111; } } memmove(v77, &v74[v70], v76); v77[v76] = 0; if ( (__dst & 1) != 0 ) LABEL_111: operator delete(__p); LABEL_112: __p = v160; __dst = v159; v78 = (const char *)v160; if ( (v159 & 1) == 0 ) v78 = (char *)&__dst + 1; sscanf(v78, "width=%f", a3 + 12); v79 = v158; v80 = (unsigned int)v158->__r_.__value_.__l.0; v163 = v159 & 1; if ( (v80 & 1) == 0 ) { v81 = v158->__r_.__value_.__s.__data_; v82 = v80 >> 1; v83 = (char *)&v158->__r_.__value_.__l.0 + v82 + 1; if ( v82 >= 7 ) goto LABEL_116; LABEL_127: v86 = (int)v83; v85 = v83; goto LABEL_134; } v82 = v158->__r_.__value_.__l.__size_; v81 = v158->__r_.__value_.__l.__data_; v83 = &v81[v82]; if ( v82 < 7 ) goto LABEL_127; LABEL_116: v84 = v81; while ( 1 ) { v85 = memchr(v84, 104, v82 - 6); if ( !v85 ) { LABEL_120: v86 = (int)v83; v85 = v83; goto LABEL_133; } if ( !(*v85 ^ 0x67696568 | *(_DWORD *)((char *)v85 + 3) ^ 0x3D746867) ) break; v84 = (char *)v85 + 1; v82 = v83 - v84; if ( v83 - v84 <= 6 ) goto LABEL_120; } v86 = (int)v85; LABEL_133: v79 = v158; LABEL_134: v88 = v86 - (_DWORD)v81; v11 = v85 == (_DWORD *)v83; v89 = -1; if ( !v11 ) v89 = v88; v90 = v89; v91 = std::string::find(v79, 32, v89); v92 = (unsigned int)v79->__r_.__value_.__l.0; if ( (v92 & 1) == 0 ) { v93 = v92 >> 1; if ( v90 <= v93 ) { v94 = v79->__r_.__value_.__s.__data_; goto LABEL_141; } LABEL_257: sub_100056810(); } v93 = v79->__r_.__value_.__l.__size_; if ( v93 < v90 ) goto LABEL_257; v94 = v79->__r_.__value_.__l.__data_; LABEL_141: v95 = v91 - (int)v90; v96 = v93 - v90; if ( v96 >= v95 ) v96 = v95; if ( v96 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v96 >= 0x17 ) { v103 = 26; if ( (v96 | 7) != 0x17 ) v103 = (v96 | 7) + 1; v97 = (char *)operator new(v103); v160 = v97; *(_QWORD *)&v159 = v103 | 1; *((_QWORD *)&v159 + 1) = v96; } else { LOBYTE(v159) = 2 * v96; v97 = (char *)&v159 + 1; if ( !v96 ) { BYTE1(v159) = 0; if ( (__dst & 1) == 0 ) goto LABEL_148; goto LABEL_147; } } memmove(v97, &v94[v90], v96); v97[v96] = 0; if ( (__dst & 1) != 0 ) LABEL_147: operator delete(__p); LABEL_148: __p = v160; __dst = v159; v98 = (const char *)v160; if ( (v159 & 1) == 0 ) v98 = (char *)&__dst + 1; sscanf(v98, "height=%f", a3 + 16); v99 = (unsigned int)v158->__r_.__value_.__l.0; v163 = v159 & 1; if ( (v99 & 1) != 0 ) { v101 = v158->__r_.__value_.__l.__size_; v100 = v158->__r_.__value_.__l.__data_; v102 = &v100[v101]; if ( v101 < 8 ) goto LABEL_163; } else { v100 = v158->__r_.__value_.__s.__data_; v101 = v99 >> 1; v102 = (char *)&v158->__r_.__value_.__l.0 + v101 + 1; if ( v101 < 8 ) goto LABEL_163; } v104 = v100; do { v105 = (char *)memchr(v104, 120, v101 - 7); if ( !v105 ) break; if ( *(_QWORD *)v105 == 0x3D74657366666F78LL ) { v106 = (int)v105; goto LABEL_164; } v104 = v105 + 1; v101 = v102 - v104; } while ( v102 - v104 > 7 ); LABEL_163: v106 = (int)v102; v105 = v102; LABEL_164: v107 = v106 - (_DWORD)v100; v11 = v105 == v102; v108 = -1; if ( !v11 ) v108 = v107; v109 = v108; v110 = std::string::find(v158, 32, v108); v111 = (unsigned int)v158->__r_.__value_.__l.0; if ( (v111 & 1) == 0 ) { v112 = v111 >> 1; if ( v109 <= v112 ) { v113 = v158->__r_.__value_.__s.__data_; goto LABEL_171; } LABEL_259: sub_100056810(); } v112 = v158->__r_.__value_.__l.__size_; if ( v112 < v109 ) goto LABEL_259; v113 = v158->__r_.__value_.__l.__data_; LABEL_171: v114 = v110 - (int)v109; v115 = v112 - v109; if ( v115 >= v114 ) v115 = v114; if ( v115 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v115 >= 0x17 ) { v122 = 26; if ( (v115 | 7) != 0x17 ) v122 = (v115 | 7) + 1; v116 = (char *)operator new(v122); v160 = v116; *(_QWORD *)&v159 = v122 | 1; *((_QWORD *)&v159 + 1) = v115; } else { LOBYTE(v159) = 2 * v115; v116 = (char *)&v159 + 1; if ( !v115 ) { BYTE1(v159) = 0; if ( (__dst & 1) == 0 ) goto LABEL_178; goto LABEL_177; } } memmove(v116, &v113[v109], v115); v116[v115] = 0; if ( (__dst & 1) != 0 ) LABEL_177: operator delete(__p); LABEL_178: __p = v160; __dst = v159; v117 = (const char *)v160; if ( (v159 & 1) == 0 ) v117 = (char *)&__dst + 1; sscanf(v117, "xoffset=%hd", a3 + 20); v118 = (unsigned int)v158->__r_.__value_.__l.0; v163 = v159 & 1; if ( (v118 & 1) != 0 ) { v120 = v158->__r_.__value_.__l.__size_; v119 = v158->__r_.__value_.__l.__data_; v121 = &v119[v120]; if ( v120 < 8 ) goto LABEL_193; } else { v119 = v158->__r_.__value_.__s.__data_; v120 = v118 >> 1; v121 = (char *)&v158->__r_.__value_.__l.0 + v120 + 1; if ( v120 < 8 ) goto LABEL_193; } v123 = v119; do { v124 = (char *)memchr(v123, 121, v120 - 7); if ( !v124 ) break; if ( *(_QWORD *)v124 == 0x3D74657366666F79LL ) { v125 = (int)v124; goto LABEL_194; } v123 = v124 + 1; v120 = v121 - v123; } while ( v121 - v123 > 7 ); LABEL_193: v125 = (int)v121; v124 = v121; LABEL_194: v126 = v125 - (_DWORD)v119; v11 = v124 == v121; v127 = -1; if ( !v11 ) v127 = v126; v128 = v127; v129 = std::string::find(v158, 32, v127); v130 = (unsigned int)v158->__r_.__value_.__l.0; if ( (v130 & 1) == 0 ) { v131 = v130 >> 1; if ( v128 <= v131 ) { v132 = v158->__r_.__value_.__s.__data_; goto LABEL_201; } LABEL_261: sub_100056810(); } v131 = v158->__r_.__value_.__l.__size_; if ( v131 < v128 ) goto LABEL_261; v132 = v158->__r_.__value_.__l.__data_; LABEL_201: v133 = v129 - (int)v128; v134 = v131 - v128; if ( v134 >= v133 ) v134 = v133; if ( v134 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v134 >= 0x17 ) { v141 = 26; if ( (v134 | 7) != 0x17 ) v141 = (v134 | 7) + 1; v135 = (char *)operator new(v141); v160 = v135; *(_QWORD *)&v159 = v141 | 1; *((_QWORD *)&v159 + 1) = v134; } else { LOBYTE(v159) = 2 * v134; v135 = (char *)&v159 + 1; if ( !v134 ) { BYTE1(v159) = 0; if ( (__dst & 1) == 0 ) goto LABEL_208; goto LABEL_207; } } memmove(v135, &v132[v128], v134); v135[v134] = 0; if ( (__dst & 1) != 0 ) LABEL_207: operator delete(__p); LABEL_208: __p = v160; __dst = v159; v136 = (const char *)v160; if ( (v159 & 1) == 0 ) v136 = (char *)&__dst + 1; sscanf(v136, "yoffset=%hd", a3 + 22); v137 = (unsigned int)v158->__r_.__value_.__l.0; v163 = v159 & 1; if ( (v137 & 1) != 0 ) { v139 = v158->__r_.__value_.__l.__size_; v138 = v158->__r_.__value_.__l.__data_; v140 = &v138[v139]; if ( v139 < 9 ) goto LABEL_223; } else { v138 = v158->__r_.__value_.__s.__data_; v139 = v137 >> 1; v140 = (char *)&v158->__r_.__value_.__l.0 + v139 + 1; if ( v139 < 9 ) goto LABEL_223; } v142 = v138; do { v143 = (char *)memchr(v142, 120, v139 - 8); if ( !v143 ) break; if ( !(*(_QWORD *)v143 ^ 0x65636E6176646178LL | (unsigned __int8)v143[8] ^ 0x3DLL) ) { v144 = (int)v143; goto LABEL_224; } v142 = v143 + 1; v139 = v140 - v142; } while ( v140 - v142 > 8 ); LABEL_223: v144 = (int)v140; v143 = v140; LABEL_224: v145 = v144 - (_DWORD)v138; v11 = v143 == v140; v146 = -1; if ( !v11 ) v146 = v145; v147 = v146; v148 = std::string::find(v158, 32, v146); v149 = (unsigned int)v158->__r_.__value_.__l.0; if ( (v149 & 1) == 0 ) { v150 = v149 >> 1; if ( v147 <= v150 ) { v151 = v158->__r_.__value_.__s.__data_; goto LABEL_231; } LABEL_263: sub_100056810(); } v150 = v158->__r_.__value_.__l.__size_; if ( v150 < v147 ) goto LABEL_263; v151 = v158->__r_.__value_.__l.__data_; LABEL_231: v152 = v148 - (int)v147; v153 = v150 - v147; if ( v153 >= v152 ) v153 = v152; if ( v153 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v153 >= 0x17 ) { v155 = 26; if ( (v153 | 7) != 0x17 ) v155 = (v153 | 7) + 1; v154 = (char *)operator new(v155); v160 = v154; *(_QWORD *)&v159 = v155 | 1; *((_QWORD *)&v159 + 1) = v153; } else { LOBYTE(v159) = 2 * v153; v154 = (char *)&v159 + 1; if ( !v153 ) { BYTE1(v159) = 0; if ( (__dst & 1) == 0 ) goto LABEL_238; goto LABEL_237; } } memmove(v154, &v151[v147], v153); v154[v153] = 0; if ( (__dst & 1) != 0 ) LABEL_237: operator delete(__p); LABEL_238: __p = v160; __dst = v159; if ( (v159 & 1) != 0 ) { v156 = __p; sscanf((const char *)__p, "xadvance=%hd", a3 + 24); operator delete(v156); } else { sscanf((const char *)&__dst + 1, "xadvance=%hd", a3 + 24); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source