// // BoomScrollLayer::setupDynamicScrolling from 0x140040ec0 to 0x140041168 (680 bytes) // // 2 xrefs: // > BoomScrollLayer::init @ 0x140040e0e // > @ 0x14090f494 // // 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 // unsigned int __fastcall BoomScrollLayer::setupDynamicScrolling(__int64 a1, cocos2d::CCObject *a2, __int64 a3) { cocos2d::CCObject *v4; // rcx cocos2d::CCArray *v6; // rcx struct cocos2d::CCObject *Object; // rbx float *v8; // rax struct cocos2d::CCObject *v9; // rbx float *v10; // rax struct cocos2d::CCObject *v11; // rbx float *v12; // rax void (__fastcall ***v13)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // r14 cocos2d::CCArray *v14; // rbx void (__fastcall **v15)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rsi struct cocos2d::CCObject *v16; // rdi struct cocos2d::CCObject *v17; // rax void (__fastcall ***v18)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // r14 cocos2d::CCArray *v19; // rbx void (__fastcall **v20)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rsi struct cocos2d::CCObject *v21; // rdi struct cocos2d::CCObject *v22; // rax void (__fastcall ***v23)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // r14 cocos2d::CCArray *v24; // rbx void (__fastcall **v25)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *); // rsi struct cocos2d::CCObject *v26; // rdi struct cocos2d::CCObject *v27; // rax unsigned int result; // eax cocos2d::CCArray *v29; // rcx unsigned int v30; // ebx struct cocos2d::CCObject *v31; // rbx char v32; // [rsp+50h] [rbp+8h] BYREF *(_QWORD *)(a1 + 440) = a3; v4 = *(cocos2d::CCObject **)(a1 + 448); if ( v4 ) cocos2d::CCObject::release(v4); *(_QWORD *)(a1 + 448) = a2; cocos2d::CCObject::retain(a2); v6 = *(cocos2d::CCArray **)(a1 + 480); *(_BYTE *)(a1 + 456) = 1; Object = cocos2d::CCArray::lastObject(v6); v8 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, (float)(*v8 - *(float *)(a1 + 592)) * -1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)Object + 184LL))(Object, &v32); v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), 0); v10 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, (float)(*v10 - *(float *)(a1 + 592)) * 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v9 + 184LL))(v9, &v32); v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), 1u); v12 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, *v12 - *(float *)(a1 + 592), 0.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v11 + 184LL))(v11, &v32); v13 = *(void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *))(a1 + 440); v14 = *(cocos2d::CCArray **)(a1 + 480); v15 = *v13; v16 = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 448)); v17 = cocos2d::CCArray::lastObject(v14); (*v15)(v13, v17, v16); v18 = *(void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *))(a1 + 440); v19 = *(cocos2d::CCArray **)(a1 + 480); v20 = *v18; v21 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 448), 0); v22 = cocos2d::CCArray::objectAtIndex(v19, 0); (*v20)(v18, v22, v21); v23 = *(void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, struct cocos2d::CCObject *))(a1 + 440); v24 = *(cocos2d::CCArray **)(a1 + 480); v25 = *v23; v26 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 448), 1u); v27 = cocos2d::CCArray::objectAtIndex(v24, 1u); (*v25)(v23, v27, v26); result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 448)); if ( result < 3 ) { v29 = *(cocos2d::CCArray **)(a1 + 480); *(_BYTE *)(a1 + 456) = 0; *(_BYTE *)(a1 + 436) = 0; v30 = cocos2d::CCArray::count(v29); result = cocos2d::CCArray::count(a2); if ( v30 > result ) { do { v31 = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 480)); cocos2d::CCArray::removeLastObject(*(cocos2d::CCArray **)(a1 + 480), 1); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v31 + 528LL))(v31); LODWORD(v31) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480)); result = cocos2d::CCArray::count(a2); } while ( (unsigned int)v31 > result ); } } return result; }