// // cocos2d::CCScheduler::update from 0xd24188 to 0xd24490 (776 bytes) // // 2 xrefs: // > @ 0x6a0a8 // > @ 0x1510aa8 // // 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:13 +0000 // __int64 __fastcall cocos2d::CCScheduler::update(cocos2d::CCScheduler *this, float a2) { float v3; // s1 float v4; // s8 __int64 v5; // x0 __int64 v6; // x19 __int64 v7; // x0 __int64 v8; // x19 __int64 v9; // x0 __int64 v10; // x19 __int64 *i; // x19 unsigned int v12; // w0 __int64 v13; // x1 __int64 v14; // x1 _QWORD *v15; // x1 __int64 result; // x0 unsigned int v17; // w19 unsigned int v18; // w1 __int64 v19; // x1 __int64 v20; // x19 __int64 v21; // x1 __int64 v22; // x19 __int64 v23; // x1 __int64 v24; // x19 v3 = *((float *)this + 14); v4 = a2; *((_BYTE *)this + 113) = 1; if ( v3 != 1.0 ) v4 = a2 * v3; v5 = *((_QWORD *)this + 8); if ( v5 ) { do { while ( 1 ) { v6 = *(_QWORD *)(v5 + 8); if ( !*(_BYTE *)(v5 + 28) && !*(_BYTE *)(v5 + 29) ) break; v5 = *(_QWORD *)(v5 + 8); if ( !v6 ) goto LABEL_9; } (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v5 + 16) + 40LL))(*(_QWORD *)(v5 + 16), v4); v5 = v6; } while ( v6 ); } LABEL_9: v7 = *((_QWORD *)this + 9); if ( v7 ) { do { while ( 1 ) { v8 = *(_QWORD *)(v7 + 8); if ( !*(_BYTE *)(v7 + 28) && !*(_BYTE *)(v7 + 29) ) break; v7 = *(_QWORD *)(v7 + 8); if ( !v8 ) goto LABEL_15; } (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v7 + 16) + 40LL))(*(_QWORD *)(v7 + 16), v4); v7 = v8; } while ( v8 ); } LABEL_15: v9 = *((_QWORD *)this + 10); if ( v9 ) { do { while ( 1 ) { v10 = *(_QWORD *)(v9 + 8); if ( !*(_BYTE *)(v9 + 28) && !*(_BYTE *)(v9 + 29) ) break; v9 = *(_QWORD *)(v9 + 8); if ( !v10 ) goto LABEL_21; } (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v9 + 16) + 40LL))(*(_QWORD *)(v9 + 16), v4); v9 = v10; } while ( v10 ); } LABEL_21: for ( i = *((__int64 **)this + 12); i; i = (__int64 *)i[7] ) { while ( 1 ) { *((_QWORD *)this + 13) = i; *((_BYTE *)this + 112) = 0; v12 = *((unsigned __int8 *)i + 33); if ( *((_BYTE *)i + 33) ) break; v13 = *i; *((_DWORD *)i + 4) = 0; if ( *(_DWORD *)v13 ) { do { while ( 1 ) { v14 = *(_QWORD *)(*(_QWORD *)(v13 + 16) + 8LL * v12); i[3] = v14; *((_BYTE *)i + 32) = 0; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 40LL))(v14, v4); if ( *((_BYTE *)i + 32) ) break; v13 = *i; v12 = *((_DWORD *)i + 4) + 1; i[3] = 0; *((_DWORD *)i + 4) = v12; if ( *(_DWORD *)v13 <= v12 ) goto LABEL_28; } cocos2d::CCObject::release((cocos2d::CCObject *)i[3]); i[3] = 0; v13 = *i; v12 = *((_DWORD *)i + 4) + 1; *((_DWORD *)i + 4) = v12; } while ( *(_DWORD *)v13 > v12 ); } LABEL_28: i = (__int64 *)i[7]; if ( *((_BYTE *)this + 112) && (v15 = *((_QWORD **)this + 13), !*(_DWORD *)*v15) ) { cocos2d::CCScheduler::removeHashElement((__int64)this, v15); if ( !i ) goto LABEL_31; } else if ( !i ) { goto LABEL_31; } } } LABEL_31: result = *((_QWORD *)this + 15); if ( result ) { result = cocos2d::CCArray::count((cocos2d::CCArray *)result); v17 = result - 1; if ( (int)result - 1 >= 0 ) { do { while ( 1 ) { result = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 15), v17); if ( !*(_BYTE *)(result + 73) ) break; v18 = v17--; result = cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 15), v18, 1); if ( v17 == -1 ) goto LABEL_39; } if ( !*(_BYTE *)(result + 72) ) result = (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(result + 64) + 40LL))( *(_QWORD *)(result + 64), v4); --v17; } while ( v17 != -1 ); } } LABEL_39: v19 = *((_QWORD *)this + 8); if ( v19 ) { do { while ( 1 ) { result = *(unsigned __int8 *)(v19 + 29); v20 = *(_QWORD *)(v19 + 8); if ( *(_BYTE *)(v19 + 29) ) break; v19 = *(_QWORD *)(v19 + 8); if ( !v20 ) goto LABEL_44; } result = cocos2d::CCScheduler::removeUpdateFromHash((__int64)this, (unsigned __int8 *)v19); v19 = v20; } while ( v20 ); } LABEL_44: v21 = *((_QWORD *)this + 9); if ( v21 ) { do { while ( 1 ) { result = *(unsigned __int8 *)(v21 + 29); v22 = *(_QWORD *)(v21 + 8); if ( *(_BYTE *)(v21 + 29) ) break; v21 = *(_QWORD *)(v21 + 8); if ( !v22 ) goto LABEL_49; } result = cocos2d::CCScheduler::removeUpdateFromHash((__int64)this, (unsigned __int8 *)v21); v21 = v22; } while ( v22 ); } LABEL_49: v23 = *((_QWORD *)this + 10); if ( v23 ) { do { while ( 1 ) { result = *(unsigned __int8 *)(v23 + 29); v24 = *(_QWORD *)(v23 + 8); if ( *(_BYTE *)(v23 + 29) ) break; v23 = *(_QWORD *)(v23 + 8); if ( !v24 ) goto LABEL_54; } result = cocos2d::CCScheduler::removeUpdateFromHash((__int64)this, (unsigned __int8 *)v23); v23 = v24; } while ( v24 ); } LABEL_54: *((_BYTE *)this + 113) = 0; *((_QWORD *)this + 13) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source