; ; AchievementsLayer::customSetup from 0x60850c to 0x6087c0 (692 bytes) ; ; 2 xrefs: ; > @ 0x80b50 ; > @ 0x114a988 ; ; 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 ; STP X29, X30, [SP,#var_80]! ; +0x0, 0x60850c MOV X29, SP ; +0x4, 0x608510 STP X21, X22, [SP,#0x80+var_60] ; +0x8, 0x608514 ADRP X22, #__stack_chk_guard_ptr@PAGE ; +0xc, 0x608518 STP X19, X20, [SP,#0x80+var_70] ; +0x10, 0x60851c MOV X19, X0 ; +0x14, 0x608520 LDR X0, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x608524 STR D8, [SP,#0x80+var_30] ; +0x1c, 0x608528 STP X23, X24, [SP,#0x80+var_50] ; +0x20, 0x60852c LDR X0, [X0]; this ; +0x24, 0x608530 STP X25, X26, [SP,#0x80+var_40] ; +0x28, 0x608534 STR X0, [X29,#0x80+var_8] ; +0x2c, 0x608538 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x60853c ADD X8, X29, #0x80+var_20 ; +0x34, 0x608540 BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x38, 0x608544 BL _ZN15PlatformToolbox21isControllerConnectedEv; PlatformToolbox::isControllerConnected(void) ; +0x3c, 0x608548 UXTB W24, W0 ; +0x40, 0x60854c BL _ZN7cocos2d6CCMenu6createEv; cocos2d::CCMenu::create(void) ; +0x44, 0x608550 MOV X21, X0 ; +0x48, 0x608554 FMOV S8, #0.5 ; +0x4c, 0x608558 LDR S0, [X29,#0x80+var_1C] ; +0x50, 0x60855c FMUL S8, S0, S8 ; +0x54, 0x608560 CBNZ W24, loc_608794 ; +0x58, 0x608564 ADRL X0, aGjArrow01001Pn; "GJ_arrow_01_001.png" ; +0x5c, 0x608568 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x64, 0x608570 ADD X23, X29, #0x80+var_18 ; +0x68, 0x608574 ADRP X3, #_ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE_ptr@PAGE ; +0x6c, 0x608578 MOV X4, #0 ; +0x70, 0x60857c MOV X2, X19 ; +0x74, 0x608580 MOV X1, #0 ; +0x78, 0x608584 ADD X20, X29, #0x80+var_10 ; +0x7c, 0x608588 LDR X3, [X3,#_ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE_ptr@PAGEOFF]; AchievementsLayer::onPrevPage(cocos2d::CCObject *) ... ; +0x80, 0x60858c BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x84, 0x608590 MOV X1, X0 ; +0x88, 0x608594 LDR X2, [X21] ; +0x8c, 0x608598 STR X0, [X19,#0x268] ; +0x90, 0x60859c MOV X0, X21 ; +0x94, 0x6085a0 LDR X2, [X2,#0x1B8] ; +0x98, 0x6085a4 BLR X2 ; +0x9c, 0x6085a8 LDR X25, [X19,#0x268] ; +0xa0, 0x6085ac LDR X0, [X25]; this ; +0xa4, 0x6085b0 LDR X26, [X0,#0xB8] ; +0xa8, 0x6085b4 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xac, 0x6085b8 BL _ZN7cocos2d10CCDirector13getScreenLeftEv; cocos2d::CCDirector::getScreenLeft(void) ; +0xb0, 0x6085bc FMOV S2, #24.0 ; +0xb4, 0x6085c0 MOV X0, X23; this ; +0xb8, 0x6085c4 FMOV S1, S8; float ; +0xbc, 0x6085c8 FADD S0, S0, S2; float ; +0xc0, 0x6085cc BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc4, 0x6085d0 MOV X0, X21; this ; +0xc8, 0x6085d4 MOV X1, X23; cocos2d::CCPoint * ; +0xcc, 0x6085d8 MOV X8, X20 ; +0xd0, 0x6085dc BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xd4, 0x6085e0 MOV X0, X25 ; +0xd8, 0x6085e4 MOV X1, X20 ; +0xdc, 0x6085e8 BLR X26 ; +0xe0, 0x6085ec CBZ W24, loc_6087A0 ; +0xe4, 0x6085f0 ADRL X0, aControllerbtnD_0; "controllerBtn_DPad_Right_001.png" ; +0xe8, 0x6085f4 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0xf0, 0x6085fc MOV X25, X0 ; +0xf4, 0x608600 ADRP X3, #_ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE_ptr@PAGE ; +0xf8, 0x608604 MOV X4, #0 ; +0xfc, 0x608608 MOV X2, X19 ; +0x100, 0x60860c MOV X1, #0 ; +0x104, 0x608610 MOV X0, X25 ; +0x108, 0x608614 LDR X3, [X3,#_ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE_ptr@PAGEOFF]; AchievementsLayer::onNextPage(cocos2d::CCObject *) ... ; +0x10c, 0x608618 BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x110, 0x60861c MOV X1, X0 ; +0x114, 0x608620 LDR X2, [X21] ; +0x118, 0x608624 STR X0, [X19,#0x260] ; +0x11c, 0x608628 MOV X0, X21 ; +0x120, 0x60862c LDR X2, [X2,#0x1B8] ; +0x124, 0x608630 BLR X2 ; +0x128, 0x608634 LDR X25, [X19,#0x260] ; +0x12c, 0x608638 LDR X0, [X25]; this ; +0x130, 0x60863c LDR X26, [X0,#0xB8] ; +0x134, 0x608640 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x138, 0x608644 BL _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x13c, 0x608648 FMOV S2, #24.0 ; +0x140, 0x60864c MOV X0, X23; this ; +0x144, 0x608650 FMOV S1, S8; float ; +0x148, 0x608654 FSUB S0, S0, S2; float ; +0x14c, 0x608658 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x150, 0x60865c MOV X8, X20 ; +0x154, 0x608660 MOV X0, X21; this ; +0x158, 0x608664 MOV X1, X23; cocos2d::CCPoint * ; +0x15c, 0x608668 BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x160, 0x60866c MOV X0, X25 ; +0x164, 0x608670 MOV X1, X20 ; +0x168, 0x608674 BLR X26 ; +0x16c, 0x608678 LDR X3, [X19,#0x240] ; +0x170, 0x60867c MOV W2, #0xA ; +0x174, 0x608680 MOV X1, X21 ; +0x178, 0x608684 MOV X0, X3 ; +0x17c, 0x608688 LDR X3, [X3] ; +0x180, 0x60868c LDR X3, [X3,#0x1C0] ; +0x184, 0x608690 BLR X3 ; +0x188, 0x608694 ADRP X0, #(aWarning_0+8)@PAGE; " " ; +0x18c, 0x608698 ADRL X1, aGoldfontFnt; "goldFont.fnt" ; +0x190, 0x60869c ADD X0, X0, #(aWarning_0+8)@PAGEOFF; this ; +0x198, 0x6086a4 BL _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x19c, 0x6086a8 MOV X1, X0 ; +0x1a0, 0x6086ac LDR X2, [X19,#0x240] ; +0x1a4, 0x6086b0 STR X0, [X19,#0x270] ; +0x1a8, 0x6086b4 MOV X0, X2 ; +0x1ac, 0x6086b8 LDR X2, [X2] ; +0x1b0, 0x6086bc LDR X2, [X2,#0x1B8] ; +0x1b4, 0x6086c0 BLR X2 ; +0x1b8, 0x6086c4 LDR X21, [X19,#0x270] ; +0x1bc, 0x6086c8 LDR X0, [X21]; this ; +0x1c0, 0x6086cc LDR X23, [X0,#0xB8] ; +0x1c4, 0x6086d0 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1c8, 0x6086d4 BL _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x1cc, 0x6086d8 FMOV S8, S0 ; +0x1d0, 0x6086dc BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1d4, 0x6086e0 BL _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0x1d8, 0x6086e4 FMOV S1, #4.0 ; +0x1dc, 0x6086e8 MOV X0, X20; this ; +0x1e0, 0x6086ec FSUB S1, S0, S1; float ; +0x1e4, 0x6086f0 FMOV S0, #7.0 ; +0x1e8, 0x6086f4 FSUB S0, S8, S0; float ; +0x1ec, 0x6086f8 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1f0, 0x6086fc MOV X0, X21 ; +0x1f4, 0x608700 MOV X1, X20 ; +0x1f8, 0x608704 BLR X23 ; +0x1fc, 0x608708 LDR X21, [X19,#0x270] ; +0x200, 0x60870c FMOV S0, #1.0; float ; +0x204, 0x608710 MOV X0, X20; this ; +0x208, 0x608714 FMOV S1, S0; float ; +0x20c, 0x608718 LDR X1, [X21] ; +0x210, 0x60871c LDR X23, [X1,#0x118] ; +0x214, 0x608720 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x218, 0x608724 MOV X0, X21 ; +0x21c, 0x608728 MOV X1, X20 ; +0x220, 0x60872c BLR X23 ; +0x224, 0x608730 LDR X1, [X19,#0x270] ; +0x228, 0x608734 LDR S0, =0x3F19999A ; +0x22c, 0x608738 MOV X0, X1 ; +0x230, 0x60873c LDR X1, [X1] ; +0x234, 0x608740 LDR X1, [X1,#0xA0] ; +0x238, 0x608744 BLR X1 ; +0x23c, 0x608748 MOV X0, X19; this ; +0x240, 0x60874c MOV W1, #0; int ; +0x244, 0x608750 BL _ZN17AchievementsLayer8loadPageEi; AchievementsLayer::loadPage(int) ; +0x248, 0x608754 CBZ W24, loc_608764 ; +0x24c, 0x608758 LDR X0, [X19,#0x240]; this ; +0x250, 0x60875c BL _ZN11GameToolbox21addRThumbScrollButtonEPN7cocos2d7CCLayerE; GameToolbox::addRThumbScrollButton(cocos2d::CCLayer *) ; +0x254, 0x608760 LDR X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x258, 0x608764 LDR X1, [X29,#0x80+var_8] ; +0x25c, 0x608768 LDR X0, [X22] ; +0x260, 0x60876c CMP X1, X0 ; +0x264, 0x608770 B.NE loc_6087BC ; +0x268, 0x608774 LDP X19, X20, [SP,#0x80+var_70] ; +0x26c, 0x608778 LDP X21, X22, [SP,#0x80+var_60] ; +0x270, 0x60877c LDP X23, X24, [SP,#0x80+var_50] ; +0x274, 0x608780 LDP X25, X26, [SP,#0x80+var_40] ; +0x278, 0x608784 LDR D8, [SP,#0x80+var_30] ; +0x27c, 0x608788 LDP X29, X30, [SP+0x80+var_80],#0x80 ; +0x280, 0x60878c RET ; +0x284, 0x608790 ADRL X0, aControllerbtnD_1; "controllerBtn_DPad_Left_001.png" ; +0x288, 0x608794 B loc_608570 ; +0x290, 0x60879c ADRL X0, aGjArrow01001Pn; "GJ_arrow_01_001.png" ; +0x294, 0x6087a0 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x29c, 0x6087a8 MOV X25, X0 ; +0x2a0, 0x6087ac MOV W1, #1; bool ; +0x2a4, 0x6087b0 BL _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x2a8, 0x6087b4 B loc_608604 ; +0x2ac, 0x6087b8 BL .__stack_chk_fail ; +0x2b0, 0x6087bc