// // ScrollableContentLayer::handleTouchMoved from 0x3f6498 to 0x3f6698 (512 bytes) // // 13 xrefs: // > CCTextInputNode::ccTouchMoved @ 0x3dccbc // > ScrollableContentLayer::feedTouchMoved @ 0x3f66b8 // > KeybindingsLayer::ccTouchMoved @ 0x58908e // > SetGroupIDLayer::ccTouchMoved @ 0x63953a // > NewsPopup::ccTouchMoved @ 0x6c16da // > ScrollViewPopup::ccTouchMoved @ 0x6ca146 // > DeathHistogram::handleTouchMoved @ 0x76734a // > DeathTrackerPopup::ccTouchMoved @ 0x770aea // > DropdownListPopup::ccTouchMoved @ 0x77705e // > EditorSFXActionConfigLayer::ccTouchMoved @ 0x77bc82 // > EditorSoundConfigInfoLayer::ccTouchMoved @ 0x784a06 // > EditorSoundsLayer::ccTouchMoved @ 0x78a0aa // > EditorWindowPopup::ccTouchMoved @ 0x78c5ee // // 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:17 +0000 // clock_t __fastcall ScrollableContentLayer::handleTouchMoved(ScrollableContentLayer *this, cocos2d::CCTouch *a2) { clock_t result; // r0 int v4; // r1 int v5; // r3 double v6; // d8 float v7; // s18 float v8; // s15 float v9; // s18 float v10; // s14 float v11; // s15 float v12; // s12 float v13; // s15 double v14; // d10 float v15; // s13 float v16; // s14 float v17; // s14 int v18; // r1 int v19; // r2 int v20; // r3 int v21; // r2 float v22; // s12 float v23; // s14 float v24; // s14 float v25; // s13 float v26; // s14 float v27; // s15 double v28; // d10 float v29; // s20 float v30; // [sp+4h] [bp-Ch] BYREF float v31; // [sp+8h] [bp-8h] result = *((_DWORD *)a2 + 13); if ( result == *((_DWORD *)this + 85) ) { cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)&v30); result = clock(); v5 = *((unsigned __int8 *)this + 444); v6 = (double)result / 1000000.0; if ( *((_BYTE *)this + 444) ) { v7 = *((float *)this + 88); v8 = v30; } else { v8 = *((float *)this + 89); v7 = v31; } v9 = v7 - v8; v10 = *((float *)this + 82); v11 = *((float *)this + 81); v12 = *((float *)this + 83); if ( !*((_BYTE *)this + 444) ) v11 = *((float *)this + 82); v13 = v12 - v11; v14 = *((double *)this + 45); if ( v13 < 0.0 ) v13 = 0.0; if ( *((_BYTE *)this + 396) ) { v15 = v10 - 6.0; v16 = (float)(v10 - 6.0) * (float)(v10 / v12); if ( v16 < 8.0 ) v16 = 8.0; if ( v16 > v15 ) v16 = v15; v17 = v15 - v16; if ( v17 < 1.0 ) v17 = 1.0; *((float *)this + 84) = *((float *)this + 101) - (float)((float)(v31 - *((float *)this + 100)) * (float)(v13 / v17)); ScrollableContentLayer::clampOffset((int)this); ScrollableContentLayer::applyContentPosition(this, v18, v19, v20); *((_DWORD *)this + 92) = 0; LABEL_38: result = cocos2d::CCPoint::operator=((char *)this + 352, &v30); *((double *)this + 45) = v6; return result; } v21 = *((unsigned __int8 *)this + 376); if ( *((_BYTE *)this + 376) ) { LABEL_23: v24 = *((float *)this + 84); if ( v24 < 0.0 && v9 < 0.0 ) { v25 = 0.5; } else if ( v24 <= v13 ) { v25 = 1.0; } else { v25 = 0.5; if ( v9 <= 0.0 ) v25 = 1.0; } v26 = v24 + (float)(v9 * v25); if ( v26 >= -30.0 ) { v27 = v13 + 30.0; if ( v26 <= v27 ) v27 = v26; *((float *)this + 84) = v27; } else { *((float *)this + 84) = -30.0; } ScrollableContentLayer::applyContentPosition(this, v4, v21, v5); v28 = v6 - v14; if ( v28 > 0.0001 ) { v29 = v28; *((float *)this + 92) = v9 / v29; } goto LABEL_38; } if ( *((_BYTE *)this + 444) ) { v22 = *((float *)this + 86); v23 = v30; } else { v22 = *((float *)this + 87); v23 = v31; } if ( fabsf(v23 - v22) >= 8.0 ) { v5 = 1; *((_BYTE *)this + 376) = 1; *((_BYTE *)this + 377) = 1; goto LABEL_23; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source