//
// cocos2d::CCArray::lastObject from 0x180007120 to 0x180007139 (25 bytes)
//
// 20 xrefs:
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e1fd
// > cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild @ 0x18008e4e0
// > cocos2d::CCTMXMapInfo::endElement @ 0x1800af2ea
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0b15
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0fe1
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b141d
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b18c0
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1a13
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1afb
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1b0c
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1ca8
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1cbc
// > cocos2d::CCDirector::checkSceneReference @ 0x1800be147
// > cocos2d::CCDirector::popScene @ 0x1800beb87
// > cocos2d::CCDirector::popSceneWithTransition @ 0x1800bec31
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x1800beda7
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x1800bedf0
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x1800bee24
// > cocos2d::CCDirector::replaceScene @ 0x1800bf1b2
// > ??> @ 0x1801438a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
struct cocos2d::CCObject *__fastcall cocos2d::CCArray::lastObject(cocos2d::CCArray *this)
{
cocos2d::ccArray *data; // rdx
data = this->data;
if ( data->num )
return data->arr[data->num - 1];
else
return nullptr;
}