; ; CCAnimatedSprite::loadType from 0x2e3d9c to 0x2e406a (718 bytes) ; ; 1 xrefs: ; > CCAnimatedSprite::initWithType @ 0x2e4130 ; ; 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 ; PUSH.W {R4-R11,LR} ; +0x0, 0x2e3d9c MOV R4, R0 ; +0x4, 0x2e3da0 VPUSH {D8} ; +0x6, 0x2e3da2 MOV R10, R2 ; +0xa, 0x2e3da6 LDR R6, =(__stack_chk_guard_ptr - 0x2E3DB0) ; +0xc, 0x2e3da8 MOV R11, R1 ; +0xe, 0x2e3daa ADD R6, PC; __stack_chk_guard_ptr ; +0x10, 0x2e3dac LDR R6, [R6]; __stack_chk_guard ; +0x12, 0x2e3dae SUB SP, SP, #0x34 ; +0x14, 0x2e3db0 ADD R5, SP, #0x34+var_18 ; +0x16, 0x2e3db2 ADD.W R8, SP, #0x34+var_1C ; +0x18, 0x2e3db4 STR R3, [SP,#0x34+var_24] ; +0x1c, 0x2e3db8 LDR R3, [R6] ; +0x1e, 0x2e3dba MOV R2, R8 ; +0x20, 0x2e3dbc MOV R0, R5; int ; +0x22, 0x2e3dbe STR R3, [SP,#0x34+var_8] ; +0x24, 0x2e3dc0 BL sub_776584 ; +0x26, 0x2e3dc2 MOV R1, R5 ; +0x2a, 0x2e3dc6 ADD.W R0, R4, #0x1FC ; +0x2c, 0x2e3dc8 BL sub_774DBC ; +0x30, 0x2e3dcc MOV R7, R0 ; +0x34, 0x2e3dd0 MOV R0, R5 ; +0x36, 0x2e3dd2 BL sub_774008 ; +0x38, 0x2e3dd4 STR R6, [SP,#0x34+var_20] ; +0x3c, 0x2e3dd8 CMP R7, #0 ; +0x3e, 0x2e3dda BEQ.W loc_2E4052 ; +0x40, 0x2e3ddc MOV R0, R4; this ; +0x44, 0x2e3de0 BL _ZN16CCAnimatedSprite13cleanupSpriteEv; CCAnimatedSprite::cleanupSprite(void) ; +0x46, 0x2e3de2 BL _ZN13ObjectManager8instanceEv; ObjectManager::instance(void) ; +0x4a, 0x2e3de6 MOV R1, R11; char * ; +0x4e, 0x2e3dea BL _ZN13ObjectManager13getDefinitionEPKc; ObjectManager::getDefinition(char const*) ; +0x50, 0x2e3dec MOV R9, R0 ; +0x54, 0x2e3df0 CMP.W R10, #0 ; +0x56, 0x2e3df2 BNE loc_2E3E42 ; +0x5a, 0x2e3df6 LDR R1, =(aSpritesheet - 0x2E3E02); "spriteSheet" ; +0x5c, 0x2e3df8 MOV R0, R5; int ; +0x5e, 0x2e3dfa MOV R2, R8 ; +0x60, 0x2e3dfc ADD R1, PC; "spriteSheet" ; +0x62, 0x2e3dfe BL sub_776584 ; +0x64, 0x2e3e00 MOV R0, R9 ; +0x68, 0x2e3e04 MOV R1, R5 ; +0x6a, 0x2e3e06 BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x6c, 0x2e3e08 MOV R6, R0 ; +0x70, 0x2e3e0c MOV R0, R5 ; +0x72, 0x2e3e0e BL sub_774008 ; +0x74, 0x2e3e10 MOV R0, R6; this ; +0x78, 0x2e3e14 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x7a, 0x2e3e16 MOV R2, R8 ; +0x7e, 0x2e3e1a MOV R1, R0; char * ; +0x80, 0x2e3e1c MOV R0, R5; int ; +0x82, 0x2e3e1e BL sub_776584 ; +0x84, 0x2e3e20 LDR R1, =(aPng - 0x2E3E2C); ".png" ; +0x88, 0x2e3e24 MOV R0, R5; int ; +0x8a, 0x2e3e26 ADD R1, PC; ".png" ; +0x8c, 0x2e3e28 BL sub_774544 ; +0x8e, 0x2e3e2a BL _ZN7cocos2d14CCTextureCache18sharedTextureCacheEv; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x92, 0x2e3e2e LDR R1, [SP,#0x34+var_18]; char * ; +0x96, 0x2e3e32 MOVS R2, #0; bool ; +0x98, 0x2e3e34 BL _ZN7cocos2d14CCTextureCache8addImageEPKcb; cocos2d::CCTextureCache::addImage(char const*,bool) ; +0x9a, 0x2e3e36 MOV R10, R0 ; +0x9e, 0x2e3e3a MOV R0, R5 ; +0xa0, 0x2e3e3c BL sub_774008 ; +0xa2, 0x2e3e3e LDR R1, =(aUsefbf - 0x2E3E4C); "useFBF" ; +0xa6, 0x2e3e42 MOV R0, R5; int ; +0xa8, 0x2e3e44 MOV R2, R8 ; +0xaa, 0x2e3e46 ADD R1, PC; "useFBF" ; +0xac, 0x2e3e48 BL sub_776584 ; +0xae, 0x2e3e4a MOV R0, R9 ; +0xb2, 0x2e3e4e MOV R1, R5 ; +0xb4, 0x2e3e50 BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0xb6, 0x2e3e52 MOV R7, R0 ; +0xba, 0x2e3e56 MOV R0, R5 ; +0xbc, 0x2e3e58 BL sub_774008 ; +0xbe, 0x2e3e5a LDR R1, =(aUsepa - 0x2E3E68); "usePA" ; +0xc2, 0x2e3e5e MOV R0, R5; int ; +0xc4, 0x2e3e60 MOV R2, R8 ; +0xc6, 0x2e3e62 ADD R1, PC; "usePA" ; +0xc8, 0x2e3e64 BL sub_776584 ; +0xca, 0x2e3e66 MOV R0, R9 ; +0xce, 0x2e3e6a MOV R1, R5 ; +0xd0, 0x2e3e6c BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0xd2, 0x2e3e6e MOV R6, R0 ; +0xd6, 0x2e3e72 MOV R0, R5 ; +0xd8, 0x2e3e74 BL sub_774008 ; +0xda, 0x2e3e76 CBZ R7, loc_2E3E84 ; +0xde, 0x2e3e7a MOV R0, R7; this ; +0xe0, 0x2e3e7c BL _ZNK7cocos2d8CCString9boolValueEv; cocos2d::CCString::boolValue(void) ; +0xe2, 0x2e3e7e MOV R7, R0 ; +0xe6, 0x2e3e82 CBZ R6, loc_2E3E8E ; +0xe8, 0x2e3e84 MOV R0, R6; this ; +0xea, 0x2e3e86 BL _ZNK7cocos2d8CCString9boolValueEv; cocos2d::CCString::boolValue(void) ; +0xec, 0x2e3e88 MOV R6, R0 ; +0xf0, 0x2e3e8c LDR R1, =(aDefaultanimati - 0x2E3E9C); "defaultAnimation" ; +0xf2, 0x2e3e8e MOV R0, R5; int ; +0xf4, 0x2e3e90 MOV R2, R8 ; +0xf6, 0x2e3e92 ADD.W R3, R4, #0x218 ; +0xf8, 0x2e3e94 ADD R1, PC; "defaultAnimation" ; +0xfc, 0x2e3e98 STR R3, [SP,#0x34+var_28] ; +0xfe, 0x2e3e9a BL sub_776584 ; +0x100, 0x2e3e9c MOV R0, R9 ; +0x104, 0x2e3ea0 MOV R1, R5 ; +0x106, 0x2e3ea2 BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x108, 0x2e3ea4 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x10c, 0x2e3ea8 MOV R1, R0; char * ; +0x110, 0x2e3eac LDR R0, [SP,#0x34+var_28]; int ; +0x112, 0x2e3eae BL sub_7753D4 ; +0x114, 0x2e3eb0 MOV R0, R5 ; +0x118, 0x2e3eb4 BL sub_774008 ; +0x11a, 0x2e3eb6 CMP R7, #0 ; +0x11e, 0x2e3eba BEQ loc_2E3F30 ; +0x120, 0x2e3ebc MOVS R1, #0; float ; +0x122, 0x2e3ebe MOV R0, R5; this ; +0x124, 0x2e3ec0 MOV R2, R1; float ; +0x126, 0x2e3ec2 MOV R3, R1; float ; +0x128, 0x2e3ec4 STR R1, [SP,#0x34+var_34]; float ; +0x12a, 0x2e3ec6 VMOV.F32 S17, #0.5 ; +0x12c, 0x2e3ec8 BL _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x130, 0x2e3ecc MOV R1, R5; cocos2d::CCTexture2D * ; +0x134, 0x2e3ed0 MOV R0, R10; this ; +0x136, 0x2e3ed2 BL _ZN7cocos2d8CCSprite17createWithTextureEPNS_11CCTexture2DERKNS_6CCRectE; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const&) ; +0x138, 0x2e3ed4 LDR R3, [R0] ; +0x13c, 0x2e3ed8 MOV R8, R0 ; +0x13e, 0x2e3eda STR.W R0, [R4,#0x20C] ; +0x140, 0x2e3edc MOV R0, R4 ; +0x144, 0x2e3ee0 LDR R7, [R3,#0x5C] ; +0x146, 0x2e3ee2 LDR R3, [R4] ; +0x148, 0x2e3ee4 LDR.W R3, [R3,#0x9C] ; +0x14a, 0x2e3ee6 BLX R3 ; +0x14e, 0x2e3eea LDR R3, [R4] ; +0x150, 0x2e3eec LDR.W R3, [R3,#0x9C] ; +0x152, 0x2e3eee VLDR S16, [R0] ; +0x156, 0x2e3ef2 MOV R0, R4 ; +0x15a, 0x2e3ef6 BLX R3 ; +0x15c, 0x2e3ef8 VMUL.F32 S16, S16, S17 ; +0x15e, 0x2e3efa VMOV R1, S16; float ; +0x162, 0x2e3efe VLDR S15, [R0,#4] ; +0x166, 0x2e3f02 MOV R0, R5; this ; +0x16a, 0x2e3f06 VMUL.F32 S15, S15, S17 ; +0x16c, 0x2e3f08 VMOV R2, S15; float ; +0x170, 0x2e3f0c BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x174, 0x2e3f10 MOV R0, R8 ; +0x178, 0x2e3f14 MOV R1, R5 ; +0x17a, 0x2e3f16 BLX R7 ; +0x17c, 0x2e3f18 LDR R3, [R4] ; +0x17e, 0x2e3f1a MOV R0, R4 ; +0x180, 0x2e3f1c LDR.W R1, [R4,#0x20C] ; +0x182, 0x2e3f1e LDR.W R3, [R3,#0xDC] ; +0x186, 0x2e3f22 BLX R3 ; +0x18a, 0x2e3f26 LDR.W R3, [R4,#0x20C] ; +0x18c, 0x2e3f28 STR.W R3, [R4,#0x208] ; +0x190, 0x2e3f2c ADD R7, SP, #0x34+var_18 ; +0x194, 0x2e3f30 ADD.W R8, SP, #0x34+var_1C ; +0x196, 0x2e3f32 CMP R6, #0 ; +0x19a, 0x2e3f36 BEQ loc_2E3FC2 ; +0x19c, 0x2e3f38 LDR R1, =(aAnimdesc - 0x2E3F44); "animDesc" ; +0x19e, 0x2e3f3a MOV R0, R7; int ; +0x1a0, 0x2e3f3c MOV R2, R8 ; +0x1a2, 0x2e3f3e ADD R1, PC; "animDesc" ; +0x1a4, 0x2e3f40 BL sub_776584 ; +0x1a6, 0x2e3f42 MOV R0, R9 ; +0x1aa, 0x2e3f46 MOV R1, R7 ; +0x1ac, 0x2e3f48 BL _ZN7cocos2d12CCDictionary11valueForKeyERKSs; cocos2d::CCDictionary::valueForKey(std::string const&) ; +0x1ae, 0x2e3f4a BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1b2, 0x2e3f4e MOV R6, R0 ; +0x1b6, 0x2e3f52 MOV R0, R5 ; +0x1b8, 0x2e3f54 BL sub_774008 ; +0x1ba, 0x2e3f56 MOV R1, R10; char * ; +0x1be, 0x2e3f5a LDR R2, [SP,#0x34+var_24]; cocos2d::CCTexture2D * ; +0x1c0, 0x2e3f5c MOV R0, R6; this ; +0x1c2, 0x2e3f5e BL _ZN16CCPartAnimSprite18createWithAnimDescEPKcPN7cocos2d11CCTexture2DEb; CCPartAnimSprite::createWithAnimDesc(char const*,cocos2d::CCTexture2D *,bool) ; +0x1c4, 0x2e3f60 VMOV.F32 S17, #0.5 ; +0x1c8, 0x2e3f64 LDR R3, [R0] ; +0x1cc, 0x2e3f68 MOV R6, R0 ; +0x1ce, 0x2e3f6a STR.W R0, [R4,#0x210] ; +0x1d0, 0x2e3f6c MOV R0, R4 ; +0x1d4, 0x2e3f70 LDR.W R9, [R3,#0x5C] ; +0x1d6, 0x2e3f72 LDR R3, [R4] ; +0x1da, 0x2e3f76 LDR.W R3, [R3,#0x9C] ; +0x1dc, 0x2e3f78 BLX R3 ; +0x1e0, 0x2e3f7c LDR R3, [R4] ; +0x1e2, 0x2e3f7e LDR.W R3, [R3,#0x9C] ; +0x1e4, 0x2e3f80 VLDR S16, [R0] ; +0x1e8, 0x2e3f84 MOV R0, R4 ; +0x1ec, 0x2e3f88 BLX R3 ; +0x1ee, 0x2e3f8a VMUL.F32 S16, S16, S17 ; +0x1f0, 0x2e3f8c VMOV R1, S16; float ; +0x1f4, 0x2e3f90 VLDR S15, [R0,#4] ; +0x1f8, 0x2e3f94 MOV R0, R5; this ; +0x1fc, 0x2e3f98 VMUL.F32 S15, S15, S17 ; +0x1fe, 0x2e3f9a VMOV R2, S15; float ; +0x202, 0x2e3f9e BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x206, 0x2e3fa2 MOV R0, R6 ; +0x20a, 0x2e3fa6 MOV R1, R5 ; +0x20c, 0x2e3fa8 BLX R9 ; +0x20e, 0x2e3faa LDR R3, [R4] ; +0x210, 0x2e3fac MOV R0, R4 ; +0x212, 0x2e3fae LDR.W R1, [R4,#0x210] ; +0x214, 0x2e3fb0 LDR.W R3, [R3,#0xDC] ; +0x218, 0x2e3fb4 BLX R3 ; +0x21c, 0x2e3fb8 LDR.W R3, [R4,#0x210] ; +0x21e, 0x2e3fba STR.W R3, [R4,#0x208] ; +0x222, 0x2e3fbe MOVS R3, #0 ; +0x226, 0x2e3fc2 MOV R1, R11; char * ; +0x228, 0x2e3fc4 STR.W R3, [R4,#0x214] ; +0x22a, 0x2e3fc6 MOV R0, R7; int ; +0x22e, 0x2e3fca MOV R2, R8 ; +0x230, 0x2e3fcc BL sub_776584 ; +0x232, 0x2e3fce MOV R0, R4 ; +0x236, 0x2e3fd2 MOV R1, R7 ; +0x238, 0x2e3fd4 BL _ZN22SpriteAnimationManager15createWithOwnerEP16CCAnimatedSpriteSs; SpriteAnimationManager::createWithOwner(CCAnimatedSprite *,std::string) ; +0x23a, 0x2e3fd6 STR.W R0, [R4,#0x204] ; +0x23e, 0x2e3fda MOV R0, R7 ; +0x242, 0x2e3fde BL sub_774008 ; +0x244, 0x2e3fe0 LDR.W R0, [R4,#0x204]; this ; +0x248, 0x2e3fe4 BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x24c, 0x2e3fe8 LDR.W R0, [R4,#0x210] ; +0x250, 0x2e3fec CBZ R0, loc_2E3FFC ; +0x254, 0x2e3ff0 LDR R3, [R0] ; +0x256, 0x2e3ff2 MOVS R1, #0 ; +0x258, 0x2e3ff4 LDR.W R3, [R3,#0xA4] ; +0x25a, 0x2e3ff6 BLX R3 ; +0x25e, 0x2e3ffa LDR.W R0, [R4,#0x20C] ; +0x260, 0x2e3ffc CBZ R0, loc_2E400C ; +0x264, 0x2e4000 LDR R3, [R0] ; +0x266, 0x2e4002 MOVS R1, #0 ; +0x268, 0x2e4004 LDR.W R3, [R3,#0xA4] ; +0x26a, 0x2e4006 BLX R3 ; +0x26e, 0x2e400a LDR R3, [R4] ; +0x270, 0x2e400c MOV R0, R4 ; +0x272, 0x2e400e MOVS R1, #1 ; +0x274, 0x2e4010 LDR.W R3, [R3,#0xA4] ; +0x276, 0x2e4012 BLX R3 ; +0x27a, 0x2e4016 LDR.W R5, [R4,#0x204] ; +0x27c, 0x2e4018 LDR.W R1, [R4,#0x218]; char * ; +0x280, 0x2e401c MOV R0, R7; int ; +0x284, 0x2e4020 MOV R2, R8 ; +0x286, 0x2e4022 BL sub_776584 ; +0x288, 0x2e4024 MOV R0, R5 ; +0x28c, 0x2e4028 MOV R1, R7 ; +0x28e, 0x2e402a BL _ZN22SpriteAnimationManager12runAnimationESs; SpriteAnimationManager::runAnimation(std::string) ; +0x290, 0x2e402c MOV R0, R7 ; +0x294, 0x2e4030 BL sub_774008 ; +0x296, 0x2e4032 B loc_2E4052 ; +0x29a, 0x2e4036 B loc_2E403A ; +0x29c, 0x2e4038 MOV R0, R5 ; +0x29e, 0x2e403a BL sub_774008 ; +0x2a0, 0x2e403c BL __cxa_end_cleanup ; +0x2a4, 0x2e4040 B loc_2E403A ; +0x2a8, 0x2e4044 B loc_2E403A ; +0x2aa, 0x2e4046 B loc_2E403A ; +0x2ac, 0x2e4048 B loc_2E404E ; +0x2ae, 0x2e404a B loc_2E404E ; +0x2b0, 0x2e404c MOV R0, R7 ; +0x2b2, 0x2e404e B loc_2E403C ; +0x2b4, 0x2e4050 LDR R3, [SP,#0x34+var_20] ; +0x2b6, 0x2e4052 LDR R2, [SP,#0x34+var_8] ; +0x2b8, 0x2e4054 LDR R3, [R3] ; +0x2ba, 0x2e4056 CMP R2, R3 ; +0x2bc, 0x2e4058 BEQ loc_2E4060 ; +0x2be, 0x2e405a BLX __stack_chk_fail ; +0x2c0, 0x2e405c ADD SP, SP, #0x34 ; '4' ; +0x2c4, 0x2e4060 VPOP {D8} ; +0x2c6, 0x2e4062 POP.W {R4-R11,PC} ; +0x2ca, 0x2e4066