// // CustomizeObjectLayer::updateKerningLabel from 0x984cc8 to 0x984f1c (596 bytes) // // 3 xrefs: // > CustomizeObjectLayer::init @ 0x986874 // > CustomizeObjectLayer::sliderChanged @ 0x98730c // > @ 0xa1e90 // // 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:57:53 +0000 // __int64 __fastcall CustomizeObjectLayer::updateKerningLabel(CustomizeObjectLayer *this) { GameToolbox *v2; // x0 int v3; // w0 unsigned __int8 v4; // w3 size_t v5; // x19 char *v6; // x7 int v7; // w4 size_t v8; // x21 unsigned __int64 v9; // x1 char *v10; // x24 size_t v11; // x2 size_t v12; // x19 char *v13; // x1 char v14; // w3 __int64 v15; // x0 CCTextInputNode *v16; // x20 __int64 v18; // [xsp+40h] [xbp+40h] BYREF size_t v19; // [xsp+48h] [xbp+48h] void *v20; // [xsp+50h] [xbp+50h] unsigned __int64 v21[2]; // [xsp+58h] [xbp+58h] BYREF void *v22; // [xsp+68h] [xbp+68h] __int64 v23[3]; // [xsp+70h] [xbp+70h] BYREF if ( !*((_QWORD *)this + 105) ) return _stack_chk_guard; v18 = 0; v19 = 0; v20 = nullptr; std::string::__init(&v18, "Kerning: ", 9u); v2 = (GameToolbox *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 1760LL))(*((_QWORD *)this + 86)); GameToolbox::intToString(v21, v2); v3 = v21[0] & 1; if ( v3 ) { v4 = v18; v6 = (char *)v22; v5 = v21[1]; v7 = v18 & 1; if ( v7 ) { LABEL_4: v8 = v19; v9 = (v18 & 0xFFFFFFFFFFFFFFFELL) - 1; if ( v5 <= v9 - v19 ) goto LABEL_5; goto LABEL_22; } } else { v4 = v18; v5 = LOBYTE(v21[0]) >> 1; v6 = (char *)v21 + 1; v7 = v18 & 1; if ( v7 ) goto LABEL_4; } v8 = v4 >> 1; v9 = 22; if ( v5 <= 22 - v8 ) { LABEL_5: if ( v5 ) { v10 = (char *)&v18 + 1; if ( v7 ) v10 = (char *)v20; v11 = v5; v12 = v8 + v5; memcpy(&v10[v8], v6, v11); if ( (v18 & 1) != 0 ) v19 = v12; else LOBYTE(v18) = 2 * v12; v10[v12] = 0; v3 = v21[0] & 1; } if ( !v3 ) goto LABEL_12; goto LABEL_23; } LABEL_22: std::string::__grow_by_and_replace((__int64)&v18, v9, v8 + v5 - v9, v8, v8, 0, v5, v6); if ( (v21[0] & 1) != 0 ) LABEL_23: operator delete(v22); LABEL_12: v13 = (char *)&v18 + 1; v14 = v18; *(_DWORD *)(*((_QWORD *)this + 105) + 512LL) = *((_DWORD *)this + 208); if ( (v14 & 1) != 0 ) v13 = (char *)v20; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 105) + 928LL))(*((_QWORD *)this + 105), v13); v15 = *((_QWORD *)this + 103); if ( v15 ) { *(_DWORD *)(v15 + 708) = *((_DWORD *)this + 208); v16 = *((CCTextInputNode **)this + 103); CCTextInputNode::getString(v16, v23); CCTextInputNode::setString(v16, (char *)v23); if ( (v23[0] & 1) != 0 ) operator delete((void *)v23[2]); } if ( (v18 & 1) != 0 ) operator delete(v20); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source