; ; AchievementsLayer::loadPage from 0x422208 to 0x422462 (602 bytes) ; ; 3 xrefs: ; > AchievementsLayer::customSetup @ 0x422666 ; > AchievementsLayer::onNextPage @ 0x4226be ; > AchievementsLayer::onPrevPage @ 0x4226c8 ; ; 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:48:02 +0000 ; LDR R3, =(__stack_chk_guard_ptr - 0x422214) ; +0x0, 0x422208 CMP R1, #0 ; +0x2, 0x42220a PUSH.W {R4-R11,LR} ; +0x4, 0x42220c ADD R3, PC; __stack_chk_guard_ptr ; +0x8, 0x422210 LDR R3, [R3]; __stack_chk_guard ; +0xa, 0x422212 MOV R9, R0 ; +0xc, 0x422214 SUB SP, SP, #0x34 ; +0xe, 0x422216 STR.W R1, [R9,#0x1E0] ; +0x10, 0x422218 MOV R10, R1 ; +0x14, 0x42221c LDR R2, [R3] ; +0x16, 0x42221e IT GT ; +0x18, 0x422220 MOVGT R1, #1 ; +0x1a, 0x422222 LDR.W R0, [R0,#0x1E8] ; +0x1c, 0x422224 IT LE ; +0x20, 0x422228 MOVLE R1, #0 ; +0x22, 0x42222a STR R3, [SP,#0x34+var_30] ; +0x24, 0x42222c STR R2, [SP,#0x34+var_8] ; +0x26, 0x42222e LDR R3, [R0] ; +0x28, 0x422230 LDR.W R3, [R3,#0xAC] ; +0x2a, 0x422232 BLX R3 ; +0x2e, 0x422236 BL _ZN18AchievementManager11sharedStateEv; AchievementManager::sharedState(void) ; +0x30, 0x422238 LDR.W R4, [R0,#0x120] ; +0x34, 0x42223c BL _ZN18AchievementManager11sharedStateEv; AchievementManager::sharedState(void) ; +0x38, 0x422240 LDR R1, =(aGeometryAchSte - 0x42224A); "geometry.ach.steam01" ; +0x3c, 0x422244 ADD R1, PC; "geometry.ach.steam01" ; +0x3e, 0x422246 BL _ZN18AchievementManager19isAchievementEarnedEPKc; AchievementManager::isAchievementEarned(char const*) ; +0x40, 0x422248 CMP R0, #0 ; +0x44, 0x42224c BNE loc_4222FE ; +0x46, 0x42224e LDR.W R11, =(aGeometryAchSte - 0x42225E); "geometry.ach.steam01" ; +0x48, 0x422250 MOV R5, R0 ; +0x4c, 0x422254 LDR R3, =(aIdentifier - 0x422260); "identifier" ; +0x4e, 0x422256 MOV R7, R0 ; +0x50, 0x422258 ADD R11, PC; "geometry.ach.steam01" ; +0x52, 0x42225a ADD R3, PC; "identifier" ; +0x54, 0x42225c STR R3, [SP,#0x34+var_2C] ; +0x56, 0x42225e MOV R0, R4; this ; +0x58, 0x422260 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5a, 0x422262 CMP R5, R0 ; +0x5e, 0x422266 BCS loc_4222FE ; +0x60, 0x422268 MOV R1, R5; unsigned int ; +0x62, 0x42226a MOV R0, R4; this ; +0x64, 0x42226c BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x66, 0x42226e ADD R6, SP, #0x34+var_14 ; +0x6a, 0x422272 LDR R1, [SP,#0x34+var_2C] ; +0x6c, 0x422274 MOVS R2, #0xA ; +0x6e, 0x422276 STR R7, [SP,#0x34+var_14] ; +0x70, 0x422278 MOV.W R8, #0 ; +0x72, 0x42227a STR R7, [SP,#0x34+var_10] ; +0x76, 0x42227e STR R7, [SP,#0x34+var_C] ; +0x78, 0x422280 STR R0, [SP,#0x34+var_28] ; +0x7a, 0x422282 MOV R0, R6 ; +0x7c, 0x422284 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x7e, 0x422286 LDR R3, [SP,#0x34+var_28] ; +0x82, 0x42228a MOV R1, R6 ; +0x84, 0x42228c MOV R0, R3 ; +0x86, 0x42228e BL _ZN7cocos2d12CCDictionary11valueForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::valueForKey(std::string const&) ; +0x88, 0x422290 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x8c, 0x422294 STR.W R8, [SP,#0x34+var_20] ; +0x90, 0x422298 STR.W R8, [SP,#0x34+var_1C] ; +0x94, 0x42229c STR.W R8, [SP,#0x34+var_18] ; +0x98, 0x4222a0 ADD.W R8, SP, #0x34+var_20 ; +0x9c, 0x4222a4 STR R0, [SP,#0x34+var_28] ; +0xa0, 0x4222a8 BLX strlen ; +0xa2, 0x4222aa LDR R1, [SP,#0x34+var_28] ; +0xa6, 0x4222ae MOV R2, R0 ; +0xa8, 0x4222b0 MOV R0, R8 ; +0xaa, 0x4222b2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xac, 0x4222b4 MOV R0, R6 ; +0xb0, 0x4222b8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb2, 0x4222ba MOV R0, R6 ; +0xb6, 0x4222be MOV R1, R11 ; +0xb8, 0x4222c0 MOVS R2, #0x14 ; +0xba, 0x4222c2 STR R7, [SP,#0x34+var_14] ; +0xbc, 0x4222c4 STR R7, [SP,#0x34+var_10] ; +0xbe, 0x4222c6 STR R7, [SP,#0x34+var_C] ; +0xc0, 0x4222c8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xc2, 0x4222ca MOV R1, R6 ; +0xc6, 0x4222ce MOV R0, R8 ; +0xc8, 0x4222d0 BL sub_421FCE ; +0xca, 0x4222d2 STR R0, [SP,#0x34+var_28] ; +0xce, 0x4222d6 MOV R0, R6 ; +0xd0, 0x4222d8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd2, 0x4222da LDR R3, [SP,#0x34+var_28] ; +0xd6, 0x4222de CBZ R3, loc_4222F4 ; +0xd8, 0x4222e0 MOV R0, R4; this ; +0xda, 0x4222e2 MOV R1, R5; unsigned int ; +0xdc, 0x4222e4 MOVS R2, #1; bool ; +0xde, 0x4222e6 BL _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xe0, 0x4222e8 MOV R0, R8 ; +0xe4, 0x4222ec BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xe6, 0x4222ee B loc_4222FE ; +0xea, 0x4222f2 MOV R0, R8 ; +0xec, 0x4222f4 ADDS R5, #1 ; +0xee, 0x4222f6 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf0, 0x4222f8 B loc_422260 ; +0xf4, 0x4222fc BL _ZN18AchievementManager11sharedStateEv; AchievementManager::sharedState(void) ; +0xf6, 0x4222fe LDR R1, =(aGeometryAchSte_0 - 0x422308); "geometry.ach.steam02" ; +0xfa, 0x422302 ADD R1, PC; "geometry.ach.steam02" ; +0xfc, 0x422304 BL _ZN18AchievementManager19isAchievementEarnedEPKc; AchievementManager::isAchievementEarned(char const*) ; +0xfe, 0x422306 CMP R0, #0 ; +0x102, 0x42230a BNE loc_4223BC ; +0x104, 0x42230c LDR.W R11, =(aGeometryAchSte_0 - 0x42231C); "geometry.ach.steam02" ; +0x106, 0x42230e MOV R5, R0 ; +0x10a, 0x422312 LDR R3, =(aIdentifier - 0x42231E); "identifier" ; +0x10c, 0x422314 MOV R7, R0 ; +0x10e, 0x422316 ADD R11, PC; "geometry.ach.steam02" ; +0x110, 0x422318 ADD R3, PC; "identifier" ; +0x112, 0x42231a STR R3, [SP,#0x34+var_2C] ; +0x114, 0x42231c MOV R0, R4; this ; +0x116, 0x42231e BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x118, 0x422320 CMP R5, R0 ; +0x11c, 0x422324 BCS loc_4223BC ; +0x11e, 0x422326 MOV R1, R5; unsigned int ; +0x120, 0x422328 MOV R0, R4; this ; +0x122, 0x42232a BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x124, 0x42232c ADD R6, SP, #0x34+var_14 ; +0x128, 0x422330 LDR R1, [SP,#0x34+var_2C] ; +0x12a, 0x422332 MOVS R2, #0xA ; +0x12c, 0x422334 STR R7, [SP,#0x34+var_14] ; +0x12e, 0x422336 MOV.W R8, #0 ; +0x130, 0x422338 STR R7, [SP,#0x34+var_10] ; +0x134, 0x42233c STR R7, [SP,#0x34+var_C] ; +0x136, 0x42233e STR R0, [SP,#0x34+var_28] ; +0x138, 0x422340 MOV R0, R6 ; +0x13a, 0x422342 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x13c, 0x422344 LDR R3, [SP,#0x34+var_28] ; +0x140, 0x422348 MOV R1, R6 ; +0x142, 0x42234a MOV R0, R3 ; +0x144, 0x42234c BL _ZN7cocos2d12CCDictionary11valueForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::valueForKey(std::string const&) ; +0x146, 0x42234e BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x14a, 0x422352 STR.W R8, [SP,#0x34+var_20] ; +0x14e, 0x422356 STR.W R8, [SP,#0x34+var_1C] ; +0x152, 0x42235a STR.W R8, [SP,#0x34+var_18] ; +0x156, 0x42235e ADD.W R8, SP, #0x34+var_20 ; +0x15a, 0x422362 STR R0, [SP,#0x34+var_28] ; +0x15e, 0x422366 BLX strlen ; +0x160, 0x422368 LDR R1, [SP,#0x34+var_28] ; +0x164, 0x42236c MOV R2, R0 ; +0x166, 0x42236e MOV R0, R8 ; +0x168, 0x422370 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x16a, 0x422372 MOV R0, R6 ; +0x16e, 0x422376 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x170, 0x422378 MOV R0, R6 ; +0x174, 0x42237c MOV R1, R11 ; +0x176, 0x42237e MOVS R2, #0x14 ; +0x178, 0x422380 STR R7, [SP,#0x34+var_14] ; +0x17a, 0x422382 STR R7, [SP,#0x34+var_10] ; +0x17c, 0x422384 STR R7, [SP,#0x34+var_C] ; +0x17e, 0x422386 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x180, 0x422388 MOV R1, R6 ; +0x184, 0x42238c MOV R0, R8 ; +0x186, 0x42238e BL sub_421FCE ; +0x188, 0x422390 STR R0, [SP,#0x34+var_28] ; +0x18c, 0x422394 MOV R0, R6 ; +0x18e, 0x422396 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x190, 0x422398 LDR R3, [SP,#0x34+var_28] ; +0x194, 0x42239c CBZ R3, loc_4223B2 ; +0x196, 0x42239e MOV R0, R4; this ; +0x198, 0x4223a0 MOV R1, R5; unsigned int ; +0x19a, 0x4223a2 MOVS R2, #1; bool ; +0x19c, 0x4223a4 BL _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x19e, 0x4223a6 MOV R0, R8 ; +0x1a2, 0x4223aa BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1a4, 0x4223ac B loc_4223BC ; +0x1a8, 0x4223b0 MOV R0, R8 ; +0x1aa, 0x4223b2 ADDS R5, #1 ; +0x1ac, 0x4223b4 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1ae, 0x4223b6 B loc_42231E ; +0x1b2, 0x4223ba BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1b4, 0x4223bc MOVS R3, #0xA ; +0x1b8, 0x4223c0 MUL R10, R3, R10 ; +0x1ba, 0x4223c2 MOV R6, R0 ; +0x1be, 0x4223c6 MOV R0, R4; this ; +0x1c0, 0x4223c8 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1c2, 0x4223ca MOV R7, R0 ; +0x1c6, 0x4223ce CBZ R4, loc_422404 ; +0x1c8, 0x4223d0 MOV R0, R4; this ; +0x1ca, 0x4223d2 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1cc, 0x4223d4 CBZ R0, loc_422404 ; +0x1d0, 0x4223d8 ADD.W R8, R10, #0xA ; +0x1d2, 0x4223da MOV R5, R10 ; +0x1d6, 0x4223de CMP R5, R8 ; +0x1d8, 0x4223e0 BEQ loc_422404 ; +0x1da, 0x4223e2 MOV R0, R4; this ; +0x1dc, 0x4223e4 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1de, 0x4223e6 SUBS R0, #1 ; +0x1e2, 0x4223ea CMP R5, R0 ; +0x1e4, 0x4223ec BHI loc_422404 ; +0x1e6, 0x4223ee MOV R1, R5; unsigned int ; +0x1e8, 0x4223f0 MOV R0, R4; this ; +0x1ea, 0x4223f2 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1ec, 0x4223f4 ADDS R5, #1 ; +0x1f0, 0x4223f8 MOV R1, R0; cocos2d::CCObject * ; +0x1f2, 0x4223fa MOV R0, R6; this ; +0x1f4, 0x4223fc BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x1f6, 0x4223fe B loc_4223E0 ; +0x1fa, 0x422402 MOV R0, R6; this ; +0x1fc, 0x422404 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1fe, 0x422406 ADD.W R5, R0, R10 ; +0x202, 0x42240a MOV R0, R4; this ; +0x206, 0x42240e BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x208, 0x422410 CMP R5, R0 ; +0x20c, 0x422414 LDR.W R0, [R9,#0x1E4] ; +0x20e, 0x422416 ITE CC ; +0x212, 0x42241a MOVCC R1, #1 ; +0x214, 0x42241c MOVCS R1, #0 ; +0x216, 0x42241e LDR R3, [R0] ; +0x218, 0x422420 LDR.W R3, [R3,#0xAC] ; +0x21a, 0x422422 BLX R3 ; +0x21e, 0x422426 MOV R2, R10; int ; +0x220, 0x422428 MOVS R3, #0xA; int ; +0x222, 0x42242a MOV R0, R9; this ; +0x224, 0x42242c MOV R1, R7; int ; +0x226, 0x42242e BL _ZN17AchievementsLayer13setupPageInfoEiii; AchievementsLayer::setupPageInfo(int,int,int) ; +0x228, 0x422430 MOV R0, R9; this ; +0x22c, 0x422434 MOV R1, R6; cocos2d::CCArray * ; +0x22e, 0x422436 BL _ZN17AchievementsLayer17setupLevelBrowserEPN7cocos2d7CCArrayE; AchievementsLayer::setupLevelBrowser(cocos2d::CCArray *) ; +0x230, 0x422438 LDR R3, [SP,#0x34+var_30] ; +0x234, 0x42243c LDR R2, [SP,#0x34+var_8] ; +0x236, 0x42243e LDR R3, [R3] ; +0x238, 0x422440 CMP R2, R3 ; +0x23a, 0x422442 BEQ loc_42245C ; +0x23c, 0x422444 BLX __stack_chk_fail ; +0x23e, 0x422446 B loc_422456 ; +0x242, 0x42244a MOV R0, R8 ; +0x244, 0x42244c BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x246, 0x42244e BL __cxa_end_cleanup ; +0x24a, 0x422452 MOV R0, R6 ; +0x24e, 0x422456 B loc_42244E ; +0x250, 0x422458 B loc_42244C ; +0x252, 0x42245a ADD SP, SP, #0x34 ; '4' ; +0x254, 0x42245c POP.W {R4-R11,PC} ; +0x256, 0x42245e