; ; AchievementsLayer::customSetup from 0x32d74c to 0x32d95a (526 bytes) ; ; 0 xrefs: ; ; 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, 0x32d74c MOV R4, R0 ; +0x4, 0x32d750 LDR R7, =(__stack_chk_guard_ptr - 0x32D75C) ; +0x6, 0x32d752 VPUSH {D8} ; +0x8, 0x32d754 ADD R7, PC; __stack_chk_guard_ptr ; +0xc, 0x32d758 LDR R7, [R7]; __stack_chk_guard ; +0xe, 0x32d75a LDR R3, [R7] ; +0x10, 0x32d75c VMOV.F32 S17, #0.5 ; +0x12, 0x32d75e SUB SP, SP, #0x44 ; +0x16, 0x32d762 STR R3, [SP,#0x44+var_8] ; +0x18, 0x32d764 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1a, 0x32d766 MOV R1, R0 ; +0x1e, 0x32d76a ADD R0, SP, #0x44+var_30; this ; +0x20, 0x32d76c BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x22, 0x32d76e BL _ZN15PlatformToolbox21isControllerConnectedEv; PlatformToolbox::isControllerConnected(void) ; +0x26, 0x32d772 MOV R8, R0 ; +0x2a, 0x32d776 BL _ZN7cocos2d6CCMenu6createEv; cocos2d::CCMenu::create(void) ; +0x2c, 0x32d778 VLDR S15, [SP,#0x44+var_2C] ; +0x30, 0x32d77c VMUL.F32 S17, S15, S17 ; +0x34, 0x32d780 MOV R6, R0 ; +0x38, 0x32d784 CMP.W R8, #0 ; +0x3a, 0x32d786 BNE loc_32D792 ; +0x3e, 0x32d78a LDR R0, =(aGjArrow01001Pn - 0x32D792); "GJ_arrow_01_001.png" ; +0x40, 0x32d78c ADD R0, PC; "GJ_arrow_01_001.png" ; +0x42, 0x32d78e B loc_32D796 ; +0x44, 0x32d790 LDR R0, =(aControllerbtnD_0 - 0x32D798); "controllerBtn_DPad_Left_001.png" ; +0x46, 0x32d792 ADD R0, PC; "controllerBtn_DPad_Left_001.png" ; +0x48, 0x32d794 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x4a, 0x32d796 LDR R3, =(_ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE_ptr - 0x32D7A4) ; +0x4e, 0x32d79a MOV R2, R4 ; +0x50, 0x32d79c MOVS R1, #0 ; +0x52, 0x32d79e ADD R3, PC; _ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE_ptr ; +0x54, 0x32d7a0 LDR R3, [R3]; AchievementsLayer::onPrevPage(cocos2d::CCObject *) ; +0x56, 0x32d7a2 STR R1, [SP,#0x44+var_44] ; +0x58, 0x32d7a4 STR R3, [SP,#0x44+var_18] ; +0x5a, 0x32d7a6 VMOV.F32 S16, #24.0 ; +0x5c, 0x32d7a8 STR R1, [SP,#0x44+var_14] ; +0x60, 0x32d7ac BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x62, 0x32d7ae LDR R3, [R6] ; +0x66, 0x32d7b2 ADD R5, SP, #0x44+var_20 ; +0x68, 0x32d7b4 ADD.W R9, SP, #0x44+var_10 ; +0x6a, 0x32d7b6 MOV R1, R0 ; +0x6e, 0x32d7ba STR.W R0, [R4,#0x1E8] ; +0x70, 0x32d7bc MOV R0, R6 ; +0x74, 0x32d7c0 LDR.W R3, [R3,#0xDC] ; +0x76, 0x32d7c2 BLX R3 ; +0x7a, 0x32d7c6 LDR.W R10, [R4,#0x1E8] ; +0x7c, 0x32d7c8 LDR.W R3, [R10] ; +0x80, 0x32d7cc LDR.W R11, [R3,#0x5C] ; +0x84, 0x32d7d0 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x88, 0x32d7d4 BL _ZN7cocos2d10CCDirector13getScreenLeftEv; cocos2d::CCDirector::getScreenLeft(void) ; +0x8c, 0x32d7d8 VMOV R2, S17; float ; +0x90, 0x32d7dc VMOV S15, R0 ; +0x94, 0x32d7e0 MOV R0, R5; this ; +0x98, 0x32d7e4 VADD.F32 S15, S15, S16 ; +0x9a, 0x32d7e6 VMOV R1, S15; float ; +0x9e, 0x32d7ea BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa2, 0x32d7ee MOV R0, R9; this ; +0xa6, 0x32d7f2 MOV R1, R6; cocos2d::CCPoint * ; +0xa8, 0x32d7f4 MOV R2, R5 ; +0xaa, 0x32d7f6 BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xac, 0x32d7f8 MOV R0, R10 ; +0xb0, 0x32d7fc MOV R1, R9 ; +0xb2, 0x32d7fe BLX R11 ; +0xb4, 0x32d800 CMP.W R8, #0 ; +0xb6, 0x32d802 BNE loc_32D80E ; +0xba, 0x32d806 LDR R0, =(aGjArrow01001Pn - 0x32D80E); "GJ_arrow_01_001.png" ; +0xbc, 0x32d808 ADD R0, PC; "GJ_arrow_01_001.png" ; +0xbe, 0x32d80a B loc_32D812 ; +0xc0, 0x32d80c LDR R0, =(aControllerbtnD_1 - 0x32D814); "controllerBtn_DPad_Right_001.png" ; +0xc2, 0x32d80e ADD R0, PC; "controllerBtn_DPad_Right_001.png" ; +0xc4, 0x32d810 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0xc6, 0x32d812 MOV R10, R0 ; +0xca, 0x32d816 CMP.W R8, #0 ; +0xcc, 0x32d818 BNE loc_32D824 ; +0xd0, 0x32d81c MOVS R1, #1; bool ; +0xd2, 0x32d81e BL _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0xd4, 0x32d820 LDR R3, =(_ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE_ptr - 0x32D832) ; +0xd8, 0x32d824 MOV.W R9, #0 ; +0xda, 0x32d826 MOV R2, R4 ; +0xde, 0x32d82a MOV R0, R10 ; +0xe0, 0x32d82c ADD R3, PC; _ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE_ptr ; +0xe2, 0x32d82e LDR R3, [R3]; AchievementsLayer::onNextPage(cocos2d::CCObject *) ; +0xe4, 0x32d830 MOV R1, R9 ; +0xe6, 0x32d832 STR.W R9, [SP,#0x44+var_44] ; +0xe8, 0x32d834 ADD.W R10, SP, #0x44+var_28 ; +0xec, 0x32d838 STR R3, [SP,#0x44+var_10] ; +0xf0, 0x32d83c STR.W R9, [SP,#0x44+var_C] ; +0xf2, 0x32d83e BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0xf6, 0x32d842 LDR R3, [R6] ; +0xfa, 0x32d846 MOV R1, R0 ; +0xfc, 0x32d848 STR.W R0, [R4,#0x1E4] ; +0xfe, 0x32d84a MOV R0, R6 ; +0x102, 0x32d84e LDR.W R3, [R3,#0xDC] ; +0x104, 0x32d850 BLX R3 ; +0x108, 0x32d854 LDR.W R11, [R4,#0x1E4] ; +0x10a, 0x32d856 LDR.W R3, [R11] ; +0x10e, 0x32d85a LDR R3, [R3,#0x5C] ; +0x112, 0x32d85e STR R3, [SP,#0x44+var_38] ; +0x114, 0x32d860 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x116, 0x32d862 BL _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x11a, 0x32d866 VMOV R2, S17; float ; +0x11e, 0x32d86a VMOV S15, R0 ; +0x122, 0x32d86e MOV R0, R10; this ; +0x126, 0x32d872 VSUB.F32 S16, S15, S16 ; +0x128, 0x32d874 VMOV R1, S16; float ; +0x12c, 0x32d878 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x130, 0x32d87c MOV R2, R10 ; +0x134, 0x32d880 MOV R1, R6; cocos2d::CCPoint * ; +0x136, 0x32d882 MOV R0, R5; this ; +0x138, 0x32d884 BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x13a, 0x32d886 MOV R0, R11 ; +0x13e, 0x32d88a MOV R1, R5 ; +0x140, 0x32d88c LDR R3, [SP,#0x44+var_38] ; +0x142, 0x32d88e BLX R3 ; +0x144, 0x32d890 LDR.W R0, [R4,#0x1D0] ; +0x146, 0x32d892 MOVS R2, #0xA ; +0x14a, 0x32d896 MOV R1, R6 ; +0x14c, 0x32d898 LDR R3, [R0] ; +0x14e, 0x32d89a LDR.W R3, [R3,#0xE0] ; +0x150, 0x32d89c BLX R3 ; +0x154, 0x32d8a0 LDR R0, =(asc_943A02 - 0x32D8AA); " " ; +0x156, 0x32d8a2 LDR R1, =(aGoldfontFnt - 0x32D8AC); "goldFont.fnt" ; +0x158, 0x32d8a4 ADD R0, PC; " " ; +0x15a, 0x32d8a6 ADD R1, PC; "goldFont.fnt" ; +0x15c, 0x32d8a8 BL _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x15e, 0x32d8aa MOV R1, R0 ; +0x162, 0x32d8ae STR.W R0, [R4,#0x1EC] ; +0x164, 0x32d8b0 LDR.W R0, [R4,#0x1D0] ; +0x168, 0x32d8b4 LDR R3, [R0] ; +0x16c, 0x32d8b8 LDR.W R3, [R3,#0xDC] ; +0x16e, 0x32d8ba BLX R3 ; +0x172, 0x32d8be LDR.W R6, [R4,#0x1EC] ; +0x174, 0x32d8c0 LDR R3, [R6] ; +0x178, 0x32d8c4 LDR.W R10, [R3,#0x5C] ; +0x17a, 0x32d8c6 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x17e, 0x32d8ca BL _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x182, 0x32d8ce VMOV S16, R0; this ; +0x186, 0x32d8d2 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x18a, 0x32d8d6 BL _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0x18e, 0x32d8da VMOV.F32 S15, #4.0 ; +0x192, 0x32d8de VMOV S14, R0 ; +0x196, 0x32d8e2 MOV R0, R5; this ; +0x19a, 0x32d8e6 VSUB.F32 S15, S14, S15 ; +0x19c, 0x32d8e8 VMOV.F32 S14, #7.0 ; +0x1a0, 0x32d8ec VMOV R2, S15; float ; +0x1a4, 0x32d8f0 VSUB.F32 S14, S16, S14 ; +0x1a8, 0x32d8f4 VMOV R1, S14; float ; +0x1ac, 0x32d8f8 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b0, 0x32d8fc MOV R0, R6 ; +0x1b4, 0x32d900 MOV R1, R5 ; +0x1b6, 0x32d902 BLX R10 ; +0x1b8, 0x32d904 LDR.W R6, [R4,#0x1EC] ; +0x1ba, 0x32d906 MOV.W R1, #0x3F800000; float ; +0x1be, 0x32d90a MOV R0, R5; this ; +0x1c2, 0x32d90e MOV R2, R1; float ; +0x1c4, 0x32d910 LDR R3, [R6] ; +0x1c6, 0x32d912 LDR.W R10, [R3,#0x8C] ; +0x1c8, 0x32d914 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1cc, 0x32d918 MOV R0, R6 ; +0x1d0, 0x32d91c MOV R1, R5 ; +0x1d2, 0x32d91e BLX R10 ; +0x1d4, 0x32d920 LDR.W R0, [R4,#0x1EC] ; +0x1d6, 0x32d922 LDR R1, =0x3F19999A ; +0x1da, 0x32d926 LDR R3, [R0] ; +0x1dc, 0x32d928 LDR R3, [R3,#0x50] ; +0x1de, 0x32d92a BLX R3 ; +0x1e0, 0x32d92c MOV R0, R4; this ; +0x1e2, 0x32d92e MOV R1, R9; int ; +0x1e4, 0x32d930 BL _ZN17AchievementsLayer8loadPageEi; AchievementsLayer::loadPage(int) ; +0x1e6, 0x32d932 CMP.W R8, #0 ; +0x1ea, 0x32d936 BEQ loc_32D944 ; +0x1ee, 0x32d93a LDR.W R0, [R4,#0x1D0]; this ; +0x1f0, 0x32d93c BL _ZN11GameToolbox21addRThumbScrollButtonEPN7cocos2d7CCLayerE; GameToolbox::addRThumbScrollButton(cocos2d::CCLayer *) ; +0x1f4, 0x32d940 LDR R2, [SP,#0x44+var_8] ; +0x1f8, 0x32d944 LDR R3, [R7] ; +0x1fa, 0x32d946 CMP R2, R3 ; +0x1fc, 0x32d948 BEQ loc_32D950 ; +0x1fe, 0x32d94a BLX __stack_chk_fail ; +0x200, 0x32d94c ADD SP, SP, #0x44 ; 'D' ; +0x204, 0x32d950 VPOP {D8} ; +0x206, 0x32d952 POP.W {R4-R11,PC} ; +0x20a, 0x32d956