// // cocos2d::extension::CCArrayForObjectSorting::removeSortedObject from 0x100416da0 to 0x100416ef7 (343 bytes) // // 1 xrefs: // > cocos2d::extension::CCTableView::_moveCellOutOfSight @ 0x100419a2d // // 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:30:11 +0000 // __int64 __fastcall cocos2d::extension::CCArrayForObjectSorting::removeSortedObject(__int64 a1, __int64 a2) { __int64 result; // rax unsigned int v3; // eax unsigned int v4; // r15d unsigned int v5; // r12d unsigned int *v6; // rax const void **v7; // r13 unsigned int v8; // r14d void *v9; // rax unsigned int v10; // eax const void *v11; // rax void *v12; // rax int v13; // r12d const void **v14; // [rsp+8h] [rbp-38h] result = sub_1007FEF90(a1); if ( (_DWORD)result ) { if ( a2 ) { v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 24LL))(a2); v4 = 0; if ( a1 ) { v5 = v3; v6 = *(unsigned int **)(a1 + 56); if ( *v6 ) { v7 = *((const void ***)v6 + 2); v14 = &v7[*v6 - 1]; v4 = 0; v8 = 0; do { if ( !*v7 ) break; v9 = __dynamic_cast( *v7, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, -2); v10 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v9 + 24LL))(v9); if ( v5 == v10 ) break; if ( v5 < v10 && v5 >= v8 ) break; ++v4; ++v7; v8 = v10; } while ( v7 <= v14 ); } } result = sub_1007FEF90(a1); if ( v4 < (unsigned int)result ) { v11 = (const void *)sub_1007FEFE0(a1, v4); v12 = __dynamic_cast( v11, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, -2); v13 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 24LL))(v12); result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 24LL))(a2); if ( v13 == (_DWORD)result ) return sub_1007FF150(a1, v4, 1); } } else { return sub_1007FEF90(a1); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source