// // cocos2d::extension::CCScrollView::dCCScrollView from 0x1003e4170 to 0x1003e4357 (487 bytes) // // 5 xrefs: // > sub_1003E4420 @ 0x1003e4425 // > sub_1003E4430 @ 0x1003e443c // > sub_1003E4450 @ 0x1003e4459 // > sub_1003E4470 @ 0x1003e4483 // > sub_1004193C0 @ 0x100419506 // // 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 // __int64 __fastcall cocos2d::extension::CCScrollView::dCCScrollView(_QWORD *a1) { __int64 v2; // rdi int **v3; // r14 __int64 *v4; // rsi __int64 *v5; // r12 int *v6; // r15 int *v7; // rax __int64 *v8; // r15 __int64 *v9; // rax __int64 *v10; // rcx __int64 *v11; // rax int *v12; // rcx int *v13; // rax int *v14; // rcx bool v15; // zf __int64 *v17; // rcx *a1 = off_100B3CD30; a1[40] = off_100B3D1C8; a1[41] = &off_100B3D238; a1[42] = off_100B3D250; a1[43] = off_100B3D270; a1[44] = off_100B3D298; v2 = a1[62]; if ( v2 ) cocos2d::CCObject::release(v2); v3 = (int **)(a1 + 68); v4 = (__int64 *)a1[69]; if ( !v4 ) goto LABEL_27; v5 = a1 + 69; v6 = (int *)(a1 + 69); v7 = (int *)a1[69]; do { if ( v7[7] >= 0 ) v6 = v7; v7 = *(int **)&v7[2 * ((unsigned int)v7[7] >> 31)]; } while ( v7 ); if ( v6 == (int *)v5 || v6[7] > 0 ) goto LABEL_10; v12 = *((int **)v6 + 1); if ( v12 ) { do { v13 = v12; v12 = *(int **)v12; } while ( v12 ); } else { v14 = v6; do { v13 = *((int **)v14 + 2); v15 = *(_QWORD *)v13 == (_QWORD)v14; v14 = v13; } while ( !v15 ); } if ( *v3 == v6 ) *v3 = v13; --a1[70]; sub_1001454C0(v4, (__int64 *)v6); operator delete(v6); v4 = (__int64 *)a1[69]; if ( v4 ) { LABEL_10: v8 = a1 + 69; v9 = v4; do { if ( *((int *)v9 + 7) > 0 ) v8 = v9; v9 = (__int64 *)v9[*((_DWORD *)v9 + 7) <= 0]; } while ( v9 ); if ( v8 != v5 && *((int *)v8 + 7) <= 1 ) { v10 = (__int64 *)v8[1]; if ( v10 ) { do { v11 = v10; v10 = (__int64 *)*v10; } while ( v10 ); } else { v17 = v8; do { v11 = (__int64 *)v17[2]; v15 = *v11 == (_QWORD)v17; v17 = v11; } while ( !v15 ); } if ( *v3 == (int *)v8 ) *v3 = (int *)v11; --a1[70]; sub_1001454C0(v4, v8); operator delete(v8); v4 = (__int64 *)a1[69]; } } else { LABEL_27: v4 = nullptr; } sub_10001ADF0((__int64)(a1 + 68), v4); return sub_1004A9420(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source