// // cocos2d::extension::CCScrollView::registerScriptHandler from 0x1003e6500 to 0x1003e6665 (357 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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:29:47 +0000 // void __fastcall cocos2d::extension::CCScrollView::registerScriptHandler(_QWORD *a1, int a2, int a3) { _QWORD *v5; // r13 __int64 v6; // rdi _QWORD *v7; // r12 _DWORD *v8; // rax _QWORD *v9; // rcx _QWORD *v10; // rax _QWORD *v11; // rcx bool v12; // zf _QWORD *v13; // rbx __int64 v14; // rax v5 = a1 + 69; v6 = a1[69]; v7 = v5; if ( v6 ) { v8 = (_DWORD *)v6; do { if ( v8[7] >= a3 ) v7 = v8; v8 = *(_DWORD **)&v8[2 * (v8[7] < a3)]; } while ( v8 ); if ( v7 != v5 && *((_DWORD *)v7 + 7) <= a3 ) { v9 = (_QWORD *)v7[1]; if ( v9 ) { do { v10 = v9; v9 = (_QWORD *)*v9; } while ( v9 ); } else { v11 = v7; do { v10 = (_QWORD *)v11[2]; v12 = *v10 == (_QWORD)v11; v11 = v10; } while ( !v12 ); } if ( (_QWORD *)a1[68] == v7 ) a1[68] = v10; --a1[70]; sub_1001454C0((__int64 *)v6, v7); operator delete(v7); v6 = a1[69]; } v7 = v5; LABEL_18: if ( v6 ) { do { v7 = (_QWORD *)v6; if ( *(_DWORD *)(v6 + 28) > a3 ) { v6 = *(_QWORD *)v6; v5 = v7; goto LABEL_18; } if ( *(_DWORD *)(v6 + 28) >= a3 ) goto LABEL_26; v6 = *(_QWORD *)(v6 + 8); } while ( v6 ); v5 = v7 + 1; } } v13 = v7; v7 = operator new(0x28u); *((_DWORD *)v7 + 7) = a3; *((_DWORD *)v7 + 8) = 0; *(_OWORD *)v7 = 0; v7[2] = v13; *v5 = v7; v14 = *(_QWORD *)a1[68]; if ( v14 ) a1[68] = v14; sub_10001B680((__int64 *)a1[69], v7); ++a1[70]; LABEL_26: *((_DWORD *)v7 + 8) = a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source