{"type": "func", "start": 4111660, "end": 4111980, "name": "CheckpointGameObject::triggerActivated", "pseudocode": "// \n// CheckpointGameObject::triggerActivated from 0x3ebd2c to 0x3ebe6c (320 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CheckpointGameObject::triggerActivated(CheckpointGameObject *a1, float a2)\n{\n  _BOOL4 m_checkpointActivated; // r5\n  int (**i)(void); // r3\n  cocos2d::CCNode *v6; // r6\n  float v7; // r2\n  cocos2d::CCEaseElasticOut *v8; // r0\n  float v9; // r2\n  cocos2d::CCAction *v10; // r0\n  cocos2d::CCSprite *v11; // r9\n  cocos2d::CCNode *v12; // r6\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10\n  float width; // s17\n  int v15; // r0\n  cocos2d::CCSequence *v16; // r11\n  cocos2d::CCFadeOut *v17; // r10\n  int v18; // r0\n  cocos2d::CCAction *v19; // r0\n  __int64 v20; // [sp+4h] [bp-10h] BYREF\n\n  m_checkpointActivated = a1->m_checkpointActivated;\n  if ( !a1->m_checkpointActivated )\n  {\n    a1->m_checkpointActivated = 1;\n    for ( i = (int (**)(void))a1->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n          ;\n          i = (int (**)(void))a1->m_colorSprite->EffectGameObject::EnhancedGameObject::GameObject::__vftable )\n    {\n      v6 = (cocos2d::CCNode *)i[58]();\n      ((void (__fastcall *)(cocos2d::CCNode *, int))v6->setScaleX)(v6, 1068708659);\n      ((void (__fastcall *)(cocos2d::CCNode *, int))v6->setScaleY)(v6, 1066192077);\n      v8 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3F000000, 1.0, v7);\n      v10 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v8, (cocos2d::CCActionInterval *)0x3E99999A, v9);\n      cocos2d::CCNode::runAction(v6, v10);\n      if ( m_checkpointActivated )\n        break;\n      m_checkpointActivated = 1;\n    }\n    CheckpointGameObject::updateCheckpointSpriteVisibility(a1);\n    v11 = cocos2d::CCSprite::createWithSpriteFrameName(\"checkpoint_01_shine_001.png\");\n    v12 = a1->getChildByTag(a1, 1128);\n    v12->addChild_0(v12, v11, 1);\n    setPosition = v11->setPosition;\n    width = v12->getContentSize(v12)->width;\n    v15 = (int)v12->getContentSize(v12);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, width * 0.5, *(float *)(v15 + 4) * 0.5);\n    setPosition(v11, (const cocos2d::CCPoint *)&v20);\n    v16 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.1);\n    v17 = cocos2d::CCFadeOut::create(0.5);\n    v20 = 0x100000104LL;\n    v18 = cocos2d::CCCallFunc::create(v11, 260, 1);\n    v19 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v16, v17, v18, 0);\n    cocos2d::CCNode::runAction(v11, v19);\n  }\n  EffectGameObject::triggerActivated(a1, a2);\n}", "assembly": "; \n; CheckpointGameObject::triggerActivated from 0x3ebd2c to 0x3ebe6c (320 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             R3, =(__stack_chk_guard_ptr - 0x3EBD36)                ; +0x0, 0x3ebd2c\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x3ebd2e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3ebd32\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3ebd34\nVPUSH           {D8}                                                   ; +0xa, 0x3ebd36\nMOV             R4, R0                                                 ; +0xe, 0x3ebd3a\nLDR             R2, [R3]                                               ; +0x10, 0x3ebd3c\nMOV             R7, R1                                                 ; +0x12, 0x3ebd3e\nLDRB.W          R5, [R0,#0x664]                                        ; +0x14, 0x3ebd40\nMOV             R8, R3                                                 ; +0x18, 0x3ebd44\nSUB             SP, SP, #0x14                                          ; +0x1a, 0x3ebd46\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x1c, 0x3ebd48\nCMP             R5, #0                                                 ; +0x1e, 0x3ebd4a\nBNE             loc_3EBE4C                                             ; +0x20, 0x3ebd4c\nMOVS            R3, #1                                                 ; +0x22, 0x3ebd4e\nSTRB.W          R3, [R0,#0x664]                                        ; +0x24, 0x3ebd50\nLDR             R3, [R0]                                               ; +0x28, 0x3ebd54\nLDR.W           R3, [R3,#0xE8]                                         ; +0x2a, 0x3ebd56\nMOV.W           R1, #0x468                                             ; +0x2e, 0x3ebd5a\nBLX             R3                                                     ; +0x32, 0x3ebd5e\nLDR             R1, =0x3FB33333                                        ; +0x34, 0x3ebd60\nLDR             R3, [R0]                                               ; +0x36, 0x3ebd62\nMOV             R6, R0                                                 ; +0x38, 0x3ebd64\nLDR             R3, [R3,#0x40]                                         ; +0x3a, 0x3ebd66\nBLX             R3                                                     ; +0x3c, 0x3ebd68\nLDR             R3, [R6]                                               ; +0x3e, 0x3ebd6a\nMOV             R0, R6                                                 ; +0x40, 0x3ebd6c\nLDR             R1, =0x3F8CCCCD                                        ; +0x42, 0x3ebd6e\nLDR             R3, [R3,#0x48]                                         ; +0x44, 0x3ebd70\nBLX             R3                                                     ; +0x46, 0x3ebd72\nMOV.W           R1, #0x3F800000; float                                 ; +0x48, 0x3ebd74\nMOV.W           R0, #0x3F000000; this                                  ; +0x4c, 0x3ebd78\nBL              _ZN7cocos2d9CCScaleTo6createEff; cocos2d::CCScaleTo::create(float,float) ; +0x50, 0x3ebd7c\nLDR             R1, =0x3E99999A; cocos2d::CCActionInterval *           ; +0x54, 0x3ebd80\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x56, 0x3ebd82\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x5a, 0x3ebd86\nMOV             R0, R6; this                                           ; +0x5c, 0x3ebd88\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x5e, 0x3ebd8a\nCMP             R5, #1                                                 ; +0x62, 0x3ebd8e\nBEQ             loc_3EBD9C                                             ; +0x64, 0x3ebd90\nLDR.W           R0, [R4,#0x2EC]                                        ; +0x66, 0x3ebd92\nMOVS            R5, #1                                                 ; +0x6a, 0x3ebd96\nLDR             R3, [R0]                                               ; +0x6c, 0x3ebd98\nB               loc_3EBD56                                             ; +0x6e, 0x3ebd9a\nMOV             R0, R4; this                                           ; +0x70, 0x3ebd9c\nVMOV.F32        S16, #0.5                                              ; +0x72, 0x3ebd9e\nBL              _ZN20CheckpointGameObject32updateCheckpointSpriteVisibilityEv; CheckpointGameObject::updateCheckpointSpriteVisibility(void) ; +0x76, 0x3ebda2\nLDR             R0, =(aCheckpoint01Sh - 0x3EBDAC); \"checkpoint_01_shine_001.png\" ; +0x7a, 0x3ebda6\nADD             R0, PC; \"checkpoint_01_shine_001.png\"                  ; +0x7c, 0x3ebda8\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x7e, 0x3ebdaa\nLDR             R3, [R4]                                               ; +0x82, 0x3ebdae\nMOV.W           R1, #0x468                                             ; +0x84, 0x3ebdb0\nLDR.W           R3, [R3,#0xE8]                                         ; +0x88, 0x3ebdb4\nMOV             R9, R0                                                 ; +0x8c, 0x3ebdb8\nMOV             R0, R4                                                 ; +0x8e, 0x3ebdba\nBLX             R3                                                     ; +0x90, 0x3ebdbc\nMOV             R2, R5                                                 ; +0x92, 0x3ebdbe\nMOV             R1, R9                                                 ; +0x94, 0x3ebdc0\nADD             R5, SP, #0x14+var_10                                   ; +0x96, 0x3ebdc2\nLDR             R3, [R0]                                               ; +0x98, 0x3ebdc4\nMOV             R6, R0                                                 ; +0x9a, 0x3ebdc6\nLDR.W           R3, [R3,#0xE0]                                         ; +0x9c, 0x3ebdc8\nBLX             R3                                                     ; +0xa0, 0x3ebdcc\nLDR.W           R3, [R9]                                               ; +0xa2, 0x3ebdce\nMOV             R0, R6                                                 ; +0xa6, 0x3ebdd2\nLDR.W           R10, [R3,#0x5C]                                        ; +0xa8, 0x3ebdd4\nLDR             R3, [R6]                                               ; +0xac, 0x3ebdd8\nLDR.W           R3, [R3,#0x9C]                                         ; +0xae, 0x3ebdda\nBLX             R3                                                     ; +0xb2, 0x3ebdde\nLDR             R3, [R6]                                               ; +0xb4, 0x3ebde0\nLDR.W           R3, [R3,#0x9C]                                         ; +0xb6, 0x3ebde2\nVLDR            S17, [R0]                                              ; +0xba, 0x3ebde6\nMOV             R0, R6                                                 ; +0xbe, 0x3ebdea\nBLX             R3                                                     ; +0xc0, 0x3ebdec\nLDR             R6, =(unk_9AAD98 - 0x3EBDF4)                           ; +0xc2, 0x3ebdee\nADD             R6, PC; unk_9AAD98                                     ; +0xc4, 0x3ebdf0\nVMUL.F32        S17, S17, S16                                          ; +0xc6, 0x3ebdf2\nADDS            R6, #(unk_9AADAC - 0x9AAD98)                           ; +0xca, 0x3ebdf6\nVMOV            R1, S17; float                                         ; +0xcc, 0x3ebdf8\nVLDR            S15, [R0,#4]                                           ; +0xd0, 0x3ebdfc\nMOV             R0, R5; this                                           ; +0xd4, 0x3ebe00\nVMUL.F32        S15, S15, S16                                          ; +0xd6, 0x3ebe02\nVMOV            R2, S15; float                                         ; +0xda, 0x3ebe06\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xde, 0x3ebe0a\nMOV             R1, R5                                                 ; +0xe2, 0x3ebe0e\nMOV             R0, R9                                                 ; +0xe4, 0x3ebe10\nBLX             R10                                                    ; +0xe6, 0x3ebe12\nLDR             R0, =0x3DCCCCCD; this                                  ; +0xe8, 0x3ebe14\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0xea, 0x3ebe16\nMOV             R11, R0                                                ; +0xee, 0x3ebe1a\nVMOV            R0, S16; this                                          ; +0xf0, 0x3ebe1c\nBL              _ZN7cocos2d9CCFadeOut6createEf; cocos2d::CCFadeOut::create(float) ; +0xf4, 0x3ebe20\nMOV             R10, R0                                                ; +0xf8, 0x3ebe24\nLDM.W           R6, {R0,R1}                                            ; +0xfa, 0x3ebe26\nSTM.W           R5, {R0,R1}                                            ; +0xfe, 0x3ebe2a\nMOV             R0, R9                                                 ; +0x102, 0x3ebe2e\nLDM.W           R5, {R1,R2}                                            ; +0x104, 0x3ebe30\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x108, 0x3ebe34\nMOV             R1, R10; cocos2d::CCFiniteTimeAction *                 ; +0x10c, 0x3ebe38\nMOVS            R3, #0                                                 ; +0x10e, 0x3ebe3a\nMOV             R2, R0                                                 ; +0x110, 0x3ebe3c\nMOV             R0, R11; this                                          ; +0x112, 0x3ebe3e\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x114, 0x3ebe40\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x118, 0x3ebe44\nMOV             R0, R9; this                                           ; +0x11a, 0x3ebe46\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x11c, 0x3ebe48\nMOV             R0, R4; this                                           ; +0x120, 0x3ebe4c\nMOV             R1, R7; float                                          ; +0x122, 0x3ebe4e\nBL              _ZN16EffectGameObject16triggerActivatedEf; EffectGameObject::triggerActivated(float) ; +0x124, 0x3ebe50\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x128, 0x3ebe54\nLDR.W           R3, [R8]                                               ; +0x12a, 0x3ebe56\nCMP             R2, R3                                                 ; +0x12e, 0x3ebe5a\nBEQ             loc_3EBE62                                             ; +0x130, 0x3ebe5c\nBLX             __stack_chk_fail                                       ; +0x132, 0x3ebe5e\nADD             SP, SP, #0x14                                          ; +0x136, 0x3ebe62\nVPOP            {D8}                                                   ; +0x138, 0x3ebe64\nPOP.W           {R4-R11,PC}                                            ; +0x13c, 0x3ebe68", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}