; ; AchievementsLayer::customSetup from 0x422480 to 0x42268e (526 bytes) ; ; 0 xrefs: ; ; 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 ; PUSH.W {R4-R11,LR} ; +0x0, 0x422480 MOV R4, R0 ; +0x4, 0x422484 LDR R7, =(__stack_chk_guard_ptr - 0x422490) ; +0x6, 0x422486 VPUSH {D8} ; +0x8, 0x422488 ADD R7, PC; __stack_chk_guard_ptr ; +0xc, 0x42248c LDR R7, [R7]; __stack_chk_guard ; +0xe, 0x42248e LDR R3, [R7] ; +0x10, 0x422490 VMOV.F32 S17, #0.5 ; +0x12, 0x422492 SUB SP, SP, #0x44 ; +0x16, 0x422496 STR R3, [SP,#0x44+var_8] ; +0x18, 0x422498 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1a, 0x42249a MOV R1, R0 ; +0x1e, 0x42249e ADD R0, SP, #0x44+var_30; this ; +0x20, 0x4224a0 BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x22, 0x4224a2 BL _ZN15PlatformToolbox21isControllerConnectedEv; PlatformToolbox::isControllerConnected(void) ; +0x26, 0x4224a6 MOV R8, R0 ; +0x2a, 0x4224aa BL _ZN7cocos2d6CCMenu6createEv; cocos2d::CCMenu::create(void) ; +0x2c, 0x4224ac VLDR S15, [SP,#0x44+var_2C] ; +0x30, 0x4224b0 VMUL.F32 S17, S15, S17 ; +0x34, 0x4224b4 MOV R6, R0 ; +0x38, 0x4224b8 CMP.W R8, #0 ; +0x3a, 0x4224ba BNE loc_4224C6 ; +0x3e, 0x4224be LDR R0, =(aGjArrow01001Pn - 0x4224C6); "GJ_arrow_01_001.png" ; +0x40, 0x4224c0 ADD R0, PC; "GJ_arrow_01_001.png" ; +0x42, 0x4224c2 B loc_4224CA ; +0x44, 0x4224c4 LDR R0, =(aControllerbtnD_0 - 0x4224CC); "controllerBtn_DPad_Left_001.png" ; +0x46, 0x4224c6 ADD R0, PC; "controllerBtn_DPad_Left_001.png" ; +0x48, 0x4224c8 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x4a, 0x4224ca LDR R3, =(_ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE_ptr - 0x4224D8) ; +0x4e, 0x4224ce MOV R2, R4 ; +0x50, 0x4224d0 MOVS R1, #0 ; +0x52, 0x4224d2 ADD R3, PC; _ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE_ptr ; +0x54, 0x4224d4 LDR R3, [R3]; AchievementsLayer::onPrevPage(cocos2d::CCObject *) ; +0x56, 0x4224d6 STR R1, [SP,#0x44+var_44] ; +0x58, 0x4224d8 STR R3, [SP,#0x44+var_18] ; +0x5a, 0x4224da VMOV.F32 S16, #24.0 ; +0x5c, 0x4224dc STR R1, [SP,#0x44+var_14] ; +0x60, 0x4224e0 BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x62, 0x4224e2 ADD R5, SP, #0x44+var_20 ; +0x66, 0x4224e6 ADD.W R9, SP, #0x44+var_10 ; +0x68, 0x4224e8 STR.W R0, [R4,#0x1E8] ; +0x6c, 0x4224ec MOV R1, R0 ; +0x70, 0x4224f0 LDR R3, [R6] ; +0x72, 0x4224f2 MOV R0, R6 ; +0x74, 0x4224f4 LDR.W R3, [R3,#0xE4] ; +0x76, 0x4224f6 BLX R3 ; +0x7a, 0x4224fa LDR.W R10, [R4,#0x1E8] ; +0x7c, 0x4224fc LDR.W R3, [R10] ; +0x80, 0x422500 LDR.W R11, [R3,#0x5C] ; +0x84, 0x422504 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x88, 0x422508 BL _ZN7cocos2d10CCDirector13getScreenLeftEv; cocos2d::CCDirector::getScreenLeft(void) ; +0x8c, 0x42250c VMOV R2, S17; float ; +0x90, 0x422510 VMOV S15, R0 ; +0x94, 0x422514 MOV R0, R5; this ; +0x98, 0x422518 VADD.F32 S15, S15, S16 ; +0x9a, 0x42251a VMOV R1, S15; float ; +0x9e, 0x42251e BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa2, 0x422522 MOV R0, R9; this ; +0xa6, 0x422526 MOV R1, R6; cocos2d::CCPoint * ; +0xa8, 0x422528 MOV R2, R5 ; +0xaa, 0x42252a BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xac, 0x42252c MOV R0, R10 ; +0xb0, 0x422530 MOV R1, R9 ; +0xb2, 0x422532 BLX R11 ; +0xb4, 0x422534 CMP.W R8, #0 ; +0xb6, 0x422536 BNE loc_422542 ; +0xba, 0x42253a LDR R0, =(aGjArrow01001Pn - 0x422542); "GJ_arrow_01_001.png" ; +0xbc, 0x42253c ADD R0, PC; "GJ_arrow_01_001.png" ; +0xbe, 0x42253e B loc_422546 ; +0xc0, 0x422540 LDR R0, =(aControllerbtnD_1 - 0x422548); "controllerBtn_DPad_Right_001.png" ; +0xc2, 0x422542 ADD R0, PC; "controllerBtn_DPad_Right_001.png" ; +0xc4, 0x422544 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0xc6, 0x422546 MOV R10, R0 ; +0xca, 0x42254a CMP.W R8, #0 ; +0xcc, 0x42254c BNE loc_422558 ; +0xd0, 0x422550 MOVS R1, #1; bool ; +0xd2, 0x422552 BL _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0xd4, 0x422554 LDR R3, =(_ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE_ptr - 0x422566) ; +0xd8, 0x422558 MOV.W R9, #0 ; +0xda, 0x42255a MOV R2, R4 ; +0xde, 0x42255e MOV R0, R10 ; +0xe0, 0x422560 ADD R3, PC; _ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE_ptr ; +0xe2, 0x422562 LDR R3, [R3]; AchievementsLayer::onNextPage(cocos2d::CCObject *) ; +0xe4, 0x422564 MOV R1, R9 ; +0xe6, 0x422566 STR.W R9, [SP,#0x44+var_44] ; +0xe8, 0x422568 ADD.W R10, SP, #0x44+var_28 ; +0xec, 0x42256c STR R3, [SP,#0x44+var_10] ; +0xf0, 0x422570 STR.W R9, [SP,#0x44+var_C] ; +0xf2, 0x422572 BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0xf6, 0x422576 STR.W R0, [R4,#0x1E4] ; +0xfa, 0x42257a MOV R1, R0 ; +0xfe, 0x42257e LDR R3, [R6] ; +0x100, 0x422580 MOV R0, R6 ; +0x102, 0x422582 LDR.W R3, [R3,#0xE4] ; +0x104, 0x422584 BLX R3 ; +0x108, 0x422588 LDR.W R11, [R4,#0x1E4] ; +0x10a, 0x42258a LDR.W R3, [R11] ; +0x10e, 0x42258e LDR R3, [R3,#0x5C] ; +0x112, 0x422592 STR R3, [SP,#0x44+var_38] ; +0x114, 0x422594 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x116, 0x422596 BL _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x11a, 0x42259a VMOV R2, S17; float ; +0x11e, 0x42259e VMOV S15, R0 ; +0x122, 0x4225a2 MOV R0, R10; this ; +0x126, 0x4225a6 VSUB.F32 S16, S15, S16 ; +0x128, 0x4225a8 VMOV R1, S16; float ; +0x12c, 0x4225ac BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x130, 0x4225b0 MOV R2, R10 ; +0x134, 0x4225b4 MOV R1, R6; cocos2d::CCPoint * ; +0x136, 0x4225b6 MOV R0, R5; this ; +0x138, 0x4225b8 BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x13a, 0x4225ba MOV R0, R11 ; +0x13e, 0x4225be MOV R1, R5 ; +0x140, 0x4225c0 LDR R3, [SP,#0x44+var_38] ; +0x142, 0x4225c2 BLX R3 ; +0x144, 0x4225c4 LDR.W R0, [R4,#0x1D0] ; +0x146, 0x4225c6 MOVS R2, #0xA ; +0x14a, 0x4225ca MOV R1, R6 ; +0x14c, 0x4225cc LDR R3, [R0] ; +0x14e, 0x4225ce LDR.W R3, [R3,#0xE8] ; +0x150, 0x4225d0 BLX R3 ; +0x154, 0x4225d4 LDR R0, =(asc_B7533B - 0x4225DE); " " ; +0x156, 0x4225d6 LDR R1, =(aGoldfontFnt - 0x4225E0); "goldFont.fnt" ; +0x158, 0x4225d8 ADD R0, PC; " " ; +0x15a, 0x4225da ADD R1, PC; "goldFont.fnt" ; +0x15c, 0x4225dc BL _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x15e, 0x4225de MOV R1, R0 ; +0x162, 0x4225e2 STR.W R0, [R4,#0x1EC] ; +0x164, 0x4225e4 LDR.W R0, [R4,#0x1D0] ; +0x168, 0x4225e8 LDR R3, [R0] ; +0x16c, 0x4225ec LDR.W R3, [R3,#0xE4] ; +0x16e, 0x4225ee BLX R3 ; +0x172, 0x4225f2 LDR.W R6, [R4,#0x1EC] ; +0x174, 0x4225f4 LDR R3, [R6] ; +0x178, 0x4225f8 LDR.W R10, [R3,#0x5C] ; +0x17a, 0x4225fa BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x17e, 0x4225fe BL _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x182, 0x422602 VMOV S16, R0; this ; +0x186, 0x422606 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x18a, 0x42260a BL _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0x18e, 0x42260e VMOV.F32 S15, #4.0 ; +0x192, 0x422612 VMOV S14, R0 ; +0x196, 0x422616 MOV R0, R5; this ; +0x19a, 0x42261a VSUB.F32 S15, S14, S15 ; +0x19c, 0x42261c VMOV.F32 S14, #7.0 ; +0x1a0, 0x422620 VMOV R2, S15; float ; +0x1a4, 0x422624 VSUB.F32 S14, S16, S14 ; +0x1a8, 0x422628 VMOV R1, S14; float ; +0x1ac, 0x42262c BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b0, 0x422630 MOV R0, R6 ; +0x1b4, 0x422634 MOV R1, R5 ; +0x1b6, 0x422636 BLX R10 ; +0x1b8, 0x422638 LDR.W R6, [R4,#0x1EC] ; +0x1ba, 0x42263a MOV.W R1, #0x3F800000; float ; +0x1be, 0x42263e MOV R0, R5; this ; +0x1c2, 0x422642 MOV R2, R1; float ; +0x1c4, 0x422644 LDR R3, [R6] ; +0x1c6, 0x422646 LDR.W R10, [R3,#0x94] ; +0x1c8, 0x422648 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1cc, 0x42264c MOV R0, R6 ; +0x1d0, 0x422650 MOV R1, R5 ; +0x1d2, 0x422652 BLX R10 ; +0x1d4, 0x422654 LDR.W R0, [R4,#0x1EC] ; +0x1d6, 0x422656 LDR R1, =0x3F19999A ; +0x1da, 0x42265a LDR R3, [R0] ; +0x1dc, 0x42265c LDR R3, [R3,#0x50] ; +0x1de, 0x42265e BLX R3 ; +0x1e0, 0x422660 MOV R0, R4; this ; +0x1e2, 0x422662 MOV R1, R9; int ; +0x1e4, 0x422664 BL _ZN17AchievementsLayer8loadPageEi; AchievementsLayer::loadPage(int) ; +0x1e6, 0x422666 CMP.W R8, #0 ; +0x1ea, 0x42266a BEQ loc_422678 ; +0x1ee, 0x42266e LDR.W R0, [R4,#0x1D0]; this ; +0x1f0, 0x422670 BL _ZN11GameToolbox21addRThumbScrollButtonEPN7cocos2d7CCLayerE; GameToolbox::addRThumbScrollButton(cocos2d::CCLayer *) ; +0x1f4, 0x422674 LDR R2, [SP,#0x44+var_8] ; +0x1f8, 0x422678 LDR R3, [R7] ; +0x1fa, 0x42267a CMP R2, R3 ; +0x1fc, 0x42267c BEQ loc_422684 ; +0x1fe, 0x42267e BLX __stack_chk_fail ; +0x200, 0x422680 ADD SP, SP, #0x44 ; 'D' ; +0x204, 0x422684 VPOP {D8} ; +0x206, 0x422686 POP.W {R4-R11,PC} ; +0x20a, 0x42268a