// // cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID from 0x100417160 to 0x1004172a9 (329 bytes) // // 5 xrefs: // > cocos2d::extension::CCTableView::cellAtIndex @ 0x10041989c // > cocos2d::extension::CCTableView::updateCellAtIndex @ 0x10041994c // > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x100419cd2 // > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x100419eb4 // > cocos2d::extension::CCTableView::ccTouchBegan @ 0x10041a859 // // 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 // void *__fastcall cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(__int64 a1, unsigned int a2) { _QWORD *v2; // r15 unsigned int v3; // r12d unsigned int *v4; // rax const void **v5; // r13 unsigned int v6; // r14d void *v7; // rax unsigned int v8; // eax const void *v9; // rax void *v10; // r14 int v11; // ecx void *result; // rax const void **v13; // [rsp+8h] [rbp-38h] if ( !(unsigned int)sub_1007FEF90(a1) ) return nullptr; v2 = operator new(0x48u); cocos2d::CCObject::CCObject(v2); *v2 = off_100B3F110; v2[7] = off_100B3F180; *((_DWORD *)v2 + 16) = a2; v3 = 0; if ( a1 ) { v4 = *(unsigned int **)(a1 + 56); if ( *v4 ) { v5 = *((const void ***)v4 + 2); v13 = &v5[*v4 - 1]; v3 = 0; v6 = 0; do { if ( !*v5 ) break; v7 = __dynamic_cast( *v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, -2); v8 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v7 + 24LL))(v7); if ( v8 == a2 ) break; if ( v8 > a2 && v6 <= a2 ) break; ++v3; ++v5; v6 = v8; } while ( v5 <= v13 ); } } cocos2d::CCObject::release(v2); if ( v3 >= (unsigned int)sub_1007FEF90(a1) ) return nullptr; v9 = (const void *)sub_1007FEFE0(a1, v3); v10 = __dynamic_cast( v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, -2); v11 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v10 + 24LL))(v10); result = nullptr; if ( v11 == a2 ) return v10; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source