; ; AchievementManager::getAllAchievementsSorted from 0x2da25c to 0x2da332 (214 bytes) ; ; 2 xrefs: ; > AchievementManager::init @ 0x2da5b8 ; > AchievementManager::init @ 0x2da5c8 ; ; 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, 0x2da25c SUB SP, SP, #0x24 ; +0x4, 0x2da260 LDR R4, =(__stack_chk_guard_ptr - 0x2DA272) ; +0x6, 0x2da262 MOV R8, R0 ; +0x8, 0x2da264 LDR.W R0, [R0,#0x10C]; this ; +0xa, 0x2da266 ADD.W R9, SP, #0x24+var_10 ; +0xe, 0x2da26a ADD R4, PC; __stack_chk_guard_ptr ; +0x12, 0x2da26e LDR R4, [R4]; __stack_chk_guard ; +0x14, 0x2da270 STR R1, [SP,#0x24+var_20] ; +0x16, 0x2da272 MOVS R6, #0 ; +0x18, 0x2da274 LDR R3, [R4] ; +0x1a, 0x2da276 MOV R11, R4 ; +0x1c, 0x2da278 ADD R4, SP, #0x24+var_C ; +0x1e, 0x2da27a STR R3, [SP,#0x24+var_8] ; +0x20, 0x2da27c BL _ZN7cocos2d12CCDictionary7allKeysEv; cocos2d::CCDictionary::allKeys(void) ; +0x22, 0x2da27e MOV R7, R0 ; +0x26, 0x2da282 BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x28, 0x2da284 LDR R3, =(aUn - 0x2DA28E); "un" ; +0x2c, 0x2da288 ADD R3, PC; "un" ; +0x2e, 0x2da28a STR R3, [SP,#0x24+var_1C] ; +0x30, 0x2da28c MOV R5, R0 ; +0x32, 0x2da28e MOV R0, R7; this ; +0x34, 0x2da290 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x2da292 CMP R6, R0 ; +0x3a, 0x2da296 BCS loc_2DA2F6 ; +0x3c, 0x2da298 MOV R1, R6; unsigned int ; +0x3e, 0x2da29a MOV R0, R7; this ; +0x40, 0x2da29c BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x42, 0x2da29e BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x46, 0x2da2a2 LDR.W R10, [R8,#0x10C] ; +0x4a, 0x2da2a6 MOV R2, R9 ; +0x4e, 0x2da2aa MOV R1, R0; char * ; +0x50, 0x2da2ac MOV R0, R4; int ; +0x52, 0x2da2ae BL sub_776584 ; +0x54, 0x2da2b0 MOV R0, R10 ; +0x58, 0x2da2b4 MOV R1, R4 ; +0x5a, 0x2da2b6 BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x5c, 0x2da2b8 MOV R10, R0 ; +0x60, 0x2da2bc MOV R0, R4 ; +0x62, 0x2da2be BL sub_774008 ; +0x64, 0x2da2c0 LDR R3, [SP,#0x24+var_20] ; +0x68, 0x2da2c4 CBNZ R3, loc_2DA2D2 ; +0x6a, 0x2da2c6 MOV R0, R5; this ; +0x6c, 0x2da2c8 MOV R1, R10; cocos2d::CCObject * ; +0x6e, 0x2da2ca BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x70, 0x2da2cc B loc_2DA2F2 ; +0x74, 0x2da2d0 LDR R1, [SP,#0x24+var_1C]; char * ; +0x76, 0x2da2d2 MOV R0, R4; int ; +0x78, 0x2da2d4 MOV R2, R9 ; +0x7a, 0x2da2d6 BL sub_776584 ; +0x7c, 0x2da2d8 MOV R0, R10 ; +0x80, 0x2da2dc MOV R1, R4 ; +0x82, 0x2da2de BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x84, 0x2da2e0 STR R0, [SP,#0x24+var_18] ; +0x88, 0x2da2e4 MOV R0, R4 ; +0x8a, 0x2da2e6 BL sub_774008 ; +0x8c, 0x2da2e8 LDR R3, [SP,#0x24+var_18] ; +0x90, 0x2da2ec CMP R3, #0 ; +0x92, 0x2da2ee BEQ loc_2DA2C8 ; +0x94, 0x2da2f0 ADDS R6, #1 ; +0x96, 0x2da2f2 B loc_2DA290 ; +0x98, 0x2da2f4 MOV R0, R5; this ; +0x9a, 0x2da2f6 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x9c, 0x2da2f8 CBZ R0, loc_2DA310 ; +0xa0, 0x2da2fc LDR R3, [R5,#0x34] ; +0xa2, 0x2da2fe MOVS R2, #4; size_t ; +0xa4, 0x2da300 LDR R0, [R3,#0xC]; void * ; +0xa6, 0x2da302 LDR R1, [R3]; size_t ; +0xa8, 0x2da304 LDR R3, =(_Z18achievementComparePKvS0__ptr - 0x2DA30C) ; +0xaa, 0x2da306 ADD R3, PC; _Z18achievementComparePKvS0__ptr ; +0xac, 0x2da308 LDR R3, [R3]; achievementCompare(void const*,void const*) ; int (*)(const void *, const void *) ; +0xae, 0x2da30a BLX qsort ; +0xb0, 0x2da30c LDR R2, [SP,#0x24+var_8] ; +0xb4, 0x2da310 MOV R0, R5 ; +0xb6, 0x2da312 LDR.W R3, [R11] ; +0xb8, 0x2da314 CMP R2, R3 ; +0xbc, 0x2da318 BEQ loc_2DA32C ; +0xbe, 0x2da31a BLX __stack_chk_fail ; +0xc0, 0x2da31c B loc_2DA322 ; +0xc4, 0x2da320 MOV R0, R4 ; +0xc6, 0x2da322 BL sub_774008 ; +0xc8, 0x2da324 BL __cxa_end_cleanup ; +0xcc, 0x2da328 ADD SP, SP, #0x24 ; '$' ; +0xd0, 0x2da32c POP.W {R4-R11,PC} ; +0xd2, 0x2da32e