// // KeybindingsLayer::buildContentForTab from 0x995ed4 to 0x996fcc (4344 bytes) // // 2 xrefs: // > KeybindingsLayer::showTab @ 0x9972d4 // > @ 0x89d40 // // 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:58:02 +0000 // __int64 __fastcall KeybindingsLayer::buildContentForTab(KeybindingsLayer *this, unsigned int a2) { _DWORD *v4; // x1 unsigned int v5; // w19 float v6; // s11 __int64 v7; // x24 void (__fastcall *v8)(__int64, void **); // x26 __int64 v9; // x1 void (__fastcall *v10)(__int64, void **); // x2 void (__fastcall *v11)(__int64, void **); // x20 cocos2d::CCNode *v12; // x0 void (__fastcall *v13)(__int64, void **); // x20 const char *v14; // x2 float v15; // s8 cocos2d::CCLabelBMFont *v16; // x0 __int64 v17; // x24 void (__fastcall *v18)(__int64, void **); // x27 void (__fastcall *v19)(__int64, void **); // x27 const char *v20; // x6 __int64 v21; // x0 __int64 v22; // x24 __int64 v23; // x27 void (__fastcall *v24)(__int64, void **); // x20 __int64 v25; // x26 __int64 v26; // x24 void (__fastcall *v27)(__int64, void **); // x27 float v28; // s9 __int64 v29; // x1 long double v30; // q0 unsigned int *v31; // x2 int v32; // w0 GJKeybindManager *v33; // x0 _DWORD *v34; // x1 int v35; // w0 GJKeybindManager *v36; // x0 int v37; // w20 unsigned int *v38; // x0 float v39; // s8 __int64 v40; // x23 unsigned __int64 v41; // x21 float *v42; // x22 unsigned int *v43; // x1 unsigned __int64 v44; // x24 _BYTE *v45; // x2 GJKeybindManager *v46; // x0 GJKeybindManager *v47; // x0 GJKeybindManager *v48; // x0 int v49; // w2 __int64 v50; // x2 int v51; // w27 __int64 v52; // x0 int v53; // w1 __int64 v54; // x24 __int64 v55; // x0 __int64 v56; // x24 float v57; // s10 __int64 v58; // x21 int v59; // w24 float v60; // s1 float v61; // s0 float v62; // s10 char *v63; // x24 void (__fastcall *v64)(__int64, void **); // x26 float v65; // s8 float v66; // s9 __int64 v67; // x27 GJKeybindManager *v68; // x0 GJKeybindManager *v69; // x0 _DWORD *v70; // x0 __int64 v71; // x1 __int64 v72; // x27 unsigned int v73; // w24 GJKeybindManager *isMovementAction; // x0 GJKeybindManager *v75; // x0 GJKeybindManager *v76; // x0 int v77; // w2 unsigned __int64 v78; // x27 unsigned __int64 v79; // x26 unsigned __int64 v80; // x0 unsigned __int64 v81; // x0 __int64 v82; // x0 float *v83; // x26 float *v84; // x24 _QWORD *v85; // x1 float *v86; // x0 __int64 v87; // x3 const char *v88; // x6 unsigned __int64 v89; // x1 float v90; // s0 ButtonSprite *v91; // x0 __int64 v92; // x0 __int64 v93; // x24 __int64 v94; // x0 void (__fastcall *v95)(__int64, void **); // x3 unsigned __int64 v96; // x26 float v97; // s0 float v98; // s9 float v99; // s0 int v101; // w0 unsigned int *v102; // x1 int v103; // w20 __int64 v104; // x1 __int64 v105; // x26 size_t v106; // x27 const void *v107; // x26 unsigned __int64 v108; // x0 char *v109; // x3 const char *v110; // x2 cocos2d::CCLabelBMFont *v111; // x0 __int64 v112; // x27 void (__fastcall *v113)(__int64, void **); // x24 void (__fastcall *v114)(__int64, void **); // x3 char v115; // w2 char v116; // w1 char v117; // w0 int v119; // [xsp+ACh] [xbp+ACh] float v120; // [xsp+B0h] [xbp+B0h] float v121; // [xsp+B4h] [xbp+B4h] int v122; // [xsp+B8h] [xbp+B8h] float v123; // [xsp+BCh] [xbp+BCh] __int64 v124; // [xsp+C0h] [xbp+C0h] __int64 v125; // [xsp+C8h] [xbp+C8h] float v126; // [xsp+F8h] [xbp+F8h] unsigned int v127; // [xsp+FCh] [xbp+FCh] unsigned __int64 v128; // [xsp+100h] [xbp+100h] void (__fastcall *v129)(__int64, float); // [xsp+108h] [xbp+108h] char v130; // [xsp+12Fh] [xbp+12Fh] BYREF __int64 v131; // [xsp+130h] [xbp+130h] __int64 v132; // [xsp+138h] [xbp+138h] float v133; // [xsp+140h] [xbp+140h] BYREF float v134; // [xsp+144h] [xbp+144h] void *v135; // [xsp+148h] [xbp+148h] BYREF _BYTE *v136; // [xsp+150h] [xbp+150h] char v137; // [xsp+160h] [xbp+160h] _BYTE v138[7]; // [xsp+161h] [xbp+161h] BYREF void *v139; // [xsp+170h] [xbp+170h] void *v140; // [xsp+178h] [xbp+178h] BYREF _BYTE *v141; // [xsp+180h] [xbp+180h] void *v142; // [xsp+190h] [xbp+190h] BYREF GJKeybindManager *v143; // [xsp+198h] [xbp+198h] GJKeybindManager *v144; // [xsp+1A0h] [xbp+1A0h] void *v145; // [xsp+1A8h] [xbp+1A8h] BYREF _DWORD *v146; // [xsp+1B0h] [xbp+1B0h] _DWORD *v147; // [xsp+1B8h] [xbp+1B8h] void *v148; // [xsp+1C0h] [xbp+1C0h] BYREF _BYTE *v149; // [xsp+1C8h] [xbp+1C8h] void *v150; // [xsp+1D8h] [xbp+1D8h] BYREF int v151[2]; // [xsp+1E0h] [xbp+1E0h] unsigned __int64 v152; // [xsp+1F0h] [xbp+1F0h] BYREF unsigned __int64 v153; // [xsp+1F8h] [xbp+1F8h] void *v154; // [xsp+200h] [xbp+200h] if ( *((_QWORD *)this + 142) && *((_QWORD *)this + 143) ) { v127 = (*(unsigned __int8 (__fastcall **)(KeybindingsLayer *))(*(_QWORD *)this + 1544LL))(this); v122 = *((_DWORD *)this + 296); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v133, (const cocos2d::CCSize *)(*((_QWORD *)this + 142) + 424LL)); v121 = v133; v126 = v133 * 0.5; v120 = v133 - 23.0; (*(void (__fastcall **)(void **__return_ptr, KeybindingsLayer *, _QWORD))(*(_QWORD *)this + 1520LL))( &v135, this, a2); v4 = v135; if ( (v136 - (_BYTE *)v135) >> 2 ) { v124 = 0; while ( 1 ) { v5 = v4[v124]; (*(void (__fastcall **)(KeybindingsLayer *, _QWORD))(*(_QWORD *)this + 1528LL))(this, v5); v119 = v124; v6 = -20.0 - (float)((float)(int)v124 * 32.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v150, 0.0, 0.0, 40.0, 40.0); v7 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v150); v8 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v7 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v150, v121, 30.0); v8(v7, &v150); v9 = (v124 & 1) != 0 ? 40LL : 70LL; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 912LL))(v7, v9); v10 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v7 + 960LL); LOWORD(v150) = 0; BYTE2(v150) = 0; v10(v7, &v150); v11 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v126, -20.0 - (float)((float)(int)v124 * 32.0)); v11(v7, &v150); v12 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 142) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 142) + 416LL), v7, 0); v125 = cocos2d::CCNode::create(v12); v13 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v125 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 10.0, v6); v13(v125, &v150); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(*((_QWORD *)this + 142) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 142) + 416LL), v125, 1); if ( v122 == a2 ) { v101 = 0; v102 = dword_116C380; while ( 1 ) { v14 = (const char *)*v102; if ( v5 == (_DWORD)v14 ) break; ++v101; v102 += 2; if ( v101 == 214 ) goto LABEL_9; } v103 = dword_116C380[2 * v101 + 1]; if ( (v103 & 0x80000000) == 0 ) break; } LABEL_9: v15 = 0.0; LABEL_10: v16 = (cocos2d::CCLabelBMFont *)v138; if ( (v137 & 1) != 0 ) v16 = (cocos2d::CCLabelBMFont *)v139; v17 = cocos2d::CCLabelBMFont::create(v16, "bigFont.fnt", v14); v18 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v17 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 0.0, 0.5); v18(v17, &v150); v19 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v15, 0.0); v19(v17, &v150); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v125 + 456LL))(v125, v17); v123 = v15 + *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17); v21 = ButtonSprite::create( (ButtonSprite *)"+", &byte_9[1], 0, 1, 0.6, "bigFont.fnt", "GJ_button_01.png", v20, 22.0); v22 = *(_QWORD *)(v21 + 624); v23 = v21; v24 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v22 + 184LL); v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 192LL))(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v148, 0.25, 0.0); cocos2d::CCPoint::operator+(&v150, v25); v24(v22, &v150); v26 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)KeybindingsLayer::onAddBinding, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v26 + 72LL))(v26, v5); v27 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v26 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v120, v6); v27(v26, &v150); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 143) + 456LL))(*((_QWORD *)this + 143), v26); v28 = (float)(v120 - 13.0) - 4.0; (*(void (__fastcall **)(void **__return_ptr, _QWORD, _QWORD))(**((_QWORD **)this + 137) + 16LL))( &v140, *((_QWORD *)this + 137), v5); v31 = (unsigned int *)v140; v142 = nullptr; v143 = nullptr; v144 = nullptr; v145 = nullptr; v146 = nullptr; v147 = nullptr; LODWORD(v150) = 0; if ( (int)((v141 - (_BYTE *)v140) >> 2) <= 0 ) goto LABEL_108; v32 = 0; do { if ( v127 < (unsigned __int8)GJKeybindManager::isControllerChord((GJKeybindManager *)v31[v32], v29) ) goto LABEL_57; v33 = v143; if ( v143 == v144 ) { std::vector::__push_back_slow_path((__int64)&v142, (_DWORD *)v140 + (int)v150); } else { if ( v143 ) { *(_DWORD *)v143 = *((_DWORD *)v140 + (int)v150); v33 = v143; } v143 = (GJKeybindManager *)((char *)v33 + 4); } v34 = v146; if ( v146 == v147 ) { std::vector::__push_back_slow_path((__int64)&v145, &v150); LABEL_57: v35 = (int)v150; goto LABEL_23; } v35 = (int)v150; if ( v146 ) { *v146 = (_DWORD)v150; v34 = v146; v35 = (int)v150; } v146 = v34 + 1; LABEL_23: v31 = (unsigned int *)v140; v32 = v35 + 1; LODWORD(v150) = v32; v29 = (v141 - (_BYTE *)v140) >> 2; } while ( v32 < (int)v29 ); if ( v142 == v143 ) goto LABEL_108; v36 = (GJKeybindManager *)GJKeybindManager::sharedState(v143); v37 = GJKeybindManager::groupForAction(v36, v5); v38 = (unsigned int *)v142; if ( (int)((v143 - (GJKeybindManager *)v142) >> 2) > 0 ) { v39 = 0.0; v40 = 0; v128 = 0; v41 = 0; v42 = nullptr; while ( 1 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 137) + 24LL))( *((_QWORD *)this + 137), v38[v40]); v43 = (unsigned int *)v148; v44 = 0; v45 = v149; if ( (v149 - (_BYTE *)v148) >> 2 ) { do { v46 = (GJKeybindManager *)v43[v44]; if ( (_DWORD)v46 != v5 ) { v47 = (GJKeybindManager *)GJKeybindManager::sharedState(v46); v48 = (GJKeybindManager *)GJKeybindManager::groupForAction(v47, *((_DWORD *)v148 + v44)); if ( (unsigned __int8)GJKeybindManager::groupsConflict(v48, v37, v49) ) { v51 = 1; goto LABEL_34; } v43 = (unsigned int *)v148; v45 = v149; } ++v44; } while ( v44 < (v45 - (_BYTE *)v43) >> 2 ); } v68 = (GJKeybindManager *)(*(unsigned __int8 (__fastcall **)(KeybindingsLayer *))(*(_QWORD *)this + 1560LL))(this); if ( !(_BYTE)v68 ) { v51 = 0; goto LABEL_34; } v69 = (GJKeybindManager *)GJKeybindManager::sharedState(v68); GJKeybindManager::actionsForChord((__int64 *)&v150, v69, *((_DWORD *)v142 + v40)); v70 = v150; v71 = *(_QWORD *)v151; v50 = (__int64)(*(_QWORD *)v151 - (_QWORD)v150) >> 2; if ( !v50 ) { LABEL_89: v51 = 0; goto LABEL_68; } v72 = 0; while ( 1 ) { v73 = v70[v72]; if ( v73 == v5 ) goto LABEL_63; isMovementAction = (GJKeybindManager *)(unsigned __int8)GJKeybindManager::isMovementAction( (GJKeybindManager *)v73, v71); if ( !(_BYTE)isMovementAction ) { v75 = (GJKeybindManager *)GJKeybindManager::sharedState(isMovementAction); v76 = (GJKeybindManager *)GJKeybindManager::groupForAction(v75, v73); if ( (unsigned __int8)GJKeybindManager::groupsConflict(v76, v37, v77) ) break; } v70 = v150; v71 = *(_QWORD *)v151; LABEL_63: if ( ++v72 >= (unsigned __int64)((v71 - (__int64)v70) >> 2) ) goto LABEL_89; } v70 = v150; v51 = 1; LABEL_68: if ( v70 ) { if ( *(_DWORD **)v151 != v70 ) *(_QWORD *)v151 += 4 * ~((unsigned __int64)(*(_QWORD *)v151 - 4LL - (_QWORD)v70) >> 2); operator delete(v70); } LABEL_34: v130 = 0; v52 = KeybindingsLayer::buildControllerGlyph( (KeybindingsLayer *)*((unsigned __int16 *)v142 + 2 * v40), &v130, (bool *)v50); v54 = v52; if ( v52 ) { v129 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 160LL); v55 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v52 + 328LL))(v52); v129(v54, 26.0 / *(float *)(v55 + 4)); if ( v51 ) { LOWORD(v131) = 20735; BYTE2(v131) = 80; KeybindingsLayer::tintGlyph(v54, v131); } else if ( v130 ) { LOBYTE(v132) = 120; *(_WORD *)((char *)&v132 + 1) = -66; KeybindingsLayer::tintGlyph(v54, v132); } v56 = CCMenuItemSpriteExtra::create(v54, 0, (__int64)this, (__int64)KeybindingsLayer::onEditBinding, 0); v57 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v56 + 328LL))(v56); } else { GJKeybindManager::chordToString((GJKeybindManager *)*((unsigned int *)v142 + v40), v53); if ( (v152 & 1) != 0 ) { v89 = 22; v90 = (float)v153 * 8.0; if ( v90 > 22.0 ) v89 = (unsigned int)(int)v90; v91 = (ButtonSprite *)v154; } else { v97 = (float)((int)(unsigned __int8)v152 >> 1) * 8.0; if ( v97 > 22.0 ) v89 = (unsigned int)(int)v97; else v89 = 22; v91 = (ButtonSprite *)((char *)&v152 + 1); } v92 = ButtonSprite::create( v91, (const char *)v89, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v88, 22.0); v93 = v92; if ( v51 ) { v94 = *(_QWORD *)(v92 + 624); v95 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v94 + 1072LL); LOWORD(v150) = 20735; BYTE2(v150) = 80; v95(v94, &v150); } v56 = CCMenuItemSpriteExtra::create(v93, 0, (__int64)this, (__int64)KeybindingsLayer::onEditBinding, 0); v57 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v56 + 328LL))(v56); if ( (v152 & 1) != 0 ) operator delete(v154); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v56 + 72LL))( v56, v5 & 0xFFFFFF | (*((_DWORD *)v145 + v40) << 24)); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 143) + 456LL))(*((_QWORD *)this + 143), v56); if ( v128 > v41 ) { if ( v41 ) { *(_QWORD *)v41 = v56; *(float *)(v41 + 8) = v57; } v41 += 16LL; goto LABEL_43; } v78 = v41 - (_QWORD)v42; v79 = ((__int64)(v41 - (_QWORD)v42) >> 4) + 1; if ( v79 > 0xFFFFFFFFFFFFFFFLL ) sub_62D7BC(); v80 = (__int64)(v128 - (_QWORD)v42) >> 4; if ( v80 > 0x7FFFFFFFFFFFFFELL ) { v96 = -16; LABEL_100: v82 = operator new(v96); v128 = v82 + v96; goto LABEL_78; } v81 = 2 * v80; if ( v81 >= v79 ) v79 = v81; if ( v79 ) { v96 = 16 * v79; goto LABEL_100; } v128 = 0; v82 = 0; LABEL_78: v83 = (float *)(v82 + v78); if ( v82 + v78 ) { *(_QWORD *)(v82 + v78) = v56; v83[2] = v57; } v84 = v83 + 4; if ( (float *)v41 != v42 ) { v85 = (_QWORD *)(v82 + v78); v86 = (float *)v41; do { v85 -= 2; v86 -= 4; if ( v85 ) { v87 = *((_QWORD *)v86 + 1); *v85 = *(_QWORD *)v86; v85[1] = v87; } } while ( v86 != v42 ); v83 += 4 * ~((v41 - 16 - (unsigned __int64)v42) >> 4); } if ( v42 ) operator delete(v42); v41 = (unsigned __int64)v84; v42 = v83; LABEL_43: v39 = v39 + v57; if ( v148 ) { if ( v148 != v149 ) v149 += 4 * ~((unsigned __int64)(v149 - 4 - (_BYTE *)v148) >> 2); operator delete(v148); } v38 = (unsigned int *)v142; if ( (int)++v40 >= (int)((v143 - (GJKeybindManager *)v142) >> 2) ) { v58 = (__int64)(v41 - (_QWORD)v42) >> 4; v59 = v58 - 1; v60 = (float)(unsigned __int64)v58 * 4.0; v61 = (float)(v126 - 26.0) - 4.0; if ( v61 >= (float)(v39 + v60) ) { v62 = 1.0; } else { LABEL_49: v62 = (float)(v61 - v60) / v39; if ( v62 < 0.4 ) v62 = 0.4; } if ( (v59 & 0x80000000) == 0 ) { v63 = (char *)&v42[4 * v59]; do { v67 = *(_QWORD *)v63; if ( v62 < 1.0 ) (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v67 + 160LL))(*(_QWORD *)v63, v62); v64 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v67 + 184LL); v65 = (float)(v62 * *((float *)v63 + 2)) * 0.5; v66 = v28 - v65; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v66, v6); v64(v67, &v150); v63 -= 16; v28 = v66 - (float)(v65 + 4.0); } while ( v63 != (char *)(v42 - 4) ); } if ( v42 ) operator delete(v42); goto LABEL_108; } } } v61 = (float)(v126 - 26.0) - 4.0; if ( v61 < 0.0 ) { v60 = 0.0; v59 = -1; v42 = nullptr; v39 = 0.0; goto LABEL_49; } LABEL_108: v98 = v28 - 10.0; if ( (float)(v123 * 0.35) <= v98 ) { LODWORD(v30) = 1051931443; } else { *(float *)&v30 = v98 / v123; if ( (float)(v98 / v123) <= 0.2 ) LODWORD(v30) = 1045220557; } (*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v125 + 160LL))(v125, v30); if ( v145 ) { if ( v145 != v146 ) v146 += ~((unsigned __int64)((char *)(v146 - 1) - (_BYTE *)v145) >> 2); operator delete(v145); } if ( v142 ) { if ( v142 != v143 ) v143 = (GJKeybindManager *)((char *)v143 + 4 * ~((unsigned __int64)((GJKeybindManager *)((char *)v143 - 4) - (GJKeybindManager *)v142) >> 2)); operator delete(v142); } if ( v140 ) { if ( v140 != v141 ) v141 += 4 * ~((unsigned __int64)(v141 - 4 - (_BYTE *)v140) >> 2); operator delete(v140); } if ( (v137 & 1) != 0 ) operator delete(v139); v4 = v135; if ( ++v124 >= (unsigned __int64)((v136 - (_BYTE *)v135) >> 2) ) { v99 = (float)((float)(v119 + 1) * 32.0) + 8.0; goto LABEL_127; } } v104 = *((_QWORD *)this + 127); v152 = 0; v153 = 0; v154 = nullptr; v105 = v104 + 72LL * v103; if ( (*(_BYTE *)v105 & 1) != 0 ) { v106 = *(_QWORD *)(v105 + 8); v107 = *(const void **)(v105 + 16); v108 = v106 + 1; if ( v106 + 1 > 0xFFFFFFFFFFFFFFEFLL ) goto LABEL_155; } else { v106 = *(_BYTE *)v105 >> 1; v107 = (const void *)(v105 + 1); v108 = v106 + 1; if ( v106 + 1 > 0xFFFFFFFFFFFFFFEFLL ) LABEL_155: sub_62D75C(); } if ( v108 > 0x16 ) { v109 = (char *)operator new((v106 + 17) & 0xFFFFFFFFFFFFFFF0LL); v154 = v109; v153 = v106; v152 = (v106 + 17) & 0xFFFFFFFFFFFFFFF0LL | 1; } else { LOBYTE(v152) = 2 * v106; v109 = (char *)&v152 + 1; if ( !v106 ) { LABEL_145: v109[v106] = 0; std::string::append((__int64)&v152, ":", 1u); v111 = (cocos2d::CCLabelBMFont *)((char *)&v152 + 1); if ( (v152 & 1) != 0 ) v111 = (cocos2d::CCLabelBMFont *)v154; v112 = cocos2d::CCLabelBMFont::create(v111, "bigFont.fnt", v110); if ( (v152 & 1) != 0 ) operator delete(v154); v113 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v112 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 0.0, 0.5); v113(v112, &v150); v114 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v112 + 1072LL); switch ( v103 ) { case 0: v115 = 120; v116 = -1; v117 = 120; break; case 1: v115 = 100; v116 = -26; v117 = -1; break; case 2: v115 = 80; v116 = -86; v117 = -1; break; case 3: v115 = -1; v116 = -106; v117 = -56; break; default: v115 = -1; v116 = -56; v117 = 100; break; } LOBYTE(v150) = v117; BYTE1(v150) = v116; BYTE2(v150) = v115; v114(v112, &v150); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v125 + 456LL))(v125, v112); v15 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v112 + 328LL))(v112) + 15.0; goto LABEL_10; } } v109 = (char *)memcpy(v109, v107, v106); goto LABEL_145; } v99 = 8.0; LABEL_127: if ( v134 > v99 ) v99 = v134; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 142), v99); if ( v135 ) { if ( v135 != v136 ) v136 += 4 * ~((unsigned __int64)(v136 - 4 - (_BYTE *)v135) >> 2); operator delete(v135); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source