// // CCTextInputNode::scrollWheel from 0x6c4310 to 0x6c46b4 (932 bytes) // // 3 xrefs: // > `non-virtual thunk to'CCTextInputNode::scrollWheel @ 0x6c46bc // > @ 0xe6080 // > @ 0x141ff40 // // 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:51:20 +0000 // __int64 __fastcall CCTextInputNode::scrollWheel(CCTextInputNode *this, float a2, float a3) { int v4; // w2 unsigned int v6; // w20 cocos2d::CCEGLView *v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x20 cocos2d::CCDirector *v11; // x24 const cocos2d::CCSize *v12; // x0 unsigned __int8 v13; // w0 _BOOL8 isCoveredByPopup; // x0 __int64 v15; // x0 cocos2d::CCDirector *v16; // x0 float v17; // s9 char *v18; // x0 float v19; // s0 float v20; // s9 float v21; // s0 float v22; // s2 int v23; // w0 int v24; // w3 size_t v25; // x0 int v26; // w4 unsigned __int64 v27; // x5 int v28; // w3 unsigned __int64 v29; // x1 int v30; // w2 __int64 v31; // x0 __int64 v32; // [xsp+58h] [xbp+58h] BYREF __int64 v33; // [xsp+60h] [xbp+60h] BYREF float v34; // [xsp+68h] [xbp+68h] BYREF float v35; // [xsp+6Ch] [xbp+6Ch] _QWORD v36[2]; // [xsp+70h] [xbp+70h] BYREF __int64 v37; // [xsp+80h] [xbp+80h] BYREF unsigned __int64 v38; // [xsp+88h] [xbp+88h] char *v39; // [xsp+90h] [xbp+90h] char s[32]; // [xsp+98h] [xbp+98h] BYREF v4 = *((_DWORD *)this + 175); v6 = (unsigned int)(v4 - 1) > 2 && v4 != 5; if ( (unsigned int)(v4 - 1) > 2 && v4 != 5 ) return 0; if ( v4 != 5 ) { LABEL_3: if ( (unsigned __int8)CCTextInputNode::isVisibleInTree(this) ) { v8 = (cocos2d::CCEGLView *)(*(unsigned __int8 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)this + 992LL))(this); if ( (_BYTE)v8 ) { v9 = (cocos2d::CCDirector *)cocos2d::CCEGLView::sharedOpenGLView(v8); v10 = v9; if ( v9 ) { v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); (*(void (__fastcall **)(_QWORD *__return_ptr, cocos2d::CCDirector *))(*(_QWORD *)v10 + 184LL))(v36, v10); cocos2d::CCDirector::convertToGL(&v32, v11, (const cocos2d::CCPoint *)v36); cocos2d::CCNode::convertToNodeSpace(&v33, this, (const cocos2d::CCPoint *)&v32); v12 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v34, v12); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v36, (float)-v34 * 0.5, (float)-v35 * 0.5, v34, v35); v13 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v36, (const cocos2d::CCPoint *)&v33); v6 = v13; if ( v13 ) { isCoveredByPopup = CCTextInputNode::isCoveredByPopup(this); if ( !isCoveredByPopup ) { v15 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)isCoveredByPopup); v16 = (cocos2d::CCDirector *)*(unsigned __int8 *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 192LL))(v15) + 128); if ( (_DWORD)v16 ) { v17 = 10.0; } else { v31 = cocos2d::CCDirector::sharedDirector(v16); if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 192LL))(v31) + 129) || (v17 = 0.1, *((_DWORD *)this + 175) != 1) ) { v17 = 1.0; } } if ( a2 >= 0.0 ) v17 = -v17; CCTextInputNode::getString(this, &v37); v18 = (char *)&v37 + 1; if ( (v37 & 1) != 0 ) v18 = v39; v19 = atof(v18); v20 = v17 + v19; if ( (v37 & 1) != 0 ) operator delete(v39); if ( *((_BYTE *)this + 660) ) { v21 = *((float *)this + 166); v22 = v21; if ( v20 >= v21 ) v22 = v20; if ( v22 > *((float *)this + 167) ) { v20 = *((float *)this + 167); } else if ( v20 < v21 ) { v20 = *((float *)this + 166); } } v23 = *((_DWORD *)this + 175); if ( v23 == 1 ) { snprintf(s, 0x20u, "%.*f", *((_DWORD *)this + 176), v20); } else { v24 = (int)v20; if ( (int)v20 < 0 && ((v23 - 3) & 0xFFFFFFFD) == 0 ) v24 = 0; snprintf(s, 0x20u, "%d", v24); } v37 = 0; v38 = 0; v39 = nullptr; v25 = strlen(s); std::string::__init(&v37, s, v25); CCTextInputNode::setString(this, (char *)&v37); if ( (v37 & 1) == 0 ) return v6; LABEL_30: operator delete(v39); return v6; } } } } } return 0; } CCTextInputNode::getString(this, &v37); v26 = v37 & 1; if ( v26 ) { v27 = v38; v28 = (int)(unsigned __int8)v37 >> 1; if ( !v38 ) goto LABEL_30; } else { v28 = (int)(unsigned __int8)v37 >> 1; if ( !v28 ) return v6; v27 = v38; } v29 = 0; if ( !v26 ) goto LABEL_38; LABEL_34: if ( v29 >= v27 ) { operator delete(v39); goto LABEL_3; } v30 = (unsigned __int8)v39[v29]; if ( v30 == 45 ) { LABEL_36: if ( v29 ) goto LABEL_40; goto LABEL_37; } LABEL_40: while ( (unsigned __int8)(v30 - 48) <= 9u ) { LABEL_37: ++v29; if ( v26 ) goto LABEL_34; LABEL_38: if ( v29 >= v28 ) goto LABEL_3; v30 = *((unsigned __int8 *)&v37 + v29 + 1); if ( v30 == 45 ) goto LABEL_36; } if ( v26 ) operator delete(v39); return v6; }