// // cocos2d::extension::CCScrollView::registerScriptHandler from 0xd18710 to 0xd18824 (276 bytes) // // 1 xrefs: // > @ 0xadb48 // // 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:07:07 +0000 // __int64 __fastcall cocos2d::extension::CCScrollView::registerScriptHandler(__int64 **this, int a2, int a3) { __int64 **v6; // x23 __int64 v7; // x19 int v8; // w0 bool v9; // cc __int64 v10; // x0 int v11; // w0 __int64 *v12; // x1 __int64 *v13; // x0 __int64 **v15; // [xsp+40h] [xbp+40h] v6 = this + 69; cocos2d::extension::CCScrollView::unregisterScriptHandler((cocos2d::extension::CCScrollView *)this, a3); v7 = (__int64)*(this + 69); if ( v7 ) { v8 = *(_DWORD *)(v7 + 28); v9 = v8 < a3; if ( v8 <= a3 ) goto LABEL_5; while ( 1 ) { v10 = *(_QWORD *)v7; if ( !*(_QWORD *)v7 ) break; while ( 1 ) { v7 = v10; v11 = *(_DWORD *)(v10 + 28); v9 = v11 < a3; if ( v11 > a3 ) break; LABEL_5: if ( !v9 ) goto LABEL_13; v10 = *(_QWORD *)(v7 + 8); if ( !v10 ) { v15 = (__int64 **)v7; v6 = (__int64 **)(v7 + 8); goto LABEL_10; } } } v15 = (__int64 **)v7; v6 = (__int64 **)v7; } else { v15 = v6; } LABEL_10: v7 = operator new(0x28u); *(_QWORD *)v7 = 0; v12 = (__int64 *)v7; *(_DWORD *)(v7 + 28) = a3; *(_DWORD *)(v7 + 32) = 0; *(_QWORD *)(v7 + 8) = 0; *(_QWORD *)(v7 + 16) = v15; *v6 = (__int64 *)v7; v13 = (__int64 *)**(this + 68); if ( v13 ) { *(this + 68) = v13; v12 = *v6; } std::__tree_balance_after_insert *>(*(this + 69), v12); *(this + 70) = (__int64 *)((char *)*(this + 70) + 1); LABEL_13: *(_DWORD *)(v7 + 32) = a2; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source