// // CCTextInputNode::scrollWheel from 0x3e388c to 0x3e3af6 (618 bytes) // // 1 xrefs: // > `non-virtual thunk to'CCTextInputNode::scrollWheel @ 0x3e3b0c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:47:03 +0000 // int __fastcall CCTextInputNode::scrollWheel(CCTextInputNode *this, float a2, float a3) { int v5; // r3 int v6; // r2 unsigned int i; // r2 char *v8; // r1 int v9; // r1 int v10; // r7 cocos2d::CCEGLView *v11; // r0 cocos2d::CCDirector *v12; // r0 cocos2d::CCDirector *v13; // r7 const cocos2d::CCPoint *v14; // r9 const cocos2d::CCSize *v15; // r0 int v16; // r0 cocos2d::CCDirector *v17; // r0 int v18; // r0 float v19; // s16 char *v20; // r0 float v21; // s15 float v22; // s16 float v23; // s15 float v24; // s13 int v25; // r2 int v26; // r3 size_t v27; // r0 _BYTE v29[8]; // [sp+8h] [bp-5Ch] BYREF _BYTE v30[8]; // [sp+10h] [bp-54h] BYREF float v31; // [sp+18h] [bp-4Ch] BYREF float v32; // [sp+1Ch] [bp-48h] int v33; // [sp+20h] [bp-44h] BYREF unsigned int v34; // [sp+24h] [bp-40h] char *v35; // [sp+28h] [bp-3Ch] _BYTE v36[16]; // [sp+2Ch] [bp-38h] BYREF char v37[32]; // [sp+3Ch] [bp-28h] BYREF v5 = *((_DWORD *)this + 126); if ( (unsigned int)(v5 - 1) > 2 ) { if ( v5 == 5 ) { CCTextInputNode::getString((CCTextInputNode *)&v33, (int)this); if ( (v33 & 1) != 0 ) v6 = v34; else v6 = (int)(unsigned __int8)v33 >> 1; if ( v6 ) { for ( i = 0; ; ++i ) { if ( (v33 & 1) != 0 ) { if ( i >= v34 ) goto LABEL_17; v8 = v35; } else { if ( i >= (int)(unsigned __int8)v33 >> 1 ) { LABEL_17: std::string::~string((int)&v33); goto LABEL_20; } v8 = (char *)&v33 + 1; } v9 = (unsigned __int8)v8[i]; if ( (i || v9 != 45) && (unsigned int)(v9 - 48) > 9 ) break; } } std::string::~string((int)&v33); } return 0; } LABEL_20: if ( !CCTextInputNode::isVisibleInTree(this) ) return 0; v11 = (cocos2d::CCEGLView *)(*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)this + 496))(this); if ( !v11 ) return 0; v12 = (cocos2d::CCDirector *)cocos2d::CCEGLView::sharedOpenGLView(v11); v13 = v12; if ( !v12 ) return 0; v14 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(v12); (*(void (__fastcall **)(_BYTE *, cocos2d::CCDirector *))(*(_DWORD *)v13 + 92))(v36, v13); cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v29, v14); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v30, this); v15 = (const cocos2d::CCSize *)(*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)this + 164))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v31, v15); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v36, -(float)(v31 * 0.5), -(float)(v32 * 0.5), v31, v32); v10 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v36, (const cocos2d::CCPoint *)v30); if ( !v10 || CCTextInputNode::isCoveredByPopup(this) ) return 0; v16 = cocos2d::CCDirector::sharedDirector(nullptr); v17 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int))(*(_DWORD *)v16 + 96))(v16); if ( *((_BYTE *)v17 + 88) ) { v19 = 10.0; } else { v18 = cocos2d::CCDirector::sharedDirector(v17); if ( *(_BYTE *)((*(int (__fastcall **)(int))(*(_DWORD *)v18 + 96))(v18) + 89) ) { v19 = 0.1; if ( *((_DWORD *)this + 126) != 1 ) v19 = 1.0; } else { v19 = 1.0; } } if ( a2 >= 0.0 ) v19 = -v19; CCTextInputNode::getString((CCTextInputNode *)&v33, (int)this); if ( (v33 & 1) != 0 ) v20 = v35; else v20 = (char *)&v33 + 1; v21 = atof(v20); v22 = v21 + v19; std::string::~string((int)&v33); if ( *((_BYTE *)this + 468) ) { v23 = *((float *)this + 118); if ( v22 < v23 ) v24 = *((float *)this + 118); else v24 = v22; if ( v24 > *((float *)this + 119) ) { v22 = *((float *)this + 119); } else if ( v22 < v23 ) { v22 = *((float *)this + 118); } } v25 = *((_DWORD *)this + 126); if ( v25 == 1 ) { sub_993B88(v37, 32, "%.*f", *((_DWORD *)this + 127), v22); } else { v26 = (int)v22; if ( v25 == 3 || v25 == 5 ) v26 &= ~(v26 >> 31); sub_993B88(v37, 32, "%d", v26); } v33 = 0; v34 = 0; v35 = nullptr; v27 = strlen(v37); std::string::__init(&v33, v37, v27); CCTextInputNode::setString((int)this, (int)&v33); std::string::~string((int)&v33); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source