; ; CCAnimatedSprite::initWithType from 0x3c3bb0 to 0x3c3ca4 (244 bytes) ; ; 3 xrefs: ; > CCAnimatedSprite::createWithType @ 0x3c3d2c ; > GJRobotSprite::init @ 0x5e6b22 ; > AnimatedShopKeeper::init @ 0x611204 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; 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 11:46:32 +0000 ; PUSH.W {R4-R10,LR} ; +0x0, 0x3c3bb0 MOV R8, R3 ; +0x4, 0x3c3bb4 LDR R3, =(__stack_chk_guard_ptr - 0x3C3BC2) ; +0x6, 0x3c3bb6 MOV R7, R1 ; +0x8, 0x3c3bb8 SUB SP, SP, #0x38 ; +0xa, 0x3c3bba MOV R6, R0 ; +0xc, 0x3c3bbc ADD R3, PC; __stack_chk_guard_ptr ; +0xe, 0x3c3bbe LDR R3, [R3]; __stack_chk_guard ; +0x10, 0x3c3bc0 MOV R4, R2 ; +0x12, 0x3c3bc2 LDR R1, [R3] ; +0x14, 0x3c3bc4 MOV R9, R3 ; +0x16, 0x3c3bc6 STR R1, [SP,#0x38+var_4] ; +0x18, 0x3c3bc8 CMP R2, #0 ; +0x1a, 0x3c3bca BNE loc_3C3C44 ; +0x1c, 0x3c3bcc BL _ZN13ObjectManager8instanceEv; ObjectManager::instance(void) ; +0x1e, 0x3c3bce MOV R1, R7; char * ; +0x22, 0x3c3bd2 BL _ZN13ObjectManager13getDefinitionEPKc; ObjectManager::getDefinition(char const*) ; +0x24, 0x3c3bd4 STR R4, [SP,#0x38+var_20] ; +0x28, 0x3c3bd8 STR R4, [SP,#0x38+var_1C] ; +0x2a, 0x3c3bda MOVS R2, #0xB ; +0x2c, 0x3c3bdc STR R4, [SP,#0x38+var_18] ; +0x2e, 0x3c3bde ADD R4, SP, #0x38+var_20 ; +0x30, 0x3c3be0 LDR R1, =(aSpritesheet - 0x3C3BE8); "spriteSheet" ; +0x32, 0x3c3be2 ADD R1, PC; "spriteSheet" ; +0x34, 0x3c3be4 MOV R5, R0 ; +0x36, 0x3c3be6 MOV R0, R4 ; +0x38, 0x3c3be8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x3a, 0x3c3bea MOV R0, R5 ; +0x3e, 0x3c3bee MOV R1, R4 ; +0x40, 0x3c3bf0 BL _ZN7cocos2d12CCDictionary11valueForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::valueForKey(std::string const&) ; +0x42, 0x3c3bf2 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x46, 0x3c3bf6 MOVS R3, #0 ; +0x4a, 0x3c3bfa MOV R10, R0 ; +0x4c, 0x3c3bfc STR R3, [SP,#0x38+var_2C] ; +0x4e, 0x3c3bfe ADD R5, SP, #0x38+var_2C ; +0x50, 0x3c3c00 STR R3, [SP,#0x38+var_28] ; +0x52, 0x3c3c02 STR R3, [SP,#0x38+var_24] ; +0x54, 0x3c3c04 BLX strlen ; +0x56, 0x3c3c06 MOV R1, R10 ; +0x5a, 0x3c3c0a MOV R2, R0 ; +0x5c, 0x3c3c0c MOV R0, R5 ; +0x5e, 0x3c3c0e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x60, 0x3c3c10 MOV R0, R4 ; +0x64, 0x3c3c14 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x66, 0x3c3c16 LDR R1, =(aPng - 0x3C3C22); ".png" ; +0x6a, 0x3c3c1a MOV R0, R5; int ; +0x6c, 0x3c3c1c ADD R1, PC; ".png" ; +0x6e, 0x3c3c1e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x70, 0x3c3c20 BL _ZN7cocos2d14CCTextureCache18sharedTextureCacheEv; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x74, 0x3c3c24 LDRB.W R3, [SP,#0x38+var_2C] ; +0x78, 0x3c3c28 MOVS R2, #0; bool ; +0x7c, 0x3c3c2c LSLS R3, R3, #0x1F ; +0x7e, 0x3c3c2e ITE PL ; +0x80, 0x3c3c30 ADDPL.W R1, SP, #0x38+var_2C+1 ; +0x82, 0x3c3c32 LDRMI R1, [SP,#0x38+var_24]; char * ; +0x86, 0x3c3c36 BL _ZN7cocos2d14CCTextureCache8addImageEPKcb; cocos2d::CCTextureCache::addImage(char const*,bool) ; +0x88, 0x3c3c38 MOV R4, R0 ; +0x8c, 0x3c3c3c MOV R0, R5 ; +0x8e, 0x3c3c3e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x90, 0x3c3c40 ADD R5, SP, #0x38+var_14 ; +0x94, 0x3c3c44 MOVS R1, #0; float ; +0x96, 0x3c3c46 MOV R2, R1; float ; +0x98, 0x3c3c48 MOV R3, R1; float ; +0x9a, 0x3c3c4a STR R1, [SP,#0x38+var_38]; float ; +0x9c, 0x3c3c4c MOV R0, R5; this ; +0x9e, 0x3c3c4e BL _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xa0, 0x3c3c50 MOV R2, R5 ; +0xa4, 0x3c3c54 MOV R0, R6 ; +0xa6, 0x3c3c56 MOV R1, R4 ; +0xa8, 0x3c3c58 BL _ZN7cocos2d8CCSprite15initWithTextureEPNS_11CCTexture2DERKNS_6CCRectE; cocos2d::CCSprite::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const&) ; +0xaa, 0x3c3c5a MOV R5, R0 ; +0xae, 0x3c3c5e CBZ R0, loc_3C3C80 ; +0xb0, 0x3c3c60 LDR R1, =(unk_B6B226 - 0x3C3C72) ; +0xb2, 0x3c3c62 MOVS R3, #1 ; +0xb4, 0x3c3c64 ADD.W R0, R6, #0x1FC; int ; +0xb6, 0x3c3c66 STRB.W R3, [R6,#0x1D7] ; +0xba, 0x3c3c6a ADD R1, PC; unk_B6B226 ; char * ; +0xbe, 0x3c3c6e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xc0, 0x3c3c70 MOV R0, R6; this ; +0xc4, 0x3c3c74 MOV R1, R7; char * ; +0xc6, 0x3c3c76 MOV R2, R4; cocos2d::CCTexture2D * ; +0xc8, 0x3c3c78 MOV R3, R8; bool ; +0xca, 0x3c3c7a BL _ZN16CCAnimatedSprite8loadTypeEPKcPN7cocos2d11CCTexture2DEb; CCAnimatedSprite::loadType(char const*,cocos2d::CCTexture2D *,bool) ; +0xcc, 0x3c3c7c LDR R2, [SP,#0x38+var_4] ; +0xd0, 0x3c3c80 MOV R0, R5 ; +0xd2, 0x3c3c82 LDR.W R3, [R9] ; +0xd4, 0x3c3c84 CMP R2, R3 ; +0xd8, 0x3c3c88 BEQ loc_3C3C9E ; +0xda, 0x3c3c8a BLX __stack_chk_fail ; +0xdc, 0x3c3c8c MOV R0, R4 ; +0xe0, 0x3c3c90 B loc_3C3C96 ; +0xe2, 0x3c3c92 MOV R0, R5 ; +0xe4, 0x3c3c94 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xe6, 0x3c3c96 BL __cxa_end_cleanup ; +0xea, 0x3c3c9a ADD SP, SP, #0x38 ; '8' ; +0xee, 0x3c3c9e POP.W {R4-R10,PC} ; +0xf0, 0x3c3ca0