// // CCTextInputNode::refreshLabel from 0x6c0a88 to 0x6c0cec (612 bytes) // // 8 xrefs: // > CCTextInputNode::setMaxLabelScale @ 0x6c0cf0 // > CCTextInputNode::setMaxLabelWidth @ 0x6c0cf8 // > CCTextInputNode::setLabelPlaceholderScale @ 0x6c0d00 // > CCTextInputNode::setLabelPlaceholderColor @ 0x6c0d18 // > CCTextInputNode::setLabelNormalColor @ 0x6c0d34 // > CCTextInputNode::updateLabel @ 0x6c3198 // > CCTextInputNode::updateLabel @ 0x6c33cc // > @ 0xd0540 // // 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:51:18 +0000 // __int64 __fastcall CCTextInputNode::refreshLabel(CCTextInputNode *this) { const char *v2; // x0 size_t v3; // x0 _BOOL4 v4; // w22 __int64 *v5; // x21 __int64 v6; // x1 float v8; // s8 void (__fastcall *v9)(__int64, float); // x22 __int64 v10; // x0 float v11; // s8 void (__fastcall *v12)(__int64, float); // x22 __int64 v13; // x21 float v14; // s8 float *v15; // x0 __int64 v16; // x21 float v17; // s8 float *v18; // x0 char *v19; // [xsp+48h] [xbp+48h] __int64 v20[2]; // [xsp+58h] [xbp+58h] BYREF void *v21; // [xsp+68h] [xbp+68h] __int64 v22[2]; // [xsp+70h] [xbp+70h] BYREF void *v23; // [xsp+80h] [xbp+80h] if ( !*((_QWORD *)this + 75) && !*((_QWORD *)this + 77) ) return _stack_chk_guard; v2 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 72) + 1248LL))(*((_QWORD *)this + 72)); v20[0] = 0; v19 = (char *)v2; v20[1] = 0; v21 = nullptr; v3 = strlen(v2); std::string::__init(v20, v19, v3); v22[0] = 0; v22[1] = 0; v23 = nullptr; std::string::__init(v22, &byte_11B8890, 0); v4 = sub_6B7640((__int64)v20, (__int64)v22); if ( (v22[0] & 1) != 0 ) operator delete(v23); if ( (v20[0] & 1) != 0 ) { operator delete(v21); v5 = *((__int64 **)this + 75); if ( v5 ) { LABEL_6: if ( v4 ) { v6 = *v5; if ( *((float *)this + 138) <= 0.0 ) { v8 = *((float *)this + 136); v9 = *(void (__fastcall **)(__int64, float))(v6 + 160); if ( *((float *)this + 137) >= (float)(v8 / *(float *)(*(__int64 (__fastcall **)(__int64 *))(v6 + 328))(v5)) ) { v13 = *((_QWORD *)this + 75); v14 = *((float *)this + 136); v15 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13); v9(v13, v14 / *v15); } else { ((void (__fastcall *)(__int64 *))v9)(v5); } } else { (*(void (__fastcall **)(__int64 *))(v6 + 160))(v5); } (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 75) + 1072LL))( *((_QWORD *)this + 75), (char *)this + 556); } else { v11 = *((float *)this + 136); v12 = *(void (__fastcall **)(__int64, float))(*v5 + 160); if ( (float)(v11 / *(float *)(*(__int64 (__fastcall **)(__int64 *))(*v5 + 328))(v5)) <= *((float *)this + 137) ) { v16 = *((_QWORD *)this + 75); v17 = *((float *)this + 136); v18 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 328LL))(v16); v12(v16, v17 / *v18); } else { ((void (__fastcall *)(__int64 *))v12)(v5); } (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 75) + 1072LL))( *((_QWORD *)this + 75), (char *)this + 559); } return _stack_chk_guard; } } else { v5 = *((__int64 **)this + 75); if ( v5 ) goto LABEL_6; } v10 = *((_QWORD *)this + 77); if ( v10 ) { if ( v4 ) TextArea::colorAllLabels(v10, *(_QWORD *)((char *)this + 556)); else TextArea::colorAllLabels(v10, *(_QWORD *)((char *)this + 559)); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source