// // cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject from 0x100416ce0 to 0x100416d97 (183 bytes) // // 2 xrefs: // > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x100419cea // > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x100419ed6 // // 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::indexOfSortedObject(__int64 a1, __int64 a2) { unsigned int v2; // eax unsigned int v3; // ebx unsigned int v4; // r14d unsigned int *v5; // rax const void **v6; // r13 const void **v7; // r15 unsigned int v8; // r12d void *v9; // rax unsigned int v10; // eax if ( a2 ) { v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 24LL))(a2); v3 = 0; if ( a1 ) { v4 = v2; v5 = *(unsigned int **)(a1 + 56); if ( *v5 ) { v6 = *((const void ***)v5 + 2); v7 = &v6[*v5 - 1]; v3 = 0; v8 = 0; do { if ( !*v6 ) break; v9 = __dynamic_cast( *v6, (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 ( v4 == v10 ) break; if ( v4 < v10 && v4 >= v8 ) break; ++v3; ++v6; v8 = v10; } while ( v6 <= v7 ); } } } else { return (unsigned int)-1; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source