// // BoomScrollLayer::repositionPagesLooped from 0x1400419f0 to 0x140041f2f (1343 bytes) // // 4 xrefs: // > BoomScrollLayer::init @ 0x140040df1 // > BoomScrollLayer::instantMoveToPage @ 0x14004180c // > BoomScrollLayer::moveToPage @ 0x1400419d4 // > @ 0x14090f578 // // 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 11:25:29 +0000 // __int64 __fastcall BoomScrollLayer::repositionPagesLooped(__int64 a1) { signed int v2; // r12d cocos2d::CCArray *v3; // rcx signed int v4; // ecx signed int v5; // r15d cocos2d::CCArray *v6; // rcx signed int v7; // ecx signed int v8; // r14d cocos2d::CCArray *v9; // rcx signed int v10; // ecx signed int v11; // ebx signed int v12; // ecx struct cocos2d::CCObject *v13; // rdi int v14; // ebx float *v15; // rax int v16; // eax signed int v17; // ebp signed int v18; // edi cocos2d::CCArray *v19; // rcx signed int v20; // ecx signed int i; // edx struct cocos2d::CCObject *v22; // r13 int v23; // ebx float *v24; // rax cocos2d::CCArray *v25; // rcx signed int v26; // ecx signed int j; // edx struct cocos2d::CCObject *v28; // r13 int v29; // ebx float *v30; // rax unsigned int k; // ebx struct cocos2d::CCObject *v32; // rax cocos2d::CCArray *v33; // rcx signed int v34; // ebx signed int v35; // ecx struct cocos2d::CCObject *v36; // rax cocos2d::CCArray *v37; // rcx signed int v38; // ebx bool v39; // zf signed int v40; // ecx struct cocos2d::CCObject *v41; // r13 cocos2d::CCArray *v42; // rcx signed int v43; // ebx signed int v44; // ecx struct cocos2d::CCObject *v45; // rax void (__fastcall ***v46)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rdi struct cocos2d::CCObject *v47; // rbp void (__fastcall **v48)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rbx struct cocos2d::CCObject *v49; // rax void (__fastcall ***v50)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rdi void (__fastcall **v51)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rbx struct cocos2d::CCObject *v52; // rax void (__fastcall ***v53)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rdi void (__fastcall **v54)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rbx struct cocos2d::CCObject *v55; // rax __int64 v56; // rdx struct cocos2d::CCObject *v57; // rbx cocos2d::CCArray *v58; // rcx signed int v59; // ecx cocos2d::CCArray *v60; // rcx signed int v61; // ecx __int64 v62; // rdx __int64 v63; // rdx struct cocos2d::CCObject *v65; // [rsp+50h] [rbp+8h] BYREF v2 = *(_DWORD *)(a1 + 588); if ( *(_BYTE *)(a1 + 456) ) v3 = *(cocos2d::CCArray **)(a1 + 448); else v3 = *(cocos2d::CCArray **)(a1 + 480); v4 = cocos2d::CCArray::count(v3); if ( v2 <= 0 ) { for ( ; v2 < 0; v2 += v4 ) ; } else { v2 %= v4; } v5 = *(_DWORD *)(a1 + 588) - 1; if ( *(_BYTE *)(a1 + 456) ) v6 = *(cocos2d::CCArray **)(a1 + 448); else v6 = *(cocos2d::CCArray **)(a1 + 480); v7 = cocos2d::CCArray::count(v6); if ( v5 <= 0 ) { for ( ; v5 < 0; v5 += v7 ) ; } else { v5 %= v7; } v8 = *(_DWORD *)(a1 + 588) + 1; if ( *(_BYTE *)(a1 + 456) ) v9 = *(cocos2d::CCArray **)(a1 + 448); else v9 = *(cocos2d::CCArray **)(a1 + 480); v10 = cocos2d::CCArray::count(v9); if ( v8 <= 0 ) { for ( ; v8 < 0; v8 += v10 ) ; } else { v8 %= v10; } if ( *(_BYTE *)(a1 + 456) ) { v11 = *(_DWORD *)(a1 + 588); v12 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480)); if ( v11 <= 0 ) { for ( ; v11 < 0; v11 += v12 ) ; } else { v11 %= v12; } v13 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), v11); v14 = *(_DWORD *)(a1 + 588); v15 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, (float)(*v15 - *(float *)(a1 + 592)) * (float)v14, 0.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject **))(*(_QWORD *)v13 + 184LL))( v13, &v65); v16 = *(_DWORD *)(a1 + 588); v17 = v16 - 1; v18 = v16 + 1; } else { v17 = v5; v18 = v8; } v19 = *(cocos2d::CCArray **)(a1 + 480); if ( *(_BYTE *)(a1 + 456) ) { v20 = cocos2d::CCArray::count(v19); if ( v17 <= 0 ) { for ( i = v17; i < 0; i += v20 ) ; v19 = *(cocos2d::CCArray **)(a1 + 480); } else { i = v17 % v20; v19 = *(cocos2d::CCArray **)(a1 + 480); } } else { i = v17; } v22 = cocos2d::CCArray::objectAtIndex(v19, i); v23 = *(_DWORD *)(a1 + 588) - 1; v24 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, (float)(*v24 - *(float *)(a1 + 592)) * (float)v23, 0.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject **))(*(_QWORD *)v22 + 184LL))(v22, &v65); v25 = *(cocos2d::CCArray **)(a1 + 480); if ( *(_BYTE *)(a1 + 456) ) { v26 = cocos2d::CCArray::count(v25); if ( v18 <= 0 ) { for ( j = v18; j < 0; j += v26 ) ; v25 = *(cocos2d::CCArray **)(a1 + 480); } else { j = v18 % v26; v25 = *(cocos2d::CCArray **)(a1 + 480); } } else { j = v18; } v28 = cocos2d::CCArray::objectAtIndex(v25, j); v29 = *(_DWORD *)(a1 + 588) + 1; v30 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v65, (float)(*v30 - *(float *)(a1 + 592)) * (float)v29, 0.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject **))(*(_QWORD *)v28 + 184LL))(v28, &v65); for ( k = 0; k < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480)); ++k ) { v32 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), k); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v32 + 336LL))(v32, 0); } v33 = *(cocos2d::CCArray **)(a1 + 480); if ( *(_BYTE *)(a1 + 456) ) { v34 = *(_DWORD *)(a1 + 588); v35 = cocos2d::CCArray::count(v33); if ( v34 <= 0 ) { for ( ; v34 < 0; v34 += v35 ) ; } else { v34 %= v35; } v36 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), v34); v37 = *(cocos2d::CCArray **)(a1 + 480); v38 = *(_DWORD *)(a1 + 588) - 1; v39 = *(_BYTE *)(a1 + 456) == 0; v65 = v36; if ( !v39 ) { v40 = cocos2d::CCArray::count(v37); if ( v38 <= 0 ) { for ( ; v38 < 0; v38 += v40 ) ; } else { v38 %= v40; } v37 = *(cocos2d::CCArray **)(a1 + 480); } v41 = cocos2d::CCArray::objectAtIndex(v37, v38); v42 = *(cocos2d::CCArray **)(a1 + 480); v43 = *(_DWORD *)(a1 + 588) + 1; if ( *(_BYTE *)(a1 + 456) ) { v44 = cocos2d::CCArray::count(v42); if ( v43 <= 0 ) { for ( ; v43 < 0; v43 += v44 ) ; } else { v43 %= v44; } v42 = *(cocos2d::CCArray **)(a1 + 480); } v45 = cocos2d::CCArray::objectAtIndex(v42, v43); v46 = *(void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *))(a1 + 440); v47 = v45; v48 = *v46; v49 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 448), v2); (*v48)(v46, v65, v49); v50 = *(void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *))(a1 + 440); v51 = *v50; v52 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 448), v5); (*v51)(v50, v41, v52); v53 = *(void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *))(a1 + 440); v54 = *v53; v55 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 448), v8); (*v54)(v53, v47, v55); v57 = v65; } else { v57 = cocos2d::CCArray::objectAtIndex(v33, v2); v58 = *(cocos2d::CCArray **)(a1 + 480); if ( *(_BYTE *)(a1 + 456) ) { v59 = cocos2d::CCArray::count(v58); if ( v17 <= 0 ) { for ( ; v17 < 0; v17 += v59 ) ; } else { v17 %= v59; } v58 = *(cocos2d::CCArray **)(a1 + 480); } v41 = cocos2d::CCArray::objectAtIndex(v58, v17); v60 = *(cocos2d::CCArray **)(a1 + 480); if ( *(_BYTE *)(a1 + 456) ) { v61 = cocos2d::CCArray::count(v60); if ( v18 <= 0 ) { for ( ; v18 < 0; v18 += v61 ) ; } else { v18 %= v61; } v60 = *(cocos2d::CCArray **)(a1 + 480); } v47 = cocos2d::CCArray::objectAtIndex(v60, v18); } LOBYTE(v56) = 1; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v57 + 336LL))(v57, v56); LOBYTE(v62) = *(_BYTE *)(a1 + 553) == 0; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v41 + 336LL))(v41, v62); LOBYTE(v63) = *(_BYTE *)(a1 + 553) == 0; return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v47 + 336LL))(v47, v63); }
GD Web Decomp Icon

GD Web Decomp

Raw Source