// // SetupCameraRotatePopup::updateDurLabel from 0xaec5b4 to 0xaec778 (452 bytes) // // 3 xrefs: // > SetupCameraRotatePopup::sliderChanged @ 0xaecc0c // > SetupCameraRotatePopup::init @ 0xaedb50 // > @ 0xec428 // // 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 13:01:10 +0000 // __int64 __fastcall SetupCameraRotatePopup::updateDurLabel(SetupCameraRotatePopup *this, unsigned __int64 a2) { float v3; // s0 cocos2d::CCString *v4; // x0 const char *CString; // x24 size_t v6; // x0 size_t v7; // x21 _QWORD *v8; // x25 unsigned __int64 v9; // x0 __int64 v10; // x23 char *v11; // x3 cocos2d::CCString *v13; // x0 __int64 v14; // [xsp+50h] [xbp+50h] BYREF size_t v15; // [xsp+58h] [xbp+58h] void *v16; // [xsp+60h] [xbp+60h] a2 = (unsigned __int8)a2; v3 = *((float *)this + 258); *((_BYTE *)this + 744) = 1; if ( v3 == -99999.0 ) { v14 = 0; v8 = *((_QWORD **)this + 127); v7 = 5; v15 = 0; CString = "Mixed"; v16 = nullptr; LOBYTE(v14) = 10; LABEL_12: v11 = (char *)memcpy((char *)&v14 + 1, CString, v7); goto LABEL_8; } if ( !(_BYTE)a2 && (a2 = (unsigned int)(int)v3, (float)(v3 - (float)(int)a2) == 0.0) ) { v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2); CString = (const char *)cocos2d::CCString::getCString(v13); } else { v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", (const char *)a2, v3); CString = (const char *)cocos2d::CCString::getCString(v4); } v14 = 0; v15 = 0; v16 = nullptr; v6 = strlen(CString); v7 = v6; v8 = *((_QWORD **)this + 127); if ( v6 > 0xFFFFFFFFFFFFFFEFLL ) sub_62EA7C(); if ( v6 > 0x16 ) { v9 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL; v10 = v9 | 1; v16 = (void *)operator new(v9); v14 = v10; v15 = v7; v11 = (char *)memcpy(v16, CString, v7); goto LABEL_8; } LOBYTE(v14) = 2 * v6; v11 = (char *)&v14 + 1; if ( v6 ) goto LABEL_12; LABEL_8: v11[v7] = 0; CCTextInputNode::setString(v8, (char *)&v14); if ( (v14 & 1) != 0 ) operator delete(v16); *((_BYTE *)this + 744) = 0; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source