// // GJRotateCommandLayer::updateEasingRateLabel from 0x100003340 to 0x100003452 (274 bytes) // // 2 xrefs: // > GJRotateCommandLayer::init @ 0x100002088 // > GJRotateCommandLayer::valuePopupClosed @ 0x1000045da // // 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 // void __fastcall GJRotateCommandLayer::updateEasingRateLabel(GJRotateCommandLayer *a1) { double m_rotateEasingRate; // xmm0_8 cocos2d::CCString *v2; // rax const char *CString; // r15 size_t v4; // rax std::string::size_type v5; // r14 char *data; // r12 size_t v7; // r13 std::string::pointer v8; // rsi std::string __dst[2]; // [rsp+0h] [rbp-40h] BYREF m_rotateEasingRate = a1->m_rotateEasingRate; v2 = (cocos2d::CCString *)sub_1007AB580("%.02f", *(_BYTE *)&__dst[0].__r_.__value_.__l.0); CString = cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(CString, m_rotateEasingRate); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; data = (char *)operator new(v7); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v7 + 1; __dst[0].__r_.__value_.__l.__size_ = v5; goto LABEL_8; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v4); data = __dst[0].__r_.__value_.__s.__data_; if ( v4 ) LABEL_8: memmove(data, CString, v5); data[v5] = 0; if ( a1->m_rotateEasingRate == -99999.0 ) std::string::assign(__dst, "-"); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v8 = __dst[0].__r_.__value_.__l.__data_; else v8 = __dst[0].__r_.__value_.__s.__data_; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))a1->m_rotateEasingRateLabel->setString)( a1->m_rotateEasingRateLabel, v8); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source