// // ThreadSearchPopup::clampDayField from 0xc6f67c to 0xc6f86c (496 bytes) // // 3 xrefs: // > ThreadSearchPopup::init @ 0xc70004 // > ThreadSearchPopup::textChanged @ 0xc704b8 // > @ 0x54ca0 // // 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:05:29 +0000 // __int64 __fastcall ThreadSearchPopup::clampDayField(ThreadSearchPopup *this) { int v2; // w21 int v3; // w0 int v4; // w0 int v5; // w22 float v6; // s1 int v7; // w23 _QWORD *v8; // x19 cocos2d::CCString *v9; // x0 const char *CString; // x0 size_t v11; // x0 char *v13; // x24 char *v14; // [xsp+48h] [xbp+48h] __int64 v15[2]; // [xsp+50h] [xbp+50h] BYREF char *v16; // [xsp+60h] [xbp+60h] if ( !*((_QWORD *)this + 131) ) return _stack_chk_guard; v2 = ThreadSearchPopup::fieldValue(this, *((CCTextInputNode **)this + 129), 0x7D0u, *((_DWORD *)this + 264)); v3 = ThreadSearchPopup::fieldValue(this, *((CCTextInputNode **)this + 130), 1u, 12); if ( v3 == 2 ) { if ( (v2 & 3) == 0 && (v2 % 100 || !(v2 % 400)) ) { v6 = 29.0; v5 = 29; goto LABEL_8; } goto LABEL_4; } if ( v3 > 1 ) { LABEL_4: if ( v3 > 12 ) v3 = 12; v4 = v3 - 1; goto LABEL_7; } v4 = 0; LABEL_7: v5 = dword_119E670[v4]; v6 = (float)v5; LABEL_8: CCTextInputNode::setWheelRange(*((_QWORD *)this + 131), 1.0, v6); CCTextInputNode::getString(*((CCTextInputNode **)this + 131), v15); if ( (v15[0] & 1) != 0 ) { v13 = v16; v7 = atoi(v16); operator delete(v13); } else { v7 = atoi((const char *)v15 + 1); } if ( v7 > v5 ) { v8 = *((_QWORD **)this + 131); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)v5); CString = (const char *)cocos2d::CCString::getCString(v9); v15[0] = 0; v14 = (char *)CString; v15[1] = 0; v16 = nullptr; v11 = strlen(CString); std::string::__init(v15, v14, v11); CCTextInputNode::setString(v8, (char *)v15); if ( (v15[0] & 1) != 0 ) operator delete(v16); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source